From 023df359dd66f7b3970ddf2874c69d4b78b99126 Mon Sep 17 00:00:00 2001 From: AWS SDK for Go v2 automation user Date: Wed, 29 Nov 2023 18:54:56 +0000 Subject: [PATCH] Regenerated Clients --- .../0b4123dc14014ceaa5dc3f60bcc4c7bc.json | 8 + .../0c8458534b7c422485198938850bddd4.json | 8 + .../224289a75f0242deb9c55fbb2ea9ee60.json | 8 + .../41575353444b40ffbf474f4155544f00.json | 8 + .../7d03cc76ee8241e7a9bd8b6d659ad551.json | 8 + .../7fd8b85e0fc84f25b47ca973d5833d18.json | 8 + .../94ed0b0b1ab3430ca4019179dac2fdc9.json | 8 + .../a7d510a2eec54e5bbbf23bb0063c8ed3.json | 8 + .../c1b4a5be786b423b8b940a43827081fb.json | 8 + aws/protocol/eventstream/go.mod | 2 +- aws/protocol/eventstream/go.sum | 4 +- config/go.mod | 2 +- config/go.sum | 4 +- credentials/go.mod | 2 +- credentials/go.sum | 4 +- example/service/dynamodb/createTable/go.mod | 2 +- example/service/dynamodb/createTable/go.sum | 4 +- example/service/dynamodb/scanItems/go.mod | 2 +- example/service/dynamodb/scanItems/go.sum | 4 +- example/service/s3/listObjects/go.mod | 2 +- example/service/s3/listObjects/go.sum | 4 +- example/service/s3/usingPrivateLink/go.mod | 2 +- example/service/s3/usingPrivateLink/go.sum | 4 +- feature/cloudfront/sign/go.mod | 2 +- feature/cloudfront/sign/go.sum | 4 +- feature/dynamodb/attributevalue/go.mod | 2 +- feature/dynamodb/attributevalue/go.sum | 4 +- feature/dynamodb/expression/go.mod | 2 +- feature/dynamodb/expression/go.sum | 4 +- feature/dynamodbstreams/attributevalue/go.mod | 2 +- feature/dynamodbstreams/attributevalue/go.sum | 4 +- feature/ec2/imds/go.mod | 2 +- feature/ec2/imds/go.sum | 4 +- .../ec2/imds/internal/configtesting/go.mod | 2 +- .../ec2/imds/internal/configtesting/go.sum | 4 +- feature/rds/auth/go.mod | 2 +- feature/rds/auth/go.sum | 4 +- feature/s3/manager/go.mod | 2 +- feature/s3/manager/go.sum | 4 +- go.mod | 2 +- go.sum | 4 +- internal/configsources/configtesting/go.mod | 2 +- internal/configsources/configtesting/go.sum | 4 +- internal/configsources/go.mod | 2 +- internal/configsources/go.sum | 4 +- internal/endpoints/v2/go.mod | 2 +- internal/endpoints/v2/go.sum | 4 +- internal/protocoltest/awsrestjson/go.mod | 2 +- internal/protocoltest/awsrestjson/go.sum | 4 +- internal/protocoltest/ec2query/go.mod | 2 +- internal/protocoltest/ec2query/go.sum | 4 +- internal/protocoltest/jsonrpc/go.mod | 2 +- internal/protocoltest/jsonrpc/go.sum | 4 +- internal/protocoltest/jsonrpc10/go.mod | 2 +- internal/protocoltest/jsonrpc10/go.sum | 4 +- internal/protocoltest/query/go.mod | 2 +- internal/protocoltest/query/go.sum | 4 +- internal/protocoltest/restxml/go.mod | 2 +- internal/protocoltest/restxml/go.sum | 4 +- .../protocoltest/restxmlwithnamespace/go.mod | 2 +- .../protocoltest/restxmlwithnamespace/go.sum | 4 +- internal/v4a/go.mod | 2 +- internal/v4a/go.sum | 4 +- service/accessanalyzer/go.mod | 2 +- service/accessanalyzer/go.sum | 4 +- service/account/go.mod | 2 +- service/account/go.sum | 4 +- service/acm/go.mod | 2 +- service/acm/go.sum | 4 +- service/acmpca/go.mod | 2 +- service/acmpca/go.sum | 4 +- service/alexaforbusiness/go.mod | 2 +- service/alexaforbusiness/go.sum | 4 +- service/amp/go.mod | 2 +- service/amp/go.sum | 4 +- service/amplify/go.mod | 2 +- service/amplify/go.sum | 4 +- service/amplifybackend/go.mod | 2 +- service/amplifybackend/go.sum | 4 +- service/amplifyuibuilder/go.mod | 2 +- service/amplifyuibuilder/go.sum | 4 +- service/apigateway/go.mod | 2 +- service/apigateway/go.sum | 4 +- service/apigatewaymanagementapi/go.mod | 2 +- service/apigatewaymanagementapi/go.sum | 4 +- service/apigatewayv2/go.mod | 2 +- service/apigatewayv2/go.sum | 4 +- service/appconfig/go.mod | 2 +- service/appconfig/go.sum | 4 +- service/appconfigdata/go.mod | 2 +- service/appconfigdata/go.sum | 4 +- service/appfabric/go.mod | 2 +- service/appfabric/go.sum | 4 +- service/appflow/go.mod | 2 +- service/appflow/go.sum | 4 +- service/appintegrations/go.mod | 2 +- service/appintegrations/go.sum | 4 +- .../api_op_DeleteScalingPolicy.go | 9 +- .../api_op_DeleteScheduledAction.go | 5 + .../api_op_DeregisterScalableTarget.go | 5 + .../api_op_DescribeScalableTargets.go | 5 + .../api_op_DescribeScalingActivities.go | 5 + .../api_op_DescribeScalingPolicies.go | 5 + .../api_op_DescribeScheduledActions.go | 5 + .../api_op_PutScalingPolicy.go | 7 +- .../api_op_PutScheduledAction.go | 5 + .../api_op_RegisterScalableTarget.go | 5 + service/applicationautoscaling/doc.go | 1 + service/applicationautoscaling/endpoints.go | 4 +- service/applicationautoscaling/go.mod | 2 +- service/applicationautoscaling/go.sum | 4 +- service/applicationautoscaling/types/enums.go | 4 + service/applicationautoscaling/types/types.go | 28 +- service/applicationcostprofiler/go.mod | 2 +- service/applicationcostprofiler/go.sum | 4 +- service/applicationdiscoveryservice/go.mod | 2 +- service/applicationdiscoveryservice/go.sum | 4 +- service/applicationinsights/go.mod | 2 +- service/applicationinsights/go.sum | 4 +- service/appmesh/go.mod | 2 +- service/appmesh/go.sum | 4 +- service/apprunner/go.mod | 2 +- service/apprunner/go.sum | 4 +- service/appstream/go.mod | 2 +- service/appstream/go.sum | 4 +- service/appsync/go.mod | 2 +- service/appsync/go.sum | 4 +- service/arczonalshift/go.mod | 2 +- service/arczonalshift/go.sum | 4 +- service/athena/go.mod | 2 +- service/athena/go.sum | 4 +- service/auditmanager/go.mod | 2 +- service/auditmanager/go.sum | 4 +- service/autoscaling/go.mod | 2 +- service/autoscaling/go.sum | 4 +- service/autoscalingplans/go.mod | 2 +- service/autoscalingplans/go.sum | 4 +- service/b2bi/go.mod | 2 +- service/b2bi/go.sum | 4 +- service/backup/go.mod | 2 +- service/backup/go.sum | 4 +- service/backupgateway/go.mod | 2 +- service/backupgateway/go.sum | 4 +- service/backupstorage/go.mod | 2 +- service/backupstorage/go.sum | 4 +- service/batch/go.mod | 2 +- service/batch/go.sum | 4 +- service/bcmdataexports/go.mod | 2 +- service/bcmdataexports/go.sum | 4 +- service/bedrock/go.mod | 2 +- service/bedrock/go.sum | 4 +- service/bedrockagent/go.mod | 2 +- service/bedrockagent/go.sum | 4 +- service/bedrockagentruntime/go.mod | 2 +- service/bedrockagentruntime/go.sum | 4 +- service/bedrockruntime/go.mod | 2 +- service/bedrockruntime/go.sum | 4 +- service/billingconductor/go.mod | 2 +- service/billingconductor/go.sum | 4 +- service/braket/go.mod | 2 +- service/braket/go.sum | 4 +- service/budgets/go.mod | 2 +- service/budgets/go.sum | 4 +- service/chime/go.mod | 2 +- service/chime/go.sum | 4 +- service/chimesdkidentity/go.mod | 2 +- service/chimesdkidentity/go.sum | 4 +- service/chimesdkmediapipelines/go.mod | 2 +- service/chimesdkmediapipelines/go.sum | 4 +- service/chimesdkmeetings/go.mod | 2 +- service/chimesdkmeetings/go.sum | 4 +- service/chimesdkmessaging/go.mod | 2 +- service/chimesdkmessaging/go.sum | 4 +- service/chimesdkvoice/go.mod | 2 +- service/chimesdkvoice/go.sum | 4 +- ...reateConfiguredAudienceModelAssociation.go | 175 + .../api_op_CreatePrivacyBudgetTemplate.go | 170 + ...eleteConfiguredAudienceModelAssociation.go | 140 + .../api_op_DeletePrivacyBudgetTemplate.go | 139 + ...ationConfiguredAudienceModelAssociation.go | 146 + ...p_GetCollaborationPrivacyBudgetTemplate.go | 144 + ...p_GetConfiguredAudienceModelAssociation.go | 146 + .../api_op_GetPrivacyBudgetTemplate.go | 146 + ...tionConfiguredAudienceModelAssociations.go | 246 + ...ListCollaborationPrivacyBudgetTemplates.go | 250 + .../api_op_ListCollaborationPrivacyBudgets.go | 254 + ...ListConfiguredAudienceModelAssociations.go | 247 + .../api_op_ListPrivacyBudgetTemplates.go | 251 + .../cleanrooms/api_op_ListPrivacyBudgets.go | 255 + .../cleanrooms/api_op_PreviewPrivacyImpact.go | 148 + ...pdateConfiguredAudienceModelAssociation.go | 153 + .../api_op_UpdatePrivacyBudgetTemplate.go | 154 + service/cleanrooms/deserializers.go | 9901 +++++++++++++---- service/cleanrooms/generated.json | 17 + service/cleanrooms/go.mod | 2 +- service/cleanrooms/go.sum | 4 +- service/cleanrooms/serializers.go | 1976 +++- service/cleanrooms/types/enums.go | 60 + service/cleanrooms/types/types.go | 1358 ++- .../cleanrooms/types/types_exported_test.go | 108 + service/cleanrooms/validators.go | 875 +- service/cleanroomsml/LICENSE.txt | 202 + service/cleanroomsml/api_client.go | 463 + service/cleanroomsml/api_client_test.go | 123 + .../api_op_CreateAudienceModel.go | 182 + .../api_op_CreateConfiguredAudienceModel.go | 203 + .../api_op_CreateTrainingDataset.go | 181 + .../api_op_DeleteAudienceGenerationJob.go | 134 + .../api_op_DeleteAudienceModel.go | 134 + .../api_op_DeleteConfiguredAudienceModel.go | 136 + ..._op_DeleteConfiguredAudienceModelPolicy.go | 133 + .../api_op_DeleteTrainingDataset.go | 136 + .../api_op_GetAudienceGenerationJob.go | 199 + .../cleanroomsml/api_op_GetAudienceModel.go | 187 + .../api_op_GetConfiguredAudienceModel.go | 199 + ...api_op_GetConfiguredAudienceModelPolicy.go | 150 + .../cleanroomsml/api_op_GetTrainingDataset.go | 177 + .../api_op_ListAudienceExportJobs.go | 237 + .../api_op_ListAudienceGenerationJobs.go | 243 + .../cleanroomsml/api_op_ListAudienceModels.go | 233 + .../api_op_ListConfiguredAudienceModels.go | 235 + .../api_op_ListTagsForResource.go | 138 + .../api_op_ListTrainingDatasets.go | 233 + ...api_op_PutConfiguredAudienceModelPolicy.go | 158 + .../api_op_StartAudienceExportJob.go | 148 + .../api_op_StartAudienceGenerationJob.go | 180 + service/cleanroomsml/api_op_TagResource.go | 155 + service/cleanroomsml/api_op_UntagResource.go | 138 + .../api_op_UpdateConfiguredAudienceModel.go | 162 + service/cleanroomsml/auth.go | 256 + service/cleanroomsml/deserializers.go | 6007 ++++++++++ service/cleanroomsml/doc.go | 7 + service/cleanroomsml/endpoints.go | 509 + service/cleanroomsml/endpoints_config_test.go | 139 + service/cleanroomsml/endpoints_test.go | 856 ++ service/cleanroomsml/generated.json | 57 + service/cleanroomsml/go.mod | 17 + service/cleanroomsml/go.sum | 4 + service/cleanroomsml/go_module_metadata.go | 6 + .../internal/endpoints/endpoints.go | 296 + .../internal/endpoints/endpoints_test.go | 11 + service/cleanroomsml/options.go | 219 + service/cleanroomsml/protocol_test.go | 3 + service/cleanroomsml/serializers.go | 2236 ++++ service/cleanroomsml/types/enums.go | 248 + service/cleanroomsml/types/errors.go | 138 + service/cleanroomsml/types/types.go | 464 + service/cleanroomsml/validators.go | 1112 ++ service/cloud9/go.mod | 2 +- service/cloud9/go.sum | 4 +- service/cloudcontrol/go.mod | 2 +- service/cloudcontrol/go.sum | 4 +- service/clouddirectory/go.mod | 2 +- service/clouddirectory/go.sum | 4 +- service/cloudformation/go.mod | 2 +- service/cloudformation/go.sum | 4 +- service/cloudfront/go.mod | 2 +- service/cloudfront/go.sum | 4 +- service/cloudfrontkeyvaluestore/go.mod | 2 +- service/cloudfrontkeyvaluestore/go.sum | 4 +- service/cloudhsm/go.mod | 2 +- service/cloudhsm/go.sum | 4 +- service/cloudhsmv2/go.mod | 2 +- service/cloudhsmv2/go.sum | 4 +- service/cloudsearch/go.mod | 2 +- service/cloudsearch/go.sum | 4 +- service/cloudsearchdomain/go.mod | 2 +- service/cloudsearchdomain/go.sum | 4 +- service/cloudtrail/go.mod | 2 +- service/cloudtrail/go.sum | 4 +- service/cloudtraildata/go.mod | 2 +- service/cloudtraildata/go.sum | 4 +- service/cloudwatch/go.mod | 2 +- service/cloudwatch/go.sum | 4 +- service/cloudwatchevents/go.mod | 2 +- service/cloudwatchevents/go.sum | 4 +- service/cloudwatchlogs/go.mod | 2 +- service/cloudwatchlogs/go.sum | 4 +- service/codeartifact/go.mod | 2 +- service/codeartifact/go.sum | 4 +- service/codebuild/go.mod | 2 +- service/codebuild/go.sum | 4 +- service/codecatalyst/go.mod | 2 +- service/codecatalyst/go.sum | 4 +- service/codecommit/go.mod | 2 +- service/codecommit/go.sum | 4 +- service/codedeploy/go.mod | 2 +- service/codedeploy/go.sum | 4 +- service/codeguruprofiler/go.mod | 2 +- service/codeguruprofiler/go.sum | 4 +- service/codegurureviewer/go.mod | 2 +- service/codegurureviewer/go.sum | 4 +- service/codegurusecurity/go.mod | 2 +- service/codegurusecurity/go.sum | 4 +- service/codepipeline/go.mod | 2 +- service/codepipeline/go.sum | 4 +- service/codestar/go.mod | 2 +- service/codestar/go.sum | 4 +- service/codestarconnections/go.mod | 2 +- service/codestarconnections/go.sum | 4 +- service/codestarnotifications/go.mod | 2 +- service/codestarnotifications/go.sum | 4 +- service/cognitoidentity/go.mod | 2 +- service/cognitoidentity/go.sum | 4 +- service/cognitoidentityprovider/go.mod | 2 +- service/cognitoidentityprovider/go.sum | 4 +- service/cognitosync/go.mod | 2 +- service/cognitosync/go.sum | 4 +- service/comprehend/go.mod | 2 +- service/comprehend/go.sum | 4 +- service/comprehendmedical/go.mod | 2 +- service/comprehendmedical/go.sum | 4 +- service/computeoptimizer/go.mod | 2 +- service/computeoptimizer/go.sum | 4 +- service/configservice/go.mod | 2 +- service/configservice/go.sum | 4 +- service/connect/go.mod | 2 +- service/connect/go.sum | 4 +- service/connectcampaigns/go.mod | 2 +- service/connectcampaigns/go.sum | 4 +- service/connectcases/go.mod | 2 +- service/connectcases/go.sum | 4 +- service/connectcontactlens/go.mod | 2 +- service/connectcontactlens/go.sum | 4 +- service/connectparticipant/go.mod | 2 +- service/connectparticipant/go.sum | 4 +- service/controltower/go.mod | 2 +- service/controltower/go.sum | 4 +- service/costandusagereportservice/go.mod | 2 +- service/costandusagereportservice/go.sum | 4 +- service/costexplorer/go.mod | 2 +- service/costexplorer/go.sum | 4 +- service/costoptimizationhub/go.mod | 2 +- service/costoptimizationhub/go.sum | 4 +- service/customerprofiles/go.mod | 2 +- service/customerprofiles/go.sum | 4 +- service/databasemigrationservice/go.mod | 2 +- service/databasemigrationservice/go.sum | 4 +- service/databrew/go.mod | 2 +- service/databrew/go.sum | 4 +- service/dataexchange/go.mod | 2 +- service/dataexchange/go.sum | 4 +- service/datapipeline/go.mod | 2 +- service/datapipeline/go.sum | 4 +- service/datasync/go.mod | 2 +- service/datasync/go.sum | 4 +- service/datazone/go.mod | 2 +- service/datazone/go.sum | 4 +- service/dax/go.mod | 2 +- service/dax/go.sum | 4 +- service/detective/go.mod | 2 +- service/detective/go.sum | 4 +- service/devicefarm/go.mod | 2 +- service/devicefarm/go.sum | 4 +- service/devopsguru/go.mod | 2 +- service/devopsguru/go.sum | 4 +- service/directconnect/go.mod | 2 +- service/directconnect/go.sum | 4 +- service/directoryservice/go.mod | 2 +- service/directoryservice/go.sum | 4 +- service/dlm/go.mod | 2 +- service/dlm/go.sum | 4 +- service/docdb/go.mod | 2 +- service/docdb/go.sum | 4 +- service/docdbelastic/go.mod | 2 +- service/docdbelastic/go.sum | 4 +- service/drs/go.mod | 2 +- service/drs/go.sum | 4 +- service/dynamodb/go.mod | 2 +- service/dynamodb/go.sum | 4 +- service/dynamodbstreams/go.mod | 2 +- service/dynamodbstreams/go.sum | 4 +- service/ebs/go.mod | 2 +- service/ebs/go.sum | 4 +- service/ec2/go.mod | 2 +- service/ec2/go.sum | 4 +- service/ec2instanceconnect/go.mod | 2 +- service/ec2instanceconnect/go.sum | 4 +- service/ecr/go.mod | 2 +- service/ecr/go.sum | 4 +- service/ecrpublic/go.mod | 2 +- service/ecrpublic/go.sum | 4 +- service/ecs/go.mod | 2 +- service/ecs/go.sum | 4 +- service/efs/go.mod | 2 +- service/efs/go.sum | 4 +- service/eks/go.mod | 2 +- service/eks/go.sum | 4 +- service/eksauth/go.mod | 2 +- service/eksauth/go.sum | 4 +- service/elasticache/go.mod | 2 +- service/elasticache/go.sum | 4 +- service/elasticbeanstalk/go.mod | 2 +- service/elasticbeanstalk/go.sum | 4 +- service/elasticinference/go.mod | 2 +- service/elasticinference/go.sum | 4 +- service/elasticloadbalancing/go.mod | 2 +- service/elasticloadbalancing/go.sum | 4 +- service/elasticloadbalancingv2/go.mod | 2 +- service/elasticloadbalancingv2/go.sum | 4 +- service/elasticsearchservice/go.mod | 2 +- service/elasticsearchservice/go.sum | 4 +- service/elastictranscoder/go.mod | 2 +- service/elastictranscoder/go.sum | 4 +- service/emr/go.mod | 2 +- service/emr/go.sum | 4 +- service/emrcontainers/go.mod | 2 +- service/emrcontainers/go.sum | 4 +- service/emrserverless/go.mod | 2 +- service/emrserverless/go.sum | 4 +- service/entityresolution/go.mod | 2 +- service/entityresolution/go.sum | 4 +- service/eventbridge/go.mod | 2 +- service/eventbridge/go.sum | 4 +- service/evidently/go.mod | 2 +- service/evidently/go.sum | 4 +- service/finspace/go.mod | 2 +- service/finspace/go.sum | 4 +- service/finspacedata/go.mod | 2 +- service/finspacedata/go.sum | 4 +- service/firehose/go.mod | 2 +- service/firehose/go.sum | 4 +- service/fis/go.mod | 2 +- service/fis/go.sum | 4 +- service/fms/go.mod | 2 +- service/fms/go.sum | 4 +- service/forecast/go.mod | 2 +- service/forecast/go.sum | 4 +- service/forecastquery/go.mod | 2 +- service/forecastquery/go.sum | 4 +- service/frauddetector/go.mod | 2 +- service/frauddetector/go.sum | 4 +- service/freetier/go.mod | 2 +- service/freetier/go.sum | 4 +- service/fsx/go.mod | 2 +- service/fsx/go.sum | 4 +- service/gamelift/go.mod | 2 +- service/gamelift/go.sum | 4 +- service/glacier/go.mod | 2 +- service/glacier/go.sum | 4 +- service/globalaccelerator/go.mod | 2 +- service/globalaccelerator/go.sum | 4 +- service/glue/go.mod | 2 +- service/glue/go.sum | 4 +- service/grafana/go.mod | 2 +- service/grafana/go.sum | 4 +- service/greengrass/go.mod | 2 +- service/greengrass/go.sum | 4 +- service/greengrassv2/go.mod | 2 +- service/greengrassv2/go.sum | 4 +- service/groundstation/go.mod | 2 +- service/groundstation/go.sum | 4 +- service/guardduty/go.mod | 2 +- service/guardduty/go.sum | 4 +- service/health/go.mod | 2 +- service/health/go.sum | 4 +- service/healthlake/go.mod | 2 +- service/healthlake/go.sum | 4 +- service/honeycode/go.mod | 2 +- service/honeycode/go.sum | 4 +- service/iam/go.mod | 2 +- service/iam/go.sum | 4 +- service/identitystore/go.mod | 2 +- service/identitystore/go.sum | 4 +- service/imagebuilder/go.mod | 2 +- service/imagebuilder/go.sum | 4 +- service/inspector/go.mod | 2 +- service/inspector/go.sum | 4 +- service/inspector2/go.mod | 2 +- service/inspector2/go.sum | 4 +- service/inspectorscan/go.mod | 2 +- service/inspectorscan/go.sum | 4 +- service/internal/accept-encoding/go.mod | 2 +- service/internal/accept-encoding/go.sum | 4 +- service/internal/benchmark/go.mod | 2 +- service/internal/benchmark/go.sum | 4 +- service/internal/checksum/go.mod | 2 +- service/internal/checksum/go.sum | 4 +- service/internal/endpoint-discovery/go.mod | 2 +- service/internal/endpoint-discovery/go.sum | 4 +- service/internal/eventstreamtesting/go.mod | 2 +- service/internal/eventstreamtesting/go.sum | 4 +- service/internal/integrationtest/go.mod | 2 +- service/internal/integrationtest/go.sum | 4 +- service/internal/presigned-url/go.mod | 2 +- service/internal/presigned-url/go.sum | 4 +- service/internal/s3shared/go.mod | 2 +- service/internal/s3shared/go.sum | 4 +- service/internetmonitor/go.mod | 2 +- service/internetmonitor/go.sum | 4 +- service/iot/go.mod | 2 +- service/iot/go.sum | 4 +- service/iot1clickdevicesservice/go.mod | 2 +- service/iot1clickdevicesservice/go.sum | 4 +- service/iot1clickprojects/go.mod | 2 +- service/iot1clickprojects/go.sum | 4 +- service/iotanalytics/go.mod | 2 +- service/iotanalytics/go.sum | 4 +- service/iotdataplane/go.mod | 2 +- service/iotdataplane/go.sum | 4 +- service/iotdeviceadvisor/go.mod | 2 +- service/iotdeviceadvisor/go.sum | 4 +- service/iotevents/go.mod | 2 +- service/iotevents/go.sum | 4 +- service/ioteventsdata/go.mod | 2 +- service/ioteventsdata/go.sum | 4 +- service/iotfleethub/go.mod | 2 +- service/iotfleethub/go.sum | 4 +- service/iotfleetwise/go.mod | 2 +- service/iotfleetwise/go.sum | 4 +- service/iotjobsdataplane/go.mod | 2 +- service/iotjobsdataplane/go.sum | 4 +- service/iotroborunner/go.mod | 2 +- service/iotroborunner/go.sum | 4 +- service/iotsecuretunneling/go.mod | 2 +- service/iotsecuretunneling/go.sum | 4 +- service/iotsitewise/go.mod | 2 +- service/iotsitewise/go.sum | 4 +- service/iotthingsgraph/go.mod | 2 +- service/iotthingsgraph/go.sum | 4 +- service/iottwinmaker/go.mod | 2 +- service/iottwinmaker/go.sum | 4 +- service/iotwireless/go.mod | 2 +- service/iotwireless/go.sum | 4 +- service/ivs/go.mod | 2 +- service/ivs/go.sum | 4 +- service/ivschat/go.mod | 2 +- service/ivschat/go.sum | 4 +- service/ivsrealtime/go.mod | 2 +- service/ivsrealtime/go.sum | 4 +- service/kafka/go.mod | 2 +- service/kafka/go.sum | 4 +- service/kafkaconnect/go.mod | 2 +- service/kafkaconnect/go.sum | 4 +- service/kendra/go.mod | 2 +- service/kendra/go.sum | 4 +- service/kendraranking/go.mod | 2 +- service/kendraranking/go.sum | 4 +- service/keyspaces/go.mod | 2 +- service/keyspaces/go.sum | 4 +- service/kinesis/go.mod | 2 +- service/kinesis/go.sum | 4 +- service/kinesis/internal/testing/go.mod | 2 +- service/kinesis/internal/testing/go.sum | 4 +- service/kinesisanalytics/go.mod | 2 +- service/kinesisanalytics/go.sum | 4 +- service/kinesisanalyticsv2/go.mod | 2 +- service/kinesisanalyticsv2/go.sum | 4 +- service/kinesisvideo/go.mod | 2 +- service/kinesisvideo/go.sum | 4 +- service/kinesisvideoarchivedmedia/go.mod | 2 +- service/kinesisvideoarchivedmedia/go.sum | 4 +- service/kinesisvideomedia/go.mod | 2 +- service/kinesisvideomedia/go.sum | 4 +- service/kinesisvideosignaling/go.mod | 2 +- service/kinesisvideosignaling/go.sum | 4 +- service/kinesisvideowebrtcstorage/go.mod | 2 +- service/kinesisvideowebrtcstorage/go.sum | 4 +- service/kms/go.mod | 2 +- service/kms/go.sum | 4 +- service/lakeformation/go.mod | 2 +- service/lakeformation/go.sum | 4 +- service/lambda/go.mod | 2 +- service/lambda/go.sum | 4 +- service/launchwizard/go.mod | 2 +- service/launchwizard/go.sum | 4 +- service/lexmodelbuildingservice/go.mod | 2 +- service/lexmodelbuildingservice/go.sum | 4 +- service/lexmodelsv2/go.mod | 2 +- service/lexmodelsv2/go.sum | 4 +- service/lexruntimeservice/go.mod | 2 +- service/lexruntimeservice/go.sum | 4 +- service/lexruntimev2/go.mod | 2 +- service/lexruntimev2/go.sum | 4 +- service/licensemanager/go.mod | 2 +- service/licensemanager/go.sum | 4 +- .../licensemanagerlinuxsubscriptions/go.mod | 2 +- .../licensemanagerlinuxsubscriptions/go.sum | 4 +- .../licensemanagerusersubscriptions/go.mod | 2 +- .../licensemanagerusersubscriptions/go.sum | 4 +- service/lightsail/go.mod | 2 +- service/lightsail/go.sum | 4 +- service/location/go.mod | 2 +- service/location/go.sum | 4 +- service/lookoutequipment/go.mod | 2 +- service/lookoutequipment/go.sum | 4 +- service/lookoutmetrics/go.mod | 2 +- service/lookoutmetrics/go.sum | 4 +- service/lookoutvision/go.mod | 2 +- service/lookoutvision/go.sum | 4 +- service/m2/go.mod | 2 +- service/m2/go.sum | 4 +- service/machinelearning/go.mod | 2 +- service/machinelearning/go.sum | 4 +- service/macie2/go.mod | 2 +- service/macie2/go.sum | 4 +- service/managedblockchain/go.mod | 2 +- service/managedblockchain/go.sum | 4 +- service/managedblockchainquery/go.mod | 2 +- service/managedblockchainquery/go.sum | 4 +- service/marketplacecatalog/go.mod | 2 +- service/marketplacecatalog/go.sum | 4 +- service/marketplacecommerceanalytics/go.mod | 2 +- service/marketplacecommerceanalytics/go.sum | 4 +- service/marketplaceentitlementservice/go.mod | 2 +- service/marketplaceentitlementservice/go.sum | 4 +- service/marketplacemetering/go.mod | 2 +- service/marketplacemetering/go.sum | 4 +- service/mediaconnect/go.mod | 2 +- service/mediaconnect/go.sum | 4 +- service/mediaconvert/go.mod | 2 +- service/mediaconvert/go.sum | 4 +- service/medialive/go.mod | 2 +- service/medialive/go.sum | 4 +- service/mediapackage/go.mod | 2 +- service/mediapackage/go.sum | 4 +- service/mediapackagev2/go.mod | 2 +- service/mediapackagev2/go.sum | 4 +- service/mediapackagevod/go.mod | 2 +- service/mediapackagevod/go.sum | 4 +- service/mediastore/go.mod | 2 +- service/mediastore/go.sum | 4 +- service/mediastoredata/go.mod | 2 +- service/mediastoredata/go.sum | 4 +- service/mediatailor/go.mod | 2 +- service/mediatailor/go.sum | 4 +- service/medicalimaging/go.mod | 2 +- service/medicalimaging/go.sum | 4 +- service/memorydb/go.mod | 2 +- service/memorydb/go.sum | 4 +- service/mgn/go.mod | 2 +- service/mgn/go.sum | 4 +- service/migrationhub/go.mod | 2 +- service/migrationhub/go.sum | 4 +- service/migrationhubconfig/go.mod | 2 +- service/migrationhubconfig/go.sum | 4 +- service/migrationhuborchestrator/go.mod | 2 +- service/migrationhuborchestrator/go.sum | 4 +- service/migrationhubrefactorspaces/go.mod | 2 +- service/migrationhubrefactorspaces/go.sum | 4 +- service/migrationhubstrategy/go.mod | 2 +- service/migrationhubstrategy/go.sum | 4 +- service/mobile/go.mod | 2 +- service/mobile/go.sum | 4 +- service/mq/go.mod | 2 +- service/mq/go.sum | 4 +- service/mturk/go.mod | 2 +- service/mturk/go.sum | 4 +- service/mwaa/go.mod | 2 +- service/mwaa/go.sum | 4 +- service/neptune/go.mod | 2 +- service/neptune/go.sum | 4 +- service/neptunedata/go.mod | 2 +- service/neptunedata/go.sum | 4 +- service/networkfirewall/go.mod | 2 +- service/networkfirewall/go.sum | 4 +- service/networkmanager/go.mod | 2 +- service/networkmanager/go.sum | 4 +- service/nimble/go.mod | 2 +- service/nimble/go.sum | 4 +- service/oam/go.mod | 2 +- service/oam/go.sum | 4 +- service/omics/go.mod | 2 +- service/omics/go.sum | 4 +- service/opensearch/api_op_AddDataSource.go | 152 + service/opensearch/api_op_DeleteDataSource.go | 143 + service/opensearch/api_op_GetDataSource.go | 150 + service/opensearch/api_op_ListDataSources.go | 139 + service/opensearch/api_op_UpdateDataSource.go | 152 + service/opensearch/deserializers.go | 1339 ++- service/opensearch/generated.json | 6 + service/opensearch/go.mod | 2 +- service/opensearch/go.sum | 4 +- service/opensearch/serializers.go | 447 + service/opensearch/types/types.go | 61 +- .../opensearch/types/types_exported_test.go | 26 + service/opensearch/validators.go | 213 + .../api_op_CreateCollection.go | 3 + service/opensearchserverless/deserializers.go | 18 + .../opensearchserverless/endpoints_test.go | 20 + service/opensearchserverless/go.mod | 2 +- service/opensearchserverless/go.sum | 4 +- service/opensearchserverless/serializers.go | 5 + service/opensearchserverless/types/enums.go | 20 + service/opensearchserverless/types/types.go | 6 + service/opsworks/go.mod | 2 +- service/opsworks/go.sum | 4 +- service/opsworkscm/go.mod | 2 +- service/opsworkscm/go.sum | 4 +- service/organizations/go.mod | 2 +- service/organizations/go.sum | 4 +- service/osis/go.mod | 2 +- service/osis/go.sum | 4 +- service/outposts/go.mod | 2 +- service/outposts/go.sum | 4 +- service/panorama/go.mod | 2 +- service/panorama/go.sum | 4 +- service/paymentcryptography/go.mod | 2 +- service/paymentcryptography/go.sum | 4 +- service/paymentcryptographydata/go.mod | 2 +- service/paymentcryptographydata/go.sum | 4 +- service/pcaconnectorad/go.mod | 2 +- service/pcaconnectorad/go.sum | 4 +- service/personalize/go.mod | 2 +- service/personalize/go.sum | 4 +- service/personalizeevents/go.mod | 2 +- service/personalizeevents/go.sum | 4 +- service/personalizeruntime/go.mod | 2 +- service/personalizeruntime/go.sum | 4 +- service/pi/go.mod | 2 +- service/pi/go.sum | 4 +- service/pinpoint/go.mod | 2 +- service/pinpoint/go.sum | 4 +- service/pinpointemail/go.mod | 2 +- service/pinpointemail/go.sum | 4 +- service/pinpointsmsvoice/go.mod | 2 +- service/pinpointsmsvoice/go.sum | 4 +- service/pinpointsmsvoicev2/go.mod | 2 +- service/pinpointsmsvoicev2/go.sum | 4 +- service/pipes/go.mod | 2 +- service/pipes/go.sum | 4 +- service/polly/go.mod | 2 +- service/polly/go.sum | 4 +- service/pricing/go.mod | 2 +- service/pricing/go.sum | 4 +- service/privatenetworks/go.mod | 2 +- service/privatenetworks/go.sum | 4 +- service/proton/go.mod | 2 +- service/proton/go.sum | 4 +- service/qbusiness/go.mod | 2 +- service/qbusiness/go.sum | 4 +- service/qconnect/go.mod | 2 +- service/qconnect/go.sum | 4 +- service/qldb/go.mod | 2 +- service/qldb/go.sum | 4 +- service/qldbsession/go.mod | 2 +- service/qldbsession/go.sum | 4 +- service/quicksight/go.mod | 2 +- service/quicksight/go.sum | 4 +- service/ram/go.mod | 2 +- service/ram/go.sum | 4 +- service/rbin/go.mod | 2 +- service/rbin/go.sum | 4 +- service/rds/go.mod | 2 +- service/rds/go.sum | 4 +- service/rdsdata/go.mod | 2 +- service/rdsdata/go.sum | 4 +- service/redshift/go.mod | 2 +- service/redshift/go.sum | 4 +- service/redshiftdata/go.mod | 2 +- service/redshiftdata/go.sum | 4 +- service/redshiftserverless/go.mod | 2 +- service/redshiftserverless/go.sum | 4 +- service/rekognition/go.mod | 2 +- service/rekognition/go.sum | 4 +- service/repostspace/go.mod | 2 +- service/repostspace/go.sum | 4 +- service/resiliencehub/go.mod | 2 +- service/resiliencehub/go.sum | 4 +- service/resourceexplorer2/go.mod | 2 +- service/resourceexplorer2/go.sum | 4 +- service/resourcegroups/go.mod | 2 +- service/resourcegroups/go.sum | 4 +- service/resourcegroupstaggingapi/go.mod | 2 +- service/resourcegroupstaggingapi/go.sum | 4 +- service/robomaker/go.mod | 2 +- service/robomaker/go.sum | 4 +- service/rolesanywhere/go.mod | 2 +- service/rolesanywhere/go.sum | 4 +- service/route53/go.mod | 2 +- service/route53/go.sum | 4 +- service/route53domains/go.mod | 2 +- service/route53domains/go.sum | 4 +- service/route53recoverycluster/go.mod | 2 +- service/route53recoverycluster/go.sum | 4 +- service/route53recoverycontrolconfig/go.mod | 2 +- service/route53recoverycontrolconfig/go.sum | 4 +- service/route53recoveryreadiness/go.mod | 2 +- service/route53recoveryreadiness/go.sum | 4 +- service/route53resolver/go.mod | 2 +- service/route53resolver/go.sum | 4 +- service/rum/go.mod | 2 +- service/rum/go.sum | 4 +- service/s3/go.mod | 2 +- service/s3/go.sum | 4 +- service/s3/internal/configtesting/go.mod | 2 +- service/s3/internal/configtesting/go.sum | 4 +- service/s3control/go.mod | 2 +- service/s3control/go.sum | 4 +- service/s3outposts/go.mod | 2 +- service/s3outposts/go.sum | 4 +- service/sagemaker/api_op_AddTags.go | 14 +- service/sagemaker/api_op_CreateApp.go | 6 +- service/sagemaker/api_op_CreateCluster.go | 163 + service/sagemaker/api_op_CreateDomain.go | 52 +- .../sagemaker/api_op_CreateEndpointConfig.go | 18 + .../api_op_CreateInferenceComponent.go | 174 + service/sagemaker/api_op_CreateModel.go | 18 +- .../api_op_CreatePresignedDomainUrl.go | 28 +- .../api_op_CreateStudioLifecycleConfig.go | 8 +- service/sagemaker/api_op_CreateTrainingJob.go | 4 + service/sagemaker/api_op_CreateUserProfile.go | 9 +- service/sagemaker/api_op_DeleteCluster.go | 139 + .../api_op_DeleteInferenceComponent.go | 132 + .../api_op_DeleteStudioLifecycleConfig.go | 10 +- service/sagemaker/api_op_DeleteTags.go | 6 +- service/sagemaker/api_op_DescribeCluster.go | 167 + .../sagemaker/api_op_DescribeClusterNode.go | 146 + service/sagemaker/api_op_DescribeDomain.go | 6 +- .../api_op_DescribeEndpointConfig.go | 16 + .../api_op_DescribeInferenceComponent.go | 182 + service/sagemaker/api_op_DescribeModel.go | 8 +- service/sagemaker/api_op_DescribeSpace.go | 9 + .../api_op_DescribeStudioLifecycleConfig.go | 15 +- .../sagemaker/api_op_DescribeTrainingJob.go | 4 + service/sagemaker/api_op_ListClusterNodes.go | 185 + service/sagemaker/api_op_ListClusters.go | 176 + .../api_op_ListInferenceComponents.go | 280 + .../api_op_ListStudioLifecycleConfigs.go | 3 +- service/sagemaker/api_op_UpdateCluster.go | 144 + service/sagemaker/api_op_UpdateDomain.go | 15 + .../api_op_UpdateInferenceComponent.go | 146 + ...p_UpdateInferenceComponentRuntimeConfig.go | 144 + service/sagemaker/deserializers.go | 9731 ++++++++++------ service/sagemaker/generated.json | 13 + service/sagemaker/go.mod | 2 +- service/sagemaker/go.sum | 4 +- service/sagemaker/serializers.go | 2108 +++- service/sagemaker/types/enums.go | 259 + service/sagemaker/types/types.go | 611 +- service/sagemaker/validators.go | 644 +- service/sagemakera2iruntime/go.mod | 2 +- service/sagemakera2iruntime/go.sum | 4 +- service/sagemakeredge/go.mod | 2 +- service/sagemakeredge/go.sum | 4 +- service/sagemakerfeaturestoreruntime/go.mod | 2 +- service/sagemakerfeaturestoreruntime/go.sum | 4 +- service/sagemakergeospatial/go.mod | 2 +- service/sagemakergeospatial/go.sum | 4 +- service/sagemakermetrics/go.mod | 2 +- service/sagemakermetrics/go.sum | 4 +- .../sagemakerruntime/api_op_InvokeEndpoint.go | 4 + ...api_op_InvokeEndpointWithResponseStream.go | 20 +- service/sagemakerruntime/go.mod | 2 +- service/sagemakerruntime/go.sum | 4 +- service/sagemakerruntime/serializers.go | 10 + service/savingsplans/go.mod | 2 +- service/savingsplans/go.sum | 4 +- service/scheduler/go.mod | 2 +- service/scheduler/go.sum | 4 +- service/schemas/go.mod | 2 +- service/schemas/go.sum | 4 +- service/secretsmanager/go.mod | 2 +- service/secretsmanager/go.sum | 4 +- service/securityhub/go.mod | 2 +- service/securityhub/go.sum | 4 +- service/securitylake/go.mod | 2 +- service/securitylake/go.sum | 4 +- .../serverlessapplicationrepository/go.mod | 2 +- .../serverlessapplicationrepository/go.sum | 4 +- service/servicecatalog/go.mod | 2 +- service/servicecatalog/go.sum | 4 +- service/servicecatalogappregistry/go.mod | 2 +- service/servicecatalogappregistry/go.sum | 4 +- service/servicediscovery/go.mod | 2 +- service/servicediscovery/go.sum | 4 +- service/servicequotas/go.mod | 2 +- service/servicequotas/go.sum | 4 +- service/ses/go.mod | 2 +- service/ses/go.sum | 4 +- service/sesv2/go.mod | 2 +- service/sesv2/go.sum | 4 +- service/sfn/go.mod | 2 +- service/sfn/go.sum | 4 +- service/shield/go.mod | 2 +- service/shield/go.sum | 4 +- service/signer/go.mod | 2 +- service/signer/go.sum | 4 +- service/simspaceweaver/go.mod | 2 +- service/simspaceweaver/go.sum | 4 +- service/sms/go.mod | 2 +- service/sms/go.sum | 4 +- service/snowball/go.mod | 2 +- service/snowball/go.sum | 4 +- service/snowdevicemanagement/go.mod | 2 +- service/snowdevicemanagement/go.sum | 4 +- service/sns/go.mod | 2 +- service/sns/go.sum | 4 +- service/sqs/go.mod | 2 +- service/sqs/go.sum | 4 +- service/ssm/go.mod | 2 +- service/ssm/go.sum | 4 +- service/ssmcontacts/go.mod | 2 +- service/ssmcontacts/go.sum | 4 +- service/ssmincidents/go.mod | 2 +- service/ssmincidents/go.sum | 4 +- service/ssmsap/go.mod | 2 +- service/ssmsap/go.sum | 4 +- service/sso/go.mod | 2 +- service/sso/go.sum | 4 +- service/ssoadmin/go.mod | 2 +- service/ssoadmin/go.sum | 4 +- service/ssooidc/go.mod | 2 +- service/ssooidc/go.sum | 4 +- service/storagegateway/go.mod | 2 +- service/storagegateway/go.sum | 4 +- service/sts/api_op_AssumeRole.go | 2 +- service/sts/go.mod | 2 +- service/sts/go.sum | 4 +- service/support/go.mod | 2 +- service/support/go.sum | 4 +- service/supportapp/go.mod | 2 +- service/supportapp/go.sum | 4 +- service/swf/go.mod | 2 +- service/swf/go.sum | 4 +- service/synthetics/go.mod | 2 +- service/synthetics/go.sum | 4 +- service/textract/go.mod | 2 +- service/textract/go.sum | 4 +- service/timestreamquery/go.mod | 2 +- service/timestreamquery/go.sum | 4 +- service/timestreamwrite/go.mod | 2 +- service/timestreamwrite/go.sum | 4 +- service/tnb/go.mod | 2 +- service/tnb/go.sum | 4 +- service/transcribe/go.mod | 2 +- service/transcribe/go.sum | 4 +- service/transcribestreaming/go.mod | 2 +- service/transcribestreaming/go.sum | 4 +- .../internal/testing/go.mod | 2 +- .../internal/testing/go.sum | 4 +- service/transfer/go.mod | 2 +- service/transfer/go.sum | 4 +- service/translate/go.mod | 2 +- service/translate/go.sum | 4 +- service/trustedadvisor/go.mod | 2 +- service/trustedadvisor/go.sum | 4 +- service/verifiedpermissions/go.mod | 2 +- service/verifiedpermissions/go.sum | 4 +- service/voiceid/go.mod | 2 +- service/voiceid/go.sum | 4 +- service/vpclattice/go.mod | 2 +- service/vpclattice/go.sum | 4 +- service/waf/go.mod | 2 +- service/waf/go.sum | 4 +- service/wafregional/go.mod | 2 +- service/wafregional/go.sum | 4 +- service/wafv2/go.mod | 2 +- service/wafv2/go.sum | 4 +- service/wellarchitected/go.mod | 2 +- service/wellarchitected/go.sum | 4 +- service/wisdom/go.mod | 2 +- service/wisdom/go.sum | 4 +- service/workdocs/go.mod | 2 +- service/workdocs/go.sum | 4 +- service/worklink/go.mod | 2 +- service/worklink/go.sum | 4 +- service/workmail/go.mod | 2 +- service/workmail/go.sum | 4 +- service/workmailmessageflow/go.mod | 2 +- service/workmailmessageflow/go.sum | 4 +- service/workspaces/go.mod | 2 +- service/workspaces/go.sum | 4 +- service/workspacesthinclient/go.mod | 2 +- service/workspacesthinclient/go.sum | 4 +- service/workspacesweb/go.mod | 2 +- service/workspacesweb/go.sum | 4 +- service/xray/go.mod | 2 +- service/xray/go.sum | 4 +- 969 files changed, 48618 insertions(+), 7967 deletions(-) create mode 100644 .changelog/0b4123dc14014ceaa5dc3f60bcc4c7bc.json create mode 100644 .changelog/0c8458534b7c422485198938850bddd4.json create mode 100644 .changelog/224289a75f0242deb9c55fbb2ea9ee60.json create mode 100644 .changelog/41575353444b40ffbf474f4155544f00.json create mode 100644 .changelog/7d03cc76ee8241e7a9bd8b6d659ad551.json create mode 100644 .changelog/7fd8b85e0fc84f25b47ca973d5833d18.json create mode 100644 .changelog/94ed0b0b1ab3430ca4019179dac2fdc9.json create mode 100644 .changelog/a7d510a2eec54e5bbbf23bb0063c8ed3.json create mode 100644 .changelog/c1b4a5be786b423b8b940a43827081fb.json create mode 100644 service/cleanrooms/api_op_CreateConfiguredAudienceModelAssociation.go create mode 100644 service/cleanrooms/api_op_CreatePrivacyBudgetTemplate.go create mode 100644 service/cleanrooms/api_op_DeleteConfiguredAudienceModelAssociation.go create mode 100644 service/cleanrooms/api_op_DeletePrivacyBudgetTemplate.go create mode 100644 service/cleanrooms/api_op_GetCollaborationConfiguredAudienceModelAssociation.go create mode 100644 service/cleanrooms/api_op_GetCollaborationPrivacyBudgetTemplate.go create mode 100644 service/cleanrooms/api_op_GetConfiguredAudienceModelAssociation.go create mode 100644 service/cleanrooms/api_op_GetPrivacyBudgetTemplate.go create mode 100644 service/cleanrooms/api_op_ListCollaborationConfiguredAudienceModelAssociations.go create mode 100644 service/cleanrooms/api_op_ListCollaborationPrivacyBudgetTemplates.go create mode 100644 service/cleanrooms/api_op_ListCollaborationPrivacyBudgets.go create mode 100644 service/cleanrooms/api_op_ListConfiguredAudienceModelAssociations.go create mode 100644 service/cleanrooms/api_op_ListPrivacyBudgetTemplates.go create mode 100644 service/cleanrooms/api_op_ListPrivacyBudgets.go create mode 100644 service/cleanrooms/api_op_PreviewPrivacyImpact.go create mode 100644 service/cleanrooms/api_op_UpdateConfiguredAudienceModelAssociation.go create mode 100644 service/cleanrooms/api_op_UpdatePrivacyBudgetTemplate.go create mode 100644 service/cleanroomsml/LICENSE.txt create mode 100644 service/cleanroomsml/api_client.go create mode 100644 service/cleanroomsml/api_client_test.go create mode 100644 service/cleanroomsml/api_op_CreateAudienceModel.go create mode 100644 service/cleanroomsml/api_op_CreateConfiguredAudienceModel.go create mode 100644 service/cleanroomsml/api_op_CreateTrainingDataset.go create mode 100644 service/cleanroomsml/api_op_DeleteAudienceGenerationJob.go create mode 100644 service/cleanroomsml/api_op_DeleteAudienceModel.go create mode 100644 service/cleanroomsml/api_op_DeleteConfiguredAudienceModel.go create mode 100644 service/cleanroomsml/api_op_DeleteConfiguredAudienceModelPolicy.go create mode 100644 service/cleanroomsml/api_op_DeleteTrainingDataset.go create mode 100644 service/cleanroomsml/api_op_GetAudienceGenerationJob.go create mode 100644 service/cleanroomsml/api_op_GetAudienceModel.go create mode 100644 service/cleanroomsml/api_op_GetConfiguredAudienceModel.go create mode 100644 service/cleanroomsml/api_op_GetConfiguredAudienceModelPolicy.go create mode 100644 service/cleanroomsml/api_op_GetTrainingDataset.go create mode 100644 service/cleanroomsml/api_op_ListAudienceExportJobs.go create mode 100644 service/cleanroomsml/api_op_ListAudienceGenerationJobs.go create mode 100644 service/cleanroomsml/api_op_ListAudienceModels.go create mode 100644 service/cleanroomsml/api_op_ListConfiguredAudienceModels.go create mode 100644 service/cleanroomsml/api_op_ListTagsForResource.go create mode 100644 service/cleanroomsml/api_op_ListTrainingDatasets.go create mode 100644 service/cleanroomsml/api_op_PutConfiguredAudienceModelPolicy.go create mode 100644 service/cleanroomsml/api_op_StartAudienceExportJob.go create mode 100644 service/cleanroomsml/api_op_StartAudienceGenerationJob.go create mode 100644 service/cleanroomsml/api_op_TagResource.go create mode 100644 service/cleanroomsml/api_op_UntagResource.go create mode 100644 service/cleanroomsml/api_op_UpdateConfiguredAudienceModel.go create mode 100644 service/cleanroomsml/auth.go create mode 100644 service/cleanroomsml/deserializers.go create mode 100644 service/cleanroomsml/doc.go create mode 100644 service/cleanroomsml/endpoints.go create mode 100644 service/cleanroomsml/endpoints_config_test.go create mode 100644 service/cleanroomsml/endpoints_test.go create mode 100644 service/cleanroomsml/generated.json create mode 100644 service/cleanroomsml/go.mod create mode 100644 service/cleanroomsml/go.sum create mode 100644 service/cleanroomsml/go_module_metadata.go create mode 100644 service/cleanroomsml/internal/endpoints/endpoints.go create mode 100644 service/cleanroomsml/internal/endpoints/endpoints_test.go create mode 100644 service/cleanroomsml/options.go create mode 100644 service/cleanroomsml/protocol_test.go create mode 100644 service/cleanroomsml/serializers.go create mode 100644 service/cleanroomsml/types/enums.go create mode 100644 service/cleanroomsml/types/errors.go create mode 100644 service/cleanroomsml/types/types.go create mode 100644 service/cleanroomsml/validators.go create mode 100644 service/opensearch/api_op_AddDataSource.go create mode 100644 service/opensearch/api_op_DeleteDataSource.go create mode 100644 service/opensearch/api_op_GetDataSource.go create mode 100644 service/opensearch/api_op_ListDataSources.go create mode 100644 service/opensearch/api_op_UpdateDataSource.go create mode 100644 service/opensearch/types/types_exported_test.go create mode 100644 service/sagemaker/api_op_CreateCluster.go create mode 100644 service/sagemaker/api_op_CreateInferenceComponent.go create mode 100644 service/sagemaker/api_op_DeleteCluster.go create mode 100644 service/sagemaker/api_op_DeleteInferenceComponent.go create mode 100644 service/sagemaker/api_op_DescribeCluster.go create mode 100644 service/sagemaker/api_op_DescribeClusterNode.go create mode 100644 service/sagemaker/api_op_DescribeInferenceComponent.go create mode 100644 service/sagemaker/api_op_ListClusterNodes.go create mode 100644 service/sagemaker/api_op_ListClusters.go create mode 100644 service/sagemaker/api_op_ListInferenceComponents.go create mode 100644 service/sagemaker/api_op_UpdateCluster.go create mode 100644 service/sagemaker/api_op_UpdateInferenceComponent.go create mode 100644 service/sagemaker/api_op_UpdateInferenceComponentRuntimeConfig.go diff --git a/.changelog/0b4123dc14014ceaa5dc3f60bcc4c7bc.json b/.changelog/0b4123dc14014ceaa5dc3f60bcc4c7bc.json new file mode 100644 index 00000000000..8c562ea52d3 --- /dev/null +++ b/.changelog/0b4123dc14014ceaa5dc3f60bcc4c7bc.json @@ -0,0 +1,8 @@ +{ + "id": "0b4123dc-1401-4cea-a5dc-3f60bcc4c7bc", + "type": "documentation", + "description": "Documentation updates for AWS Security Token Service.", + "modules": [ + "service/sts" + ] +} \ No newline at end of file diff --git a/.changelog/0c8458534b7c422485198938850bddd4.json b/.changelog/0c8458534b7c422485198938850bddd4.json new file mode 100644 index 00000000000..d0bb7964d1f --- /dev/null +++ b/.changelog/0c8458534b7c422485198938850bddd4.json @@ -0,0 +1,8 @@ +{ + "id": "0c845853-4b7c-4224-8519-8938850bddd4", + "type": "feature", + "description": "Amazon OpenSearch Serverless collections support an additional attribute called standby-replicas. This allows to specify whether a collection should have redundancy enabled.", + "modules": [ + "service/opensearchserverless" + ] +} \ No newline at end of file diff --git a/.changelog/224289a75f0242deb9c55fbb2ea9ee60.json b/.changelog/224289a75f0242deb9c55fbb2ea9ee60.json new file mode 100644 index 00000000000..f6bbf416ddc --- /dev/null +++ b/.changelog/224289a75f0242deb9c55fbb2ea9ee60.json @@ -0,0 +1,8 @@ +{ + "id": "224289a7-5f02-42de-b9c5-5fbb2ea9ee60", + "type": "feature", + "description": "AWS Clean Rooms now provides differential privacy to protect against user-identification attempts and machine learning modeling to allow two parties to identify similar users in their data.", + "modules": [ + "service/cleanrooms" + ] +} \ No newline at end of file diff --git a/.changelog/41575353444b40ffbf474f4155544f00.json b/.changelog/41575353444b40ffbf474f4155544f00.json new file mode 100644 index 00000000000..e8ceb737ee2 --- /dev/null +++ b/.changelog/41575353444b40ffbf474f4155544f00.json @@ -0,0 +1,8 @@ +{ + "id": "41575353-444b-40ff-bf47-4f4155544f00", + "type": "release", + "description": "New AWS service client module", + "modules": [ + "service/cleanroomsml" + ] +} \ No newline at end of file diff --git a/.changelog/7d03cc76ee8241e7a9bd8b6d659ad551.json b/.changelog/7d03cc76ee8241e7a9bd8b6d659ad551.json new file mode 100644 index 00000000000..08921830b6a --- /dev/null +++ b/.changelog/7d03cc76ee8241e7a9bd8b6d659ad551.json @@ -0,0 +1,8 @@ +{ + "id": "7d03cc76-ee82-41e7-a9bd-8b6d659ad551", + "type": "feature", + "description": "This release adds following support 1/ Improved SDK tooling for model deployment. 2/ New Inference Component based features to lower inference costs and latency 3/ SageMaker HyperPod management. 4/ Additional parameters for FM Fine Tuning in Autopilot", + "modules": [ + "service/sagemaker" + ] +} \ No newline at end of file diff --git a/.changelog/7fd8b85e0fc84f25b47ca973d5833d18.json b/.changelog/7fd8b85e0fc84f25b47ca973d5833d18.json new file mode 100644 index 00000000000..704df1ed22c --- /dev/null +++ b/.changelog/7fd8b85e0fc84f25b47ca973d5833d18.json @@ -0,0 +1,8 @@ +{ + "id": "7fd8b85e-0fc8-4f25-b47c-a973d5833d18", + "type": "feature", + "description": "Public Preview SDK release of AWS Clean Rooms ML APIs", + "modules": [ + "service/cleanroomsml" + ] +} \ No newline at end of file diff --git a/.changelog/94ed0b0b1ab3430ca4019179dac2fdc9.json b/.changelog/94ed0b0b1ab3430ca4019179dac2fdc9.json new file mode 100644 index 00000000000..2bf87982e3d --- /dev/null +++ b/.changelog/94ed0b0b1ab3430ca4019179dac2fdc9.json @@ -0,0 +1,8 @@ +{ + "id": "94ed0b0b-1ab3-430c-a401-9179dac2fdc9", + "type": "feature", + "description": "Launching Amazon OpenSearch Service support for new zero-ETL integration with Amazon S3. Customers can now manage their direct query data sources to Amazon S3 programatically", + "modules": [ + "service/opensearch" + ] +} \ No newline at end of file diff --git a/.changelog/a7d510a2eec54e5bbbf23bb0063c8ed3.json b/.changelog/a7d510a2eec54e5bbbf23bb0063c8ed3.json new file mode 100644 index 00000000000..e547c84a99e --- /dev/null +++ b/.changelog/a7d510a2eec54e5bbbf23bb0063c8ed3.json @@ -0,0 +1,8 @@ +{ + "id": "a7d510a2-eec5-4e5b-bbf2-3bb0063c8ed3", + "type": "feature", + "description": "Amazon SageMaker customers can now use Application Auto Scaling to automatically scale the number of Inference Component copies across an endpoint to meet the varying demand of their workloads.", + "modules": [ + "service/applicationautoscaling" + ] +} \ No newline at end of file diff --git a/.changelog/c1b4a5be786b423b8b940a43827081fb.json b/.changelog/c1b4a5be786b423b8b940a43827081fb.json new file mode 100644 index 00000000000..059b7ccee17 --- /dev/null +++ b/.changelog/c1b4a5be786b423b8b940a43827081fb.json @@ -0,0 +1,8 @@ +{ + "id": "c1b4a5be-786b-423b-8b94-0a43827081fb", + "type": "feature", + "description": "This release adds InferenceComponentName to InvokeEndpoint and InvokeEndpointWithResponseStream APIs to get inferences from the deployed InferenceComponents.", + "modules": [ + "service/sagemakerruntime" + ] +} \ No newline at end of file diff --git a/aws/protocol/eventstream/go.mod b/aws/protocol/eventstream/go.mod index b9d8b52056f..3fcfe3a4495 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.19 -require github.com/aws/smithy-go v1.17.0 +require github.com/aws/smithy-go v1.18.0 replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/aws/protocol/eventstream/go.sum b/aws/protocol/eventstream/go.sum index a96e3f8ab8b..4a236cdfa85 100644 --- a/aws/protocol/eventstream/go.sum +++ b/aws/protocol/eventstream/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/config/go.mod b/config/go.mod index 8dd17651268..fe8c5d22c96 100644 --- a/config/go.mod +++ b/config/go.mod @@ -10,7 +10,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/sso v1.17.5 github.com/aws/aws-sdk-go-v2/service/ssooidc v1.20.3 github.com/aws/aws-sdk-go-v2/service/sts v1.25.6 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/config/go.sum b/config/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/config/go.sum +++ b/config/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/credentials/go.mod b/credentials/go.mod index 820824f3df8..5075ced22b0 100644 --- a/credentials/go.mod +++ b/credentials/go.mod @@ -8,7 +8,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/sso v1.17.5 github.com/aws/aws-sdk-go-v2/service/ssooidc v1.20.3 github.com/aws/aws-sdk-go-v2/service/sts v1.25.6 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/credentials/go.sum b/credentials/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/credentials/go.sum +++ b/credentials/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/example/service/dynamodb/createTable/go.mod b/example/service/dynamodb/createTable/go.mod index decc298a714..a2258d518a9 100644 --- a/example/service/dynamodb/createTable/go.mod +++ b/example/service/dynamodb/createTable/go.mod @@ -20,7 +20,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/sso v1.17.5 // indirect github.com/aws/aws-sdk-go-v2/service/ssooidc v1.20.3 // indirect github.com/aws/aws-sdk-go-v2/service/sts v1.25.6 // indirect - github.com/aws/smithy-go v1.17.0 // indirect + github.com/aws/smithy-go v1.18.0 // 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 0564dc3b956..2e9ae349c0d 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.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/example/service/dynamodb/scanItems/go.mod b/example/service/dynamodb/scanItems/go.mod index 8b0e9b8ba57..46aeece4e32 100644 --- a/example/service/dynamodb/scanItems/go.mod +++ b/example/service/dynamodb/scanItems/go.mod @@ -22,7 +22,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/sso v1.17.5 // indirect github.com/aws/aws-sdk-go-v2/service/ssooidc v1.20.3 // indirect github.com/aws/aws-sdk-go-v2/service/sts v1.25.6 // indirect - github.com/aws/smithy-go v1.17.0 // indirect + github.com/aws/smithy-go v1.18.0 // 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 0564dc3b956..2e9ae349c0d 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.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/example/service/s3/listObjects/go.mod b/example/service/s3/listObjects/go.mod index 657e9b857ab..1a7a2bc0aa8 100644 --- a/example/service/s3/listObjects/go.mod +++ b/example/service/s3/listObjects/go.mod @@ -23,7 +23,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/sso v1.17.5 // indirect github.com/aws/aws-sdk-go-v2/service/ssooidc v1.20.3 // indirect github.com/aws/aws-sdk-go-v2/service/sts v1.25.6 // indirect - github.com/aws/smithy-go v1.17.0 // indirect + github.com/aws/smithy-go v1.18.0 // 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 a96e3f8ab8b..4a236cdfa85 100644 --- a/example/service/s3/listObjects/go.sum +++ b/example/service/s3/listObjects/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/example/service/s3/usingPrivateLink/go.mod b/example/service/s3/usingPrivateLink/go.mod index 90237859a7e..8b8e7b2972a 100644 --- a/example/service/s3/usingPrivateLink/go.mod +++ b/example/service/s3/usingPrivateLink/go.mod @@ -24,7 +24,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/sso v1.17.5 // indirect github.com/aws/aws-sdk-go-v2/service/ssooidc v1.20.3 // indirect github.com/aws/aws-sdk-go-v2/service/sts v1.25.6 // indirect - github.com/aws/smithy-go v1.17.0 // indirect + github.com/aws/smithy-go v1.18.0 // 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 a96e3f8ab8b..4a236cdfa85 100644 --- a/example/service/s3/usingPrivateLink/go.sum +++ b/example/service/s3/usingPrivateLink/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/feature/cloudfront/sign/go.mod b/feature/cloudfront/sign/go.mod index 89ec9e6ffe3..27cf55baf5e 100644 --- a/feature/cloudfront/sign/go.mod +++ b/feature/cloudfront/sign/go.mod @@ -4,6 +4,6 @@ go 1.19 require github.com/aws/aws-sdk-go-v2 v1.23.2 -require github.com/aws/smithy-go v1.17.0 // indirect +require github.com/aws/smithy-go v1.18.0 // indirect replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/feature/cloudfront/sign/go.sum b/feature/cloudfront/sign/go.sum index a96e3f8ab8b..4a236cdfa85 100644 --- a/feature/cloudfront/sign/go.sum +++ b/feature/cloudfront/sign/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/feature/dynamodb/attributevalue/go.mod b/feature/dynamodb/attributevalue/go.mod index c3df23ff25f..de5863f8fdd 100644 --- a/feature/dynamodb/attributevalue/go.mod +++ b/feature/dynamodb/attributevalue/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/service/dynamodb v1.25.5 github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.17.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/feature/dynamodb/attributevalue/go.sum b/feature/dynamodb/attributevalue/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/feature/dynamodb/attributevalue/go.sum +++ b/feature/dynamodb/attributevalue/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/feature/dynamodb/expression/go.mod b/feature/dynamodb/expression/go.mod index 4d9a96803f5..48bab0bd303 100644 --- a/feature/dynamodb/expression/go.mod +++ b/feature/dynamodb/expression/go.mod @@ -15,7 +15,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.17.5 // indirect github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.1 // indirect github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.8.5 // indirect - github.com/aws/smithy-go v1.17.0 // indirect + github.com/aws/smithy-go v1.18.0 // 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 2d53208d06e..ed8e1c52cd2 100644 --- a/feature/dynamodb/expression/go.sum +++ b/feature/dynamodb/expression/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/feature/dynamodbstreams/attributevalue/go.mod b/feature/dynamodbstreams/attributevalue/go.mod index a23f75dcbb2..096c4162fec 100644 --- a/feature/dynamodbstreams/attributevalue/go.mod +++ b/feature/dynamodbstreams/attributevalue/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/service/dynamodb v1.25.5 github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.17.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/feature/dynamodbstreams/attributevalue/go.sum b/feature/dynamodbstreams/attributevalue/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/feature/dynamodbstreams/attributevalue/go.sum +++ b/feature/dynamodbstreams/attributevalue/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/feature/ec2/imds/go.mod b/feature/ec2/imds/go.mod index 441663df386..3f1c131fdf8 100644 --- a/feature/ec2/imds/go.mod +++ b/feature/ec2/imds/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/aws/aws-sdk-go-v2 v1.23.2 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/feature/ec2/imds/go.sum b/feature/ec2/imds/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/feature/ec2/imds/go.sum +++ b/feature/ec2/imds/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/feature/ec2/imds/internal/configtesting/go.mod b/feature/ec2/imds/internal/configtesting/go.mod index a0b9af5f672..ceb018c2e43 100644 --- a/feature/ec2/imds/internal/configtesting/go.mod +++ b/feature/ec2/imds/internal/configtesting/go.mod @@ -18,7 +18,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/sso v1.17.5 // indirect github.com/aws/aws-sdk-go-v2/service/ssooidc v1.20.3 // indirect github.com/aws/aws-sdk-go-v2/service/sts v1.25.6 // indirect - github.com/aws/smithy-go v1.17.0 // indirect + github.com/aws/smithy-go v1.18.0 // 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 a96e3f8ab8b..4a236cdfa85 100644 --- a/feature/ec2/imds/internal/configtesting/go.sum +++ b/feature/ec2/imds/internal/configtesting/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/feature/rds/auth/go.mod b/feature/rds/auth/go.mod index e8777260dde..a617caf67c1 100644 --- a/feature/rds/auth/go.mod +++ b/feature/rds/auth/go.mod @@ -4,6 +4,6 @@ go 1.19 require github.com/aws/aws-sdk-go-v2 v1.23.2 -require github.com/aws/smithy-go v1.17.0 // indirect +require github.com/aws/smithy-go v1.18.0 // indirect replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/feature/rds/auth/go.sum b/feature/rds/auth/go.sum index a96e3f8ab8b..4a236cdfa85 100644 --- a/feature/rds/auth/go.sum +++ b/feature/rds/auth/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/feature/s3/manager/go.mod b/feature/s3/manager/go.mod index 72da5fba466..26e6ade7a27 100644 --- a/feature/s3/manager/go.mod +++ b/feature/s3/manager/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/config v1.25.8 github.com/aws/aws-sdk-go-v2/service/s3 v1.46.0 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/feature/s3/manager/go.sum b/feature/s3/manager/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/feature/s3/manager/go.sum +++ b/feature/s3/manager/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/go.mod b/go.mod index 92ff6200427..bbc471af8b1 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.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/go.sum b/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/internal/configsources/configtesting/go.mod b/internal/configsources/configtesting/go.mod index b1370215462..f745dc3df51 100644 --- a/internal/configsources/configtesting/go.mod +++ b/internal/configsources/configtesting/go.mod @@ -18,7 +18,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/sso v1.17.5 // indirect github.com/aws/aws-sdk-go-v2/service/ssooidc v1.20.3 // indirect github.com/aws/aws-sdk-go-v2/service/sts v1.25.6 // indirect - github.com/aws/smithy-go v1.17.0 // indirect + github.com/aws/smithy-go v1.18.0 // indirect ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/internal/configsources/configtesting/go.sum b/internal/configsources/configtesting/go.sum index a96e3f8ab8b..4a236cdfa85 100644 --- a/internal/configsources/configtesting/go.sum +++ b/internal/configsources/configtesting/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/internal/configsources/go.mod b/internal/configsources/go.mod index 896b5c9880d..ed62c57e277 100644 --- a/internal/configsources/go.mod +++ b/internal/configsources/go.mod @@ -4,6 +4,6 @@ go 1.19 require github.com/aws/aws-sdk-go-v2 v1.23.2 -require github.com/aws/smithy-go v1.17.0 // indirect +require github.com/aws/smithy-go v1.18.0 // indirect replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/internal/configsources/go.sum b/internal/configsources/go.sum index a96e3f8ab8b..4a236cdfa85 100644 --- a/internal/configsources/go.sum +++ b/internal/configsources/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/internal/endpoints/v2/go.mod b/internal/endpoints/v2/go.mod index a9fcad2b45e..827cd146faa 100644 --- a/internal/endpoints/v2/go.mod +++ b/internal/endpoints/v2/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/aws/aws-sdk-go-v2 v1.23.2 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/endpoints/v2/go.sum b/internal/endpoints/v2/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/internal/endpoints/v2/go.sum +++ b/internal/endpoints/v2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/awsrestjson/go.mod b/internal/protocoltest/awsrestjson/go.mod index 5b07fc4e60e..360bf427c5f 100644 --- a/internal/protocoltest/awsrestjson/go.mod +++ b/internal/protocoltest/awsrestjson/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/protocoltest/awsrestjson/go.sum b/internal/protocoltest/awsrestjson/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/internal/protocoltest/awsrestjson/go.sum +++ b/internal/protocoltest/awsrestjson/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/ec2query/go.mod b/internal/protocoltest/ec2query/go.mod index fc6fd022258..8aacde1eb0b 100644 --- a/internal/protocoltest/ec2query/go.mod +++ b/internal/protocoltest/ec2query/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/protocoltest/ec2query/go.sum b/internal/protocoltest/ec2query/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/internal/protocoltest/ec2query/go.sum +++ b/internal/protocoltest/ec2query/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/jsonrpc/go.mod b/internal/protocoltest/jsonrpc/go.mod index 46d39b15d2a..339d86e728f 100644 --- a/internal/protocoltest/jsonrpc/go.mod +++ b/internal/protocoltest/jsonrpc/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/protocoltest/jsonrpc/go.sum b/internal/protocoltest/jsonrpc/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/internal/protocoltest/jsonrpc/go.sum +++ b/internal/protocoltest/jsonrpc/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/jsonrpc10/go.mod b/internal/protocoltest/jsonrpc10/go.mod index 8dd3a3735f4..3197de3d89b 100644 --- a/internal/protocoltest/jsonrpc10/go.mod +++ b/internal/protocoltest/jsonrpc10/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/protocoltest/jsonrpc10/go.sum b/internal/protocoltest/jsonrpc10/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/internal/protocoltest/jsonrpc10/go.sum +++ b/internal/protocoltest/jsonrpc10/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/query/go.mod b/internal/protocoltest/query/go.mod index 229dd19e07f..978b7813de6 100644 --- a/internal/protocoltest/query/go.mod +++ b/internal/protocoltest/query/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/protocoltest/query/go.sum b/internal/protocoltest/query/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/internal/protocoltest/query/go.sum +++ b/internal/protocoltest/query/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/restxml/go.mod b/internal/protocoltest/restxml/go.mod index 46aa6f57797..5c6060249b1 100644 --- a/internal/protocoltest/restxml/go.mod +++ b/internal/protocoltest/restxml/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/protocoltest/restxml/go.sum b/internal/protocoltest/restxml/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/internal/protocoltest/restxml/go.sum +++ b/internal/protocoltest/restxml/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/restxmlwithnamespace/go.mod b/internal/protocoltest/restxmlwithnamespace/go.mod index 5520ca34c3a..146fe5e3a4f 100644 --- a/internal/protocoltest/restxmlwithnamespace/go.mod +++ b/internal/protocoltest/restxmlwithnamespace/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/protocoltest/restxmlwithnamespace/go.sum b/internal/protocoltest/restxmlwithnamespace/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/internal/protocoltest/restxmlwithnamespace/go.sum +++ b/internal/protocoltest/restxmlwithnamespace/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/v4a/go.mod b/internal/v4a/go.mod index 3707f70aa92..721f5b5cc48 100644 --- a/internal/v4a/go.mod +++ b/internal/v4a/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/aws/aws-sdk-go-v2 v1.23.2 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/v4a/go.sum b/internal/v4a/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/internal/v4a/go.sum +++ b/internal/v4a/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/accessanalyzer/go.mod b/service/accessanalyzer/go.mod index 8af018992c4..e158431348c 100644 --- a/service/accessanalyzer/go.mod +++ b/service/accessanalyzer/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/accessanalyzer/go.sum b/service/accessanalyzer/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/accessanalyzer/go.sum +++ b/service/accessanalyzer/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/account/go.mod b/service/account/go.mod index 5a8cbf6b84c..3b0cb3ae851 100644 --- a/service/account/go.mod +++ b/service/account/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/account/go.sum b/service/account/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/account/go.sum +++ b/service/account/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/acm/go.mod b/service/acm/go.mod index 0724d8fc01d..4b57c72e540 100644 --- a/service/acm/go.mod +++ b/service/acm/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/acm/go.sum b/service/acm/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/acm/go.sum +++ b/service/acm/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/acmpca/go.mod b/service/acmpca/go.mod index 4cbce628330..4f46f21dfa3 100644 --- a/service/acmpca/go.mod +++ b/service/acmpca/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/acmpca/go.sum b/service/acmpca/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/acmpca/go.sum +++ b/service/acmpca/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/alexaforbusiness/go.mod b/service/alexaforbusiness/go.mod index dda3b285e5b..7c8cf32cbd8 100644 --- a/service/alexaforbusiness/go.mod +++ b/service/alexaforbusiness/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/alexaforbusiness/go.sum b/service/alexaforbusiness/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/alexaforbusiness/go.sum +++ b/service/alexaforbusiness/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/amp/go.mod b/service/amp/go.mod index f277589f948..6bd4ac88860 100644 --- a/service/amp/go.mod +++ b/service/amp/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/amp/go.sum b/service/amp/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/amp/go.sum +++ b/service/amp/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/amplify/go.mod b/service/amplify/go.mod index 8d8ae8d19c2..5f6c5a16c07 100644 --- a/service/amplify/go.mod +++ b/service/amplify/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/amplify/go.sum b/service/amplify/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/amplify/go.sum +++ b/service/amplify/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/amplifybackend/go.mod b/service/amplifybackend/go.mod index 8e98e6db10c..5aabd688d8c 100644 --- a/service/amplifybackend/go.mod +++ b/service/amplifybackend/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/amplifybackend/go.sum b/service/amplifybackend/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/amplifybackend/go.sum +++ b/service/amplifybackend/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/amplifyuibuilder/go.mod b/service/amplifyuibuilder/go.mod index 4a532ae720a..0b8a8361ae6 100644 --- a/service/amplifyuibuilder/go.mod +++ b/service/amplifyuibuilder/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/amplifyuibuilder/go.sum b/service/amplifyuibuilder/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/amplifyuibuilder/go.sum +++ b/service/amplifyuibuilder/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/apigateway/go.mod b/service/apigateway/go.mod index b5171d830f1..89d44b8e731 100644 --- a/service/apigateway/go.mod +++ b/service/apigateway/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/apigateway/go.sum b/service/apigateway/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/apigateway/go.sum +++ b/service/apigateway/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/apigatewaymanagementapi/go.mod b/service/apigatewaymanagementapi/go.mod index c036707f4b3..9aa17fcad14 100644 --- a/service/apigatewaymanagementapi/go.mod +++ b/service/apigatewaymanagementapi/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/apigatewaymanagementapi/go.sum b/service/apigatewaymanagementapi/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/apigatewaymanagementapi/go.sum +++ b/service/apigatewaymanagementapi/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/apigatewayv2/go.mod b/service/apigatewayv2/go.mod index 26f9877ab65..180e21e016e 100644 --- a/service/apigatewayv2/go.mod +++ b/service/apigatewayv2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/apigatewayv2/go.sum b/service/apigatewayv2/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/apigatewayv2/go.sum +++ b/service/apigatewayv2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appconfig/go.mod b/service/appconfig/go.mod index ce33225a1cb..b5db087abff 100644 --- a/service/appconfig/go.mod +++ b/service/appconfig/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/appconfig/go.sum b/service/appconfig/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/appconfig/go.sum +++ b/service/appconfig/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appconfigdata/go.mod b/service/appconfigdata/go.mod index b637e602174..145d1dead35 100644 --- a/service/appconfigdata/go.mod +++ b/service/appconfigdata/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/appconfigdata/go.sum b/service/appconfigdata/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/appconfigdata/go.sum +++ b/service/appconfigdata/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appfabric/go.mod b/service/appfabric/go.mod index d65430ac12b..2a6aa85030c 100644 --- a/service/appfabric/go.mod +++ b/service/appfabric/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/appfabric/go.sum b/service/appfabric/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/appfabric/go.sum +++ b/service/appfabric/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appflow/go.mod b/service/appflow/go.mod index 57c690590bc..69899527f0b 100644 --- a/service/appflow/go.mod +++ b/service/appflow/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/appflow/go.sum b/service/appflow/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/appflow/go.sum +++ b/service/appflow/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appintegrations/go.mod b/service/appintegrations/go.mod index f185189ac04..53588b768d9 100644 --- a/service/appintegrations/go.mod +++ b/service/appintegrations/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/appintegrations/go.sum b/service/appintegrations/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/appintegrations/go.sum +++ b/service/appintegrations/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/applicationautoscaling/api_op_DeleteScalingPolicy.go b/service/applicationautoscaling/api_op_DeleteScalingPolicy.go index df33b6c1095..61c99a765e3 100644 --- a/service/applicationautoscaling/api_op_DeleteScalingPolicy.go +++ b/service/applicationautoscaling/api_op_DeleteScalingPolicy.go @@ -16,8 +16,8 @@ import ( // target. Deleting a step scaling policy deletes the underlying alarm action, but // does not delete the CloudWatch alarm associated with the scaling policy, even if // it no longer has an associated action. For more information, see Delete a step -// scaling policy (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html#delete-step-scaling-policy) -// and Delete a target tracking scaling policy (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html#delete-target-tracking-policy) +// scaling policy (https://docs.aws.amazon.com/autoscaling/application/userguide/create-step-scaling-policy-cli.html#delete-step-scaling-policy) +// and Delete a target tracking scaling policy (https://docs.aws.amazon.com/autoscaling/application/userguide/create-target-tracking-policy-cli.html#delete-target-tracking-policy) // in the Application Auto Scaling User Guide. func (c *Client) DeleteScalingPolicy(ctx context.Context, params *DeleteScalingPolicyInput, optFns ...func(*Options)) (*DeleteScalingPolicyOutput, error) { if params == nil { @@ -92,6 +92,9 @@ type DeleteScalingPolicyInput struct { // - SageMaker Serverless endpoint - The resource type is variant and the unique // identifier is the resource ID. Example: // endpoint/my-end-point/variant/KMeansClustering . + // - SageMaker inference component - The resource type is inference-component and + // the unique identifier is the resource ID. Example: + // inference-component/my-inference-component . // // This member is required. ResourceId *string @@ -139,6 +142,8 @@ type DeleteScalingPolicyInput struct { // Neptune DB cluster. // - sagemaker:variant:DesiredProvisionedConcurrency - The provisioned // concurrency for a SageMaker Serverless endpoint. + // - sagemaker:inference-component:DesiredCopyCount - The number of copies across + // an endpoint for a SageMaker inference component. // // This member is required. ScalableDimension types.ScalableDimension diff --git a/service/applicationautoscaling/api_op_DeleteScheduledAction.go b/service/applicationautoscaling/api_op_DeleteScheduledAction.go index 53d1dafeed6..ffbfb776e9d 100644 --- a/service/applicationautoscaling/api_op_DeleteScheduledAction.go +++ b/service/applicationautoscaling/api_op_DeleteScheduledAction.go @@ -83,6 +83,9 @@ type DeleteScheduledActionInput struct { // - SageMaker Serverless endpoint - The resource type is variant and the unique // identifier is the resource ID. Example: // endpoint/my-end-point/variant/KMeansClustering . + // - SageMaker inference component - The resource type is inference-component and + // the unique identifier is the resource ID. Example: + // inference-component/my-inference-component . // // This member is required. ResourceId *string @@ -130,6 +133,8 @@ type DeleteScheduledActionInput struct { // Neptune DB cluster. // - sagemaker:variant:DesiredProvisionedConcurrency - The provisioned // concurrency for a SageMaker Serverless endpoint. + // - sagemaker:inference-component:DesiredCopyCount - The number of copies across + // an endpoint for a SageMaker inference component. // // This member is required. ScalableDimension types.ScalableDimension diff --git a/service/applicationautoscaling/api_op_DeregisterScalableTarget.go b/service/applicationautoscaling/api_op_DeregisterScalableTarget.go index 33fca358d7b..95974e392be 100644 --- a/service/applicationautoscaling/api_op_DeregisterScalableTarget.go +++ b/service/applicationautoscaling/api_op_DeregisterScalableTarget.go @@ -85,6 +85,9 @@ type DeregisterScalableTargetInput struct { // - SageMaker Serverless endpoint - The resource type is variant and the unique // identifier is the resource ID. Example: // endpoint/my-end-point/variant/KMeansClustering . + // - SageMaker inference component - The resource type is inference-component and + // the unique identifier is the resource ID. Example: + // inference-component/my-inference-component . // // This member is required. ResourceId *string @@ -132,6 +135,8 @@ type DeregisterScalableTargetInput struct { // Neptune DB cluster. // - sagemaker:variant:DesiredProvisionedConcurrency - The provisioned // concurrency for a SageMaker Serverless endpoint. + // - sagemaker:inference-component:DesiredCopyCount - The number of copies across + // an endpoint for a SageMaker inference component. // // This member is required. ScalableDimension types.ScalableDimension diff --git a/service/applicationautoscaling/api_op_DescribeScalableTargets.go b/service/applicationautoscaling/api_op_DescribeScalableTargets.go index 38d241d0fbb..9b06f8ef367 100644 --- a/service/applicationautoscaling/api_op_DescribeScalableTargets.go +++ b/service/applicationautoscaling/api_op_DescribeScalableTargets.go @@ -100,6 +100,9 @@ type DescribeScalableTargetsInput struct { // - SageMaker Serverless endpoint - The resource type is variant and the unique // identifier is the resource ID. Example: // endpoint/my-end-point/variant/KMeansClustering . + // - SageMaker inference component - The resource type is inference-component and + // the unique identifier is the resource ID. Example: + // inference-component/my-inference-component . ResourceIds []string // The scalable dimension associated with the scalable target. This string @@ -146,6 +149,8 @@ type DescribeScalableTargetsInput struct { // Neptune DB cluster. // - sagemaker:variant:DesiredProvisionedConcurrency - The provisioned // concurrency for a SageMaker Serverless endpoint. + // - sagemaker:inference-component:DesiredCopyCount - The number of copies across + // an endpoint for a SageMaker inference component. ScalableDimension types.ScalableDimension noSmithyDocumentSerde diff --git a/service/applicationautoscaling/api_op_DescribeScalingActivities.go b/service/applicationautoscaling/api_op_DescribeScalingActivities.go index d11d673a2e8..3dbccb18820 100644 --- a/service/applicationautoscaling/api_op_DescribeScalingActivities.go +++ b/service/applicationautoscaling/api_op_DescribeScalingActivities.go @@ -112,6 +112,9 @@ type DescribeScalingActivitiesInput struct { // - SageMaker Serverless endpoint - The resource type is variant and the unique // identifier is the resource ID. Example: // endpoint/my-end-point/variant/KMeansClustering . + // - SageMaker inference component - The resource type is inference-component and + // the unique identifier is the resource ID. Example: + // inference-component/my-inference-component . ResourceId *string // The scalable dimension. This string consists of the service namespace, resource @@ -158,6 +161,8 @@ type DescribeScalingActivitiesInput struct { // Neptune DB cluster. // - sagemaker:variant:DesiredProvisionedConcurrency - The provisioned // concurrency for a SageMaker Serverless endpoint. + // - sagemaker:inference-component:DesiredCopyCount - The number of copies across + // an endpoint for a SageMaker inference component. ScalableDimension types.ScalableDimension noSmithyDocumentSerde diff --git a/service/applicationautoscaling/api_op_DescribeScalingPolicies.go b/service/applicationautoscaling/api_op_DescribeScalingPolicies.go index 5070a471678..05dc40f7c93 100644 --- a/service/applicationautoscaling/api_op_DescribeScalingPolicies.go +++ b/service/applicationautoscaling/api_op_DescribeScalingPolicies.go @@ -107,6 +107,9 @@ type DescribeScalingPoliciesInput struct { // - SageMaker Serverless endpoint - The resource type is variant and the unique // identifier is the resource ID. Example: // endpoint/my-end-point/variant/KMeansClustering . + // - SageMaker inference component - The resource type is inference-component and + // the unique identifier is the resource ID. Example: + // inference-component/my-inference-component . ResourceId *string // The scalable dimension. This string consists of the service namespace, resource @@ -153,6 +156,8 @@ type DescribeScalingPoliciesInput struct { // Neptune DB cluster. // - sagemaker:variant:DesiredProvisionedConcurrency - The provisioned // concurrency for a SageMaker Serverless endpoint. + // - sagemaker:inference-component:DesiredCopyCount - The number of copies across + // an endpoint for a SageMaker inference component. ScalableDimension types.ScalableDimension noSmithyDocumentSerde diff --git a/service/applicationautoscaling/api_op_DescribeScheduledActions.go b/service/applicationautoscaling/api_op_DescribeScheduledActions.go index 2cf2ceff1ee..6558d20159a 100644 --- a/service/applicationautoscaling/api_op_DescribeScheduledActions.go +++ b/service/applicationautoscaling/api_op_DescribeScheduledActions.go @@ -104,6 +104,9 @@ type DescribeScheduledActionsInput struct { // - SageMaker Serverless endpoint - The resource type is variant and the unique // identifier is the resource ID. Example: // endpoint/my-end-point/variant/KMeansClustering . + // - SageMaker inference component - The resource type is inference-component and + // the unique identifier is the resource ID. Example: + // inference-component/my-inference-component . ResourceId *string // The scalable dimension. This string consists of the service namespace, resource @@ -150,6 +153,8 @@ type DescribeScheduledActionsInput struct { // Neptune DB cluster. // - sagemaker:variant:DesiredProvisionedConcurrency - The provisioned // concurrency for a SageMaker Serverless endpoint. + // - sagemaker:inference-component:DesiredCopyCount - The number of copies across + // an endpoint for a SageMaker inference component. ScalableDimension types.ScalableDimension // The names of the scheduled actions to describe. diff --git a/service/applicationautoscaling/api_op_PutScalingPolicy.go b/service/applicationautoscaling/api_op_PutScalingPolicy.go index ad41ad98a59..dc2029a0d5c 100644 --- a/service/applicationautoscaling/api_op_PutScalingPolicy.go +++ b/service/applicationautoscaling/api_op_PutScalingPolicy.go @@ -113,6 +113,9 @@ type PutScalingPolicyInput struct { // - SageMaker Serverless endpoint - The resource type is variant and the unique // identifier is the resource ID. Example: // endpoint/my-end-point/variant/KMeansClustering . + // - SageMaker inference component - The resource type is inference-component and + // the unique identifier is the resource ID. Example: + // inference-component/my-inference-component . // // This member is required. ResourceId *string @@ -160,6 +163,8 @@ type PutScalingPolicyInput struct { // Neptune DB cluster. // - sagemaker:variant:DesiredProvisionedConcurrency - The provisioned // concurrency for a SageMaker Serverless endpoint. + // - sagemaker:inference-component:DesiredCopyCount - The number of copies across + // an endpoint for a SageMaker inference component. // // This member is required. ScalableDimension types.ScalableDimension @@ -173,7 +178,7 @@ type PutScalingPolicyInput struct { // The scaling policy type. This parameter is required if you are creating a // scaling policy. The following policy types are supported: TargetTrackingScaling - // —Not supported for Amazon EMR StepScaling —Not supported for DynamoDB, Amazon + // —Not supported for Amazon EMR. StepScaling —Not supported for DynamoDB, Amazon // Comprehend, Lambda, Amazon Keyspaces, Amazon MSK, Amazon ElastiCache, or // Neptune. For more information, see Target tracking scaling policies (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html) // and Step scaling policies (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html) diff --git a/service/applicationautoscaling/api_op_PutScheduledAction.go b/service/applicationautoscaling/api_op_PutScheduledAction.go index ac45a2638b1..2b2eb44b48b 100644 --- a/service/applicationautoscaling/api_op_PutScheduledAction.go +++ b/service/applicationautoscaling/api_op_PutScheduledAction.go @@ -95,6 +95,9 @@ type PutScheduledActionInput struct { // - SageMaker Serverless endpoint - The resource type is variant and the unique // identifier is the resource ID. Example: // endpoint/my-end-point/variant/KMeansClustering . + // - SageMaker inference component - The resource type is inference-component and + // the unique identifier is the resource ID. Example: + // inference-component/my-inference-component . // // This member is required. ResourceId *string @@ -142,6 +145,8 @@ type PutScheduledActionInput struct { // Neptune DB cluster. // - sagemaker:variant:DesiredProvisionedConcurrency - The provisioned // concurrency for a SageMaker Serverless endpoint. + // - sagemaker:inference-component:DesiredCopyCount - The number of copies across + // an endpoint for a SageMaker inference component. // // This member is required. ScalableDimension types.ScalableDimension diff --git a/service/applicationautoscaling/api_op_RegisterScalableTarget.go b/service/applicationautoscaling/api_op_RegisterScalableTarget.go index 30c2513e2ee..c6c4d37c993 100644 --- a/service/applicationautoscaling/api_op_RegisterScalableTarget.go +++ b/service/applicationautoscaling/api_op_RegisterScalableTarget.go @@ -113,6 +113,9 @@ type RegisterScalableTargetInput struct { // - SageMaker Serverless endpoint - The resource type is variant and the unique // identifier is the resource ID. Example: // endpoint/my-end-point/variant/KMeansClustering . + // - SageMaker inference component - The resource type is inference-component and + // the unique identifier is the resource ID. Example: + // inference-component/my-inference-component . // // This member is required. ResourceId *string @@ -160,6 +163,8 @@ type RegisterScalableTargetInput struct { // Neptune DB cluster. // - sagemaker:variant:DesiredProvisionedConcurrency - The provisioned // concurrency for a SageMaker Serverless endpoint. + // - sagemaker:inference-component:DesiredCopyCount - The number of copies across + // an endpoint for a SageMaker inference component. // // This member is required. ScalableDimension types.ScalableDimension diff --git a/service/applicationautoscaling/doc.go b/service/applicationautoscaling/doc.go index dd7127a317f..e99b5a756eb 100644 --- a/service/applicationautoscaling/doc.go +++ b/service/applicationautoscaling/doc.go @@ -18,6 +18,7 @@ // - Amazon Neptune clusters // - Amazon SageMaker endpoint variants // - Amazon SageMaker Serverless endpoint provisioned concurrency +// - Amazon SageMaker inference components // - Spot Fleets (Amazon EC2) // - Custom resources provided by your own applications or services // diff --git a/service/applicationautoscaling/endpoints.go b/service/applicationautoscaling/endpoints.go index 3be3b54988d..0feb569e49c 100644 --- a/service/applicationautoscaling/endpoints.go +++ b/service/applicationautoscaling/endpoints.go @@ -366,8 +366,8 @@ func (r *resolver) ResolveEndpoint( } } if _UseFIPS == true { - if true == _PartitionResult.SupportsFIPS { - if "aws-us-gov" == _PartitionResult.Name { + if _PartitionResult.SupportsFIPS == true { + if _PartitionResult.Name == "aws-us-gov" { uriString := func() string { var out strings.Builder out.WriteString("https://application-autoscaling.") diff --git a/service/applicationautoscaling/go.mod b/service/applicationautoscaling/go.mod index b989114b0d8..1e26690b0dd 100644 --- a/service/applicationautoscaling/go.mod +++ b/service/applicationautoscaling/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/applicationautoscaling/go.sum b/service/applicationautoscaling/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/applicationautoscaling/go.sum +++ b/service/applicationautoscaling/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/applicationautoscaling/types/enums.go b/service/applicationautoscaling/types/enums.go index 390c3cc8187..2cef4363d31 100644 --- a/service/applicationautoscaling/types/enums.go +++ b/service/applicationautoscaling/types/enums.go @@ -93,6 +93,7 @@ const ( MetricTypeNeptuneReaderAverageCPUUtilization MetricType = "NeptuneReaderAverageCPUUtilization" MetricTypeSageMakerVariantProvisionedConcurrencyUtilization MetricType = "SageMakerVariantProvisionedConcurrencyUtilization" MetricTypeElastiCacheDatabaseCapacityUsageCountedForEvictPercentage MetricType = "ElastiCacheDatabaseCapacityUsageCountedForEvictPercentage" + MetricTypeSageMakerInferenceComponentInvocationsPerCopy MetricType = "SageMakerInferenceComponentInvocationsPerCopy" ) // Values returns all known values for MetricType. Note that this can be expanded @@ -123,6 +124,7 @@ func (MetricType) Values() []MetricType { "NeptuneReaderAverageCPUUtilization", "SageMakerVariantProvisionedConcurrencyUtilization", "ElastiCacheDatabaseCapacityUsageCountedForEvictPercentage", + "SageMakerInferenceComponentInvocationsPerCopy", } } @@ -169,6 +171,7 @@ const ( ScalableDimensionElastiCacheReplicationGroupReplicas ScalableDimension = "elasticache:replication-group:Replicas" ScalableDimensionNeptuneClusterReadReplicaCount ScalableDimension = "neptune:cluster:ReadReplicaCount" ScalableDimensionSageMakerVariantDesiredProvisionedConcurrency ScalableDimension = "sagemaker:variant:DesiredProvisionedConcurrency" + ScalableDimensionSageMakerInferenceComponentDesiredCopyCount ScalableDimension = "sagemaker:inference-component:DesiredCopyCount" ) // Values returns all known values for ScalableDimension. Note that this can be @@ -197,6 +200,7 @@ func (ScalableDimension) Values() []ScalableDimension { "elasticache:replication-group:Replicas", "neptune:cluster:ReadReplicaCount", "sagemaker:variant:DesiredProvisionedConcurrency", + "sagemaker:inference-component:DesiredCopyCount", } } diff --git a/service/applicationautoscaling/types/types.go b/service/applicationautoscaling/types/types.go index 5e017efcee6..3d0add1b453 100644 --- a/service/applicationautoscaling/types/types.go +++ b/service/applicationautoscaling/types/types.go @@ -120,7 +120,7 @@ type NotScaledReason struct { // Application Auto Scaling. Only the Amazon Web Services that you're using send // metrics to Amazon CloudWatch. To determine whether a desired metric already // exists by looking up its namespace and dimension using the CloudWatch metrics -// dashboard in the console, follow the procedure in Building dashboards with +// dashboard in the console, follow the procedure in Monitor your resources using // CloudWatch (https://docs.aws.amazon.com/autoscaling/application/userguide/monitoring-cloudwatch.html) // in the Application Auto Scaling User Guide. type PredefinedMetricSpecification struct { @@ -219,6 +219,9 @@ type ScalableTarget struct { // - SageMaker Serverless endpoint - The resource type is variant and the unique // identifier is the resource ID. Example: // endpoint/my-end-point/variant/KMeansClustering . + // - SageMaker inference component - The resource type is inference-component and + // the unique identifier is the resource ID. Example: + // inference-component/my-inference-component . // // This member is required. ResourceId *string @@ -272,6 +275,8 @@ type ScalableTarget struct { // Neptune DB cluster. // - sagemaker:variant:DesiredProvisionedConcurrency - The provisioned // concurrency for a SageMaker Serverless endpoint. + // - sagemaker:inference-component:DesiredCopyCount - The number of copies across + // an endpoint for a SageMaker inference component. // // This member is required. ScalableDimension ScalableDimension @@ -381,6 +386,9 @@ type ScalingActivity struct { // - SageMaker Serverless endpoint - The resource type is variant and the unique // identifier is the resource ID. Example: // endpoint/my-end-point/variant/KMeansClustering . + // - SageMaker inference component - The resource type is inference-component and + // the unique identifier is the resource ID. Example: + // inference-component/my-inference-component . // // This member is required. ResourceId *string @@ -428,6 +436,8 @@ type ScalingActivity struct { // Neptune DB cluster. // - sagemaker:variant:DesiredProvisionedConcurrency - The provisioned // concurrency for a SageMaker Serverless endpoint. + // - sagemaker:inference-component:DesiredCopyCount - The number of copies across + // an endpoint for a SageMaker inference component. // // This member is required. ScalableDimension ScalableDimension @@ -545,6 +555,9 @@ type ScalingPolicy struct { // - SageMaker Serverless endpoint - The resource type is variant and the unique // identifier is the resource ID. Example: // endpoint/my-end-point/variant/KMeansClustering . + // - SageMaker inference component - The resource type is inference-component and + // the unique identifier is the resource ID. Example: + // inference-component/my-inference-component . // // This member is required. ResourceId *string @@ -592,6 +605,8 @@ type ScalingPolicy struct { // Neptune DB cluster. // - sagemaker:variant:DesiredProvisionedConcurrency - The provisioned // concurrency for a SageMaker Serverless endpoint. + // - sagemaker:inference-component:DesiredCopyCount - The number of copies across + // an endpoint for a SageMaker inference component. // // This member is required. ScalableDimension ScalableDimension @@ -673,6 +688,9 @@ type ScheduledAction struct { // - SageMaker Serverless endpoint - The resource type is variant and the unique // identifier is the resource ID. Example: // endpoint/my-end-point/variant/KMeansClustering . + // - SageMaker inference component - The resource type is inference-component and + // the unique identifier is the resource ID. Example: + // inference-component/my-inference-component . // // This member is required. ResourceId *string @@ -757,6 +775,8 @@ type ScheduledAction struct { // Neptune DB cluster. // - sagemaker:variant:DesiredProvisionedConcurrency - The provisioned // concurrency for a SageMaker Serverless endpoint. + // - sagemaker:inference-component:DesiredCopyCount - The number of copies across + // an endpoint for a SageMaker inference component. ScalableDimension ScalableDimension // The new minimum and maximum capacity. You can set both values or just one. At @@ -837,7 +857,7 @@ type StepScalingPolicyConfiguration struct { // The amount of time, in seconds, to wait for a previous scaling activity to take // effect. If not specified, the default value is 300. For more information, see - // Cooldown period (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html#step-scaling-cooldown) + // Cooldown period (https://docs.aws.amazon.com/autoscaling/application/userguide/step-scaling-policy-overview.html#step-scaling-cooldown) // in the Application Auto Scaling User Guide. Cooldown *int32 @@ -1037,13 +1057,13 @@ type TargetTrackingScalingPolicyConfiguration struct { // The amount of time, in seconds, after a scale-in activity completes before // another scale-in activity can start. For more information and for default - // values, see Define cooldown periods (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html#target-tracking-cooldown) + // values, see Define cooldown periods (https://docs.aws.amazon.com/autoscaling/application/userguide/target-tracking-scaling-policy-overview.html#target-tracking-cooldown) // in the Application Auto Scaling User Guide. ScaleInCooldown *int32 // The amount of time, in seconds, to wait for a previous scale-out activity to // take effect. For more information and for default values, see Define cooldown - // periods (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html#target-tracking-cooldown) + // periods (https://docs.aws.amazon.com/autoscaling/application/userguide/target-tracking-scaling-policy-overview.html#target-tracking-cooldown) // in the Application Auto Scaling User Guide. ScaleOutCooldown *int32 diff --git a/service/applicationcostprofiler/go.mod b/service/applicationcostprofiler/go.mod index 242435140f8..772f527a6bb 100644 --- a/service/applicationcostprofiler/go.mod +++ b/service/applicationcostprofiler/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/applicationcostprofiler/go.sum b/service/applicationcostprofiler/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/applicationcostprofiler/go.sum +++ b/service/applicationcostprofiler/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/applicationdiscoveryservice/go.mod b/service/applicationdiscoveryservice/go.mod index a0a5d1c103a..aaf5c3c3b8e 100644 --- a/service/applicationdiscoveryservice/go.mod +++ b/service/applicationdiscoveryservice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/applicationdiscoveryservice/go.sum b/service/applicationdiscoveryservice/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/applicationdiscoveryservice/go.sum +++ b/service/applicationdiscoveryservice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/applicationinsights/go.mod b/service/applicationinsights/go.mod index 7e27304209d..e317153ee42 100644 --- a/service/applicationinsights/go.mod +++ b/service/applicationinsights/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/applicationinsights/go.sum b/service/applicationinsights/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/applicationinsights/go.sum +++ b/service/applicationinsights/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appmesh/go.mod b/service/appmesh/go.mod index 9d3ac3d07e3..b33d287d5bb 100644 --- a/service/appmesh/go.mod +++ b/service/appmesh/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/appmesh/go.sum b/service/appmesh/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/appmesh/go.sum +++ b/service/appmesh/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/apprunner/go.mod b/service/apprunner/go.mod index 09f7e78198a..ce9f7ea2cdc 100644 --- a/service/apprunner/go.mod +++ b/service/apprunner/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/apprunner/go.sum b/service/apprunner/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/apprunner/go.sum +++ b/service/apprunner/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appstream/go.mod b/service/appstream/go.mod index b16d97d854b..f525c44c9ac 100644 --- a/service/appstream/go.mod +++ b/service/appstream/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/appstream/go.sum b/service/appstream/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/appstream/go.sum +++ b/service/appstream/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/appsync/go.mod b/service/appsync/go.mod index 52b8258d4e8..16f4bef0fcc 100644 --- a/service/appsync/go.mod +++ b/service/appsync/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/appsync/go.sum b/service/appsync/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/appsync/go.sum +++ b/service/appsync/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/arczonalshift/go.mod b/service/arczonalshift/go.mod index 68022b904d8..df8cd41148f 100644 --- a/service/arczonalshift/go.mod +++ b/service/arczonalshift/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/arczonalshift/go.sum b/service/arczonalshift/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/arczonalshift/go.sum +++ b/service/arczonalshift/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/athena/go.mod b/service/athena/go.mod index 07f1ab36b8b..9e836b7f3a7 100644 --- a/service/athena/go.mod +++ b/service/athena/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/athena/go.sum b/service/athena/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/athena/go.sum +++ b/service/athena/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/auditmanager/go.mod b/service/auditmanager/go.mod index 16f592273d5..0d6430c9c57 100644 --- a/service/auditmanager/go.mod +++ b/service/auditmanager/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/auditmanager/go.sum b/service/auditmanager/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/auditmanager/go.sum +++ b/service/auditmanager/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/autoscaling/go.mod b/service/autoscaling/go.mod index 9466d144bd9..6ba4295c728 100644 --- a/service/autoscaling/go.mod +++ b/service/autoscaling/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/autoscaling/go.sum b/service/autoscaling/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/autoscaling/go.sum +++ b/service/autoscaling/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/autoscalingplans/go.mod b/service/autoscalingplans/go.mod index 370a72a131c..7b9cf0a4e97 100644 --- a/service/autoscalingplans/go.mod +++ b/service/autoscalingplans/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/autoscalingplans/go.sum b/service/autoscalingplans/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/autoscalingplans/go.sum +++ b/service/autoscalingplans/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/b2bi/go.mod b/service/b2bi/go.mod index 1d068570fa4..c209b4dffac 100644 --- a/service/b2bi/go.mod +++ b/service/b2bi/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/b2bi/go.sum b/service/b2bi/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/b2bi/go.sum +++ b/service/b2bi/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/backup/go.mod b/service/backup/go.mod index 70e586784a9..733bba13ccb 100644 --- a/service/backup/go.mod +++ b/service/backup/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/backup/go.sum b/service/backup/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/backup/go.sum +++ b/service/backup/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/backupgateway/go.mod b/service/backupgateway/go.mod index 225bae20db4..75e99ada949 100644 --- a/service/backupgateway/go.mod +++ b/service/backupgateway/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/backupgateway/go.sum b/service/backupgateway/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/backupgateway/go.sum +++ b/service/backupgateway/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/backupstorage/go.mod b/service/backupstorage/go.mod index 0d2663dae44..e2cfd4dcb8f 100644 --- a/service/backupstorage/go.mod +++ b/service/backupstorage/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/backupstorage/go.sum b/service/backupstorage/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/backupstorage/go.sum +++ b/service/backupstorage/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/batch/go.mod b/service/batch/go.mod index 455accbde1f..1a4f40b3da7 100644 --- a/service/batch/go.mod +++ b/service/batch/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/batch/go.sum b/service/batch/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/batch/go.sum +++ b/service/batch/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/bcmdataexports/go.mod b/service/bcmdataexports/go.mod index 62e10cb7122..e9f7a3f7808 100644 --- a/service/bcmdataexports/go.mod +++ b/service/bcmdataexports/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/bcmdataexports/go.sum b/service/bcmdataexports/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/bcmdataexports/go.sum +++ b/service/bcmdataexports/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/bedrock/go.mod b/service/bedrock/go.mod index d4aa4b4b936..c98e5accd0b 100644 --- a/service/bedrock/go.mod +++ b/service/bedrock/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/bedrock/go.sum b/service/bedrock/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/bedrock/go.sum +++ b/service/bedrock/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/bedrockagent/go.mod b/service/bedrockagent/go.mod index 1ba97a05679..37c1f3f9677 100644 --- a/service/bedrockagent/go.mod +++ b/service/bedrockagent/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/bedrockagent/go.sum b/service/bedrockagent/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/bedrockagent/go.sum +++ b/service/bedrockagent/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/bedrockagentruntime/go.mod b/service/bedrockagentruntime/go.mod index ae5be66fc6e..a80137d7aab 100644 --- a/service/bedrockagentruntime/go.mod +++ b/service/bedrockagentruntime/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/bedrockagentruntime/go.sum b/service/bedrockagentruntime/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/bedrockagentruntime/go.sum +++ b/service/bedrockagentruntime/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/bedrockruntime/go.mod b/service/bedrockruntime/go.mod index fe212a8cbc6..5df88c91992 100644 --- a/service/bedrockruntime/go.mod +++ b/service/bedrockruntime/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/bedrockruntime/go.sum b/service/bedrockruntime/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/bedrockruntime/go.sum +++ b/service/bedrockruntime/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/billingconductor/go.mod b/service/billingconductor/go.mod index bfa3bb9e9fa..58dafc79d93 100644 --- a/service/billingconductor/go.mod +++ b/service/billingconductor/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/billingconductor/go.sum b/service/billingconductor/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/billingconductor/go.sum +++ b/service/billingconductor/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/braket/go.mod b/service/braket/go.mod index f7c1c0b48d6..c86e47c35db 100644 --- a/service/braket/go.mod +++ b/service/braket/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/braket/go.sum b/service/braket/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/braket/go.sum +++ b/service/braket/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/budgets/go.mod b/service/budgets/go.mod index aaf1e40e258..115e2e29b7c 100644 --- a/service/budgets/go.mod +++ b/service/budgets/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/budgets/go.sum b/service/budgets/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/budgets/go.sum +++ b/service/budgets/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chime/go.mod b/service/chime/go.mod index cee37aa6f3e..5de30177d1b 100644 --- a/service/chime/go.mod +++ b/service/chime/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/chime/go.sum b/service/chime/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/chime/go.sum +++ b/service/chime/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chimesdkidentity/go.mod b/service/chimesdkidentity/go.mod index c1a0bb2d668..93489b313d4 100644 --- a/service/chimesdkidentity/go.mod +++ b/service/chimesdkidentity/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/chimesdkidentity/go.sum b/service/chimesdkidentity/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/chimesdkidentity/go.sum +++ b/service/chimesdkidentity/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chimesdkmediapipelines/go.mod b/service/chimesdkmediapipelines/go.mod index 76fb3da908e..a1ff7f7191b 100644 --- a/service/chimesdkmediapipelines/go.mod +++ b/service/chimesdkmediapipelines/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/chimesdkmediapipelines/go.sum b/service/chimesdkmediapipelines/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/chimesdkmediapipelines/go.sum +++ b/service/chimesdkmediapipelines/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chimesdkmeetings/go.mod b/service/chimesdkmeetings/go.mod index 84ffa3ddad4..97b8cc07069 100644 --- a/service/chimesdkmeetings/go.mod +++ b/service/chimesdkmeetings/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/chimesdkmeetings/go.sum b/service/chimesdkmeetings/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/chimesdkmeetings/go.sum +++ b/service/chimesdkmeetings/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chimesdkmessaging/go.mod b/service/chimesdkmessaging/go.mod index 5064a6e5db4..4c8070c8cd3 100644 --- a/service/chimesdkmessaging/go.mod +++ b/service/chimesdkmessaging/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/chimesdkmessaging/go.sum b/service/chimesdkmessaging/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/chimesdkmessaging/go.sum +++ b/service/chimesdkmessaging/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chimesdkvoice/go.mod b/service/chimesdkvoice/go.mod index c3a75e3809b..e82fecf0ef2 100644 --- a/service/chimesdkvoice/go.mod +++ b/service/chimesdkvoice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/chimesdkvoice/go.sum b/service/chimesdkvoice/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/chimesdkvoice/go.sum +++ b/service/chimesdkvoice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cleanrooms/api_op_CreateConfiguredAudienceModelAssociation.go b/service/cleanrooms/api_op_CreateConfiguredAudienceModelAssociation.go new file mode 100644 index 00000000000..e79c058105a --- /dev/null +++ b/service/cleanrooms/api_op_CreateConfiguredAudienceModelAssociation.go @@ -0,0 +1,175 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanrooms/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Provides the details necessary to create a configured audience model +// association. +func (c *Client) CreateConfiguredAudienceModelAssociation(ctx context.Context, params *CreateConfiguredAudienceModelAssociationInput, optFns ...func(*Options)) (*CreateConfiguredAudienceModelAssociationOutput, error) { + if params == nil { + params = &CreateConfiguredAudienceModelAssociationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateConfiguredAudienceModelAssociation", params, optFns, c.addOperationCreateConfiguredAudienceModelAssociationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateConfiguredAudienceModelAssociationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateConfiguredAudienceModelAssociationInput struct { + + // A unique identifier for the configured audience model that you want to + // associate. + // + // This member is required. + ConfiguredAudienceModelArn *string + + // The name of the configured audience model association. + // + // This member is required. + ConfiguredAudienceModelAssociationName *string + + // When TRUE , indicates that the resource policy for the configured audience model + // resource being associated is configured for Clean Rooms to manage permissions + // related to the given collaboration. When FALSE , indicates that the configured + // audience model resource owner will manage permissions related to the given + // collaboration. Setting this to TRUE requires you to have permissions to create, + // update, and delete the resource policy for the cleanrooms-ml resource when you + // call the DeleteConfiguredAudienceModelAssociation resource. In addition, if you + // are the collaboration creator and specify TRUE , you must have the same + // permissions when you call the DeleteMember and DeleteCollaboration APIs. + // + // This member is required. + ManageResourcePolicies *bool + + // A unique identifier for one of your memberships for a collaboration. The + // configured audience model is associated to the collaboration that this + // membership belongs to. Accepts a membership ID. + // + // This member is required. + MembershipIdentifier *string + + // A description of the configured audience model association. + Description *string + + // An optional label that you can assign to a resource when you create it. Each + // tag consists of a key and an optional value, both of which you define. When you + // use tagging, you can also use tag-based access control in IAM policies to + // control access to this resource. + Tags map[string]string + + noSmithyDocumentSerde +} + +type CreateConfiguredAudienceModelAssociationOutput struct { + + // Information about the configured audience model association. + // + // This member is required. + ConfiguredAudienceModelAssociation *types.ConfiguredAudienceModelAssociation + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateConfiguredAudienceModelAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateConfiguredAudienceModelAssociation{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateConfiguredAudienceModelAssociation{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateConfiguredAudienceModelAssociation"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpCreateConfiguredAudienceModelAssociationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateConfiguredAudienceModelAssociation(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateConfiguredAudienceModelAssociation(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateConfiguredAudienceModelAssociation", + } +} diff --git a/service/cleanrooms/api_op_CreatePrivacyBudgetTemplate.go b/service/cleanrooms/api_op_CreatePrivacyBudgetTemplate.go new file mode 100644 index 00000000000..421a6db4d42 --- /dev/null +++ b/service/cleanrooms/api_op_CreatePrivacyBudgetTemplate.go @@ -0,0 +1,170 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanrooms/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a privacy budget template for a specified membership. Each membership +// can have only one privacy budget template, but it can be deleted and recreated. +// If you need to change the privacy budget template for a membership, use the +// UpdatePrivacyBudgetTemplate operation. +func (c *Client) CreatePrivacyBudgetTemplate(ctx context.Context, params *CreatePrivacyBudgetTemplateInput, optFns ...func(*Options)) (*CreatePrivacyBudgetTemplateOutput, error) { + if params == nil { + params = &CreatePrivacyBudgetTemplateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreatePrivacyBudgetTemplate", params, optFns, c.addOperationCreatePrivacyBudgetTemplateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreatePrivacyBudgetTemplateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreatePrivacyBudgetTemplateInput struct { + + // How often the privacy budget refreshes. If you plan to regularly bring new data + // into the collaboration, you can use CALENDAR_MONTH to automatically get a new + // privacy budget for the collaboration every calendar month. Choosing this option + // allows arbitrary amounts of information to be revealed about rows of the data + // when repeatedly queries across refreshes. Avoid choosing this if the same rows + // will be repeatedly queried between privacy budget refreshes. + // + // This member is required. + AutoRefresh types.PrivacyBudgetTemplateAutoRefresh + + // A unique identifier for one of your memberships for a collaboration. The + // privacy budget template is created in the collaboration that this membership + // belongs to. Accepts a membership ID. + // + // This member is required. + MembershipIdentifier *string + + // Specifies your parameters for the privacy budget template. + // + // This member is required. + Parameters types.PrivacyBudgetTemplateParametersInput + + // Specifies the type of the privacy budget template. + // + // This member is required. + PrivacyBudgetType types.PrivacyBudgetType + + // An optional label that you can assign to a resource when you create it. Each + // tag consists of a key and an optional value, both of which you define. When you + // use tagging, you can also use tag-based access control in IAM policies to + // control access to this resource. + Tags map[string]string + + noSmithyDocumentSerde +} + +type CreatePrivacyBudgetTemplateOutput struct { + + // A summary of the elements in the privacy budget template. + // + // This member is required. + PrivacyBudgetTemplate *types.PrivacyBudgetTemplate + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreatePrivacyBudgetTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreatePrivacyBudgetTemplate{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreatePrivacyBudgetTemplate{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreatePrivacyBudgetTemplate"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpCreatePrivacyBudgetTemplateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreatePrivacyBudgetTemplate(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreatePrivacyBudgetTemplate(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreatePrivacyBudgetTemplate", + } +} diff --git a/service/cleanrooms/api_op_DeleteConfiguredAudienceModelAssociation.go b/service/cleanrooms/api_op_DeleteConfiguredAudienceModelAssociation.go new file mode 100644 index 00000000000..09f7d2e301d --- /dev/null +++ b/service/cleanrooms/api_op_DeleteConfiguredAudienceModelAssociation.go @@ -0,0 +1,140 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Provides the information necessary to delete a configured audience model +// association. +func (c *Client) DeleteConfiguredAudienceModelAssociation(ctx context.Context, params *DeleteConfiguredAudienceModelAssociationInput, optFns ...func(*Options)) (*DeleteConfiguredAudienceModelAssociationOutput, error) { + if params == nil { + params = &DeleteConfiguredAudienceModelAssociationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteConfiguredAudienceModelAssociation", params, optFns, c.addOperationDeleteConfiguredAudienceModelAssociationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteConfiguredAudienceModelAssociationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteConfiguredAudienceModelAssociationInput struct { + + // A unique identifier of the configured audience model association that you want + // to delete. + // + // This member is required. + ConfiguredAudienceModelAssociationIdentifier *string + + // A unique identifier of the membership that contains the audience model + // association that you want to delete. + // + // This member is required. + MembershipIdentifier *string + + noSmithyDocumentSerde +} + +type DeleteConfiguredAudienceModelAssociationOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteConfiguredAudienceModelAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteConfiguredAudienceModelAssociation{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteConfiguredAudienceModelAssociation{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteConfiguredAudienceModelAssociation"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteConfiguredAudienceModelAssociationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteConfiguredAudienceModelAssociation(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteConfiguredAudienceModelAssociation(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteConfiguredAudienceModelAssociation", + } +} diff --git a/service/cleanrooms/api_op_DeletePrivacyBudgetTemplate.go b/service/cleanrooms/api_op_DeletePrivacyBudgetTemplate.go new file mode 100644 index 00000000000..e25b106ea7d --- /dev/null +++ b/service/cleanrooms/api_op_DeletePrivacyBudgetTemplate.go @@ -0,0 +1,139 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a privacy budget template for a specified membership. +func (c *Client) DeletePrivacyBudgetTemplate(ctx context.Context, params *DeletePrivacyBudgetTemplateInput, optFns ...func(*Options)) (*DeletePrivacyBudgetTemplateOutput, error) { + if params == nil { + params = &DeletePrivacyBudgetTemplateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeletePrivacyBudgetTemplate", params, optFns, c.addOperationDeletePrivacyBudgetTemplateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeletePrivacyBudgetTemplateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeletePrivacyBudgetTemplateInput struct { + + // A unique identifier for one of your memberships for a collaboration. The + // privacy budget template is deleted from the collaboration that this membership + // belongs to. Accepts a membership ID. + // + // This member is required. + MembershipIdentifier *string + + // A unique identifier for your privacy budget template. + // + // This member is required. + PrivacyBudgetTemplateIdentifier *string + + noSmithyDocumentSerde +} + +type DeletePrivacyBudgetTemplateOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeletePrivacyBudgetTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeletePrivacyBudgetTemplate{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeletePrivacyBudgetTemplate{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeletePrivacyBudgetTemplate"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpDeletePrivacyBudgetTemplateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeletePrivacyBudgetTemplate(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeletePrivacyBudgetTemplate(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeletePrivacyBudgetTemplate", + } +} diff --git a/service/cleanrooms/api_op_GetCollaborationConfiguredAudienceModelAssociation.go b/service/cleanrooms/api_op_GetCollaborationConfiguredAudienceModelAssociation.go new file mode 100644 index 00000000000..78a3534e9c7 --- /dev/null +++ b/service/cleanrooms/api_op_GetCollaborationConfiguredAudienceModelAssociation.go @@ -0,0 +1,146 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanrooms/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves a configured audience model association within a collaboration. +func (c *Client) GetCollaborationConfiguredAudienceModelAssociation(ctx context.Context, params *GetCollaborationConfiguredAudienceModelAssociationInput, optFns ...func(*Options)) (*GetCollaborationConfiguredAudienceModelAssociationOutput, error) { + if params == nil { + params = &GetCollaborationConfiguredAudienceModelAssociationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetCollaborationConfiguredAudienceModelAssociation", params, optFns, c.addOperationGetCollaborationConfiguredAudienceModelAssociationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetCollaborationConfiguredAudienceModelAssociationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetCollaborationConfiguredAudienceModelAssociationInput struct { + + // A unique identifier for the collaboration that the configured audience model + // association belongs to. Accepts a collaboration ID. + // + // This member is required. + CollaborationIdentifier *string + + // A unique identifier for the configured audience model association that you want + // to retrieve. + // + // This member is required. + ConfiguredAudienceModelAssociationIdentifier *string + + noSmithyDocumentSerde +} + +type GetCollaborationConfiguredAudienceModelAssociationOutput struct { + + // The metadata of the configured audience model association. + // + // This member is required. + CollaborationConfiguredAudienceModelAssociation *types.CollaborationConfiguredAudienceModelAssociation + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetCollaborationConfiguredAudienceModelAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetCollaborationConfiguredAudienceModelAssociation{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetCollaborationConfiguredAudienceModelAssociation{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetCollaborationConfiguredAudienceModelAssociation"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpGetCollaborationConfiguredAudienceModelAssociationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetCollaborationConfiguredAudienceModelAssociation(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetCollaborationConfiguredAudienceModelAssociation(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetCollaborationConfiguredAudienceModelAssociation", + } +} diff --git a/service/cleanrooms/api_op_GetCollaborationPrivacyBudgetTemplate.go b/service/cleanrooms/api_op_GetCollaborationPrivacyBudgetTemplate.go new file mode 100644 index 00000000000..bf74aa99a5e --- /dev/null +++ b/service/cleanrooms/api_op_GetCollaborationPrivacyBudgetTemplate.go @@ -0,0 +1,144 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanrooms/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns details about a specified privacy budget template. +func (c *Client) GetCollaborationPrivacyBudgetTemplate(ctx context.Context, params *GetCollaborationPrivacyBudgetTemplateInput, optFns ...func(*Options)) (*GetCollaborationPrivacyBudgetTemplateOutput, error) { + if params == nil { + params = &GetCollaborationPrivacyBudgetTemplateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetCollaborationPrivacyBudgetTemplate", params, optFns, c.addOperationGetCollaborationPrivacyBudgetTemplateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetCollaborationPrivacyBudgetTemplateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetCollaborationPrivacyBudgetTemplateInput struct { + + // A unique identifier for one of your collaborations. + // + // This member is required. + CollaborationIdentifier *string + + // A unique identifier for one of your privacy budget templates. + // + // This member is required. + PrivacyBudgetTemplateIdentifier *string + + noSmithyDocumentSerde +} + +type GetCollaborationPrivacyBudgetTemplateOutput struct { + + // Returns the details of the privacy budget template that you requested. + // + // This member is required. + CollaborationPrivacyBudgetTemplate *types.CollaborationPrivacyBudgetTemplate + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetCollaborationPrivacyBudgetTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetCollaborationPrivacyBudgetTemplate{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetCollaborationPrivacyBudgetTemplate{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetCollaborationPrivacyBudgetTemplate"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpGetCollaborationPrivacyBudgetTemplateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetCollaborationPrivacyBudgetTemplate(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetCollaborationPrivacyBudgetTemplate(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetCollaborationPrivacyBudgetTemplate", + } +} diff --git a/service/cleanrooms/api_op_GetConfiguredAudienceModelAssociation.go b/service/cleanrooms/api_op_GetConfiguredAudienceModelAssociation.go new file mode 100644 index 00000000000..9c822e63c6c --- /dev/null +++ b/service/cleanrooms/api_op_GetConfiguredAudienceModelAssociation.go @@ -0,0 +1,146 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanrooms/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns information about a configured audience model association. +func (c *Client) GetConfiguredAudienceModelAssociation(ctx context.Context, params *GetConfiguredAudienceModelAssociationInput, optFns ...func(*Options)) (*GetConfiguredAudienceModelAssociationOutput, error) { + if params == nil { + params = &GetConfiguredAudienceModelAssociationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetConfiguredAudienceModelAssociation", params, optFns, c.addOperationGetConfiguredAudienceModelAssociationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetConfiguredAudienceModelAssociationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetConfiguredAudienceModelAssociationInput struct { + + // A unique identifier for the configured audience model association that you want + // to retrieve. + // + // This member is required. + ConfiguredAudienceModelAssociationIdentifier *string + + // A unique identifier for the membership that contains the configured audience + // model association that you want to retrieve. + // + // This member is required. + MembershipIdentifier *string + + noSmithyDocumentSerde +} + +type GetConfiguredAudienceModelAssociationOutput struct { + + // Information about the configured audience model association that you requested. + // + // This member is required. + ConfiguredAudienceModelAssociation *types.ConfiguredAudienceModelAssociation + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetConfiguredAudienceModelAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetConfiguredAudienceModelAssociation{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetConfiguredAudienceModelAssociation{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetConfiguredAudienceModelAssociation"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpGetConfiguredAudienceModelAssociationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetConfiguredAudienceModelAssociation(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetConfiguredAudienceModelAssociation(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetConfiguredAudienceModelAssociation", + } +} diff --git a/service/cleanrooms/api_op_GetPrivacyBudgetTemplate.go b/service/cleanrooms/api_op_GetPrivacyBudgetTemplate.go new file mode 100644 index 00000000000..914c98ee3a9 --- /dev/null +++ b/service/cleanrooms/api_op_GetPrivacyBudgetTemplate.go @@ -0,0 +1,146 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanrooms/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns details for a specified privacy budget template. +func (c *Client) GetPrivacyBudgetTemplate(ctx context.Context, params *GetPrivacyBudgetTemplateInput, optFns ...func(*Options)) (*GetPrivacyBudgetTemplateOutput, error) { + if params == nil { + params = &GetPrivacyBudgetTemplateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetPrivacyBudgetTemplate", params, optFns, c.addOperationGetPrivacyBudgetTemplateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetPrivacyBudgetTemplateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetPrivacyBudgetTemplateInput struct { + + // A unique identifier for one of your memberships for a collaboration. The + // privacy budget template is retrieved from the collaboration that this membership + // belongs to. Accepts a membership ID. + // + // This member is required. + MembershipIdentifier *string + + // A unique identifier for your privacy budget template. + // + // This member is required. + PrivacyBudgetTemplateIdentifier *string + + noSmithyDocumentSerde +} + +type GetPrivacyBudgetTemplateOutput struct { + + // Returns the details of the privacy budget template that you requested. + // + // This member is required. + PrivacyBudgetTemplate *types.PrivacyBudgetTemplate + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetPrivacyBudgetTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetPrivacyBudgetTemplate{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetPrivacyBudgetTemplate{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetPrivacyBudgetTemplate"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpGetPrivacyBudgetTemplateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetPrivacyBudgetTemplate(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetPrivacyBudgetTemplate(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetPrivacyBudgetTemplate", + } +} diff --git a/service/cleanrooms/api_op_ListCollaborationConfiguredAudienceModelAssociations.go b/service/cleanrooms/api_op_ListCollaborationConfiguredAudienceModelAssociations.go new file mode 100644 index 00000000000..1c634b1adf9 --- /dev/null +++ b/service/cleanrooms/api_op_ListCollaborationConfiguredAudienceModelAssociations.go @@ -0,0 +1,246 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanrooms/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists configured audience model associations within a collaboration. +func (c *Client) ListCollaborationConfiguredAudienceModelAssociations(ctx context.Context, params *ListCollaborationConfiguredAudienceModelAssociationsInput, optFns ...func(*Options)) (*ListCollaborationConfiguredAudienceModelAssociationsOutput, error) { + if params == nil { + params = &ListCollaborationConfiguredAudienceModelAssociationsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListCollaborationConfiguredAudienceModelAssociations", params, optFns, c.addOperationListCollaborationConfiguredAudienceModelAssociationsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListCollaborationConfiguredAudienceModelAssociationsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListCollaborationConfiguredAudienceModelAssociationsInput struct { + + // A unique identifier for the collaboration that the configured audience model + // association belongs to. Accepts a collaboration ID. + // + // This member is required. + CollaborationIdentifier *string + + // The maximum size of the results that is returned per call. + MaxResults *int32 + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListCollaborationConfiguredAudienceModelAssociationsOutput struct { + + // The metadata of the configured audience model association within a + // collaboration. + // + // This member is required. + CollaborationConfiguredAudienceModelAssociationSummaries []types.CollaborationConfiguredAudienceModelAssociationSummary + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListCollaborationConfiguredAudienceModelAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListCollaborationConfiguredAudienceModelAssociations{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListCollaborationConfiguredAudienceModelAssociations{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListCollaborationConfiguredAudienceModelAssociations"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpListCollaborationConfiguredAudienceModelAssociationsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListCollaborationConfiguredAudienceModelAssociations(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// ListCollaborationConfiguredAudienceModelAssociationsAPIClient is a client that +// implements the ListCollaborationConfiguredAudienceModelAssociations operation. +type ListCollaborationConfiguredAudienceModelAssociationsAPIClient interface { + ListCollaborationConfiguredAudienceModelAssociations(context.Context, *ListCollaborationConfiguredAudienceModelAssociationsInput, ...func(*Options)) (*ListCollaborationConfiguredAudienceModelAssociationsOutput, error) +} + +var _ ListCollaborationConfiguredAudienceModelAssociationsAPIClient = (*Client)(nil) + +// ListCollaborationConfiguredAudienceModelAssociationsPaginatorOptions is the +// paginator options for ListCollaborationConfiguredAudienceModelAssociations +type ListCollaborationConfiguredAudienceModelAssociationsPaginatorOptions struct { + // The maximum size of the results that is returned per call. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListCollaborationConfiguredAudienceModelAssociationsPaginator is a paginator +// for ListCollaborationConfiguredAudienceModelAssociations +type ListCollaborationConfiguredAudienceModelAssociationsPaginator struct { + options ListCollaborationConfiguredAudienceModelAssociationsPaginatorOptions + client ListCollaborationConfiguredAudienceModelAssociationsAPIClient + params *ListCollaborationConfiguredAudienceModelAssociationsInput + nextToken *string + firstPage bool +} + +// NewListCollaborationConfiguredAudienceModelAssociationsPaginator returns a new +// ListCollaborationConfiguredAudienceModelAssociationsPaginator +func NewListCollaborationConfiguredAudienceModelAssociationsPaginator(client ListCollaborationConfiguredAudienceModelAssociationsAPIClient, params *ListCollaborationConfiguredAudienceModelAssociationsInput, optFns ...func(*ListCollaborationConfiguredAudienceModelAssociationsPaginatorOptions)) *ListCollaborationConfiguredAudienceModelAssociationsPaginator { + if params == nil { + params = &ListCollaborationConfiguredAudienceModelAssociationsInput{} + } + + options := ListCollaborationConfiguredAudienceModelAssociationsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListCollaborationConfiguredAudienceModelAssociationsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListCollaborationConfiguredAudienceModelAssociationsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next +// ListCollaborationConfiguredAudienceModelAssociations page. +func (p *ListCollaborationConfiguredAudienceModelAssociationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListCollaborationConfiguredAudienceModelAssociationsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.ListCollaborationConfiguredAudienceModelAssociations(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListCollaborationConfiguredAudienceModelAssociations(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListCollaborationConfiguredAudienceModelAssociations", + } +} diff --git a/service/cleanrooms/api_op_ListCollaborationPrivacyBudgetTemplates.go b/service/cleanrooms/api_op_ListCollaborationPrivacyBudgetTemplates.go new file mode 100644 index 00000000000..09c88b3d562 --- /dev/null +++ b/service/cleanrooms/api_op_ListCollaborationPrivacyBudgetTemplates.go @@ -0,0 +1,250 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanrooms/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns an array that summarizes each privacy budget template in a specified +// collaboration. +func (c *Client) ListCollaborationPrivacyBudgetTemplates(ctx context.Context, params *ListCollaborationPrivacyBudgetTemplatesInput, optFns ...func(*Options)) (*ListCollaborationPrivacyBudgetTemplatesOutput, error) { + if params == nil { + params = &ListCollaborationPrivacyBudgetTemplatesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListCollaborationPrivacyBudgetTemplates", params, optFns, c.addOperationListCollaborationPrivacyBudgetTemplatesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListCollaborationPrivacyBudgetTemplatesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListCollaborationPrivacyBudgetTemplatesInput struct { + + // A unique identifier for one of your collaborations. + // + // This member is required. + CollaborationIdentifier *string + + // The maximum size of the results that is returned per call. Service chooses a + // default if it has not been set. Service may return a nextToken even if the + // maximum results has not been met. + MaxResults *int32 + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListCollaborationPrivacyBudgetTemplatesOutput struct { + + // An array that summarizes the collaboration privacy budget templates. The + // summary includes collaboration information, creation information, the privacy + // budget type. + // + // This member is required. + CollaborationPrivacyBudgetTemplateSummaries []types.CollaborationPrivacyBudgetTemplateSummary + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListCollaborationPrivacyBudgetTemplatesMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListCollaborationPrivacyBudgetTemplates{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListCollaborationPrivacyBudgetTemplates{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListCollaborationPrivacyBudgetTemplates"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpListCollaborationPrivacyBudgetTemplatesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListCollaborationPrivacyBudgetTemplates(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// ListCollaborationPrivacyBudgetTemplatesAPIClient is a client that implements +// the ListCollaborationPrivacyBudgetTemplates operation. +type ListCollaborationPrivacyBudgetTemplatesAPIClient interface { + ListCollaborationPrivacyBudgetTemplates(context.Context, *ListCollaborationPrivacyBudgetTemplatesInput, ...func(*Options)) (*ListCollaborationPrivacyBudgetTemplatesOutput, error) +} + +var _ ListCollaborationPrivacyBudgetTemplatesAPIClient = (*Client)(nil) + +// ListCollaborationPrivacyBudgetTemplatesPaginatorOptions is the paginator +// options for ListCollaborationPrivacyBudgetTemplates +type ListCollaborationPrivacyBudgetTemplatesPaginatorOptions struct { + // The maximum size of the results that is returned per call. Service chooses a + // default if it has not been set. Service may return a nextToken even if the + // maximum results has not been met. + 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 +} + +// ListCollaborationPrivacyBudgetTemplatesPaginator is a paginator for +// ListCollaborationPrivacyBudgetTemplates +type ListCollaborationPrivacyBudgetTemplatesPaginator struct { + options ListCollaborationPrivacyBudgetTemplatesPaginatorOptions + client ListCollaborationPrivacyBudgetTemplatesAPIClient + params *ListCollaborationPrivacyBudgetTemplatesInput + nextToken *string + firstPage bool +} + +// NewListCollaborationPrivacyBudgetTemplatesPaginator returns a new +// ListCollaborationPrivacyBudgetTemplatesPaginator +func NewListCollaborationPrivacyBudgetTemplatesPaginator(client ListCollaborationPrivacyBudgetTemplatesAPIClient, params *ListCollaborationPrivacyBudgetTemplatesInput, optFns ...func(*ListCollaborationPrivacyBudgetTemplatesPaginatorOptions)) *ListCollaborationPrivacyBudgetTemplatesPaginator { + if params == nil { + params = &ListCollaborationPrivacyBudgetTemplatesInput{} + } + + options := ListCollaborationPrivacyBudgetTemplatesPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListCollaborationPrivacyBudgetTemplatesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListCollaborationPrivacyBudgetTemplatesPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListCollaborationPrivacyBudgetTemplates page. +func (p *ListCollaborationPrivacyBudgetTemplatesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListCollaborationPrivacyBudgetTemplatesOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.ListCollaborationPrivacyBudgetTemplates(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListCollaborationPrivacyBudgetTemplates(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListCollaborationPrivacyBudgetTemplates", + } +} diff --git a/service/cleanrooms/api_op_ListCollaborationPrivacyBudgets.go b/service/cleanrooms/api_op_ListCollaborationPrivacyBudgets.go new file mode 100644 index 00000000000..df4981a5681 --- /dev/null +++ b/service/cleanrooms/api_op_ListCollaborationPrivacyBudgets.go @@ -0,0 +1,254 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanrooms/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns an array that summarizes each privacy budget in a specified +// collaboration. The summary includes the collaboration ARN, creation time, +// creating account, and privacy budget details. +func (c *Client) ListCollaborationPrivacyBudgets(ctx context.Context, params *ListCollaborationPrivacyBudgetsInput, optFns ...func(*Options)) (*ListCollaborationPrivacyBudgetsOutput, error) { + if params == nil { + params = &ListCollaborationPrivacyBudgetsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListCollaborationPrivacyBudgets", params, optFns, c.addOperationListCollaborationPrivacyBudgetsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListCollaborationPrivacyBudgetsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListCollaborationPrivacyBudgetsInput struct { + + // A unique identifier for one of your collaborations. + // + // This member is required. + CollaborationIdentifier *string + + // Specifies the type of the privacy budget. + // + // This member is required. + PrivacyBudgetType types.PrivacyBudgetType + + // The maximum size of the results that is returned per call. Service chooses a + // default if it has not been set. Service may return a nextToken even if the + // maximum results has not been met. + MaxResults *int32 + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListCollaborationPrivacyBudgetsOutput struct { + + // Summaries of the collaboration privacy budgets. + // + // This member is required. + CollaborationPrivacyBudgetSummaries []types.CollaborationPrivacyBudgetSummary + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListCollaborationPrivacyBudgetsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListCollaborationPrivacyBudgets{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListCollaborationPrivacyBudgets{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListCollaborationPrivacyBudgets"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpListCollaborationPrivacyBudgetsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListCollaborationPrivacyBudgets(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// ListCollaborationPrivacyBudgetsAPIClient is a client that implements the +// ListCollaborationPrivacyBudgets operation. +type ListCollaborationPrivacyBudgetsAPIClient interface { + ListCollaborationPrivacyBudgets(context.Context, *ListCollaborationPrivacyBudgetsInput, ...func(*Options)) (*ListCollaborationPrivacyBudgetsOutput, error) +} + +var _ ListCollaborationPrivacyBudgetsAPIClient = (*Client)(nil) + +// ListCollaborationPrivacyBudgetsPaginatorOptions is the paginator options for +// ListCollaborationPrivacyBudgets +type ListCollaborationPrivacyBudgetsPaginatorOptions struct { + // The maximum size of the results that is returned per call. Service chooses a + // default if it has not been set. Service may return a nextToken even if the + // maximum results has not been met. + 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 +} + +// ListCollaborationPrivacyBudgetsPaginator is a paginator for +// ListCollaborationPrivacyBudgets +type ListCollaborationPrivacyBudgetsPaginator struct { + options ListCollaborationPrivacyBudgetsPaginatorOptions + client ListCollaborationPrivacyBudgetsAPIClient + params *ListCollaborationPrivacyBudgetsInput + nextToken *string + firstPage bool +} + +// NewListCollaborationPrivacyBudgetsPaginator returns a new +// ListCollaborationPrivacyBudgetsPaginator +func NewListCollaborationPrivacyBudgetsPaginator(client ListCollaborationPrivacyBudgetsAPIClient, params *ListCollaborationPrivacyBudgetsInput, optFns ...func(*ListCollaborationPrivacyBudgetsPaginatorOptions)) *ListCollaborationPrivacyBudgetsPaginator { + if params == nil { + params = &ListCollaborationPrivacyBudgetsInput{} + } + + options := ListCollaborationPrivacyBudgetsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListCollaborationPrivacyBudgetsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListCollaborationPrivacyBudgetsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListCollaborationPrivacyBudgets page. +func (p *ListCollaborationPrivacyBudgetsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListCollaborationPrivacyBudgetsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.ListCollaborationPrivacyBudgets(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListCollaborationPrivacyBudgets(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListCollaborationPrivacyBudgets", + } +} diff --git a/service/cleanrooms/api_op_ListConfiguredAudienceModelAssociations.go b/service/cleanrooms/api_op_ListConfiguredAudienceModelAssociations.go new file mode 100644 index 00000000000..dccb82a1ba7 --- /dev/null +++ b/service/cleanrooms/api_op_ListConfiguredAudienceModelAssociations.go @@ -0,0 +1,247 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanrooms/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists information about requested configured audience model associations. +func (c *Client) ListConfiguredAudienceModelAssociations(ctx context.Context, params *ListConfiguredAudienceModelAssociationsInput, optFns ...func(*Options)) (*ListConfiguredAudienceModelAssociationsOutput, error) { + if params == nil { + params = &ListConfiguredAudienceModelAssociationsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListConfiguredAudienceModelAssociations", params, optFns, c.addOperationListConfiguredAudienceModelAssociationsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListConfiguredAudienceModelAssociationsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListConfiguredAudienceModelAssociationsInput struct { + + // A unique identifier for a membership that contains the configured audience + // model associations that you want to retrieve. + // + // This member is required. + MembershipIdentifier *string + + // The maximum size of the results that is returned per call. Service chooses a + // default if it has not been set. Service may return a nextToken even if the + // maximum results has not been met. + MaxResults *int32 + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListConfiguredAudienceModelAssociationsOutput struct { + + // Summaries of the configured audience model associations that you requested. + // + // This member is required. + ConfiguredAudienceModelAssociationSummaries []types.ConfiguredAudienceModelAssociationSummary + + // The token value provided to access the next page of results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListConfiguredAudienceModelAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListConfiguredAudienceModelAssociations{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListConfiguredAudienceModelAssociations{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListConfiguredAudienceModelAssociations"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpListConfiguredAudienceModelAssociationsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListConfiguredAudienceModelAssociations(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// ListConfiguredAudienceModelAssociationsAPIClient is a client that implements +// the ListConfiguredAudienceModelAssociations operation. +type ListConfiguredAudienceModelAssociationsAPIClient interface { + ListConfiguredAudienceModelAssociations(context.Context, *ListConfiguredAudienceModelAssociationsInput, ...func(*Options)) (*ListConfiguredAudienceModelAssociationsOutput, error) +} + +var _ ListConfiguredAudienceModelAssociationsAPIClient = (*Client)(nil) + +// ListConfiguredAudienceModelAssociationsPaginatorOptions is the paginator +// options for ListConfiguredAudienceModelAssociations +type ListConfiguredAudienceModelAssociationsPaginatorOptions struct { + // The maximum size of the results that is returned per call. Service chooses a + // default if it has not been set. Service may return a nextToken even if the + // maximum results has not been met. + 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 +} + +// ListConfiguredAudienceModelAssociationsPaginator is a paginator for +// ListConfiguredAudienceModelAssociations +type ListConfiguredAudienceModelAssociationsPaginator struct { + options ListConfiguredAudienceModelAssociationsPaginatorOptions + client ListConfiguredAudienceModelAssociationsAPIClient + params *ListConfiguredAudienceModelAssociationsInput + nextToken *string + firstPage bool +} + +// NewListConfiguredAudienceModelAssociationsPaginator returns a new +// ListConfiguredAudienceModelAssociationsPaginator +func NewListConfiguredAudienceModelAssociationsPaginator(client ListConfiguredAudienceModelAssociationsAPIClient, params *ListConfiguredAudienceModelAssociationsInput, optFns ...func(*ListConfiguredAudienceModelAssociationsPaginatorOptions)) *ListConfiguredAudienceModelAssociationsPaginator { + if params == nil { + params = &ListConfiguredAudienceModelAssociationsInput{} + } + + options := ListConfiguredAudienceModelAssociationsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListConfiguredAudienceModelAssociationsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListConfiguredAudienceModelAssociationsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListConfiguredAudienceModelAssociations page. +func (p *ListConfiguredAudienceModelAssociationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListConfiguredAudienceModelAssociationsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.ListConfiguredAudienceModelAssociations(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListConfiguredAudienceModelAssociations(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListConfiguredAudienceModelAssociations", + } +} diff --git a/service/cleanrooms/api_op_ListPrivacyBudgetTemplates.go b/service/cleanrooms/api_op_ListPrivacyBudgetTemplates.go new file mode 100644 index 00000000000..2af9064faeb --- /dev/null +++ b/service/cleanrooms/api_op_ListPrivacyBudgetTemplates.go @@ -0,0 +1,251 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanrooms/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns detailed information about the privacy budget templates in a specified +// membership. +func (c *Client) ListPrivacyBudgetTemplates(ctx context.Context, params *ListPrivacyBudgetTemplatesInput, optFns ...func(*Options)) (*ListPrivacyBudgetTemplatesOutput, error) { + if params == nil { + params = &ListPrivacyBudgetTemplatesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListPrivacyBudgetTemplates", params, optFns, c.addOperationListPrivacyBudgetTemplatesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListPrivacyBudgetTemplatesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListPrivacyBudgetTemplatesInput struct { + + // A unique identifier for one of your memberships for a collaboration. The + // privacy budget templates are retrieved from the collaboration that this + // membership belongs to. Accepts a membership ID. + // + // This member is required. + MembershipIdentifier *string + + // The maximum size of the results that is returned per call. Service chooses a + // default if it has not been set. Service may return a nextToken even if the + // maximum results has not been met. + MaxResults *int32 + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListPrivacyBudgetTemplatesOutput struct { + + // An array that summarizes the privacy budget templates. The summary includes + // collaboration information, creation information, and privacy budget type. + // + // This member is required. + PrivacyBudgetTemplateSummaries []types.PrivacyBudgetTemplateSummary + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListPrivacyBudgetTemplatesMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListPrivacyBudgetTemplates{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListPrivacyBudgetTemplates{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListPrivacyBudgetTemplates"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpListPrivacyBudgetTemplatesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListPrivacyBudgetTemplates(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// ListPrivacyBudgetTemplatesAPIClient is a client that implements the +// ListPrivacyBudgetTemplates operation. +type ListPrivacyBudgetTemplatesAPIClient interface { + ListPrivacyBudgetTemplates(context.Context, *ListPrivacyBudgetTemplatesInput, ...func(*Options)) (*ListPrivacyBudgetTemplatesOutput, error) +} + +var _ ListPrivacyBudgetTemplatesAPIClient = (*Client)(nil) + +// ListPrivacyBudgetTemplatesPaginatorOptions is the paginator options for +// ListPrivacyBudgetTemplates +type ListPrivacyBudgetTemplatesPaginatorOptions struct { + // The maximum size of the results that is returned per call. Service chooses a + // default if it has not been set. Service may return a nextToken even if the + // maximum results has not been met. + 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 +} + +// ListPrivacyBudgetTemplatesPaginator is a paginator for +// ListPrivacyBudgetTemplates +type ListPrivacyBudgetTemplatesPaginator struct { + options ListPrivacyBudgetTemplatesPaginatorOptions + client ListPrivacyBudgetTemplatesAPIClient + params *ListPrivacyBudgetTemplatesInput + nextToken *string + firstPage bool +} + +// NewListPrivacyBudgetTemplatesPaginator returns a new +// ListPrivacyBudgetTemplatesPaginator +func NewListPrivacyBudgetTemplatesPaginator(client ListPrivacyBudgetTemplatesAPIClient, params *ListPrivacyBudgetTemplatesInput, optFns ...func(*ListPrivacyBudgetTemplatesPaginatorOptions)) *ListPrivacyBudgetTemplatesPaginator { + if params == nil { + params = &ListPrivacyBudgetTemplatesInput{} + } + + options := ListPrivacyBudgetTemplatesPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListPrivacyBudgetTemplatesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListPrivacyBudgetTemplatesPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListPrivacyBudgetTemplates page. +func (p *ListPrivacyBudgetTemplatesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListPrivacyBudgetTemplatesOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.ListPrivacyBudgetTemplates(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListPrivacyBudgetTemplates(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListPrivacyBudgetTemplates", + } +} diff --git a/service/cleanrooms/api_op_ListPrivacyBudgets.go b/service/cleanrooms/api_op_ListPrivacyBudgets.go new file mode 100644 index 00000000000..04752ca1994 --- /dev/null +++ b/service/cleanrooms/api_op_ListPrivacyBudgets.go @@ -0,0 +1,255 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanrooms/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns detailed information about the privacy budgets in a specified +// membership. +func (c *Client) ListPrivacyBudgets(ctx context.Context, params *ListPrivacyBudgetsInput, optFns ...func(*Options)) (*ListPrivacyBudgetsOutput, error) { + if params == nil { + params = &ListPrivacyBudgetsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListPrivacyBudgets", params, optFns, c.addOperationListPrivacyBudgetsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListPrivacyBudgetsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListPrivacyBudgetsInput struct { + + // A unique identifier for one of your memberships for a collaboration. The + // privacy budget is retrieved from the collaboration that this membership belongs + // to. Accepts a membership ID. + // + // This member is required. + MembershipIdentifier *string + + // The privacy budget type. + // + // This member is required. + PrivacyBudgetType types.PrivacyBudgetType + + // The maximum size of the results that is returned per call. Service chooses a + // default if it has not been set. Service may return a nextToken even if the + // maximum results has not been met. + MaxResults *int32 + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListPrivacyBudgetsOutput struct { + + // An array that summarizes the privacy budgets. The summary includes + // collaboration information, membership information, privacy budget template + // information, and privacy budget details. + // + // This member is required. + PrivacyBudgetSummaries []types.PrivacyBudgetSummary + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListPrivacyBudgetsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListPrivacyBudgets{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListPrivacyBudgets{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListPrivacyBudgets"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpListPrivacyBudgetsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListPrivacyBudgets(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// ListPrivacyBudgetsAPIClient is a client that implements the ListPrivacyBudgets +// operation. +type ListPrivacyBudgetsAPIClient interface { + ListPrivacyBudgets(context.Context, *ListPrivacyBudgetsInput, ...func(*Options)) (*ListPrivacyBudgetsOutput, error) +} + +var _ ListPrivacyBudgetsAPIClient = (*Client)(nil) + +// ListPrivacyBudgetsPaginatorOptions is the paginator options for +// ListPrivacyBudgets +type ListPrivacyBudgetsPaginatorOptions struct { + // The maximum size of the results that is returned per call. Service chooses a + // default if it has not been set. Service may return a nextToken even if the + // maximum results has not been met. + 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 +} + +// ListPrivacyBudgetsPaginator is a paginator for ListPrivacyBudgets +type ListPrivacyBudgetsPaginator struct { + options ListPrivacyBudgetsPaginatorOptions + client ListPrivacyBudgetsAPIClient + params *ListPrivacyBudgetsInput + nextToken *string + firstPage bool +} + +// NewListPrivacyBudgetsPaginator returns a new ListPrivacyBudgetsPaginator +func NewListPrivacyBudgetsPaginator(client ListPrivacyBudgetsAPIClient, params *ListPrivacyBudgetsInput, optFns ...func(*ListPrivacyBudgetsPaginatorOptions)) *ListPrivacyBudgetsPaginator { + if params == nil { + params = &ListPrivacyBudgetsInput{} + } + + options := ListPrivacyBudgetsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListPrivacyBudgetsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListPrivacyBudgetsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListPrivacyBudgets page. +func (p *ListPrivacyBudgetsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListPrivacyBudgetsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.ListPrivacyBudgets(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListPrivacyBudgets(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListPrivacyBudgets", + } +} diff --git a/service/cleanrooms/api_op_PreviewPrivacyImpact.go b/service/cleanrooms/api_op_PreviewPrivacyImpact.go new file mode 100644 index 00000000000..3cd5ce98316 --- /dev/null +++ b/service/cleanrooms/api_op_PreviewPrivacyImpact.go @@ -0,0 +1,148 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanrooms/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// An estimate of the number of aggregation functions that the member who can +// query can run given epsilon and noise parameters. +func (c *Client) PreviewPrivacyImpact(ctx context.Context, params *PreviewPrivacyImpactInput, optFns ...func(*Options)) (*PreviewPrivacyImpactOutput, error) { + if params == nil { + params = &PreviewPrivacyImpactInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "PreviewPrivacyImpact", params, optFns, c.addOperationPreviewPrivacyImpactMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*PreviewPrivacyImpactOutput) + out.ResultMetadata = metadata + return out, nil +} + +type PreviewPrivacyImpactInput struct { + + // A unique identifier for one of your memberships for a collaboration. Accepts a + // membership ID. + // + // This member is required. + MembershipIdentifier *string + + // Specifies the desired epsilon and noise parameters to preview. + // + // This member is required. + Parameters types.PreviewPrivacyImpactParametersInput + + noSmithyDocumentSerde +} + +type PreviewPrivacyImpactOutput struct { + + // An estimate of the number of aggregation functions that the member who can + // query can run given the epsilon and noise parameters. This does not change the + // privacy budget. + // + // This member is required. + PrivacyImpact types.PrivacyImpact + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationPreviewPrivacyImpactMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpPreviewPrivacyImpact{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpPreviewPrivacyImpact{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "PreviewPrivacyImpact"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpPreviewPrivacyImpactValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPreviewPrivacyImpact(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opPreviewPrivacyImpact(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "PreviewPrivacyImpact", + } +} diff --git a/service/cleanrooms/api_op_UpdateConfiguredAudienceModelAssociation.go b/service/cleanrooms/api_op_UpdateConfiguredAudienceModelAssociation.go new file mode 100644 index 00000000000..523fccb7f4c --- /dev/null +++ b/service/cleanrooms/api_op_UpdateConfiguredAudienceModelAssociation.go @@ -0,0 +1,153 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanrooms/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Provides the details necessary to update a configured audience model +// association. +func (c *Client) UpdateConfiguredAudienceModelAssociation(ctx context.Context, params *UpdateConfiguredAudienceModelAssociationInput, optFns ...func(*Options)) (*UpdateConfiguredAudienceModelAssociationOutput, error) { + if params == nil { + params = &UpdateConfiguredAudienceModelAssociationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateConfiguredAudienceModelAssociation", params, optFns, c.addOperationUpdateConfiguredAudienceModelAssociationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateConfiguredAudienceModelAssociationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateConfiguredAudienceModelAssociationInput struct { + + // A unique identifier for the configured audience model association that you want + // to update. + // + // This member is required. + ConfiguredAudienceModelAssociationIdentifier *string + + // A unique identifier of the membership that contains the configured audience + // model association that you want to update. + // + // This member is required. + MembershipIdentifier *string + + // A new description for the configured audience model association. + Description *string + + // A new name for the configured audience model association. + Name *string + + noSmithyDocumentSerde +} + +type UpdateConfiguredAudienceModelAssociationOutput struct { + + // Details about the configured audience model association that you updated. + // + // This member is required. + ConfiguredAudienceModelAssociation *types.ConfiguredAudienceModelAssociation + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateConfiguredAudienceModelAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateConfiguredAudienceModelAssociation{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateConfiguredAudienceModelAssociation{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateConfiguredAudienceModelAssociation"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateConfiguredAudienceModelAssociationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateConfiguredAudienceModelAssociation(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateConfiguredAudienceModelAssociation(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "UpdateConfiguredAudienceModelAssociation", + } +} diff --git a/service/cleanrooms/api_op_UpdatePrivacyBudgetTemplate.go b/service/cleanrooms/api_op_UpdatePrivacyBudgetTemplate.go new file mode 100644 index 00000000000..22d681a12b0 --- /dev/null +++ b/service/cleanrooms/api_op_UpdatePrivacyBudgetTemplate.go @@ -0,0 +1,154 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanrooms + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanrooms/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates the privacy budget template for the specified membership. +func (c *Client) UpdatePrivacyBudgetTemplate(ctx context.Context, params *UpdatePrivacyBudgetTemplateInput, optFns ...func(*Options)) (*UpdatePrivacyBudgetTemplateOutput, error) { + if params == nil { + params = &UpdatePrivacyBudgetTemplateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdatePrivacyBudgetTemplate", params, optFns, c.addOperationUpdatePrivacyBudgetTemplateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdatePrivacyBudgetTemplateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdatePrivacyBudgetTemplateInput struct { + + // A unique identifier for one of your memberships for a collaboration. The + // privacy budget template is updated in the collaboration that this membership + // belongs to. Accepts a membership ID. + // + // This member is required. + MembershipIdentifier *string + + // A unique identifier for your privacy budget template that you want to update. + // + // This member is required. + PrivacyBudgetTemplateIdentifier *string + + // Specifies the type of the privacy budget template. + // + // This member is required. + PrivacyBudgetType types.PrivacyBudgetType + + // Specifies the epsilon and noise parameters for the privacy budget template. + Parameters types.PrivacyBudgetTemplateUpdateParameters + + noSmithyDocumentSerde +} + +type UpdatePrivacyBudgetTemplateOutput struct { + + // Summary of the privacy budget template. + // + // This member is required. + PrivacyBudgetTemplate *types.PrivacyBudgetTemplate + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdatePrivacyBudgetTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdatePrivacyBudgetTemplate{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdatePrivacyBudgetTemplate{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "UpdatePrivacyBudgetTemplate"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpUpdatePrivacyBudgetTemplateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdatePrivacyBudgetTemplate(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdatePrivacyBudgetTemplate(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "UpdatePrivacyBudgetTemplate", + } +} diff --git a/service/cleanrooms/deserializers.go b/service/cleanrooms/deserializers.go index d97bf963e19..43c609719cf 100644 --- a/service/cleanrooms/deserializers.go +++ b/service/cleanrooms/deserializers.go @@ -672,6 +672,171 @@ func awsRestjson1_deserializeOpDocumentCreateCollaborationOutput(v **CreateColla return nil } +type awsRestjson1_deserializeOpCreateConfiguredAudienceModelAssociation struct { +} + +func (*awsRestjson1_deserializeOpCreateConfiguredAudienceModelAssociation) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateConfiguredAudienceModelAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorCreateConfiguredAudienceModelAssociation(response, &metadata) + } + output := &CreateConfiguredAudienceModelAssociationOutput{} + 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_deserializeOpDocumentCreateConfiguredAudienceModelAssociationOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateConfiguredAudienceModelAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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_deserializeOpDocumentCreateConfiguredAudienceModelAssociationOutput(v **CreateConfiguredAudienceModelAssociationOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateConfiguredAudienceModelAssociationOutput + if *v == nil { + sv = &CreateConfiguredAudienceModelAssociationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "configuredAudienceModelAssociation": + if err := awsRestjson1_deserializeDocumentConfiguredAudienceModelAssociation(&sv.ConfiguredAudienceModelAssociation, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + type awsRestjson1_deserializeOpCreateConfiguredTable struct { } @@ -1329,14 +1494,14 @@ func awsRestjson1_deserializeOpDocumentCreateMembershipOutput(v **CreateMembersh return nil } -type awsRestjson1_deserializeOpDeleteAnalysisTemplate struct { +type awsRestjson1_deserializeOpCreatePrivacyBudgetTemplate struct { } -func (*awsRestjson1_deserializeOpDeleteAnalysisTemplate) ID() string { +func (*awsRestjson1_deserializeOpCreatePrivacyBudgetTemplate) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteAnalysisTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreatePrivacyBudgetTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1350,15 +1515,43 @@ func (m *awsRestjson1_deserializeOpDeleteAnalysisTemplate) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteAnalysisTemplate(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreatePrivacyBudgetTemplate(response, &metadata) } - output := &DeleteAnalysisTemplateOutput{} + output := &CreatePrivacyBudgetTemplateOutput{} 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_deserializeOpDocumentCreatePrivacyBudgetTemplateOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteAnalysisTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreatePrivacyBudgetTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1402,6 +1595,9 @@ func awsRestjson1_deserializeOpErrorDeleteAnalysisTemplate(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("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) @@ -1424,14 +1620,50 @@ func awsRestjson1_deserializeOpErrorDeleteAnalysisTemplate(response *smithyhttp. } } -type awsRestjson1_deserializeOpDeleteCollaboration struct { +func awsRestjson1_deserializeOpDocumentCreatePrivacyBudgetTemplateOutput(v **CreatePrivacyBudgetTemplateOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreatePrivacyBudgetTemplateOutput + if *v == nil { + sv = &CreatePrivacyBudgetTemplateOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "privacyBudgetTemplate": + if err := awsRestjson1_deserializeDocumentPrivacyBudgetTemplate(&sv.PrivacyBudgetTemplate, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil } -func (*awsRestjson1_deserializeOpDeleteCollaboration) ID() string { +type awsRestjson1_deserializeOpDeleteAnalysisTemplate struct { +} + +func (*awsRestjson1_deserializeOpDeleteAnalysisTemplate) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteCollaboration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteAnalysisTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1445,15 +1677,15 @@ func (m *awsRestjson1_deserializeOpDeleteCollaboration) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteCollaboration(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteAnalysisTemplate(response, &metadata) } - output := &DeleteCollaborationOutput{} + output := &DeleteAnalysisTemplateOutput{} out.Result = output return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteCollaboration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteAnalysisTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1500,6 +1732,9 @@ func awsRestjson1_deserializeOpErrorDeleteCollaboration(response *smithyhttp.Res 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) @@ -1516,14 +1751,14 @@ func awsRestjson1_deserializeOpErrorDeleteCollaboration(response *smithyhttp.Res } } -type awsRestjson1_deserializeOpDeleteConfiguredTable struct { +type awsRestjson1_deserializeOpDeleteCollaboration struct { } -func (*awsRestjson1_deserializeOpDeleteConfiguredTable) ID() string { +func (*awsRestjson1_deserializeOpDeleteCollaboration) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteConfiguredTable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteCollaboration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1537,15 +1772,15 @@ func (m *awsRestjson1_deserializeOpDeleteConfiguredTable) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteConfiguredTable(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteCollaboration(response, &metadata) } - output := &DeleteConfiguredTableOutput{} + output := &DeleteCollaborationOutput{} out.Result = output return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteConfiguredTable(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteCollaboration(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1589,15 +1824,9 @@ func awsRestjson1_deserializeOpErrorDeleteConfiguredTable(response *smithyhttp.R 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) @@ -1614,14 +1843,14 @@ func awsRestjson1_deserializeOpErrorDeleteConfiguredTable(response *smithyhttp.R } } -type awsRestjson1_deserializeOpDeleteConfiguredTableAnalysisRule struct { +type awsRestjson1_deserializeOpDeleteConfiguredAudienceModelAssociation struct { } -func (*awsRestjson1_deserializeOpDeleteConfiguredTableAnalysisRule) ID() string { +func (*awsRestjson1_deserializeOpDeleteConfiguredAudienceModelAssociation) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteConfiguredTableAnalysisRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteConfiguredAudienceModelAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1635,15 +1864,15 @@ func (m *awsRestjson1_deserializeOpDeleteConfiguredTableAnalysisRule) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteConfiguredTableAnalysisRule(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteConfiguredAudienceModelAssociation(response, &metadata) } - output := &DeleteConfiguredTableAnalysisRuleOutput{} + output := &DeleteConfiguredAudienceModelAssociationOutput{} out.Result = output return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteConfiguredTableAnalysisRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteConfiguredAudienceModelAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1687,9 +1916,6 @@ func awsRestjson1_deserializeOpErrorDeleteConfiguredTableAnalysisRule(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) @@ -1712,14 +1938,14 @@ func awsRestjson1_deserializeOpErrorDeleteConfiguredTableAnalysisRule(response * } } -type awsRestjson1_deserializeOpDeleteConfiguredTableAssociation struct { +type awsRestjson1_deserializeOpDeleteConfiguredTable struct { } -func (*awsRestjson1_deserializeOpDeleteConfiguredTableAssociation) ID() string { +func (*awsRestjson1_deserializeOpDeleteConfiguredTable) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteConfiguredTableAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteConfiguredTable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1733,15 +1959,15 @@ func (m *awsRestjson1_deserializeOpDeleteConfiguredTableAssociation) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteConfiguredTableAssociation(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteConfiguredTable(response, &metadata) } - output := &DeleteConfiguredTableAssociationOutput{} + output := &DeleteConfiguredTableOutput{} out.Result = output return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteConfiguredTableAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteConfiguredTable(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1810,14 +2036,14 @@ func awsRestjson1_deserializeOpErrorDeleteConfiguredTableAssociation(response *s } } -type awsRestjson1_deserializeOpDeleteMember struct { +type awsRestjson1_deserializeOpDeleteConfiguredTableAnalysisRule struct { } -func (*awsRestjson1_deserializeOpDeleteMember) ID() string { +func (*awsRestjson1_deserializeOpDeleteConfiguredTableAnalysisRule) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteMember) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteConfiguredTableAnalysisRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1831,15 +2057,15 @@ func (m *awsRestjson1_deserializeOpDeleteMember) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteMember(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteConfiguredTableAnalysisRule(response, &metadata) } - output := &DeleteMemberOutput{} + output := &DeleteConfiguredTableAnalysisRuleOutput{} out.Result = output return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteMember(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteConfiguredTableAnalysisRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1908,14 +2134,14 @@ func awsRestjson1_deserializeOpErrorDeleteMember(response *smithyhttp.Response, } } -type awsRestjson1_deserializeOpDeleteMembership struct { +type awsRestjson1_deserializeOpDeleteConfiguredTableAssociation struct { } -func (*awsRestjson1_deserializeOpDeleteMembership) ID() string { +func (*awsRestjson1_deserializeOpDeleteConfiguredTableAssociation) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteMembership) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteConfiguredTableAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1929,15 +2155,15 @@ func (m *awsRestjson1_deserializeOpDeleteMembership) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteMembership(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteConfiguredTableAssociation(response, &metadata) } - output := &DeleteMembershipOutput{} + output := &DeleteConfiguredTableAssociationOutput{} out.Result = output return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteMembership(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteConfiguredTableAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2006,14 +2232,14 @@ func awsRestjson1_deserializeOpErrorDeleteMembership(response *smithyhttp.Respon } } -type awsRestjson1_deserializeOpGetAnalysisTemplate struct { +type awsRestjson1_deserializeOpDeleteMember struct { } -func (*awsRestjson1_deserializeOpGetAnalysisTemplate) ID() string { +func (*awsRestjson1_deserializeOpDeleteMember) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetAnalysisTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteMember) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2027,43 +2253,15 @@ func (m *awsRestjson1_deserializeOpGetAnalysisTemplate) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetAnalysisTemplate(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteMember(response, &metadata) } - output := &GetAnalysisTemplateOutput{} + output := &DeleteMemberOutput{} 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_deserializeOpDocumentGetAnalysisTemplateOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetAnalysisTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteMember(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2107,6 +2305,9 @@ func awsRestjson1_deserializeOpErrorGetAnalysisTemplate(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("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) @@ -2129,50 +2330,14 @@ func awsRestjson1_deserializeOpErrorGetAnalysisTemplate(response *smithyhttp.Res } } -func awsRestjson1_deserializeOpDocumentGetAnalysisTemplateOutput(v **GetAnalysisTemplateOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetAnalysisTemplateOutput - if *v == nil { - sv = &GetAnalysisTemplateOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "analysisTemplate": - if err := awsRestjson1_deserializeDocumentAnalysisTemplate(&sv.AnalysisTemplate, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpGetCollaboration struct { +type awsRestjson1_deserializeOpDeleteMembership struct { } -func (*awsRestjson1_deserializeOpGetCollaboration) ID() string { +func (*awsRestjson1_deserializeOpDeleteMembership) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetCollaboration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteMembership) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2186,43 +2351,15 @@ func (m *awsRestjson1_deserializeOpGetCollaboration) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetCollaboration(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteMembership(response, &metadata) } - output := &GetCollaborationOutput{} + output := &DeleteMembershipOutput{} 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_deserializeOpDocumentGetCollaborationOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetCollaboration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteMembership(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2266,9 +2403,15 @@ func awsRestjson1_deserializeOpErrorGetCollaboration(response *smithyhttp.Respon 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) @@ -2285,50 +2428,14 @@ func awsRestjson1_deserializeOpErrorGetCollaboration(response *smithyhttp.Respon } } -func awsRestjson1_deserializeOpDocumentGetCollaborationOutput(v **GetCollaborationOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *GetCollaborationOutput - if *v == nil { - sv = &GetCollaborationOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "collaboration": - if err := awsRestjson1_deserializeDocumentCollaboration(&sv.Collaboration, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpGetCollaborationAnalysisTemplate struct { +type awsRestjson1_deserializeOpDeletePrivacyBudgetTemplate struct { } -func (*awsRestjson1_deserializeOpGetCollaborationAnalysisTemplate) ID() string { +func (*awsRestjson1_deserializeOpDeletePrivacyBudgetTemplate) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetCollaborationAnalysisTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeletePrivacyBudgetTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2342,43 +2449,15 @@ func (m *awsRestjson1_deserializeOpGetCollaborationAnalysisTemplate) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetCollaborationAnalysisTemplate(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeletePrivacyBudgetTemplate(response, &metadata) } - output := &GetCollaborationAnalysisTemplateOutput{} + output := &DeletePrivacyBudgetTemplateOutput{} 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_deserializeOpDocumentGetCollaborationAnalysisTemplateOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetCollaborationAnalysisTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeletePrivacyBudgetTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2444,50 +2523,14 @@ func awsRestjson1_deserializeOpErrorGetCollaborationAnalysisTemplate(response *s } } -func awsRestjson1_deserializeOpDocumentGetCollaborationAnalysisTemplateOutput(v **GetCollaborationAnalysisTemplateOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } +type awsRestjson1_deserializeOpGetAnalysisTemplate struct { +} - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } +func (*awsRestjson1_deserializeOpGetAnalysisTemplate) ID() string { + return "OperationDeserializer" +} - var sv *GetCollaborationAnalysisTemplateOutput - if *v == nil { - sv = &GetCollaborationAnalysisTemplateOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "collaborationAnalysisTemplate": - if err := awsRestjson1_deserializeDocumentCollaborationAnalysisTemplate(&sv.CollaborationAnalysisTemplate, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpGetConfiguredTable struct { -} - -func (*awsRestjson1_deserializeOpGetConfiguredTable) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpGetConfiguredTable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetAnalysisTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2501,9 +2544,9 @@ func (m *awsRestjson1_deserializeOpGetConfiguredTable) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetConfiguredTable(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetAnalysisTemplate(response, &metadata) } - output := &GetConfiguredTableOutput{} + output := &GetAnalysisTemplateOutput{} out.Result = output var buff [1024]byte @@ -2524,7 +2567,7 @@ func (m *awsRestjson1_deserializeOpGetConfiguredTable) HandleDeserialize(ctx con return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetConfiguredTableOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetAnalysisTemplateOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2537,7 +2580,7 @@ func (m *awsRestjson1_deserializeOpGetConfiguredTable) HandleDeserialize(ctx con return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetConfiguredTable(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetAnalysisTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2603,7 +2646,7 @@ func awsRestjson1_deserializeOpErrorGetConfiguredTable(response *smithyhttp.Resp } } -func awsRestjson1_deserializeOpDocumentGetConfiguredTableOutput(v **GetConfiguredTableOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetAnalysisTemplateOutput(v **GetAnalysisTemplateOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2616,17 +2659,17 @@ func awsRestjson1_deserializeOpDocumentGetConfiguredTableOutput(v **GetConfigure return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetConfiguredTableOutput + var sv *GetAnalysisTemplateOutput if *v == nil { - sv = &GetConfiguredTableOutput{} + sv = &GetAnalysisTemplateOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "configuredTable": - if err := awsRestjson1_deserializeDocumentConfiguredTable(&sv.ConfiguredTable, value); err != nil { + case "analysisTemplate": + if err := awsRestjson1_deserializeDocumentAnalysisTemplate(&sv.AnalysisTemplate, value); err != nil { return err } @@ -2639,14 +2682,14 @@ func awsRestjson1_deserializeOpDocumentGetConfiguredTableOutput(v **GetConfigure return nil } -type awsRestjson1_deserializeOpGetConfiguredTableAnalysisRule struct { +type awsRestjson1_deserializeOpGetCollaboration struct { } -func (*awsRestjson1_deserializeOpGetConfiguredTableAnalysisRule) ID() string { +func (*awsRestjson1_deserializeOpGetCollaboration) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetConfiguredTableAnalysisRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetCollaboration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2660,9 +2703,9 @@ func (m *awsRestjson1_deserializeOpGetConfiguredTableAnalysisRule) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetConfiguredTableAnalysisRule(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetCollaboration(response, &metadata) } - output := &GetConfiguredTableAnalysisRuleOutput{} + output := &GetCollaborationOutput{} out.Result = output var buff [1024]byte @@ -2683,7 +2726,7 @@ func (m *awsRestjson1_deserializeOpGetConfiguredTableAnalysisRule) HandleDeseria return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetConfiguredTableAnalysisRuleOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetCollaborationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2696,7 +2739,7 @@ func (m *awsRestjson1_deserializeOpGetConfiguredTableAnalysisRule) HandleDeseria return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetConfiguredTableAnalysisRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetCollaboration(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2743,9 +2786,6 @@ func awsRestjson1_deserializeOpErrorGetConfiguredTableAnalysisRule(response *smi 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) @@ -2762,7 +2802,7 @@ func awsRestjson1_deserializeOpErrorGetConfiguredTableAnalysisRule(response *smi } } -func awsRestjson1_deserializeOpDocumentGetConfiguredTableAnalysisRuleOutput(v **GetConfiguredTableAnalysisRuleOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetCollaborationOutput(v **GetCollaborationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2775,17 +2815,17 @@ func awsRestjson1_deserializeOpDocumentGetConfiguredTableAnalysisRuleOutput(v ** return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetConfiguredTableAnalysisRuleOutput + var sv *GetCollaborationOutput if *v == nil { - sv = &GetConfiguredTableAnalysisRuleOutput{} + sv = &GetCollaborationOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "analysisRule": - if err := awsRestjson1_deserializeDocumentConfiguredTableAnalysisRule(&sv.AnalysisRule, value); err != nil { + case "collaboration": + if err := awsRestjson1_deserializeDocumentCollaboration(&sv.Collaboration, value); err != nil { return err } @@ -2798,14 +2838,14 @@ func awsRestjson1_deserializeOpDocumentGetConfiguredTableAnalysisRuleOutput(v ** return nil } -type awsRestjson1_deserializeOpGetConfiguredTableAssociation struct { +type awsRestjson1_deserializeOpGetCollaborationAnalysisTemplate struct { } -func (*awsRestjson1_deserializeOpGetConfiguredTableAssociation) ID() string { +func (*awsRestjson1_deserializeOpGetCollaborationAnalysisTemplate) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetConfiguredTableAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetCollaborationAnalysisTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2819,9 +2859,9 @@ func (m *awsRestjson1_deserializeOpGetConfiguredTableAssociation) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetConfiguredTableAssociation(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetCollaborationAnalysisTemplate(response, &metadata) } - output := &GetConfiguredTableAssociationOutput{} + output := &GetCollaborationAnalysisTemplateOutput{} out.Result = output var buff [1024]byte @@ -2842,7 +2882,7 @@ func (m *awsRestjson1_deserializeOpGetConfiguredTableAssociation) HandleDeserial return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetConfiguredTableAssociationOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetCollaborationAnalysisTemplateOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2855,7 +2895,7 @@ func (m *awsRestjson1_deserializeOpGetConfiguredTableAssociation) HandleDeserial return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetConfiguredTableAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetCollaborationAnalysisTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2921,7 +2961,7 @@ func awsRestjson1_deserializeOpErrorGetConfiguredTableAssociation(response *smit } } -func awsRestjson1_deserializeOpDocumentGetConfiguredTableAssociationOutput(v **GetConfiguredTableAssociationOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetCollaborationAnalysisTemplateOutput(v **GetCollaborationAnalysisTemplateOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2934,17 +2974,17 @@ func awsRestjson1_deserializeOpDocumentGetConfiguredTableAssociationOutput(v **G return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetConfiguredTableAssociationOutput + var sv *GetCollaborationAnalysisTemplateOutput if *v == nil { - sv = &GetConfiguredTableAssociationOutput{} + sv = &GetCollaborationAnalysisTemplateOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "configuredTableAssociation": - if err := awsRestjson1_deserializeDocumentConfiguredTableAssociation(&sv.ConfiguredTableAssociation, value); err != nil { + case "collaborationAnalysisTemplate": + if err := awsRestjson1_deserializeDocumentCollaborationAnalysisTemplate(&sv.CollaborationAnalysisTemplate, value); err != nil { return err } @@ -2957,14 +2997,14 @@ func awsRestjson1_deserializeOpDocumentGetConfiguredTableAssociationOutput(v **G return nil } -type awsRestjson1_deserializeOpGetMembership struct { +type awsRestjson1_deserializeOpGetCollaborationConfiguredAudienceModelAssociation struct { } -func (*awsRestjson1_deserializeOpGetMembership) ID() string { +func (*awsRestjson1_deserializeOpGetCollaborationConfiguredAudienceModelAssociation) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetMembership) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetCollaborationConfiguredAudienceModelAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2978,9 +3018,9 @@ func (m *awsRestjson1_deserializeOpGetMembership) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetMembership(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetCollaborationConfiguredAudienceModelAssociation(response, &metadata) } - output := &GetMembershipOutput{} + output := &GetCollaborationConfiguredAudienceModelAssociationOutput{} out.Result = output var buff [1024]byte @@ -3001,7 +3041,7 @@ func (m *awsRestjson1_deserializeOpGetMembership) HandleDeserialize(ctx context. return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetMembershipOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetCollaborationConfiguredAudienceModelAssociationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3014,7 +3054,7 @@ func (m *awsRestjson1_deserializeOpGetMembership) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetMembership(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetCollaborationConfiguredAudienceModelAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3080,7 +3120,7 @@ func awsRestjson1_deserializeOpErrorGetMembership(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentGetMembershipOutput(v **GetMembershipOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetCollaborationConfiguredAudienceModelAssociationOutput(v **GetCollaborationConfiguredAudienceModelAssociationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3093,17 +3133,17 @@ func awsRestjson1_deserializeOpDocumentGetMembershipOutput(v **GetMembershipOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetMembershipOutput + var sv *GetCollaborationConfiguredAudienceModelAssociationOutput if *v == nil { - sv = &GetMembershipOutput{} + sv = &GetCollaborationConfiguredAudienceModelAssociationOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "membership": - if err := awsRestjson1_deserializeDocumentMembership(&sv.Membership, value); err != nil { + case "collaborationConfiguredAudienceModelAssociation": + if err := awsRestjson1_deserializeDocumentCollaborationConfiguredAudienceModelAssociation(&sv.CollaborationConfiguredAudienceModelAssociation, value); err != nil { return err } @@ -3116,14 +3156,14 @@ func awsRestjson1_deserializeOpDocumentGetMembershipOutput(v **GetMembershipOutp return nil } -type awsRestjson1_deserializeOpGetProtectedQuery struct { +type awsRestjson1_deserializeOpGetCollaborationPrivacyBudgetTemplate struct { } -func (*awsRestjson1_deserializeOpGetProtectedQuery) ID() string { +func (*awsRestjson1_deserializeOpGetCollaborationPrivacyBudgetTemplate) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetProtectedQuery) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetCollaborationPrivacyBudgetTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3137,9 +3177,9 @@ func (m *awsRestjson1_deserializeOpGetProtectedQuery) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetProtectedQuery(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetCollaborationPrivacyBudgetTemplate(response, &metadata) } - output := &GetProtectedQueryOutput{} + output := &GetCollaborationPrivacyBudgetTemplateOutput{} out.Result = output var buff [1024]byte @@ -3160,7 +3200,7 @@ func (m *awsRestjson1_deserializeOpGetProtectedQuery) HandleDeserialize(ctx cont return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetProtectedQueryOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetCollaborationPrivacyBudgetTemplateOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3173,7 +3213,7 @@ func (m *awsRestjson1_deserializeOpGetProtectedQuery) HandleDeserialize(ctx cont return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetProtectedQuery(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetCollaborationPrivacyBudgetTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3239,7 +3279,7 @@ func awsRestjson1_deserializeOpErrorGetProtectedQuery(response *smithyhttp.Respo } } -func awsRestjson1_deserializeOpDocumentGetProtectedQueryOutput(v **GetProtectedQueryOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetCollaborationPrivacyBudgetTemplateOutput(v **GetCollaborationPrivacyBudgetTemplateOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3252,17 +3292,17 @@ func awsRestjson1_deserializeOpDocumentGetProtectedQueryOutput(v **GetProtectedQ return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetProtectedQueryOutput + var sv *GetCollaborationPrivacyBudgetTemplateOutput if *v == nil { - sv = &GetProtectedQueryOutput{} + sv = &GetCollaborationPrivacyBudgetTemplateOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "protectedQuery": - if err := awsRestjson1_deserializeDocumentProtectedQuery(&sv.ProtectedQuery, value); err != nil { + case "collaborationPrivacyBudgetTemplate": + if err := awsRestjson1_deserializeDocumentCollaborationPrivacyBudgetTemplate(&sv.CollaborationPrivacyBudgetTemplate, value); err != nil { return err } @@ -3275,14 +3315,14 @@ func awsRestjson1_deserializeOpDocumentGetProtectedQueryOutput(v **GetProtectedQ return nil } -type awsRestjson1_deserializeOpGetSchema struct { +type awsRestjson1_deserializeOpGetConfiguredAudienceModelAssociation struct { } -func (*awsRestjson1_deserializeOpGetSchema) ID() string { +func (*awsRestjson1_deserializeOpGetConfiguredAudienceModelAssociation) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetSchema) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetConfiguredAudienceModelAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3296,9 +3336,9 @@ func (m *awsRestjson1_deserializeOpGetSchema) HandleDeserialize(ctx context.Cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetSchema(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetConfiguredAudienceModelAssociation(response, &metadata) } - output := &GetSchemaOutput{} + output := &GetConfiguredAudienceModelAssociationOutput{} out.Result = output var buff [1024]byte @@ -3319,7 +3359,7 @@ func (m *awsRestjson1_deserializeOpGetSchema) HandleDeserialize(ctx context.Cont return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetSchemaOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetConfiguredAudienceModelAssociationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3332,7 +3372,7 @@ func (m *awsRestjson1_deserializeOpGetSchema) HandleDeserialize(ctx context.Cont return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetSchema(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetConfiguredAudienceModelAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3398,7 +3438,7 @@ func awsRestjson1_deserializeOpErrorGetSchema(response *smithyhttp.Response, met } } -func awsRestjson1_deserializeOpDocumentGetSchemaOutput(v **GetSchemaOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetConfiguredAudienceModelAssociationOutput(v **GetConfiguredAudienceModelAssociationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3411,17 +3451,17 @@ func awsRestjson1_deserializeOpDocumentGetSchemaOutput(v **GetSchemaOutput, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetSchemaOutput + var sv *GetConfiguredAudienceModelAssociationOutput if *v == nil { - sv = &GetSchemaOutput{} + sv = &GetConfiguredAudienceModelAssociationOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "schema": - if err := awsRestjson1_deserializeDocumentSchema(&sv.Schema, value); err != nil { + case "configuredAudienceModelAssociation": + if err := awsRestjson1_deserializeDocumentConfiguredAudienceModelAssociation(&sv.ConfiguredAudienceModelAssociation, value); err != nil { return err } @@ -3434,14 +3474,14 @@ func awsRestjson1_deserializeOpDocumentGetSchemaOutput(v **GetSchemaOutput, valu return nil } -type awsRestjson1_deserializeOpGetSchemaAnalysisRule struct { +type awsRestjson1_deserializeOpGetConfiguredTable struct { } -func (*awsRestjson1_deserializeOpGetSchemaAnalysisRule) ID() string { +func (*awsRestjson1_deserializeOpGetConfiguredTable) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetSchemaAnalysisRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetConfiguredTable) HandleDeserialize(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,9 +3495,9 @@ func (m *awsRestjson1_deserializeOpGetSchemaAnalysisRule) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetSchemaAnalysisRule(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetConfiguredTable(response, &metadata) } - output := &GetSchemaAnalysisRuleOutput{} + output := &GetConfiguredTableOutput{} out.Result = output var buff [1024]byte @@ -3478,7 +3518,7 @@ func (m *awsRestjson1_deserializeOpGetSchemaAnalysisRule) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetSchemaAnalysisRuleOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetConfiguredTableOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3491,7 +3531,7 @@ func (m *awsRestjson1_deserializeOpGetSchemaAnalysisRule) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetSchemaAnalysisRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetConfiguredTable(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3557,7 +3597,7 @@ func awsRestjson1_deserializeOpErrorGetSchemaAnalysisRule(response *smithyhttp.R } } -func awsRestjson1_deserializeOpDocumentGetSchemaAnalysisRuleOutput(v **GetSchemaAnalysisRuleOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetConfiguredTableOutput(v **GetConfiguredTableOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3570,17 +3610,17 @@ func awsRestjson1_deserializeOpDocumentGetSchemaAnalysisRuleOutput(v **GetSchema return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetSchemaAnalysisRuleOutput + var sv *GetConfiguredTableOutput if *v == nil { - sv = &GetSchemaAnalysisRuleOutput{} + sv = &GetConfiguredTableOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "analysisRule": - if err := awsRestjson1_deserializeDocumentAnalysisRule(&sv.AnalysisRule, value); err != nil { + case "configuredTable": + if err := awsRestjson1_deserializeDocumentConfiguredTable(&sv.ConfiguredTable, value); err != nil { return err } @@ -3593,14 +3633,14 @@ func awsRestjson1_deserializeOpDocumentGetSchemaAnalysisRuleOutput(v **GetSchema return nil } -type awsRestjson1_deserializeOpListAnalysisTemplates struct { +type awsRestjson1_deserializeOpGetConfiguredTableAnalysisRule struct { } -func (*awsRestjson1_deserializeOpListAnalysisTemplates) ID() string { +func (*awsRestjson1_deserializeOpGetConfiguredTableAnalysisRule) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListAnalysisTemplates) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetConfiguredTableAnalysisRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3614,9 +3654,9 @@ func (m *awsRestjson1_deserializeOpListAnalysisTemplates) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListAnalysisTemplates(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetConfiguredTableAnalysisRule(response, &metadata) } - output := &ListAnalysisTemplatesOutput{} + output := &GetConfiguredTableAnalysisRuleOutput{} out.Result = output var buff [1024]byte @@ -3637,7 +3677,7 @@ func (m *awsRestjson1_deserializeOpListAnalysisTemplates) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListAnalysisTemplatesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetConfiguredTableAnalysisRuleOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3650,7 +3690,7 @@ func (m *awsRestjson1_deserializeOpListAnalysisTemplates) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorListAnalysisTemplates(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetConfiguredTableAnalysisRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3716,7 +3756,7 @@ func awsRestjson1_deserializeOpErrorListAnalysisTemplates(response *smithyhttp.R } } -func awsRestjson1_deserializeOpDocumentListAnalysisTemplatesOutput(v **ListAnalysisTemplatesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetConfiguredTableAnalysisRuleOutput(v **GetConfiguredTableAnalysisRuleOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3729,29 +3769,20 @@ func awsRestjson1_deserializeOpDocumentListAnalysisTemplatesOutput(v **ListAnaly return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListAnalysisTemplatesOutput + var sv *GetConfiguredTableAnalysisRuleOutput if *v == nil { - sv = &ListAnalysisTemplatesOutput{} + sv = &GetConfiguredTableAnalysisRuleOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "analysisTemplateSummaries": - if err := awsRestjson1_deserializeDocumentAnalysisTemplateSummaryList(&sv.AnalysisTemplateSummaries, value); err != nil { + case "analysisRule": + if err := awsRestjson1_deserializeDocumentConfiguredTableAnalysisRule(&sv.AnalysisRule, 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 @@ -3761,14 +3792,14 @@ func awsRestjson1_deserializeOpDocumentListAnalysisTemplatesOutput(v **ListAnaly return nil } -type awsRestjson1_deserializeOpListCollaborationAnalysisTemplates struct { +type awsRestjson1_deserializeOpGetConfiguredTableAssociation struct { } -func (*awsRestjson1_deserializeOpListCollaborationAnalysisTemplates) ID() string { +func (*awsRestjson1_deserializeOpGetConfiguredTableAssociation) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListCollaborationAnalysisTemplates) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetConfiguredTableAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3782,9 +3813,9 @@ func (m *awsRestjson1_deserializeOpListCollaborationAnalysisTemplates) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListCollaborationAnalysisTemplates(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetConfiguredTableAssociation(response, &metadata) } - output := &ListCollaborationAnalysisTemplatesOutput{} + output := &GetConfiguredTableAssociationOutput{} out.Result = output var buff [1024]byte @@ -3805,7 +3836,7 @@ func (m *awsRestjson1_deserializeOpListCollaborationAnalysisTemplates) HandleDes return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListCollaborationAnalysisTemplatesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetConfiguredTableAssociationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3818,7 +3849,7 @@ func (m *awsRestjson1_deserializeOpListCollaborationAnalysisTemplates) HandleDes return out, metadata, err } -func awsRestjson1_deserializeOpErrorListCollaborationAnalysisTemplates(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetConfiguredTableAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3884,7 +3915,7 @@ func awsRestjson1_deserializeOpErrorListCollaborationAnalysisTemplates(response } } -func awsRestjson1_deserializeOpDocumentListCollaborationAnalysisTemplatesOutput(v **ListCollaborationAnalysisTemplatesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetConfiguredTableAssociationOutput(v **GetConfiguredTableAssociationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3897,29 +3928,20 @@ func awsRestjson1_deserializeOpDocumentListCollaborationAnalysisTemplatesOutput( return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListCollaborationAnalysisTemplatesOutput + var sv *GetConfiguredTableAssociationOutput if *v == nil { - sv = &ListCollaborationAnalysisTemplatesOutput{} + sv = &GetConfiguredTableAssociationOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "collaborationAnalysisTemplateSummaries": - if err := awsRestjson1_deserializeDocumentCollaborationAnalysisTemplateSummaryList(&sv.CollaborationAnalysisTemplateSummaries, value); err != nil { + case "configuredTableAssociation": + if err := awsRestjson1_deserializeDocumentConfiguredTableAssociation(&sv.ConfiguredTableAssociation, 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 @@ -3929,14 +3951,14 @@ func awsRestjson1_deserializeOpDocumentListCollaborationAnalysisTemplatesOutput( return nil } -type awsRestjson1_deserializeOpListCollaborations struct { +type awsRestjson1_deserializeOpGetMembership struct { } -func (*awsRestjson1_deserializeOpListCollaborations) ID() string { +func (*awsRestjson1_deserializeOpGetMembership) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListCollaborations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetMembership) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3950,9 +3972,9 @@ func (m *awsRestjson1_deserializeOpListCollaborations) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListCollaborations(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetMembership(response, &metadata) } - output := &ListCollaborationsOutput{} + output := &GetMembershipOutput{} out.Result = output var buff [1024]byte @@ -3973,7 +3995,7 @@ func (m *awsRestjson1_deserializeOpListCollaborations) HandleDeserialize(ctx con return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListCollaborationsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetMembershipOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3986,7 +4008,7 @@ func (m *awsRestjson1_deserializeOpListCollaborations) HandleDeserialize(ctx con return out, metadata, err } -func awsRestjson1_deserializeOpErrorListCollaborations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetMembership(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4033,6 +4055,9 @@ func awsRestjson1_deserializeOpErrorListCollaborations(response *smithyhttp.Resp 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) @@ -4049,7 +4074,7 @@ func awsRestjson1_deserializeOpErrorListCollaborations(response *smithyhttp.Resp } } -func awsRestjson1_deserializeOpDocumentListCollaborationsOutput(v **ListCollaborationsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetMembershipOutput(v **GetMembershipOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4062,29 +4087,20 @@ func awsRestjson1_deserializeOpDocumentListCollaborationsOutput(v **ListCollabor return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListCollaborationsOutput + var sv *GetMembershipOutput if *v == nil { - sv = &ListCollaborationsOutput{} + sv = &GetMembershipOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "collaborationList": - if err := awsRestjson1_deserializeDocumentCollaborationSummaryList(&sv.CollaborationList, value); err != nil { + case "membership": + if err := awsRestjson1_deserializeDocumentMembership(&sv.Membership, 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 @@ -4094,14 +4110,14 @@ func awsRestjson1_deserializeOpDocumentListCollaborationsOutput(v **ListCollabor return nil } -type awsRestjson1_deserializeOpListConfiguredTableAssociations struct { +type awsRestjson1_deserializeOpGetPrivacyBudgetTemplate struct { } -func (*awsRestjson1_deserializeOpListConfiguredTableAssociations) ID() string { +func (*awsRestjson1_deserializeOpGetPrivacyBudgetTemplate) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListConfiguredTableAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetPrivacyBudgetTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4115,9 +4131,9 @@ func (m *awsRestjson1_deserializeOpListConfiguredTableAssociations) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListConfiguredTableAssociations(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetPrivacyBudgetTemplate(response, &metadata) } - output := &ListConfiguredTableAssociationsOutput{} + output := &GetPrivacyBudgetTemplateOutput{} out.Result = output var buff [1024]byte @@ -4138,7 +4154,7 @@ func (m *awsRestjson1_deserializeOpListConfiguredTableAssociations) HandleDeseri return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListConfiguredTableAssociationsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetPrivacyBudgetTemplateOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4151,7 +4167,7 @@ func (m *awsRestjson1_deserializeOpListConfiguredTableAssociations) HandleDeseri return out, metadata, err } -func awsRestjson1_deserializeOpErrorListConfiguredTableAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetPrivacyBudgetTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4217,7 +4233,7 @@ func awsRestjson1_deserializeOpErrorListConfiguredTableAssociations(response *sm } } -func awsRestjson1_deserializeOpDocumentListConfiguredTableAssociationsOutput(v **ListConfiguredTableAssociationsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetPrivacyBudgetTemplateOutput(v **GetPrivacyBudgetTemplateOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4230,29 +4246,20 @@ func awsRestjson1_deserializeOpDocumentListConfiguredTableAssociationsOutput(v * return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListConfiguredTableAssociationsOutput + var sv *GetPrivacyBudgetTemplateOutput if *v == nil { - sv = &ListConfiguredTableAssociationsOutput{} + sv = &GetPrivacyBudgetTemplateOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "configuredTableAssociationSummaries": - if err := awsRestjson1_deserializeDocumentConfiguredTableAssociationSummaryList(&sv.ConfiguredTableAssociationSummaries, value); err != nil { + case "privacyBudgetTemplate": + if err := awsRestjson1_deserializeDocumentPrivacyBudgetTemplate(&sv.PrivacyBudgetTemplate, 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 @@ -4262,14 +4269,14 @@ func awsRestjson1_deserializeOpDocumentListConfiguredTableAssociationsOutput(v * return nil } -type awsRestjson1_deserializeOpListConfiguredTables struct { +type awsRestjson1_deserializeOpGetProtectedQuery struct { } -func (*awsRestjson1_deserializeOpListConfiguredTables) ID() string { +func (*awsRestjson1_deserializeOpGetProtectedQuery) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListConfiguredTables) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetProtectedQuery) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4283,9 +4290,9 @@ func (m *awsRestjson1_deserializeOpListConfiguredTables) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListConfiguredTables(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetProtectedQuery(response, &metadata) } - output := &ListConfiguredTablesOutput{} + output := &GetProtectedQueryOutput{} out.Result = output var buff [1024]byte @@ -4306,7 +4313,7 @@ func (m *awsRestjson1_deserializeOpListConfiguredTables) HandleDeserialize(ctx c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListConfiguredTablesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetProtectedQueryOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4319,7 +4326,7 @@ func (m *awsRestjson1_deserializeOpListConfiguredTables) HandleDeserialize(ctx c return out, metadata, err } -func awsRestjson1_deserializeOpErrorListConfiguredTables(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetProtectedQuery(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4366,6 +4373,9 @@ func awsRestjson1_deserializeOpErrorListConfiguredTables(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("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -4382,7 +4392,7 @@ func awsRestjson1_deserializeOpErrorListConfiguredTables(response *smithyhttp.Re } } -func awsRestjson1_deserializeOpDocumentListConfiguredTablesOutput(v **ListConfiguredTablesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetProtectedQueryOutput(v **GetProtectedQueryOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4395,29 +4405,20 @@ func awsRestjson1_deserializeOpDocumentListConfiguredTablesOutput(v **ListConfig return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListConfiguredTablesOutput + var sv *GetProtectedQueryOutput if *v == nil { - sv = &ListConfiguredTablesOutput{} + sv = &GetProtectedQueryOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "configuredTableSummaries": - if err := awsRestjson1_deserializeDocumentConfiguredTableSummaryList(&sv.ConfiguredTableSummaries, value); err != nil { + case "protectedQuery": + if err := awsRestjson1_deserializeDocumentProtectedQuery(&sv.ProtectedQuery, 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 @@ -4427,14 +4428,14 @@ func awsRestjson1_deserializeOpDocumentListConfiguredTablesOutput(v **ListConfig return nil } -type awsRestjson1_deserializeOpListMembers struct { +type awsRestjson1_deserializeOpGetSchema struct { } -func (*awsRestjson1_deserializeOpListMembers) ID() string { +func (*awsRestjson1_deserializeOpGetSchema) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetSchema) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4448,9 +4449,9 @@ func (m *awsRestjson1_deserializeOpListMembers) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListMembers(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetSchema(response, &metadata) } - output := &ListMembersOutput{} + output := &GetSchemaOutput{} out.Result = output var buff [1024]byte @@ -4471,7 +4472,7 @@ func (m *awsRestjson1_deserializeOpListMembers) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListMembersOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetSchemaOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4484,7 +4485,7 @@ func (m *awsRestjson1_deserializeOpListMembers) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsRestjson1_deserializeOpErrorListMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetSchema(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4550,7 +4551,7 @@ func awsRestjson1_deserializeOpErrorListMembers(response *smithyhttp.Response, m } } -func awsRestjson1_deserializeOpDocumentListMembersOutput(v **ListMembersOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetSchemaOutput(v **GetSchemaOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4563,29 +4564,20 @@ func awsRestjson1_deserializeOpDocumentListMembersOutput(v **ListMembersOutput, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListMembersOutput + var sv *GetSchemaOutput if *v == nil { - sv = &ListMembersOutput{} + sv = &GetSchemaOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "memberSummaries": - if err := awsRestjson1_deserializeDocumentMemberSummaryList(&sv.MemberSummaries, value); err != nil { + case "schema": + if err := awsRestjson1_deserializeDocumentSchema(&sv.Schema, 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 @@ -4595,14 +4587,14 @@ func awsRestjson1_deserializeOpDocumentListMembersOutput(v **ListMembersOutput, return nil } -type awsRestjson1_deserializeOpListMemberships struct { +type awsRestjson1_deserializeOpGetSchemaAnalysisRule struct { } -func (*awsRestjson1_deserializeOpListMemberships) ID() string { +func (*awsRestjson1_deserializeOpGetSchemaAnalysisRule) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListMemberships) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetSchemaAnalysisRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4616,9 +4608,9 @@ func (m *awsRestjson1_deserializeOpListMemberships) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListMemberships(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetSchemaAnalysisRule(response, &metadata) } - output := &ListMembershipsOutput{} + output := &GetSchemaAnalysisRuleOutput{} out.Result = output var buff [1024]byte @@ -4639,7 +4631,7 @@ func (m *awsRestjson1_deserializeOpListMemberships) HandleDeserialize(ctx contex return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListMembershipsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetSchemaAnalysisRuleOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4652,7 +4644,7 @@ func (m *awsRestjson1_deserializeOpListMemberships) HandleDeserialize(ctx contex return out, metadata, err } -func awsRestjson1_deserializeOpErrorListMemberships(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetSchemaAnalysisRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4699,6 +4691,9 @@ func awsRestjson1_deserializeOpErrorListMemberships(response *smithyhttp.Respons 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) @@ -4715,7 +4710,7 @@ func awsRestjson1_deserializeOpErrorListMemberships(response *smithyhttp.Respons } } -func awsRestjson1_deserializeOpDocumentListMembershipsOutput(v **ListMembershipsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetSchemaAnalysisRuleOutput(v **GetSchemaAnalysisRuleOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4728,29 +4723,20 @@ func awsRestjson1_deserializeOpDocumentListMembershipsOutput(v **ListMemberships return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListMembershipsOutput + var sv *GetSchemaAnalysisRuleOutput if *v == nil { - sv = &ListMembershipsOutput{} + sv = &GetSchemaAnalysisRuleOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "membershipSummaries": - if err := awsRestjson1_deserializeDocumentMembershipSummaryList(&sv.MembershipSummaries, value); err != nil { + case "analysisRule": + if err := awsRestjson1_deserializeDocumentAnalysisRule(&sv.AnalysisRule, 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 @@ -4760,14 +4746,14 @@ func awsRestjson1_deserializeOpDocumentListMembershipsOutput(v **ListMemberships return nil } -type awsRestjson1_deserializeOpListProtectedQueries struct { +type awsRestjson1_deserializeOpListAnalysisTemplates struct { } -func (*awsRestjson1_deserializeOpListProtectedQueries) ID() string { +func (*awsRestjson1_deserializeOpListAnalysisTemplates) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListProtectedQueries) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListAnalysisTemplates) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4781,9 +4767,9 @@ func (m *awsRestjson1_deserializeOpListProtectedQueries) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListProtectedQueries(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListAnalysisTemplates(response, &metadata) } - output := &ListProtectedQueriesOutput{} + output := &ListAnalysisTemplatesOutput{} out.Result = output var buff [1024]byte @@ -4804,7 +4790,7 @@ func (m *awsRestjson1_deserializeOpListProtectedQueries) HandleDeserialize(ctx c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListProtectedQueriesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListAnalysisTemplatesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4817,7 +4803,7 @@ func (m *awsRestjson1_deserializeOpListProtectedQueries) HandleDeserialize(ctx c return out, metadata, err } -func awsRestjson1_deserializeOpErrorListProtectedQueries(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListAnalysisTemplates(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4883,7 +4869,7 @@ func awsRestjson1_deserializeOpErrorListProtectedQueries(response *smithyhttp.Re } } -func awsRestjson1_deserializeOpDocumentListProtectedQueriesOutput(v **ListProtectedQueriesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListAnalysisTemplatesOutput(v **ListAnalysisTemplatesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4896,15 +4882,20 @@ func awsRestjson1_deserializeOpDocumentListProtectedQueriesOutput(v **ListProtec return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListProtectedQueriesOutput + var sv *ListAnalysisTemplatesOutput if *v == nil { - sv = &ListProtectedQueriesOutput{} + sv = &ListAnalysisTemplatesOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "analysisTemplateSummaries": + if err := awsRestjson1_deserializeDocumentAnalysisTemplateSummaryList(&sv.AnalysisTemplateSummaries, value); err != nil { + return err + } + case "nextToken": if value != nil { jtv, ok := value.(string) @@ -4914,11 +4905,6 @@ func awsRestjson1_deserializeOpDocumentListProtectedQueriesOutput(v **ListProtec sv.NextToken = ptr.String(jtv) } - case "protectedQueries": - if err := awsRestjson1_deserializeDocumentProtectedQuerySummaryList(&sv.ProtectedQueries, value); err != nil { - return err - } - default: _, _ = key, value @@ -4928,14 +4914,14 @@ func awsRestjson1_deserializeOpDocumentListProtectedQueriesOutput(v **ListProtec return nil } -type awsRestjson1_deserializeOpListSchemas struct { +type awsRestjson1_deserializeOpListCollaborationAnalysisTemplates struct { } -func (*awsRestjson1_deserializeOpListSchemas) ID() string { +func (*awsRestjson1_deserializeOpListCollaborationAnalysisTemplates) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListSchemas) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListCollaborationAnalysisTemplates) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4949,9 +4935,9 @@ func (m *awsRestjson1_deserializeOpListSchemas) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListSchemas(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListCollaborationAnalysisTemplates(response, &metadata) } - output := &ListSchemasOutput{} + output := &ListCollaborationAnalysisTemplatesOutput{} out.Result = output var buff [1024]byte @@ -4972,7 +4958,7 @@ func (m *awsRestjson1_deserializeOpListSchemas) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListSchemasOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListCollaborationAnalysisTemplatesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4985,7 +4971,7 @@ func (m *awsRestjson1_deserializeOpListSchemas) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsRestjson1_deserializeOpErrorListSchemas(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListCollaborationAnalysisTemplates(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5051,7 +5037,7 @@ func awsRestjson1_deserializeOpErrorListSchemas(response *smithyhttp.Response, m } } -func awsRestjson1_deserializeOpDocumentListSchemasOutput(v **ListSchemasOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListCollaborationAnalysisTemplatesOutput(v **ListCollaborationAnalysisTemplatesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5064,15 +5050,20 @@ func awsRestjson1_deserializeOpDocumentListSchemasOutput(v **ListSchemasOutput, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListSchemasOutput + var sv *ListCollaborationAnalysisTemplatesOutput if *v == nil { - sv = &ListSchemasOutput{} + sv = &ListCollaborationAnalysisTemplatesOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "collaborationAnalysisTemplateSummaries": + if err := awsRestjson1_deserializeDocumentCollaborationAnalysisTemplateSummaryList(&sv.CollaborationAnalysisTemplateSummaries, value); err != nil { + return err + } + case "nextToken": if value != nil { jtv, ok := value.(string) @@ -5082,11 +5073,6 @@ func awsRestjson1_deserializeOpDocumentListSchemasOutput(v **ListSchemasOutput, sv.NextToken = ptr.String(jtv) } - case "schemaSummaries": - if err := awsRestjson1_deserializeDocumentSchemaSummaryList(&sv.SchemaSummaries, value); err != nil { - return err - } - default: _, _ = key, value @@ -5096,14 +5082,14 @@ func awsRestjson1_deserializeOpDocumentListSchemasOutput(v **ListSchemasOutput, return nil } -type awsRestjson1_deserializeOpListTagsForResource struct { +type awsRestjson1_deserializeOpListCollaborationConfiguredAudienceModelAssociations struct { } -func (*awsRestjson1_deserializeOpListTagsForResource) ID() string { +func (*awsRestjson1_deserializeOpListCollaborationConfiguredAudienceModelAssociations) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListCollaborationConfiguredAudienceModelAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5117,9 +5103,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_deserializeOpErrorListCollaborationConfiguredAudienceModelAssociations(response, &metadata) } - output := &ListTagsForResourceOutput{} + output := &ListCollaborationConfiguredAudienceModelAssociationsOutput{} out.Result = output var buff [1024]byte @@ -5140,7 +5126,7 @@ func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListCollaborationConfiguredAudienceModelAssociationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5153,7 +5139,7 @@ func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx co return out, metadata, err } -func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListCollaborationConfiguredAudienceModelAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5194,9 +5180,18 @@ func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Res } 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) @@ -5210,7 +5205,7 @@ func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Res } } -func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListCollaborationConfiguredAudienceModelAssociationsOutput(v **ListCollaborationConfiguredAudienceModelAssociationsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5223,20 +5218,29 @@ func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListTagsForResourceOutput + var sv *ListCollaborationConfiguredAudienceModelAssociationsOutput if *v == nil { - sv = &ListTagsForResourceOutput{} + sv = &ListCollaborationConfiguredAudienceModelAssociationsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "tags": - if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + case "collaborationConfiguredAudienceModelAssociationSummaries": + if err := awsRestjson1_deserializeDocumentCollaborationConfiguredAudienceModelAssociationSummaryList(&sv.CollaborationConfiguredAudienceModelAssociationSummaries, 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 @@ -5246,14 +5250,14 @@ func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor return nil } -type awsRestjson1_deserializeOpStartProtectedQuery struct { +type awsRestjson1_deserializeOpListCollaborationPrivacyBudgets struct { } -func (*awsRestjson1_deserializeOpStartProtectedQuery) ID() string { +func (*awsRestjson1_deserializeOpListCollaborationPrivacyBudgets) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpStartProtectedQuery) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListCollaborationPrivacyBudgets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5267,9 +5271,9 @@ func (m *awsRestjson1_deserializeOpStartProtectedQuery) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorStartProtectedQuery(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListCollaborationPrivacyBudgets(response, &metadata) } - output := &StartProtectedQueryOutput{} + output := &ListCollaborationPrivacyBudgetsOutput{} out.Result = output var buff [1024]byte @@ -5290,7 +5294,7 @@ func (m *awsRestjson1_deserializeOpStartProtectedQuery) HandleDeserialize(ctx co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentStartProtectedQueryOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListCollaborationPrivacyBudgetsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5303,7 +5307,7 @@ func (m *awsRestjson1_deserializeOpStartProtectedQuery) HandleDeserialize(ctx co return out, metadata, err } -func awsRestjson1_deserializeOpErrorStartProtectedQuery(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListCollaborationPrivacyBudgets(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5353,9 +5357,6 @@ func awsRestjson1_deserializeOpErrorStartProtectedQuery(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) @@ -5372,7 +5373,7 @@ func awsRestjson1_deserializeOpErrorStartProtectedQuery(response *smithyhttp.Res } } -func awsRestjson1_deserializeOpDocumentStartProtectedQueryOutput(v **StartProtectedQueryOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListCollaborationPrivacyBudgetsOutput(v **ListCollaborationPrivacyBudgetsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5385,20 +5386,29 @@ func awsRestjson1_deserializeOpDocumentStartProtectedQueryOutput(v **StartProtec return fmt.Errorf("unexpected JSON type %v", value) } - var sv *StartProtectedQueryOutput + var sv *ListCollaborationPrivacyBudgetsOutput if *v == nil { - sv = &StartProtectedQueryOutput{} + sv = &ListCollaborationPrivacyBudgetsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "protectedQuery": - if err := awsRestjson1_deserializeDocumentProtectedQuery(&sv.ProtectedQuery, value); err != nil { + case "collaborationPrivacyBudgetSummaries": + if err := awsRestjson1_deserializeDocumentCollaborationPrivacyBudgetSummaryList(&sv.CollaborationPrivacyBudgetSummaries, 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 @@ -5408,14 +5418,14 @@ func awsRestjson1_deserializeOpDocumentStartProtectedQueryOutput(v **StartProtec return nil } -type awsRestjson1_deserializeOpTagResource struct { +type awsRestjson1_deserializeOpListCollaborationPrivacyBudgetTemplates struct { } -func (*awsRestjson1_deserializeOpTagResource) ID() string { +func (*awsRestjson1_deserializeOpListCollaborationPrivacyBudgetTemplates) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListCollaborationPrivacyBudgetTemplates) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5429,101 +5439,43 @@ 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_deserializeOpErrorListCollaborationPrivacyBudgetTemplates(response, &metadata) } - output := &TagResourceOutput{} + output := &ListCollaborationPrivacyBudgetTemplatesOutput{} out.Result = output - return out, metadata, err -} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) -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(response.Body, ringBuffer) - body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - jsonCode, message, err := restjson.GetErrorInfo(decoder) - if err != nil { + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(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("ValidationException", errorCode): - return awsRestjson1_deserializeErrorValidationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsRestjson1_deserializeOpUntagResource struct { -} - -func (*awsRestjson1_deserializeOpUntagResource) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { return out, metadata, err } - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUntagResource(response, &metadata) + err = awsRestjson1_deserializeOpDocumentListCollaborationPrivacyBudgetTemplatesOutput(&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(), + } } - output := &UntagResourceOutput{} - out.Result = output return out, metadata, err } -func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListCollaborationPrivacyBudgetTemplates(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5564,9 +5516,18 @@ func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, } 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) @@ -5580,14 +5541,59 @@ func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, } } -type awsRestjson1_deserializeOpUpdateAnalysisTemplate struct { +func awsRestjson1_deserializeOpDocumentListCollaborationPrivacyBudgetTemplatesOutput(v **ListCollaborationPrivacyBudgetTemplatesOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListCollaborationPrivacyBudgetTemplatesOutput + if *v == nil { + sv = &ListCollaborationPrivacyBudgetTemplatesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "collaborationPrivacyBudgetTemplateSummaries": + if err := awsRestjson1_deserializeDocumentCollaborationPrivacyBudgetTemplateSummaryList(&sv.CollaborationPrivacyBudgetTemplateSummaries, value); err != nil { + return err + } + + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil } -func (*awsRestjson1_deserializeOpUpdateAnalysisTemplate) ID() string { +type awsRestjson1_deserializeOpListCollaborations struct { +} + +func (*awsRestjson1_deserializeOpListCollaborations) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateAnalysisTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListCollaborations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5601,9 +5607,9 @@ func (m *awsRestjson1_deserializeOpUpdateAnalysisTemplate) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateAnalysisTemplate(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListCollaborations(response, &metadata) } - output := &UpdateAnalysisTemplateOutput{} + output := &ListCollaborationsOutput{} out.Result = output var buff [1024]byte @@ -5624,7 +5630,7 @@ func (m *awsRestjson1_deserializeOpUpdateAnalysisTemplate) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateAnalysisTemplateOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListCollaborationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5637,7 +5643,7 @@ func (m *awsRestjson1_deserializeOpUpdateAnalysisTemplate) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateAnalysisTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListCollaborations(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5684,9 +5690,6 @@ func awsRestjson1_deserializeOpErrorUpdateAnalysisTemplate(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("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -5703,7 +5706,7 @@ func awsRestjson1_deserializeOpErrorUpdateAnalysisTemplate(response *smithyhttp. } } -func awsRestjson1_deserializeOpDocumentUpdateAnalysisTemplateOutput(v **UpdateAnalysisTemplateOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListCollaborationsOutput(v **ListCollaborationsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5716,20 +5719,29 @@ func awsRestjson1_deserializeOpDocumentUpdateAnalysisTemplateOutput(v **UpdateAn return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateAnalysisTemplateOutput + var sv *ListCollaborationsOutput if *v == nil { - sv = &UpdateAnalysisTemplateOutput{} + sv = &ListCollaborationsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "analysisTemplate": - if err := awsRestjson1_deserializeDocumentAnalysisTemplate(&sv.AnalysisTemplate, value); err != nil { + case "collaborationList": + if err := awsRestjson1_deserializeDocumentCollaborationSummaryList(&sv.CollaborationList, 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 @@ -5739,14 +5751,14 @@ func awsRestjson1_deserializeOpDocumentUpdateAnalysisTemplateOutput(v **UpdateAn return nil } -type awsRestjson1_deserializeOpUpdateCollaboration struct { +type awsRestjson1_deserializeOpListConfiguredAudienceModelAssociations struct { } -func (*awsRestjson1_deserializeOpUpdateCollaboration) ID() string { +func (*awsRestjson1_deserializeOpListConfiguredAudienceModelAssociations) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateCollaboration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListConfiguredAudienceModelAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5760,9 +5772,9 @@ func (m *awsRestjson1_deserializeOpUpdateCollaboration) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateCollaboration(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListConfiguredAudienceModelAssociations(response, &metadata) } - output := &UpdateCollaborationOutput{} + output := &ListConfiguredAudienceModelAssociationsOutput{} out.Result = output var buff [1024]byte @@ -5783,7 +5795,7 @@ func (m *awsRestjson1_deserializeOpUpdateCollaboration) HandleDeserialize(ctx co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateCollaborationOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListConfiguredAudienceModelAssociationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5796,7 +5808,7 @@ func (m *awsRestjson1_deserializeOpUpdateCollaboration) HandleDeserialize(ctx co return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateCollaboration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListConfiguredAudienceModelAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5843,6 +5855,9 @@ func awsRestjson1_deserializeOpErrorUpdateCollaboration(response *smithyhttp.Res 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) @@ -5859,7 +5874,7 @@ func awsRestjson1_deserializeOpErrorUpdateCollaboration(response *smithyhttp.Res } } -func awsRestjson1_deserializeOpDocumentUpdateCollaborationOutput(v **UpdateCollaborationOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListConfiguredAudienceModelAssociationsOutput(v **ListConfiguredAudienceModelAssociationsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5872,20 +5887,29 @@ func awsRestjson1_deserializeOpDocumentUpdateCollaborationOutput(v **UpdateColla return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateCollaborationOutput + var sv *ListConfiguredAudienceModelAssociationsOutput if *v == nil { - sv = &UpdateCollaborationOutput{} + sv = &ListConfiguredAudienceModelAssociationsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "collaboration": - if err := awsRestjson1_deserializeDocumentCollaboration(&sv.Collaboration, value); err != nil { + case "configuredAudienceModelAssociationSummaries": + if err := awsRestjson1_deserializeDocumentConfiguredAudienceModelAssociationSummaryList(&sv.ConfiguredAudienceModelAssociationSummaries, 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 @@ -5895,14 +5919,14 @@ func awsRestjson1_deserializeOpDocumentUpdateCollaborationOutput(v **UpdateColla return nil } -type awsRestjson1_deserializeOpUpdateConfiguredTable struct { +type awsRestjson1_deserializeOpListConfiguredTableAssociations struct { } -func (*awsRestjson1_deserializeOpUpdateConfiguredTable) ID() string { +func (*awsRestjson1_deserializeOpListConfiguredTableAssociations) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateConfiguredTable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListConfiguredTableAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5916,9 +5940,9 @@ func (m *awsRestjson1_deserializeOpUpdateConfiguredTable) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateConfiguredTable(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListConfiguredTableAssociations(response, &metadata) } - output := &UpdateConfiguredTableOutput{} + output := &ListConfiguredTableAssociationsOutput{} out.Result = output var buff [1024]byte @@ -5939,7 +5963,7 @@ func (m *awsRestjson1_deserializeOpUpdateConfiguredTable) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateConfiguredTableOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListConfiguredTableAssociationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5952,7 +5976,7 @@ func (m *awsRestjson1_deserializeOpUpdateConfiguredTable) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateConfiguredTable(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListConfiguredTableAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5996,9 +6020,6 @@ func awsRestjson1_deserializeOpErrorUpdateConfiguredTable(response *smithyhttp.R 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) @@ -6021,7 +6042,7 @@ func awsRestjson1_deserializeOpErrorUpdateConfiguredTable(response *smithyhttp.R } } -func awsRestjson1_deserializeOpDocumentUpdateConfiguredTableOutput(v **UpdateConfiguredTableOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListConfiguredTableAssociationsOutput(v **ListConfiguredTableAssociationsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6034,20 +6055,29 @@ func awsRestjson1_deserializeOpDocumentUpdateConfiguredTableOutput(v **UpdateCon return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateConfiguredTableOutput + var sv *ListConfiguredTableAssociationsOutput if *v == nil { - sv = &UpdateConfiguredTableOutput{} + sv = &ListConfiguredTableAssociationsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "configuredTable": - if err := awsRestjson1_deserializeDocumentConfiguredTable(&sv.ConfiguredTable, value); err != nil { + case "configuredTableAssociationSummaries": + if err := awsRestjson1_deserializeDocumentConfiguredTableAssociationSummaryList(&sv.ConfiguredTableAssociationSummaries, 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 @@ -6057,14 +6087,14 @@ func awsRestjson1_deserializeOpDocumentUpdateConfiguredTableOutput(v **UpdateCon return nil } -type awsRestjson1_deserializeOpUpdateConfiguredTableAnalysisRule struct { +type awsRestjson1_deserializeOpListConfiguredTables struct { } -func (*awsRestjson1_deserializeOpUpdateConfiguredTableAnalysisRule) ID() string { +func (*awsRestjson1_deserializeOpListConfiguredTables) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateConfiguredTableAnalysisRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListConfiguredTables) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6078,9 +6108,9 @@ func (m *awsRestjson1_deserializeOpUpdateConfiguredTableAnalysisRule) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateConfiguredTableAnalysisRule(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListConfiguredTables(response, &metadata) } - output := &UpdateConfiguredTableAnalysisRuleOutput{} + output := &ListConfiguredTablesOutput{} out.Result = output var buff [1024]byte @@ -6101,7 +6131,7 @@ func (m *awsRestjson1_deserializeOpUpdateConfiguredTableAnalysisRule) HandleDese return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateConfiguredTableAnalysisRuleOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListConfiguredTablesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6114,7 +6144,7 @@ func (m *awsRestjson1_deserializeOpUpdateConfiguredTableAnalysisRule) HandleDese return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateConfiguredTableAnalysisRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListConfiguredTables(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6158,15 +6188,9 @@ func awsRestjson1_deserializeOpErrorUpdateConfiguredTableAnalysisRule(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("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -6183,7 +6207,7 @@ func awsRestjson1_deserializeOpErrorUpdateConfiguredTableAnalysisRule(response * } } -func awsRestjson1_deserializeOpDocumentUpdateConfiguredTableAnalysisRuleOutput(v **UpdateConfiguredTableAnalysisRuleOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListConfiguredTablesOutput(v **ListConfiguredTablesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6196,37 +6220,46 @@ func awsRestjson1_deserializeOpDocumentUpdateConfiguredTableAnalysisRuleOutput(v return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateConfiguredTableAnalysisRuleOutput + var sv *ListConfiguredTablesOutput if *v == nil { - sv = &UpdateConfiguredTableAnalysisRuleOutput{} + sv = &ListConfiguredTablesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "analysisRule": - if err := awsRestjson1_deserializeDocumentConfiguredTableAnalysisRule(&sv.AnalysisRule, value); err != nil { + case "configuredTableSummaries": + if err := awsRestjson1_deserializeDocumentConfiguredTableSummaryList(&sv.ConfiguredTableSummaries, value); err != nil { return err } - default: - _, _ = key, value - - } + 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_deserializeOpUpdateConfiguredTableAssociation struct { +type awsRestjson1_deserializeOpListMembers struct { } -func (*awsRestjson1_deserializeOpUpdateConfiguredTableAssociation) ID() string { +func (*awsRestjson1_deserializeOpListMembers) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateConfiguredTableAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6240,9 +6273,9 @@ func (m *awsRestjson1_deserializeOpUpdateConfiguredTableAssociation) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateConfiguredTableAssociation(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListMembers(response, &metadata) } - output := &UpdateConfiguredTableAssociationOutput{} + output := &ListMembersOutput{} out.Result = output var buff [1024]byte @@ -6263,7 +6296,7 @@ func (m *awsRestjson1_deserializeOpUpdateConfiguredTableAssociation) HandleDeser return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateConfiguredTableAssociationOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListMembersOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6276,7 +6309,7 @@ func (m *awsRestjson1_deserializeOpUpdateConfiguredTableAssociation) HandleDeser return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateConfiguredTableAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6320,9 +6353,6 @@ func awsRestjson1_deserializeOpErrorUpdateConfiguredTableAssociation(response *s 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) @@ -6345,7 +6375,7 @@ func awsRestjson1_deserializeOpErrorUpdateConfiguredTableAssociation(response *s } } -func awsRestjson1_deserializeOpDocumentUpdateConfiguredTableAssociationOutput(v **UpdateConfiguredTableAssociationOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListMembersOutput(v **ListMembersOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6358,20 +6388,29 @@ func awsRestjson1_deserializeOpDocumentUpdateConfiguredTableAssociationOutput(v return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateConfiguredTableAssociationOutput + var sv *ListMembersOutput if *v == nil { - sv = &UpdateConfiguredTableAssociationOutput{} + sv = &ListMembersOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "configuredTableAssociation": - if err := awsRestjson1_deserializeDocumentConfiguredTableAssociation(&sv.ConfiguredTableAssociation, value); err != nil { + case "memberSummaries": + if err := awsRestjson1_deserializeDocumentMemberSummaryList(&sv.MemberSummaries, 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 @@ -6381,14 +6420,14 @@ func awsRestjson1_deserializeOpDocumentUpdateConfiguredTableAssociationOutput(v return nil } -type awsRestjson1_deserializeOpUpdateMembership struct { +type awsRestjson1_deserializeOpListMemberships struct { } -func (*awsRestjson1_deserializeOpUpdateMembership) ID() string { +func (*awsRestjson1_deserializeOpListMemberships) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateMembership) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListMemberships) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6402,9 +6441,9 @@ func (m *awsRestjson1_deserializeOpUpdateMembership) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateMembership(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListMemberships(response, &metadata) } - output := &UpdateMembershipOutput{} + output := &ListMembershipsOutput{} out.Result = output var buff [1024]byte @@ -6425,7 +6464,7 @@ func (m *awsRestjson1_deserializeOpUpdateMembership) HandleDeserialize(ctx conte return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateMembershipOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListMembershipsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6438,7 +6477,7 @@ func (m *awsRestjson1_deserializeOpUpdateMembership) HandleDeserialize(ctx conte return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateMembership(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListMemberships(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6482,15 +6521,9 @@ func awsRestjson1_deserializeOpErrorUpdateMembership(response *smithyhttp.Respon 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) @@ -6507,7 +6540,7 @@ func awsRestjson1_deserializeOpErrorUpdateMembership(response *smithyhttp.Respon } } -func awsRestjson1_deserializeOpDocumentUpdateMembershipOutput(v **UpdateMembershipOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListMembershipsOutput(v **ListMembershipsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6520,20 +6553,29 @@ func awsRestjson1_deserializeOpDocumentUpdateMembershipOutput(v **UpdateMembersh return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateMembershipOutput + var sv *ListMembershipsOutput if *v == nil { - sv = &UpdateMembershipOutput{} + sv = &ListMembershipsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "membership": - if err := awsRestjson1_deserializeDocumentMembership(&sv.Membership, value); err != nil { + case "membershipSummaries": + if err := awsRestjson1_deserializeDocumentMembershipSummaryList(&sv.MembershipSummaries, 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 @@ -6543,14 +6585,14 @@ func awsRestjson1_deserializeOpDocumentUpdateMembershipOutput(v **UpdateMembersh return nil } -type awsRestjson1_deserializeOpUpdateProtectedQuery struct { +type awsRestjson1_deserializeOpListPrivacyBudgets struct { } -func (*awsRestjson1_deserializeOpUpdateProtectedQuery) ID() string { +func (*awsRestjson1_deserializeOpListPrivacyBudgets) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateProtectedQuery) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListPrivacyBudgets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6564,9 +6606,9 @@ func (m *awsRestjson1_deserializeOpUpdateProtectedQuery) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateProtectedQuery(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListPrivacyBudgets(response, &metadata) } - output := &UpdateProtectedQueryOutput{} + output := &ListPrivacyBudgetsOutput{} out.Result = output var buff [1024]byte @@ -6587,7 +6629,7 @@ func (m *awsRestjson1_deserializeOpUpdateProtectedQuery) HandleDeserialize(ctx c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateProtectedQueryOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListPrivacyBudgetsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6600,7 +6642,7 @@ func (m *awsRestjson1_deserializeOpUpdateProtectedQuery) HandleDeserialize(ctx c return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateProtectedQuery(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListPrivacyBudgets(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6644,9 +6686,6 @@ func awsRestjson1_deserializeOpErrorUpdateProtectedQuery(response *smithyhttp.Re 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) @@ -6669,7 +6708,7 @@ func awsRestjson1_deserializeOpErrorUpdateProtectedQuery(response *smithyhttp.Re } } -func awsRestjson1_deserializeOpDocumentUpdateProtectedQueryOutput(v **UpdateProtectedQueryOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListPrivacyBudgetsOutput(v **ListPrivacyBudgetsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6682,17 +6721,26 @@ func awsRestjson1_deserializeOpDocumentUpdateProtectedQueryOutput(v **UpdateProt return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateProtectedQueryOutput + var sv *ListPrivacyBudgetsOutput if *v == nil { - sv = &UpdateProtectedQueryOutput{} + sv = &ListPrivacyBudgetsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "protectedQuery": - if err := awsRestjson1_deserializeDocumentProtectedQuery(&sv.ProtectedQuery, value); err != nil { + 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 "privacyBudgetSummaries": + if err := awsRestjson1_deserializeDocumentPrivacyBudgetSummaryList(&sv.PrivacyBudgetSummaries, value); err != nil { return err } @@ -6705,48 +6753,37 @@ func awsRestjson1_deserializeOpDocumentUpdateProtectedQueryOutput(v **UpdateProt 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_deserializeOpListPrivacyBudgetTemplates struct { +} - err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape) +func (*awsRestjson1_deserializeOpListPrivacyBudgetTemplates) ID() string { + return "OperationDeserializer" +} +func (m *awsRestjson1_deserializeOpListPrivacyBudgetTemplates) HandleDeserialize(ctx context.Context, 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) + 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_deserializeOpErrorListPrivacyBudgetTemplates(response, &metadata) + } + output := &ListPrivacyBudgetTemplatesOutput{} + out.Result = 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) + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -6757,83 +6794,44 @@ func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Respons Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - err := awsRestjson1_deserializeDocumentConflictException(&output, shape) - + err = awsRestjson1_deserializeOpDocumentListPrivacyBudgetTemplatesOutput(&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 + 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_deserializeOpErrorListPrivacyBudgetTemplates(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&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) @@ -6845,52 +6843,115 @@ 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_deserializeErrorServiceQuotaExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ServiceQuotaExceededException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + case strings.EqualFold("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 err + return genericError + } +} - err := awsRestjson1_deserializeDocumentServiceQuotaExceededException(&output, shape) +func awsRestjson1_deserializeOpDocumentListPrivacyBudgetTemplatesOutput(v **ListPrivacyBudgetTemplatesOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListPrivacyBudgetTemplatesOutput + if *v == nil { + sv = &ListPrivacyBudgetTemplatesOutput{} + } 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 "privacyBudgetTemplateSummaries": + if err := awsRestjson1_deserializeDocumentPrivacyBudgetTemplateSummaryList(&sv.PrivacyBudgetTemplateSummaries, value); err != nil { + return err + } + + default: + _, _ = key, value - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), } - return err } + *v = sv + return nil +} - errorBody.Seek(0, io.SeekStart) +type awsRestjson1_deserializeOpListProtectedQueries struct { +} - return output +func (*awsRestjson1_deserializeOpListProtectedQueries) ID() string { + return "OperationDeserializer" } -func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ThrottlingException{} +func (m *awsRestjson1_deserializeOpListProtectedQueries) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListProtectedQueries(response, &metadata) + } + output := &ListProtectedQueriesOutput{} + 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{} @@ -6901,47 +6962,44 @@ 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_deserializeOpDocumentListProtectedQueriesOutput(&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 + return out, metadata, err } -func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ValidationException{} +func awsRestjson1_deserializeOpErrorListProtectedQueries(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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 { - var snapshot 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) - + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6953,60 +7011,40 @@ func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Respo } 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 len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - if value == nil { - return nil + if len(message) != 0 { + errorMessage = message } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - var sv *types.AccessDeniedException - if *v == nil { - sv = &types.AccessDeniedException{} - } else { - sv = *v - } + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - 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 strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case "reason": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AccessDeniedExceptionReason to be of type string, got %T instead", value) - } - sv.Reason = types.AccessDeniedExceptionReason(jtv) - } + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - default: - _, _ = key, value + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } + return genericError + } - *v = sv - return nil } -func awsRestjson1_deserializeDocumentAggregateColumn(v **types.AggregateColumn, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListProtectedQueriesOutput(v **ListProtectedQueriesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7019,27 +7057,27 @@ func awsRestjson1_deserializeDocumentAggregateColumn(v **types.AggregateColumn, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AggregateColumn + var sv *ListProtectedQueriesOutput if *v == nil { - sv = &types.AggregateColumn{} + sv = &ListProtectedQueriesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "columnNames": - if err := awsRestjson1_deserializeDocumentAnalysisRuleColumnNameList(&sv.ColumnNames, value); err != nil { - return err - } - - case "function": + case "nextToken": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AggregateFunctionName to be of type string, got %T instead", value) + return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } - sv.Function = types.AggregateFunctionName(jtv) + sv.NextToken = ptr.String(jtv) + } + + case "protectedQueries": + if err := awsRestjson1_deserializeDocumentProtectedQuerySummaryList(&sv.ProtectedQueries, value); err != nil { + return err } default: @@ -7051,30 +7089,4484 @@ func awsRestjson1_deserializeDocumentAggregateColumn(v **types.AggregateColumn, return nil } -func awsRestjson1_deserializeDocumentAggregateColumnList(v *[]types.AggregateColumn, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil +type awsRestjson1_deserializeOpListSchemas struct { +} + +func (*awsRestjson1_deserializeOpListSchemas) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListSchemas) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next 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.([]interface{}) + 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 cv []types.AggregateColumn - if *v == nil { - cv = []types.AggregateColumn{} - } else { - cv = *v + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListSchemas(response, &metadata) } + output := &ListSchemasOutput{} + out.Result = output - for _, value := range shape { - var col types.AggregateColumn - destAddr := &col - if err := awsRestjson1_deserializeDocumentAggregateColumn(&destAddr, value); 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_deserializeOpDocumentListSchemasOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListSchemas(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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_deserializeOpDocumentListSchemasOutput(v **ListSchemasOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListSchemasOutput + if *v == nil { + sv = &ListSchemasOutput{} + } 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 "schemaSummaries": + if err := awsRestjson1_deserializeDocumentSchemaSummaryList(&sv.SchemaSummaries, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListTagsForResource struct { +} + +func (*awsRestjson1_deserializeOpListTagsForResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListTagsForResource(response, &metadata) + } + output := &ListTagsForResourceOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + 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("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListTagsForResourceOutput + if *v == nil { + sv = &ListTagsForResourceOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpPreviewPrivacyImpact struct { +} + +func (*awsRestjson1_deserializeOpPreviewPrivacyImpact) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpPreviewPrivacyImpact) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorPreviewPrivacyImpact(response, &metadata) + } + output := &PreviewPrivacyImpactOutput{} + 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_deserializeOpDocumentPreviewPrivacyImpactOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorPreviewPrivacyImpact(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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_deserializeOpDocumentPreviewPrivacyImpactOutput(v **PreviewPrivacyImpactOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *PreviewPrivacyImpactOutput + if *v == nil { + sv = &PreviewPrivacyImpactOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "privacyImpact": + if err := awsRestjson1_deserializeDocumentPrivacyImpact(&sv.PrivacyImpact, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpStartProtectedQuery struct { +} + +func (*awsRestjson1_deserializeOpStartProtectedQuery) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpStartProtectedQuery) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorStartProtectedQuery(response, &metadata) + } + output := &StartProtectedQueryOutput{} + 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_deserializeOpDocumentStartProtectedQueryOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorStartProtectedQuery(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("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_deserializeOpDocumentStartProtectedQueryOutput(v **StartProtectedQueryOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *StartProtectedQueryOutput + if *v == nil { + sv = &StartProtectedQueryOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "protectedQuery": + if err := awsRestjson1_deserializeDocumentProtectedQuery(&sv.ProtectedQuery, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpTagResource struct { +} + +func (*awsRestjson1_deserializeOpTagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorTagResource(response, &metadata) + } + output := &TagResourceOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + 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("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpUntagResource struct { +} + +func (*awsRestjson1_deserializeOpUntagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUntagResource(response, &metadata) + } + output := &UntagResourceOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + 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("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpUpdateAnalysisTemplate struct { +} + +func (*awsRestjson1_deserializeOpUpdateAnalysisTemplate) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateAnalysisTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateAnalysisTemplate(response, &metadata) + } + output := &UpdateAnalysisTemplateOutput{} + 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_deserializeOpDocumentUpdateAnalysisTemplateOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateAnalysisTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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_deserializeOpDocumentUpdateAnalysisTemplateOutput(v **UpdateAnalysisTemplateOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateAnalysisTemplateOutput + if *v == nil { + sv = &UpdateAnalysisTemplateOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "analysisTemplate": + if err := awsRestjson1_deserializeDocumentAnalysisTemplate(&sv.AnalysisTemplate, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateCollaboration struct { +} + +func (*awsRestjson1_deserializeOpUpdateCollaboration) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateCollaboration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateCollaboration(response, &metadata) + } + output := &UpdateCollaborationOutput{} + 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_deserializeOpDocumentUpdateCollaborationOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateCollaboration(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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_deserializeOpDocumentUpdateCollaborationOutput(v **UpdateCollaborationOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateCollaborationOutput + if *v == nil { + sv = &UpdateCollaborationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "collaboration": + if err := awsRestjson1_deserializeDocumentCollaboration(&sv.Collaboration, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateConfiguredAudienceModelAssociation struct { +} + +func (*awsRestjson1_deserializeOpUpdateConfiguredAudienceModelAssociation) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateConfiguredAudienceModelAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateConfiguredAudienceModelAssociation(response, &metadata) + } + output := &UpdateConfiguredAudienceModelAssociationOutput{} + 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_deserializeOpDocumentUpdateConfiguredAudienceModelAssociationOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateConfiguredAudienceModelAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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_deserializeOpDocumentUpdateConfiguredAudienceModelAssociationOutput(v **UpdateConfiguredAudienceModelAssociationOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateConfiguredAudienceModelAssociationOutput + if *v == nil { + sv = &UpdateConfiguredAudienceModelAssociationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "configuredAudienceModelAssociation": + if err := awsRestjson1_deserializeDocumentConfiguredAudienceModelAssociation(&sv.ConfiguredAudienceModelAssociation, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateConfiguredTable struct { +} + +func (*awsRestjson1_deserializeOpUpdateConfiguredTable) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateConfiguredTable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateConfiguredTable(response, &metadata) + } + output := &UpdateConfiguredTableOutput{} + 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_deserializeOpDocumentUpdateConfiguredTableOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateConfiguredTable(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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_deserializeOpDocumentUpdateConfiguredTableOutput(v **UpdateConfiguredTableOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateConfiguredTableOutput + if *v == nil { + sv = &UpdateConfiguredTableOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "configuredTable": + if err := awsRestjson1_deserializeDocumentConfiguredTable(&sv.ConfiguredTable, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateConfiguredTableAnalysisRule struct { +} + +func (*awsRestjson1_deserializeOpUpdateConfiguredTableAnalysisRule) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateConfiguredTableAnalysisRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateConfiguredTableAnalysisRule(response, &metadata) + } + output := &UpdateConfiguredTableAnalysisRuleOutput{} + 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_deserializeOpDocumentUpdateConfiguredTableAnalysisRuleOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateConfiguredTableAnalysisRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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_deserializeOpDocumentUpdateConfiguredTableAnalysisRuleOutput(v **UpdateConfiguredTableAnalysisRuleOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateConfiguredTableAnalysisRuleOutput + if *v == nil { + sv = &UpdateConfiguredTableAnalysisRuleOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "analysisRule": + if err := awsRestjson1_deserializeDocumentConfiguredTableAnalysisRule(&sv.AnalysisRule, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateConfiguredTableAssociation struct { +} + +func (*awsRestjson1_deserializeOpUpdateConfiguredTableAssociation) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateConfiguredTableAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateConfiguredTableAssociation(response, &metadata) + } + output := &UpdateConfiguredTableAssociationOutput{} + 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_deserializeOpDocumentUpdateConfiguredTableAssociationOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateConfiguredTableAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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_deserializeOpDocumentUpdateConfiguredTableAssociationOutput(v **UpdateConfiguredTableAssociationOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateConfiguredTableAssociationOutput + if *v == nil { + sv = &UpdateConfiguredTableAssociationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "configuredTableAssociation": + if err := awsRestjson1_deserializeDocumentConfiguredTableAssociation(&sv.ConfiguredTableAssociation, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateMembership struct { +} + +func (*awsRestjson1_deserializeOpUpdateMembership) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateMembership) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateMembership(response, &metadata) + } + output := &UpdateMembershipOutput{} + 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_deserializeOpDocumentUpdateMembershipOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateMembership(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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_deserializeOpDocumentUpdateMembershipOutput(v **UpdateMembershipOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateMembershipOutput + if *v == nil { + sv = &UpdateMembershipOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "membership": + if err := awsRestjson1_deserializeDocumentMembership(&sv.Membership, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdatePrivacyBudgetTemplate struct { +} + +func (*awsRestjson1_deserializeOpUpdatePrivacyBudgetTemplate) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdatePrivacyBudgetTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdatePrivacyBudgetTemplate(response, &metadata) + } + output := &UpdatePrivacyBudgetTemplateOutput{} + 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_deserializeOpDocumentUpdatePrivacyBudgetTemplateOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdatePrivacyBudgetTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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_deserializeOpDocumentUpdatePrivacyBudgetTemplateOutput(v **UpdatePrivacyBudgetTemplateOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdatePrivacyBudgetTemplateOutput + if *v == nil { + sv = &UpdatePrivacyBudgetTemplateOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "privacyBudgetTemplate": + if err := awsRestjson1_deserializeDocumentPrivacyBudgetTemplate(&sv.PrivacyBudgetTemplate, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateProtectedQuery struct { +} + +func (*awsRestjson1_deserializeOpUpdateProtectedQuery) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateProtectedQuery) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateProtectedQuery(response, &metadata) + } + output := &UpdateProtectedQueryOutput{} + 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_deserializeOpDocumentUpdateProtectedQueryOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateProtectedQuery(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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_deserializeOpDocumentUpdateProtectedQueryOutput(v **UpdateProtectedQueryOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateProtectedQueryOutput + if *v == nil { + sv = &UpdateProtectedQueryOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "protectedQuery": + if err := awsRestjson1_deserializeDocumentProtectedQuery(&sv.ProtectedQuery, value); err != nil { + return err + } + + 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_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InternalServerException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentInternalServerException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ResourceNotFoundException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentResourceNotFoundException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorServiceQuotaExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ServiceQuotaExceededException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentServiceQuotaExceededException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ThrottlingException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ValidationException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentValidationException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AccessDeniedException + if *v == nil { + sv = &types.AccessDeniedException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "reason": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccessDeniedExceptionReason to be of type string, got %T instead", value) + } + sv.Reason = types.AccessDeniedExceptionReason(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAggregateColumn(v **types.AggregateColumn, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AggregateColumn + if *v == nil { + sv = &types.AggregateColumn{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "columnNames": + if err := awsRestjson1_deserializeDocumentAnalysisRuleColumnNameList(&sv.ColumnNames, value); err != nil { + return err + } + + case "function": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AggregateFunctionName to be of type string, got %T instead", value) + } + sv.Function = types.AggregateFunctionName(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAggregateColumnList(v *[]types.AggregateColumn, 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.AggregateColumn + if *v == nil { + cv = []types.AggregateColumn{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AggregateColumn + destAddr := &col + if err := awsRestjson1_deserializeDocumentAggregateColumn(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAggregationConstraint(v **types.AggregationConstraint, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AggregationConstraint + if *v == nil { + sv = &types.AggregationConstraint{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "columnName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisRuleColumnName to be of type string, got %T instead", value) + } + sv.ColumnName = ptr.String(jtv) + } + + case "minimum": + 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.Minimum = ptr.Int32(int32(i64)) + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AggregationType to be of type string, got %T instead", value) + } + sv.Type = types.AggregationType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAggregationConstraints(v *[]types.AggregationConstraint, 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.AggregationConstraint + if *v == nil { + cv = []types.AggregationConstraint{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AggregationConstraint + destAddr := &col + if err := awsRestjson1_deserializeDocumentAggregationConstraint(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAllowedAnalysesList(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 AnalysisTemplateArnOrQueryWildcard to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAllowedAnalysisProviderList(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_deserializeDocumentAllowedColumnList(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 ColumnName to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisParameter(v **types.AnalysisParameter, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AnalysisParameter + if *v == nil { + sv = &types.AnalysisParameter{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "defaultValue": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) + } + sv.DefaultValue = ptr.String(jtv) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ParameterType to be of type string, got %T instead", value) + } + sv.Type = types.ParameterType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisParameterList(v *[]types.AnalysisParameter, 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.AnalysisParameter + if *v == nil { + cv = []types.AnalysisParameter{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AnalysisParameter + destAddr := &col + if err := awsRestjson1_deserializeDocumentAnalysisParameter(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisRule(v **types.AnalysisRule, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AnalysisRule + if *v == nil { + sv = &types.AnalysisRule{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "collaborationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationIdentifier to be of type string, got %T instead", value) + } + sv.CollaborationId = ptr.String(jtv) + } + + case "createTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreateTime = 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 TableAlias to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "policy": + if err := awsRestjson1_deserializeDocumentAnalysisRulePolicy(&sv.Policy, value); err != nil { + return err + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisRuleType to be of type string, got %T instead", value) + } + sv.Type = types.AnalysisRuleType(jtv) + } + + case "updateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisRuleAggregation(v **types.AnalysisRuleAggregation, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AnalysisRuleAggregation + if *v == nil { + sv = &types.AnalysisRuleAggregation{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "aggregateColumns": + if err := awsRestjson1_deserializeDocumentAggregateColumnList(&sv.AggregateColumns, value); err != nil { + return err + } + + case "allowedJoinOperators": + if err := awsRestjson1_deserializeDocumentJoinOperatorsList(&sv.AllowedJoinOperators, value); err != nil { + return err + } + + case "dimensionColumns": + if err := awsRestjson1_deserializeDocumentAnalysisRuleColumnList(&sv.DimensionColumns, value); err != nil { + return err + } + + case "joinColumns": + if err := awsRestjson1_deserializeDocumentAnalysisRuleColumnList(&sv.JoinColumns, value); err != nil { + return err + } + + case "joinRequired": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected JoinRequiredOption to be of type string, got %T instead", value) + } + sv.JoinRequired = types.JoinRequiredOption(jtv) + } + + case "outputConstraints": + if err := awsRestjson1_deserializeDocumentAggregationConstraints(&sv.OutputConstraints, value); err != nil { + return err + } + + case "scalarFunctions": + if err := awsRestjson1_deserializeDocumentScalarFunctionsList(&sv.ScalarFunctions, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisRuleColumnList(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 AnalysisRuleColumnName to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisRuleColumnNameList(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 AnalysisRuleColumnName to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisRuleCustom(v **types.AnalysisRuleCustom, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AnalysisRuleCustom + if *v == nil { + sv = &types.AnalysisRuleCustom{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "allowedAnalyses": + if err := awsRestjson1_deserializeDocumentAllowedAnalysesList(&sv.AllowedAnalyses, value); err != nil { + return err + } + + case "allowedAnalysisProviders": + if err := awsRestjson1_deserializeDocumentAllowedAnalysisProviderList(&sv.AllowedAnalysisProviders, value); err != nil { + return err + } + + case "differentialPrivacy": + if err := awsRestjson1_deserializeDocumentDifferentialPrivacyConfiguration(&sv.DifferentialPrivacy, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisRuleList(v **types.AnalysisRuleList, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AnalysisRuleList + if *v == nil { + sv = &types.AnalysisRuleList{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "allowedJoinOperators": + if err := awsRestjson1_deserializeDocumentJoinOperatorsList(&sv.AllowedJoinOperators, value); err != nil { + return err + } + + case "joinColumns": + if err := awsRestjson1_deserializeDocumentAnalysisRuleColumnList(&sv.JoinColumns, value); err != nil { + return err + } + + case "listColumns": + if err := awsRestjson1_deserializeDocumentAnalysisRuleColumnList(&sv.ListColumns, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisRulePolicy(v *types.AnalysisRulePolicy, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %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.AnalysisRulePolicy +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "v1": + var mv types.AnalysisRulePolicyV1 + if err := awsRestjson1_deserializeDocumentAnalysisRulePolicyV1(&mv, value); err != nil { + return err + } + uv = &types.AnalysisRulePolicyMemberV1{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisRulePolicyV1(v *types.AnalysisRulePolicyV1, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %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.AnalysisRulePolicyV1 +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "aggregation": + var mv types.AnalysisRuleAggregation + destAddr := &mv + if err := awsRestjson1_deserializeDocumentAnalysisRuleAggregation(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.AnalysisRulePolicyV1MemberAggregation{Value: mv} + break loop + + case "custom": + var mv types.AnalysisRuleCustom + destAddr := &mv + if err := awsRestjson1_deserializeDocumentAnalysisRuleCustom(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.AnalysisRulePolicyV1MemberCustom{Value: mv} + break loop + + case "list": + var mv types.AnalysisRuleList + destAddr := &mv + if err := awsRestjson1_deserializeDocumentAnalysisRuleList(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.AnalysisRulePolicyV1MemberList{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisRuleTypeList(v *[]types.AnalysisRuleType, 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.AnalysisRuleType + if *v == nil { + cv = []types.AnalysisRuleType{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AnalysisRuleType + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisRuleType to be of type string, got %T instead", value) + } + col = types.AnalysisRuleType(jtv) + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisSchema(v **types.AnalysisSchema, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AnalysisSchema + if *v == nil { + sv = &types.AnalysisSchema{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "referencedTables": + if err := awsRestjson1_deserializeDocumentQueryTables(&sv.ReferencedTables, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisSource(v *types.AnalysisSource, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %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.AnalysisSource +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "text": + var mv string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisTemplateText to be of type string, got %T instead", value) + } + mv = jtv + } + uv = &types.AnalysisSourceMemberText{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisTemplate(v **types.AnalysisTemplate, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AnalysisTemplate + if *v == nil { + sv = &types.AnalysisTemplate{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "analysisParameters": + if err := awsRestjson1_deserializeDocumentAnalysisParameterList(&sv.AnalysisParameters, value); err != nil { + return err + } + + case "arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisTemplateArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "collaborationArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) + } + sv.CollaborationArn = ptr.String(jtv) + } + + case "collaborationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.CollaborationId = ptr.String(jtv) + } + + case "createTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreateTime = 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 ResourceDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "format": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisFormat to be of type string, got %T instead", value) + } + sv.Format = types.AnalysisFormat(jtv) + } + + case "id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisTemplateIdentifier to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } + + case "membershipArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MembershipArn to be of type string, got %T instead", value) + } + sv.MembershipArn = ptr.String(jtv) + } + + case "membershipId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.MembershipId = ptr.String(jtv) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceAlias to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "schema": + if err := awsRestjson1_deserializeDocumentAnalysisSchema(&sv.Schema, value); err != nil { + return err + } + + case "source": + if err := awsRestjson1_deserializeDocumentAnalysisSource(&sv.Source, value); err != nil { + return err + } + + case "updateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisTemplateSummary(v **types.AnalysisTemplateSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AnalysisTemplateSummary + if *v == nil { + sv = &types.AnalysisTemplateSummary{} + } 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 AnalysisTemplateArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "collaborationArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) + } + sv.CollaborationArn = ptr.String(jtv) + } + + case "collaborationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.CollaborationId = ptr.String(jtv) + } + + case "createTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreateTime = 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 ResourceDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisTemplateIdentifier to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } + + case "membershipArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MembershipArn to be of type string, got %T instead", value) + } + sv.MembershipArn = ptr.String(jtv) + } + + case "membershipId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.MembershipId = ptr.String(jtv) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceAlias to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "updateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisTemplateSummaryList(v *[]types.AnalysisTemplateSummary, 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.AnalysisTemplateSummary + if *v == nil { + cv = []types.AnalysisTemplateSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AnalysisTemplateSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentAnalysisTemplateSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentBatchGetCollaborationAnalysisTemplateError(v **types.BatchGetCollaborationAnalysisTemplateError, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.BatchGetCollaborationAnalysisTemplateError + if *v == nil { + sv = &types.BatchGetCollaborationAnalysisTemplateError{} + } 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 AnalysisTemplateArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "code": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String 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 String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentBatchGetCollaborationAnalysisTemplateErrorList(v *[]types.BatchGetCollaborationAnalysisTemplateError, 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.BatchGetCollaborationAnalysisTemplateError + if *v == nil { + cv = []types.BatchGetCollaborationAnalysisTemplateError{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.BatchGetCollaborationAnalysisTemplateError + destAddr := &col + if err := awsRestjson1_deserializeDocumentBatchGetCollaborationAnalysisTemplateError(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentBatchGetSchemaError(v **types.BatchGetSchemaError, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.BatchGetSchemaError + if *v == nil { + sv = &types.BatchGetSchemaError{} + } 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 String 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 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 TableAlias to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentBatchGetSchemaErrorList(v *[]types.BatchGetSchemaError, 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.BatchGetSchemaError + if *v == nil { + cv = []types.BatchGetSchemaError{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.BatchGetSchemaError + destAddr := &col + if err := awsRestjson1_deserializeDocumentBatchGetSchemaError(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentCollaboration(v **types.Collaboration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.Collaboration + if *v == nil { + sv = &types.Collaboration{} + } 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 CollaborationArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "createTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "creatorAccountId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) + } + sv.CreatorAccountId = ptr.String(jtv) + } + + case "creatorDisplayName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DisplayName to be of type string, got %T instead", value) + } + sv.CreatorDisplayName = ptr.String(jtv) + } + + case "dataEncryptionMetadata": + if err := awsRestjson1_deserializeDocumentDataEncryptionMetadata(&sv.DataEncryptionMetadata, value); err != nil { + return err + } + + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } + + case "membershipArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MembershipArn to be of type string, got %T instead", value) + } + sv.MembershipArn = ptr.String(jtv) + } + + case "membershipId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.MembershipId = ptr.String(jtv) + } + + case "memberStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MemberStatus to be of type string, got %T instead", value) + } + sv.MemberStatus = types.MemberStatus(jtv) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "queryLogStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationQueryLogStatus to be of type string, got %T instead", value) + } + sv.QueryLogStatus = types.CollaborationQueryLogStatus(jtv) + } + + case "updateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentCollaborationAnalysisTemplate(v **types.CollaborationAnalysisTemplate, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.CollaborationAnalysisTemplate + if *v == nil { + sv = &types.CollaborationAnalysisTemplate{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "analysisParameters": + if err := awsRestjson1_deserializeDocumentAnalysisParameterList(&sv.AnalysisParameters, value); err != nil { + return err + } + + case "arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisTemplateArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "collaborationArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) + } + sv.CollaborationArn = ptr.String(jtv) + } + + case "collaborationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.CollaborationId = ptr.String(jtv) + } + + case "createTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "creatorAccountId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) + } + sv.CreatorAccountId = ptr.String(jtv) + } + + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "format": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisFormat to be of type string, got %T instead", value) + } + sv.Format = types.AnalysisFormat(jtv) + } + + case "id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisTemplateIdentifier 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 ResourceAlias to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "schema": + if err := awsRestjson1_deserializeDocumentAnalysisSchema(&sv.Schema, value); err != nil { + return err + } + + case "source": + if err := awsRestjson1_deserializeDocumentAnalysisSource(&sv.Source, value); err != nil { + return err + } + + case "updateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentCollaborationAnalysisTemplateList(v *[]types.CollaborationAnalysisTemplate, 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.CollaborationAnalysisTemplate + if *v == nil { + cv = []types.CollaborationAnalysisTemplate{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.CollaborationAnalysisTemplate + destAddr := &col + if err := awsRestjson1_deserializeDocumentCollaborationAnalysisTemplate(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentCollaborationAnalysisTemplateSummary(v **types.CollaborationAnalysisTemplateSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.CollaborationAnalysisTemplateSummary + if *v == nil { + sv = &types.CollaborationAnalysisTemplateSummary{} + } 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 AnalysisTemplateArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "collaborationArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) + } + sv.CollaborationArn = ptr.String(jtv) + } + + case "collaborationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.CollaborationId = ptr.String(jtv) + } + + case "createTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "creatorAccountId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) + } + sv.CreatorAccountId = ptr.String(jtv) + } + + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisTemplateIdentifier 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 ResourceAlias to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "updateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentCollaborationAnalysisTemplateSummaryList(v *[]types.CollaborationAnalysisTemplateSummary, 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.CollaborationAnalysisTemplateSummary + if *v == nil { + cv = []types.CollaborationAnalysisTemplateSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.CollaborationAnalysisTemplateSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentCollaborationAnalysisTemplateSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -7085,7 +11577,7 @@ func awsRestjson1_deserializeDocumentAggregateColumnList(v *[]types.AggregateCol return nil } -func awsRestjson1_deserializeDocumentAggregationConstraint(v **types.AggregationConstraint, value interface{}) error { +func awsRestjson1_deserializeDocumentCollaborationConfiguredAudienceModelAssociation(v **types.CollaborationConfiguredAudienceModelAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7098,44 +11590,243 @@ func awsRestjson1_deserializeDocumentAggregationConstraint(v **types.Aggregation return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AggregationConstraint + var sv *types.CollaborationConfiguredAudienceModelAssociation if *v == nil { - sv = &types.AggregationConstraint{} + sv = &types.CollaborationConfiguredAudienceModelAssociation{} } else { sv = *v } for key, value := range shape { switch key { - case "columnName": + case "arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConfiguredAudienceModelAssociationArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "collaborationArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) + } + sv.CollaborationArn = ptr.String(jtv) + } + + case "collaborationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.CollaborationId = ptr.String(jtv) + } + + case "configuredAudienceModelArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConfiguredAudienceModelArn to be of type string, got %T instead", value) + } + sv.ConfiguredAudienceModelArn = ptr.String(jtv) + } + + case "createTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "creatorAccountId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) + } + sv.CreatorAccountId = ptr.String(jtv) + } + + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConfiguredAudienceModelAssociationIdentifier 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 ConfiguredAudienceModelAssociationName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "updateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentCollaborationConfiguredAudienceModelAssociationSummary(v **types.CollaborationConfiguredAudienceModelAssociationSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.CollaborationConfiguredAudienceModelAssociationSummary + if *v == nil { + sv = &types.CollaborationConfiguredAudienceModelAssociationSummary{} + } 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 ConfiguredAudienceModelAssociationArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "collaborationArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) + } + sv.CollaborationArn = ptr.String(jtv) + } + + case "collaborationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.CollaborationId = ptr.String(jtv) + } + + case "createTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "creatorAccountId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) + } + sv.CreatorAccountId = ptr.String(jtv) + } + + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "id": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AnalysisRuleColumnName to be of type string, got %T instead", value) + return fmt.Errorf("expected ConfiguredAudienceModelAssociationIdentifier to be of type string, got %T instead", value) } - sv.ColumnName = ptr.String(jtv) + sv.Id = ptr.String(jtv) } - case "minimum": + case "name": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected ConfiguredAudienceModelAssociationName to be of type string, got %T instead", value) } - sv.Minimum = ptr.Int32(int32(i64)) + sv.Name = ptr.String(jtv) } - case "type": + case "updateTime": if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AggregationType 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.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.Type = types.AggregationType(jtv) } default: @@ -7147,7 +11838,7 @@ func awsRestjson1_deserializeDocumentAggregationConstraint(v **types.Aggregation return nil } -func awsRestjson1_deserializeDocumentAggregationConstraints(v *[]types.AggregationConstraint, value interface{}) error { +func awsRestjson1_deserializeDocumentCollaborationConfiguredAudienceModelAssociationSummaryList(v *[]types.CollaborationConfiguredAudienceModelAssociationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7160,17 +11851,17 @@ func awsRestjson1_deserializeDocumentAggregationConstraints(v *[]types.Aggregati return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.AggregationConstraint + var cv []types.CollaborationConfiguredAudienceModelAssociationSummary if *v == nil { - cv = []types.AggregationConstraint{} + cv = []types.CollaborationConfiguredAudienceModelAssociationSummary{} } else { cv = *v } for _, value := range shape { - var col types.AggregationConstraint + var col types.CollaborationConfiguredAudienceModelAssociationSummary destAddr := &col - if err := awsRestjson1_deserializeDocumentAggregationConstraint(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentCollaborationConfiguredAudienceModelAssociationSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -7181,7 +11872,7 @@ func awsRestjson1_deserializeDocumentAggregationConstraints(v *[]types.Aggregati return nil } -func awsRestjson1_deserializeDocumentAllowedAnalysesList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentCollaborationPrivacyBudgetSummary(v **types.CollaborationPrivacyBudgetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7189,153 +11880,118 @@ func awsRestjson1_deserializeDocumentAllowedAnalysesList(v *[]string, 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 []string + var sv *types.CollaborationPrivacyBudgetSummary if *v == nil { - cv = []string{} + sv = &types.CollaborationPrivacyBudgetSummary{} } 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 AnalysisTemplateArnOrQueryWildcard to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "budget": + if err := awsRestjson1_deserializeDocumentPrivacyBudget(&sv.Budget, value); err != nil { + return err } - col = jtv - } - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentAllowedAnalysisProviderList(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) + case "collaborationArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) + } + sv.CollaborationArn = ptr.String(jtv) } - col = jtv - } - cv = append(cv, col) - - } - *v = cv - return nil -} -func awsRestjson1_deserializeDocumentAllowedColumnList(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "collaborationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.CollaborationId = ptr.String(jtv) + } - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "createTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v - } + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + } } - col = jtv - } - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentAnalysisParameter(v **types.AnalysisParameter, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of 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 "creatorAccountId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) + } + sv.CreatorAccountId = ptr.String(jtv) + } - var sv *types.AnalysisParameter - if *v == nil { - sv = &types.AnalysisParameter{} - } else { - sv = *v - } + case "id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } - for key, value := range shape { - switch key { - case "defaultValue": + case "privacyBudgetTemplateArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) + return fmt.Errorf("expected PrivacyBudgetTemplateArn to be of type string, got %T instead", value) } - sv.DefaultValue = ptr.String(jtv) + sv.PrivacyBudgetTemplateArn = ptr.String(jtv) } - case "name": + case "privacyBudgetTemplateId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) + return fmt.Errorf("expected PrivacyBudgetTemplateIdentifier to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.PrivacyBudgetTemplateId = ptr.String(jtv) } case "type": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ParameterType to be of type string, got %T instead", value) + return fmt.Errorf("expected PrivacyBudgetType to be of type string, got %T instead", value) + } + sv.Type = types.PrivacyBudgetType(jtv) + } + + case "updateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.Type = types.ParameterType(jtv) } default: @@ -7347,7 +12003,7 @@ func awsRestjson1_deserializeDocumentAnalysisParameter(v **types.AnalysisParamet return nil } -func awsRestjson1_deserializeDocumentAnalysisParameterList(v *[]types.AnalysisParameter, value interface{}) error { +func awsRestjson1_deserializeDocumentCollaborationPrivacyBudgetSummaryList(v *[]types.CollaborationPrivacyBudgetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7360,17 +12016,17 @@ func awsRestjson1_deserializeDocumentAnalysisParameterList(v *[]types.AnalysisPa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.AnalysisParameter + var cv []types.CollaborationPrivacyBudgetSummary if *v == nil { - cv = []types.AnalysisParameter{} + cv = []types.CollaborationPrivacyBudgetSummary{} } else { cv = *v } for _, value := range shape { - var col types.AnalysisParameter + var col types.CollaborationPrivacyBudgetSummary destAddr := &col - if err := awsRestjson1_deserializeDocumentAnalysisParameter(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentCollaborationPrivacyBudgetSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -7381,7 +12037,7 @@ func awsRestjson1_deserializeDocumentAnalysisParameterList(v *[]types.AnalysisPa return nil } -func awsRestjson1_deserializeDocumentAnalysisRule(v **types.AnalysisRule, value interface{}) error { +func awsRestjson1_deserializeDocumentCollaborationPrivacyBudgetTemplate(v **types.CollaborationPrivacyBudgetTemplate, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7394,20 +12050,47 @@ func awsRestjson1_deserializeDocumentAnalysisRule(v **types.AnalysisRule, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AnalysisRule + var sv *types.CollaborationPrivacyBudgetTemplate if *v == nil { - sv = &types.AnalysisRule{} + sv = &types.CollaborationPrivacyBudgetTemplate{} } 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 PrivacyBudgetTemplateArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "autoRefresh": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PrivacyBudgetTemplateAutoRefresh to be of type string, got %T instead", value) + } + sv.AutoRefresh = types.PrivacyBudgetTemplateAutoRefresh(jtv) + } + + case "collaborationArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) + } + sv.CollaborationArn = ptr.String(jtv) + } + case "collaborationId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected CollaborationIdentifier to be of type string, got %T instead", value) + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) } sv.CollaborationId = ptr.String(jtv) } @@ -7428,27 +12111,36 @@ func awsRestjson1_deserializeDocumentAnalysisRule(v **types.AnalysisRule, value } } - case "name": + case "creatorAccountId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) + } + sv.CreatorAccountId = ptr.String(jtv) + } + + case "id": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TableAlias to be of type string, got %T instead", value) + return fmt.Errorf("expected PrivacyBudgetTemplateIdentifier to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.Id = ptr.String(jtv) } - case "policy": - if err := awsRestjson1_deserializeDocumentAnalysisRulePolicy(&sv.Policy, value); err != nil { + case "parameters": + if err := awsRestjson1_deserializeDocumentPrivacyBudgetTemplateParametersOutput(&sv.Parameters, value); err != nil { return err } - case "type": + case "privacyBudgetType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AnalysisRuleType to be of type string, got %T instead", value) + return fmt.Errorf("expected PrivacyBudgetType to be of type string, got %T instead", value) } - sv.Type = types.AnalysisRuleType(jtv) + sv.PrivacyBudgetType = types.PrivacyBudgetType(jtv) } case "updateTime": @@ -7476,7 +12168,7 @@ func awsRestjson1_deserializeDocumentAnalysisRule(v **types.AnalysisRule, value return nil } -func awsRestjson1_deserializeDocumentAnalysisRuleAggregation(v **types.AnalysisRuleAggregation, value interface{}) error { +func awsRestjson1_deserializeDocumentCollaborationPrivacyBudgetTemplateSummary(v **types.CollaborationPrivacyBudgetTemplateSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7489,100 +12181,111 @@ func awsRestjson1_deserializeDocumentAnalysisRuleAggregation(v **types.AnalysisR return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AnalysisRuleAggregation + var sv *types.CollaborationPrivacyBudgetTemplateSummary if *v == nil { - sv = &types.AnalysisRuleAggregation{} + sv = &types.CollaborationPrivacyBudgetTemplateSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "aggregateColumns": - if err := awsRestjson1_deserializeDocumentAggregateColumnList(&sv.AggregateColumns, value); err != nil { - return err + case "arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PrivacyBudgetTemplateArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) } - case "allowedJoinOperators": - if err := awsRestjson1_deserializeDocumentJoinOperatorsList(&sv.AllowedJoinOperators, value); err != nil { - return err + case "collaborationArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) + } + sv.CollaborationArn = ptr.String(jtv) } - case "dimensionColumns": - if err := awsRestjson1_deserializeDocumentAnalysisRuleColumnList(&sv.DimensionColumns, value); err != nil { - return err + case "collaborationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.CollaborationId = ptr.String(jtv) } - case "joinColumns": - if err := awsRestjson1_deserializeDocumentAnalysisRuleColumnList(&sv.JoinColumns, value); err != nil { - return err + case "createTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } } - case "joinRequired": + case "creatorAccountId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected JoinRequiredOption to be of type string, got %T instead", value) + return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.JoinRequired = types.JoinRequiredOption(jtv) + sv.CreatorAccountId = ptr.String(jtv) } - case "outputConstraints": - if err := awsRestjson1_deserializeDocumentAggregationConstraints(&sv.OutputConstraints, value); err != nil { - return err + case "id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PrivacyBudgetTemplateIdentifier to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) } - case "scalarFunctions": - if err := awsRestjson1_deserializeDocumentScalarFunctionsList(&sv.ScalarFunctions, value); err != nil { - return err + case "privacyBudgetType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PrivacyBudgetType to be of type string, got %T instead", value) + } + sv.PrivacyBudgetType = types.PrivacyBudgetType(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} + case "updateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) -func awsRestjson1_deserializeDocumentAnalysisRuleColumnList(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 - } + default: + _, _ = key, value - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AnalysisRuleColumnName to be of type string, got %T instead", value) - } - col = jtv } - cv = append(cv, col) - } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentAnalysisRuleColumnNameList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentCollaborationPrivacyBudgetTemplateSummaryList(v *[]types.CollaborationPrivacyBudgetTemplateSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7595,22 +12298,20 @@ func awsRestjson1_deserializeDocumentAnalysisRuleColumnNameList(v *[]string, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var cv []types.CollaborationPrivacyBudgetTemplateSummary if *v == nil { - cv = []string{} + cv = []types.CollaborationPrivacyBudgetTemplateSummary{} } else { cv = *v } for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AnalysisRuleColumnName to be of type string, got %T instead", value) - } - col = jtv + var col types.CollaborationPrivacyBudgetTemplateSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentCollaborationPrivacyBudgetTemplateSummary(&destAddr, value); err != nil { + return err } + col = *destAddr cv = append(cv, col) } @@ -7618,48 +12319,7 @@ func awsRestjson1_deserializeDocumentAnalysisRuleColumnNameList(v *[]string, val return nil } -func awsRestjson1_deserializeDocumentAnalysisRuleCustom(v **types.AnalysisRuleCustom, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AnalysisRuleCustom - if *v == nil { - sv = &types.AnalysisRuleCustom{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "allowedAnalyses": - if err := awsRestjson1_deserializeDocumentAllowedAnalysesList(&sv.AllowedAnalyses, value); err != nil { - return err - } - - case "allowedAnalysisProviders": - if err := awsRestjson1_deserializeDocumentAllowedAnalysisProviderList(&sv.AllowedAnalysisProviders, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentAnalysisRuleList(v **types.AnalysisRuleList, value interface{}) error { +func awsRestjson1_deserializeDocumentCollaborationSummary(v **types.CollaborationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7672,138 +12332,129 @@ func awsRestjson1_deserializeDocumentAnalysisRuleList(v **types.AnalysisRuleList return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AnalysisRuleList + var sv *types.CollaborationSummary if *v == nil { - sv = &types.AnalysisRuleList{} + sv = &types.CollaborationSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "allowedJoinOperators": - if err := awsRestjson1_deserializeDocumentJoinOperatorsList(&sv.AllowedJoinOperators, value); err != nil { - return err - } - - case "joinColumns": - if err := awsRestjson1_deserializeDocumentAnalysisRuleColumnList(&sv.JoinColumns, value); err != nil { - return err - } - - case "listColumns": - if err := awsRestjson1_deserializeDocumentAnalysisRuleColumnList(&sv.ListColumns, value); err != nil { - return err + case "arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentAnalysisRulePolicy(v *types.AnalysisRulePolicy, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of 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 "createTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - var uv types.AnalysisRulePolicy -loop: - for key, value := range shape { - if value == nil { - continue - } - switch key { - case "v1": - var mv types.AnalysisRulePolicyV1 - if err := awsRestjson1_deserializeDocumentAnalysisRulePolicyV1(&mv, value); err != nil { - return err + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } } - uv = &types.AnalysisRulePolicyMemberV1{Value: mv} - break loop - default: - uv = &types.UnknownUnionMember{Tag: key} - break loop + case "creatorAccountId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) + } + sv.CreatorAccountId = ptr.String(jtv) + } - } - } - *v = uv - return nil -} + case "creatorDisplayName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DisplayName to be of type string, got %T instead", value) + } + sv.CreatorDisplayName = ptr.String(jtv) + } -func awsRestjson1_deserializeDocumentAnalysisRulePolicyV1(v *types.AnalysisRulePolicyV1, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "membershipArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MembershipArn to be of type string, got %T instead", value) + } + sv.MembershipArn = ptr.String(jtv) + } - var uv types.AnalysisRulePolicyV1 -loop: - for key, value := range shape { - if value == nil { - continue - } - switch key { - case "aggregation": - var mv types.AnalysisRuleAggregation - destAddr := &mv - if err := awsRestjson1_deserializeDocumentAnalysisRuleAggregation(&destAddr, value); err != nil { - return err + case "membershipId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.MembershipId = ptr.String(jtv) } - mv = *destAddr - uv = &types.AnalysisRulePolicyV1MemberAggregation{Value: mv} - break loop - case "custom": - var mv types.AnalysisRuleCustom - destAddr := &mv - if err := awsRestjson1_deserializeDocumentAnalysisRuleCustom(&destAddr, value); err != nil { - return err + case "memberStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MemberStatus to be of type string, got %T instead", value) + } + sv.MemberStatus = types.MemberStatus(jtv) } - mv = *destAddr - uv = &types.AnalysisRulePolicyV1MemberCustom{Value: mv} - break loop - case "list": - var mv types.AnalysisRuleList - destAddr := &mv - if err := awsRestjson1_deserializeDocumentAnalysisRuleList(&destAddr, value); err != nil { - return err + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "updateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } } - mv = *destAddr - uv = &types.AnalysisRulePolicyV1MemberList{Value: mv} - break loop default: - uv = &types.UnknownUnionMember{Tag: key} - break loop + _, _ = key, value } } - *v = uv + *v = sv return nil } -func awsRestjson1_deserializeDocumentAnalysisRuleTypeList(v *[]types.AnalysisRuleType, value interface{}) error { +func awsRestjson1_deserializeDocumentCollaborationSummaryList(v *[]types.CollaborationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7816,22 +12467,20 @@ func awsRestjson1_deserializeDocumentAnalysisRuleTypeList(v *[]types.AnalysisRul return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.AnalysisRuleType + var cv []types.CollaborationSummary if *v == nil { - cv = []types.AnalysisRuleType{} + cv = []types.CollaborationSummary{} } else { cv = *v } for _, value := range shape { - var col types.AnalysisRuleType - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AnalysisRuleType to be of type string, got %T instead", value) - } - col = types.AnalysisRuleType(jtv) + var col types.CollaborationSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentCollaborationSummary(&destAddr, value); err != nil { + return err } + col = *destAddr cv = append(cv, col) } @@ -7839,7 +12488,7 @@ func awsRestjson1_deserializeDocumentAnalysisRuleTypeList(v *[]types.AnalysisRul return nil } -func awsRestjson1_deserializeDocumentAnalysisSchema(v **types.AnalysisSchema, value interface{}) error { +func awsRestjson1_deserializeDocumentColumn(v **types.Column, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7852,18 +12501,31 @@ func awsRestjson1_deserializeDocumentAnalysisSchema(v **types.AnalysisSchema, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AnalysisSchema + var sv *types.Column if *v == nil { - sv = &types.AnalysisSchema{} + sv = &types.Column{} } else { sv = *v } for key, value := range shape { switch key { - case "referencedTables": - if err := awsRestjson1_deserializeDocumentQueryTables(&sv.ReferencedTables, value); err != nil { - return err + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColumnTypeString to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) } default: @@ -7875,7 +12537,7 @@ func awsRestjson1_deserializeDocumentAnalysisSchema(v **types.AnalysisSchema, va return nil } -func awsRestjson1_deserializeDocumentAnalysisSource(v *types.AnalysisSource, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnList(v *[]types.Column, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7883,41 +12545,33 @@ func awsRestjson1_deserializeDocumentAnalysisSource(v *types.AnalysisSource, val 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.AnalysisSource -loop: - for key, value := range shape { - if value == nil { - continue - } - switch key { - case "text": - var mv string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AnalysisTemplateText to be of type string, got %T instead", value) - } - mv = jtv - } - uv = &types.AnalysisSourceMemberText{Value: mv} - break loop - - default: - uv = &types.UnknownUnionMember{Tag: key} - break loop + var cv []types.Column + if *v == nil { + cv = []types.Column{} + } else { + cv = *v + } + for _, value := range shape { + var col types.Column + destAddr := &col + if err := awsRestjson1_deserializeDocumentColumn(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = uv + *v = cv return nil } -func awsRestjson1_deserializeDocumentAnalysisTemplate(v **types.AnalysisTemplate, value interface{}) error { +func awsRestjson1_deserializeDocumentConfiguredAudienceModelAssociation(v **types.ConfiguredAudienceModelAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7930,25 +12584,20 @@ func awsRestjson1_deserializeDocumentAnalysisTemplate(v **types.AnalysisTemplate return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AnalysisTemplate + var sv *types.ConfiguredAudienceModelAssociation if *v == nil { - sv = &types.AnalysisTemplate{} + sv = &types.ConfiguredAudienceModelAssociation{} } else { sv = *v } for key, value := range shape { switch key { - case "analysisParameters": - if err := awsRestjson1_deserializeDocumentAnalysisParameterList(&sv.AnalysisParameters, value); err != nil { - return err - } - case "arn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AnalysisTemplateArn to be of type string, got %T instead", value) + return fmt.Errorf("expected ConfiguredAudienceModelAssociationArn to be of type string, got %T instead", value) } sv.Arn = ptr.String(jtv) } @@ -7971,6 +12620,15 @@ func awsRestjson1_deserializeDocumentAnalysisTemplate(v **types.AnalysisTemplate sv.CollaborationId = ptr.String(jtv) } + case "configuredAudienceModelArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConfiguredAudienceModelArn to be of type string, got %T instead", value) + } + sv.ConfiguredAudienceModelArn = ptr.String(jtv) + } + case "createTime": if value != nil { switch jtv := value.(type) { @@ -7996,22 +12654,22 @@ func awsRestjson1_deserializeDocumentAnalysisTemplate(v **types.AnalysisTemplate sv.Description = ptr.String(jtv) } - case "format": + case "id": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AnalysisFormat to be of type string, got %T instead", value) + return fmt.Errorf("expected ConfiguredAudienceModelAssociationIdentifier to be of type string, got %T instead", value) } - sv.Format = types.AnalysisFormat(jtv) + sv.Id = ptr.String(jtv) } - case "id": + case "manageResourcePolicies": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected AnalysisTemplateIdentifier to be of type string, got %T instead", value) + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Id = ptr.String(jtv) + sv.ManageResourcePolicies = ptr.Bool(jtv) } case "membershipArn": @@ -8032,23 +12690,13 @@ func awsRestjson1_deserializeDocumentAnalysisTemplate(v **types.AnalysisTemplate sv.MembershipId = ptr.String(jtv) } - case "name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceAlias to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - case "schema": - if err := awsRestjson1_deserializeDocumentAnalysisSchema(&sv.Schema, value); err != nil { - return err - } - - case "source": - if err := awsRestjson1_deserializeDocumentAnalysisSource(&sv.Source, value); err != nil { - return err + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConfiguredAudienceModelAssociationName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) } case "updateTime": @@ -8076,7 +12724,7 @@ func awsRestjson1_deserializeDocumentAnalysisTemplate(v **types.AnalysisTemplate return nil } -func awsRestjson1_deserializeDocumentAnalysisTemplateSummary(v **types.AnalysisTemplateSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentConfiguredAudienceModelAssociationSummary(v **types.ConfiguredAudienceModelAssociationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8089,9 +12737,9 @@ func awsRestjson1_deserializeDocumentAnalysisTemplateSummary(v **types.AnalysisT return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AnalysisTemplateSummary + var sv *types.ConfiguredAudienceModelAssociationSummary if *v == nil { - sv = &types.AnalysisTemplateSummary{} + sv = &types.ConfiguredAudienceModelAssociationSummary{} } else { sv = *v } @@ -8102,7 +12750,7 @@ func awsRestjson1_deserializeDocumentAnalysisTemplateSummary(v **types.AnalysisT if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AnalysisTemplateArn to be of type string, got %T instead", value) + return fmt.Errorf("expected ConfiguredAudienceModelAssociationArn to be of type string, got %T instead", value) } sv.Arn = ptr.String(jtv) } @@ -8125,6 +12773,15 @@ func awsRestjson1_deserializeDocumentAnalysisTemplateSummary(v **types.AnalysisT sv.CollaborationId = ptr.String(jtv) } + case "configuredAudienceModelArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConfiguredAudienceModelArn to be of type string, got %T instead", value) + } + sv.ConfiguredAudienceModelArn = ptr.String(jtv) + } + case "createTime": if value != nil { switch jtv := value.(type) { @@ -8154,7 +12811,7 @@ func awsRestjson1_deserializeDocumentAnalysisTemplateSummary(v **types.AnalysisT if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AnalysisTemplateIdentifier to be of type string, got %T instead", value) + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) } sv.Id = ptr.String(jtv) } @@ -8172,7 +12829,7 @@ func awsRestjson1_deserializeDocumentAnalysisTemplateSummary(v **types.AnalysisT 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 MembershipIdentifier to be of type string, got %T instead", value) } sv.MembershipId = ptr.String(jtv) } @@ -8181,7 +12838,7 @@ func awsRestjson1_deserializeDocumentAnalysisTemplateSummary(v **types.AnalysisT if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceAlias to be of type string, got %T instead", value) + return fmt.Errorf("expected ConfiguredAudienceModelAssociationName to be of type string, got %T instead", value) } sv.Name = ptr.String(jtv) } @@ -8211,7 +12868,7 @@ func awsRestjson1_deserializeDocumentAnalysisTemplateSummary(v **types.AnalysisT return nil } -func awsRestjson1_deserializeDocumentAnalysisTemplateSummaryList(v *[]types.AnalysisTemplateSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentConfiguredAudienceModelAssociationSummaryList(v *[]types.ConfiguredAudienceModelAssociationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8224,17 +12881,17 @@ func awsRestjson1_deserializeDocumentAnalysisTemplateSummaryList(v *[]types.Anal return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.AnalysisTemplateSummary + var cv []types.ConfiguredAudienceModelAssociationSummary if *v == nil { - cv = []types.AnalysisTemplateSummary{} + cv = []types.ConfiguredAudienceModelAssociationSummary{} } else { cv = *v } for _, value := range shape { - var col types.AnalysisTemplateSummary + var col types.ConfiguredAudienceModelAssociationSummary destAddr := &col - if err := awsRestjson1_deserializeDocumentAnalysisTemplateSummary(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentConfiguredAudienceModelAssociationSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -8245,7 +12902,7 @@ func awsRestjson1_deserializeDocumentAnalysisTemplateSummaryList(v *[]types.Anal return nil } -func awsRestjson1_deserializeDocumentBatchGetCollaborationAnalysisTemplateError(v **types.BatchGetCollaborationAnalysisTemplateError, value interface{}) error { +func awsRestjson1_deserializeDocumentConfiguredTable(v **types.ConfiguredTable, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8258,40 +12915,105 @@ func awsRestjson1_deserializeDocumentBatchGetCollaborationAnalysisTemplateError( return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BatchGetCollaborationAnalysisTemplateError + var sv *types.ConfiguredTable if *v == nil { - sv = &types.BatchGetCollaborationAnalysisTemplateError{} + sv = &types.ConfiguredTable{} } else { sv = *v } for key, value := range shape { switch key { + case "allowedColumns": + if err := awsRestjson1_deserializeDocumentAllowedColumnList(&sv.AllowedColumns, value); err != nil { + return err + } + + case "analysisMethod": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisMethod to be of type string, got %T instead", value) + } + sv.AnalysisMethod = types.AnalysisMethod(jtv) + } + + case "analysisRuleTypes": + if err := awsRestjson1_deserializeDocumentConfiguredTableAnalysisRuleTypeList(&sv.AnalysisRuleTypes, value); err != nil { + return err + } + case "arn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AnalysisTemplateArn to be of type string, got %T instead", value) + return fmt.Errorf("expected ConfiguredTableArn to be of type string, got %T instead", value) } sv.Arn = ptr.String(jtv) } - case "code": + case "createTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreateTime = 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 String to be of type string, got %T instead", value) + return fmt.Errorf("expected TableDescription to be of type string, got %T instead", value) } - sv.Code = ptr.String(jtv) + sv.Description = ptr.String(jtv) } - case "message": + case "id": 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 UUID 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 DisplayName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "tableReference": + if err := awsRestjson1_deserializeDocumentTableReference(&sv.TableReference, value); err != nil { + return err + } + + case "updateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateTime = 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) } default: @@ -8303,7 +13025,7 @@ func awsRestjson1_deserializeDocumentBatchGetCollaborationAnalysisTemplateError( return nil } -func awsRestjson1_deserializeDocumentBatchGetCollaborationAnalysisTemplateErrorList(v *[]types.BatchGetCollaborationAnalysisTemplateError, value interface{}) error { +func awsRestjson1_deserializeDocumentConfiguredTableAnalysisRule(v **types.ConfiguredTableAnalysisRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8311,33 +13033,94 @@ func awsRestjson1_deserializeDocumentBatchGetCollaborationAnalysisTemplateErrorL 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.BatchGetCollaborationAnalysisTemplateError + var sv *types.ConfiguredTableAnalysisRule if *v == nil { - cv = []types.BatchGetCollaborationAnalysisTemplateError{} + sv = &types.ConfiguredTableAnalysisRule{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.BatchGetCollaborationAnalysisTemplateError - destAddr := &col - if err := awsRestjson1_deserializeDocumentBatchGetCollaborationAnalysisTemplateError(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "configuredTableArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConfiguredTableArn to be of type string, got %T instead", value) + } + sv.ConfiguredTableArn = ptr.String(jtv) + } + + case "configuredTableId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.ConfiguredTableId = ptr.String(jtv) + } + + case "createTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "policy": + if err := awsRestjson1_deserializeDocumentConfiguredTableAnalysisRulePolicy(&sv.Policy, value); err != nil { + return err + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConfiguredTableAnalysisRuleType to be of type string, got %T instead", value) + } + sv.Type = types.ConfiguredTableAnalysisRuleType(jtv) + } + + case "updateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentBatchGetSchemaError(v **types.BatchGetSchemaError, value interface{}) error { +func awsRestjson1_deserializeDocumentConfiguredTableAnalysisRulePolicy(v *types.ConfiguredTableAnalysisRulePolicy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8350,52 +13133,92 @@ func awsRestjson1_deserializeDocumentBatchGetSchemaError(v **types.BatchGetSchem return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BatchGetSchemaError - if *v == nil { - sv = &types.BatchGetSchemaError{} - } else { - sv = *v + var uv types.ConfiguredTableAnalysisRulePolicy +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "v1": + var mv types.ConfiguredTableAnalysisRulePolicyV1 + if err := awsRestjson1_deserializeDocumentConfiguredTableAnalysisRulePolicyV1(&mv, value); err != nil { + return err + } + uv = &types.ConfiguredTableAnalysisRulePolicyMemberV1{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + +func awsRestjson1_deserializeDocumentConfiguredTableAnalysisRulePolicyV1(v *types.ConfiguredTableAnalysisRulePolicyV1, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %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.ConfiguredTableAnalysisRulePolicyV1 +loop: for key, value := range shape { + if value == nil { + continue + } switch key { - case "code": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Code = ptr.String(jtv) + case "aggregation": + var mv types.AnalysisRuleAggregation + destAddr := &mv + if err := awsRestjson1_deserializeDocumentAnalysisRuleAggregation(&destAddr, value); err != nil { + return err } + mv = *destAddr + uv = &types.ConfiguredTableAnalysisRulePolicyV1MemberAggregation{Value: mv} + break loop - 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 "custom": + var mv types.AnalysisRuleCustom + destAddr := &mv + if err := awsRestjson1_deserializeDocumentAnalysisRuleCustom(&destAddr, value); err != nil { + return err } + mv = *destAddr + uv = &types.ConfiguredTableAnalysisRulePolicyV1MemberCustom{Value: mv} + break loop - case "name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TableAlias to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) + case "list": + var mv types.AnalysisRuleList + destAddr := &mv + if err := awsRestjson1_deserializeDocumentAnalysisRuleList(&destAddr, value); err != nil { + return err } + mv = *destAddr + uv = &types.ConfiguredTableAnalysisRulePolicyV1MemberList{Value: mv} + break loop default: - _, _ = key, value + uv = &types.UnknownUnionMember{Tag: key} + break loop } } - *v = sv + *v = uv return nil } -func awsRestjson1_deserializeDocumentBatchGetSchemaErrorList(v *[]types.BatchGetSchemaError, value interface{}) error { +func awsRestjson1_deserializeDocumentConfiguredTableAnalysisRuleTypeList(v *[]types.ConfiguredTableAnalysisRuleType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8408,20 +13231,22 @@ func awsRestjson1_deserializeDocumentBatchGetSchemaErrorList(v *[]types.BatchGet return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.BatchGetSchemaError + var cv []types.ConfiguredTableAnalysisRuleType if *v == nil { - cv = []types.BatchGetSchemaError{} + cv = []types.ConfiguredTableAnalysisRuleType{} } else { cv = *v } for _, value := range shape { - var col types.BatchGetSchemaError - destAddr := &col - if err := awsRestjson1_deserializeDocumentBatchGetSchemaError(&destAddr, value); err != nil { - return err + var col types.ConfiguredTableAnalysisRuleType + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConfiguredTableAnalysisRuleType to be of type string, got %T instead", value) + } + col = types.ConfiguredTableAnalysisRuleType(jtv) } - col = *destAddr cv = append(cv, col) } @@ -8429,7 +13254,7 @@ func awsRestjson1_deserializeDocumentBatchGetSchemaErrorList(v *[]types.BatchGet return nil } -func awsRestjson1_deserializeDocumentCollaboration(v **types.Collaboration, value interface{}) error { +func awsRestjson1_deserializeDocumentConfiguredTableAssociation(v **types.ConfiguredTableAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8442,9 +13267,9 @@ func awsRestjson1_deserializeDocumentCollaboration(v **types.Collaboration, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Collaboration + var sv *types.ConfiguredTableAssociation if *v == nil { - sv = &types.Collaboration{} + sv = &types.ConfiguredTableAssociation{} } else { sv = *v } @@ -8455,11 +13280,29 @@ func awsRestjson1_deserializeDocumentCollaboration(v **types.Collaboration, valu if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) + return fmt.Errorf("expected ConfiguredTableAssociationArn to be of type string, got %T instead", value) } sv.Arn = ptr.String(jtv) } + case "configuredTableArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConfiguredTableArn to be of type string, got %T instead", value) + } + sv.ConfiguredTableArn = ptr.String(jtv) + } + + case "configuredTableId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.ConfiguredTableId = ptr.String(jtv) + } + case "createTime": if value != nil { switch jtv := value.(type) { @@ -8476,34 +13319,11 @@ func awsRestjson1_deserializeDocumentCollaboration(v **types.Collaboration, valu } } - case "creatorAccountId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) - } - sv.CreatorAccountId = ptr.String(jtv) - } - - case "creatorDisplayName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DisplayName to be of type string, got %T instead", value) - } - sv.CreatorDisplayName = ptr.String(jtv) - } - - case "dataEncryptionMetadata": - if err := awsRestjson1_deserializeDocumentDataEncryptionMetadata(&sv.DataEncryptionMetadata, value); err != nil { - return err - } - case "description": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected CollaborationDescription to be of type string, got %T instead", value) + return fmt.Errorf("expected TableDescription to be of type string, got %T instead", value) } sv.Description = ptr.String(jtv) } @@ -8535,31 +13355,22 @@ func awsRestjson1_deserializeDocumentCollaboration(v **types.Collaboration, valu sv.MembershipId = ptr.String(jtv) } - case "memberStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected MemberStatus to be of type string, got %T instead", value) - } - sv.MemberStatus = types.MemberStatus(jtv) - } - case "name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected CollaborationName to be of type string, got %T instead", value) + return fmt.Errorf("expected TableAlias to be of type string, got %T instead", value) } sv.Name = ptr.String(jtv) } - case "queryLogStatus": + case "roleArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected CollaborationQueryLogStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.QueryLogStatus = types.CollaborationQueryLogStatus(jtv) + sv.RoleArn = ptr.String(jtv) } case "updateTime": @@ -8587,7 +13398,7 @@ func awsRestjson1_deserializeDocumentCollaboration(v **types.Collaboration, valu return nil } -func awsRestjson1_deserializeDocumentCollaborationAnalysisTemplate(v **types.CollaborationAnalysisTemplate, value interface{}) error { +func awsRestjson1_deserializeDocumentConfiguredTableAssociationSummary(v **types.ConfiguredTableAssociationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8600,45 +13411,31 @@ func awsRestjson1_deserializeDocumentCollaborationAnalysisTemplate(v **types.Col return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CollaborationAnalysisTemplate + var sv *types.ConfiguredTableAssociationSummary if *v == nil { - sv = &types.CollaborationAnalysisTemplate{} + sv = &types.ConfiguredTableAssociationSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "analysisParameters": - if err := awsRestjson1_deserializeDocumentAnalysisParameterList(&sv.AnalysisParameters, value); err != nil { - return err - } - case "arn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AnalysisTemplateArn to be of type string, got %T instead", value) + return fmt.Errorf("expected ConfiguredTableAssociationArn to be of type string, got %T instead", value) } sv.Arn = ptr.String(jtv) } - case "collaborationArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) - } - sv.CollaborationArn = ptr.String(jtv) - } - - case "collaborationId": + case "configuredTableId": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected UUID to be of type string, got %T instead", value) } - sv.CollaborationId = ptr.String(jtv) + sv.ConfiguredTableId = ptr.String(jtv) } case "createTime": @@ -8657,61 +13454,42 @@ func awsRestjson1_deserializeDocumentCollaborationAnalysisTemplate(v **types.Col } } - case "creatorAccountId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) - } - sv.CreatorAccountId = ptr.String(jtv) - } - - case "description": + case "id": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceDescription to be of type string, got %T instead", value) + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) } - sv.Description = ptr.String(jtv) + sv.Id = ptr.String(jtv) } - case "format": + case "membershipArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AnalysisFormat to be of type string, got %T instead", value) + return fmt.Errorf("expected MembershipArn to be of type string, got %T instead", value) } - sv.Format = types.AnalysisFormat(jtv) + sv.MembershipArn = ptr.String(jtv) } - case "id": + case "membershipId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AnalysisTemplateIdentifier to be of type string, got %T instead", value) + return fmt.Errorf("expected MembershipIdentifier to be of type string, got %T instead", value) } - sv.Id = ptr.String(jtv) + sv.MembershipId = ptr.String(jtv) } case "name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceAlias to be of type string, got %T instead", value) + return fmt.Errorf("expected TableAlias to be of type string, got %T instead", value) } sv.Name = ptr.String(jtv) } - case "schema": - if err := awsRestjson1_deserializeDocumentAnalysisSchema(&sv.Schema, value); err != nil { - return err - } - - case "source": - if err := awsRestjson1_deserializeDocumentAnalysisSource(&sv.Source, value); err != nil { - return err - } - case "updateTime": if value != nil { switch jtv := value.(type) { @@ -8737,7 +13515,7 @@ func awsRestjson1_deserializeDocumentCollaborationAnalysisTemplate(v **types.Col return nil } -func awsRestjson1_deserializeDocumentCollaborationAnalysisTemplateList(v *[]types.CollaborationAnalysisTemplate, value interface{}) error { +func awsRestjson1_deserializeDocumentConfiguredTableAssociationSummaryList(v *[]types.ConfiguredTableAssociationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8750,17 +13528,17 @@ func awsRestjson1_deserializeDocumentCollaborationAnalysisTemplateList(v *[]type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.CollaborationAnalysisTemplate + var cv []types.ConfiguredTableAssociationSummary if *v == nil { - cv = []types.CollaborationAnalysisTemplate{} + cv = []types.ConfiguredTableAssociationSummary{} } else { cv = *v } for _, value := range shape { - var col types.CollaborationAnalysisTemplate + var col types.ConfiguredTableAssociationSummary destAddr := &col - if err := awsRestjson1_deserializeDocumentCollaborationAnalysisTemplate(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentConfiguredTableAssociationSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -8771,7 +13549,7 @@ func awsRestjson1_deserializeDocumentCollaborationAnalysisTemplateList(v *[]type return nil } -func awsRestjson1_deserializeDocumentCollaborationAnalysisTemplateSummary(v **types.CollaborationAnalysisTemplateSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentConfiguredTableSummary(v **types.ConfiguredTableSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8784,81 +13562,59 @@ func awsRestjson1_deserializeDocumentCollaborationAnalysisTemplateSummary(v **ty return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CollaborationAnalysisTemplateSummary + var sv *types.ConfiguredTableSummary if *v == nil { - sv = &types.CollaborationAnalysisTemplateSummary{} + sv = &types.ConfiguredTableSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "arn": + case "analysisMethod": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AnalysisTemplateArn to be of type string, got %T instead", value) + return fmt.Errorf("expected AnalysisMethod to be of type string, got %T instead", value) } - sv.Arn = ptr.String(jtv) + sv.AnalysisMethod = types.AnalysisMethod(jtv) } - case "collaborationArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) - } - sv.CollaborationArn = ptr.String(jtv) + case "analysisRuleTypes": + if err := awsRestjson1_deserializeDocumentConfiguredTableAnalysisRuleTypeList(&sv.AnalysisRuleTypes, value); err != nil { + return err } - case "collaborationId": + case "arn": 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 ConfiguredTableArn to be of type string, got %T instead", value) } - sv.CollaborationId = ptr.String(jtv) + sv.Arn = ptr.String(jtv) } case "createTime": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "creatorAccountId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) - } - sv.CreatorAccountId = ptr.String(jtv) - } - - case "description": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceDescription 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.CreateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.Description = ptr.String(jtv) } case "id": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AnalysisTemplateIdentifier to be of type string, got %T instead", value) + return fmt.Errorf("expected ConfiguredTableIdentifier to be of type string, got %T instead", value) } sv.Id = ptr.String(jtv) } @@ -8867,7 +13623,7 @@ func awsRestjson1_deserializeDocumentCollaborationAnalysisTemplateSummary(v **ty if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceAlias to be of type string, got %T instead", value) + return fmt.Errorf("expected DisplayName to be of type string, got %T instead", value) } sv.Name = ptr.String(jtv) } @@ -8897,7 +13653,7 @@ func awsRestjson1_deserializeDocumentCollaborationAnalysisTemplateSummary(v **ty return nil } -func awsRestjson1_deserializeDocumentCollaborationAnalysisTemplateSummaryList(v *[]types.CollaborationAnalysisTemplateSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentConfiguredTableSummaryList(v *[]types.ConfiguredTableSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8910,17 +13666,17 @@ func awsRestjson1_deserializeDocumentCollaborationAnalysisTemplateSummaryList(v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.CollaborationAnalysisTemplateSummary + var cv []types.ConfiguredTableSummary if *v == nil { - cv = []types.CollaborationAnalysisTemplateSummary{} + cv = []types.ConfiguredTableSummary{} } else { cv = *v } for _, value := range shape { - var col types.CollaborationAnalysisTemplateSummary + var col types.ConfiguredTableSummary destAddr := &col - if err := awsRestjson1_deserializeDocumentCollaborationAnalysisTemplateSummary(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentConfiguredTableSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -8931,7 +13687,7 @@ func awsRestjson1_deserializeDocumentCollaborationAnalysisTemplateSummaryList(v return nil } -func awsRestjson1_deserializeDocumentCollaborationSummary(v **types.CollaborationSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8944,119 +13700,158 @@ func awsRestjson1_deserializeDocumentCollaborationSummary(v **types.Collaboratio return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CollaborationSummary + var sv *types.ConflictException if *v == nil { - sv = &types.CollaborationSummary{} + sv = &types.ConflictException{} } else { sv = *v } for key, value := range shape { switch key { - case "arn": + case "message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = ptr.String(jtv) + sv.Message = ptr.String(jtv) } - case "createTime": + case "reason": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreateTime = 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 ConflictExceptionReason to be of type string, got %T instead", value) } + sv.Reason = types.ConflictExceptionReason(jtv) } - case "creatorAccountId": + case "resourceId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CreatorAccountId = ptr.String(jtv) + sv.ResourceId = ptr.String(jtv) } - case "creatorDisplayName": + case "resourceType": 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 ResourceType to be of type string, got %T instead", value) } - sv.CreatorDisplayName = ptr.String(jtv) + sv.ResourceType = types.ResourceType(jtv) } - case "id": + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDataEncryptionMetadata(v **types.DataEncryptionMetadata, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DataEncryptionMetadata + if *v == nil { + sv = &types.DataEncryptionMetadata{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "allowCleartext": 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.Id = ptr.String(jtv) + sv.AllowCleartext = ptr.Bool(jtv) } - case "membershipArn": + case "allowDuplicates": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected MembershipArn to be of type string, got %T instead", value) + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.MembershipArn = ptr.String(jtv) + sv.AllowDuplicates = ptr.Bool(jtv) } - case "membershipId": + case "allowJoinsOnColumnsWithDifferentNames": 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.MembershipId = ptr.String(jtv) + sv.AllowJoinsOnColumnsWithDifferentNames = ptr.Bool(jtv) } - case "memberStatus": + case "preserveNulls": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected MemberStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.MemberStatus = types.MemberStatus(jtv) + sv.PreserveNulls = ptr.Bool(jtv) } + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDifferentialPrivacyColumn(v **types.DifferentialPrivacyColumn, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DifferentialPrivacyColumn + if *v == nil { + sv = &types.DifferentialPrivacyColumn{} + } 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 CollaborationName to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } sv.Name = ptr.String(jtv) } - case "updateTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - default: _, _ = key, value @@ -9066,7 +13861,7 @@ func awsRestjson1_deserializeDocumentCollaborationSummary(v **types.Collaboratio return nil } -func awsRestjson1_deserializeDocumentCollaborationSummaryList(v *[]types.CollaborationSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDifferentialPrivacyColumnList(v *[]types.DifferentialPrivacyColumn, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9079,17 +13874,17 @@ func awsRestjson1_deserializeDocumentCollaborationSummaryList(v *[]types.Collabo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.CollaborationSummary + var cv []types.DifferentialPrivacyColumn if *v == nil { - cv = []types.CollaborationSummary{} + cv = []types.DifferentialPrivacyColumn{} } else { cv = *v } for _, value := range shape { - var col types.CollaborationSummary + var col types.DifferentialPrivacyColumn destAddr := &col - if err := awsRestjson1_deserializeDocumentCollaborationSummary(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentDifferentialPrivacyColumn(&destAddr, value); err != nil { return err } col = *destAddr @@ -9100,7 +13895,7 @@ func awsRestjson1_deserializeDocumentCollaborationSummaryList(v *[]types.Collabo return nil } -func awsRestjson1_deserializeDocumentColumn(v **types.Column, value interface{}) error { +func awsRestjson1_deserializeDocumentDifferentialPrivacyConfiguration(v **types.DifferentialPrivacyConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9113,31 +13908,107 @@ func awsRestjson1_deserializeDocumentColumn(v **types.Column, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Column + var sv *types.DifferentialPrivacyConfiguration if *v == nil { - sv = &types.Column{} + sv = &types.DifferentialPrivacyConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "name": + case "columns": + if err := awsRestjson1_deserializeDocumentDifferentialPrivacyColumnList(&sv.Columns, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDifferentialPrivacyParameters(v **types.DifferentialPrivacyParameters, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DifferentialPrivacyParameters + if *v == nil { + sv = &types.DifferentialPrivacyParameters{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "sensitivityParameters": + if err := awsRestjson1_deserializeDocumentDifferentialPrivacySensitivityParametersList(&sv.SensitivityParameters, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDifferentialPrivacyPreviewAggregation(v **types.DifferentialPrivacyPreviewAggregation, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DifferentialPrivacyPreviewAggregation + if *v == nil { + sv = &types.DifferentialPrivacyPreviewAggregation{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "maxCount": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err } - sv.Name = ptr.String(jtv) + sv.MaxCount = ptr.Int32(int32(i64)) } case "type": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ColumnTypeString to be of type string, got %T instead", value) + return fmt.Errorf("expected DifferentialPrivacyAggregationType to be of type string, got %T instead", value) } - sv.Type = ptr.String(jtv) + sv.Type = types.DifferentialPrivacyAggregationType(jtv) } default: @@ -9149,7 +14020,7 @@ func awsRestjson1_deserializeDocumentColumn(v **types.Column, value interface{}) return nil } -func awsRestjson1_deserializeDocumentColumnList(v *[]types.Column, value interface{}) error { +func awsRestjson1_deserializeDocumentDifferentialPrivacyPreviewAggregationList(v *[]types.DifferentialPrivacyPreviewAggregation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9162,17 +14033,17 @@ func awsRestjson1_deserializeDocumentColumnList(v *[]types.Column, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.Column + var cv []types.DifferentialPrivacyPreviewAggregation if *v == nil { - cv = []types.Column{} + cv = []types.DifferentialPrivacyPreviewAggregation{} } else { cv = *v } for _, value := range shape { - var col types.Column + var col types.DifferentialPrivacyPreviewAggregation destAddr := &col - if err := awsRestjson1_deserializeDocumentColumn(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentDifferentialPrivacyPreviewAggregation(&destAddr, value); err != nil { return err } col = *destAddr @@ -9183,7 +14054,7 @@ func awsRestjson1_deserializeDocumentColumnList(v *[]types.Column, value interfa return nil } -func awsRestjson1_deserializeDocumentConfiguredTable(v **types.ConfiguredTable, value interface{}) error { +func awsRestjson1_deserializeDocumentDifferentialPrivacyPrivacyBudget(v **types.DifferentialPrivacyPrivacyBudget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9196,105 +14067,31 @@ func awsRestjson1_deserializeDocumentConfiguredTable(v **types.ConfiguredTable, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConfiguredTable + var sv *types.DifferentialPrivacyPrivacyBudget if *v == nil { - sv = &types.ConfiguredTable{} + sv = &types.DifferentialPrivacyPrivacyBudget{} } else { sv = *v } for key, value := range shape { switch key { - case "allowedColumns": - if err := awsRestjson1_deserializeDocumentAllowedColumnList(&sv.AllowedColumns, value); err != nil { + case "aggregations": + if err := awsRestjson1_deserializeDocumentDifferentialPrivacyPrivacyBudgetAggregationList(&sv.Aggregations, value); err != nil { return err } - case "analysisMethod": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AnalysisMethod to be of type string, got %T instead", value) - } - sv.AnalysisMethod = types.AnalysisMethod(jtv) - } - - case "analysisRuleTypes": - if err := awsRestjson1_deserializeDocumentConfiguredTableAnalysisRuleTypeList(&sv.AnalysisRuleTypes, value); err != nil { - return err - } - - case "arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ConfiguredTableArn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "createTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreateTime = 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 TableDescription to be of type string, got %T instead", value) - } - sv.Description = ptr.String(jtv) - } - - case "id": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected UUID to be of type string, got %T instead", value) - } - sv.Id = ptr.String(jtv) - } - - case "name": + case "epsilon": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected DisplayName to be of type string, got %T instead", value) + return fmt.Errorf("expected Epsilon to be json.Number, got %T instead", value) } - sv.Name = ptr.String(jtv) - } - - case "tableReference": - if err := awsRestjson1_deserializeDocumentTableReference(&sv.TableReference, value); err != nil { - return err - } - - case "updateTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + i64, err := jtv.Int64() + if err != nil { + return err } + sv.Epsilon = ptr.Int32(int32(i64)) } default: @@ -9306,7 +14103,7 @@ func awsRestjson1_deserializeDocumentConfiguredTable(v **types.ConfiguredTable, return nil } -func awsRestjson1_deserializeDocumentConfiguredTableAnalysisRule(v **types.ConfiguredTableAnalysisRule, value interface{}) error { +func awsRestjson1_deserializeDocumentDifferentialPrivacyPrivacyBudgetAggregation(v **types.DifferentialPrivacyPrivacyBudgetAggregation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9319,77 +14116,48 @@ func awsRestjson1_deserializeDocumentConfiguredTableAnalysisRule(v **types.Confi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConfiguredTableAnalysisRule + var sv *types.DifferentialPrivacyPrivacyBudgetAggregation if *v == nil { - sv = &types.ConfiguredTableAnalysisRule{} + sv = &types.DifferentialPrivacyPrivacyBudgetAggregation{} } else { sv = *v } for key, value := range shape { switch key { - case "configuredTableArn": + case "maxCount": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected ConfiguredTableArn to be of type string, got %T instead", value) + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) } - sv.ConfiguredTableArn = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaxCount = ptr.Int32(int32(i64)) } - case "configuredTableId": + case "remainingCount": 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.ConfiguredTableId = ptr.String(jtv) - } - - case "createTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + i64, err := jtv.Int64() + if err != nil { + return err } - } - - case "policy": - if err := awsRestjson1_deserializeDocumentConfiguredTableAnalysisRulePolicy(&sv.Policy, value); err != nil { - return err + sv.RemainingCount = ptr.Int32(int32(i64)) } case "type": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ConfiguredTableAnalysisRuleType to be of type string, got %T instead", value) - } - sv.Type = types.ConfiguredTableAnalysisRuleType(jtv) - } - - case "updateTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + return fmt.Errorf("expected DifferentialPrivacyAggregationType to be of type string, got %T instead", value) } + sv.Type = types.DifferentialPrivacyAggregationType(jtv) } default: @@ -9401,7 +14169,7 @@ func awsRestjson1_deserializeDocumentConfiguredTableAnalysisRule(v **types.Confi return nil } -func awsRestjson1_deserializeDocumentConfiguredTableAnalysisRulePolicy(v *types.ConfiguredTableAnalysisRulePolicy, value interface{}) error { +func awsRestjson1_deserializeDocumentDifferentialPrivacyPrivacyBudgetAggregationList(v *[]types.DifferentialPrivacyPrivacyBudgetAggregation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9409,97 +14177,33 @@ func awsRestjson1_deserializeDocumentConfiguredTableAnalysisRulePolicy(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 uv types.ConfiguredTableAnalysisRulePolicy -loop: - for key, value := range shape { - if value == nil { - continue - } - switch key { - case "v1": - var mv types.ConfiguredTableAnalysisRulePolicyV1 - if err := awsRestjson1_deserializeDocumentConfiguredTableAnalysisRulePolicyV1(&mv, value); err != nil { - return err - } - uv = &types.ConfiguredTableAnalysisRulePolicyMemberV1{Value: mv} - break loop - - default: - uv = &types.UnknownUnionMember{Tag: key} - break loop - - } - } - *v = uv - return nil -} - -func awsRestjson1_deserializeDocumentConfiguredTableAnalysisRulePolicyV1(v *types.ConfiguredTableAnalysisRulePolicyV1, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) + var cv []types.DifferentialPrivacyPrivacyBudgetAggregation + if *v == nil { + cv = []types.DifferentialPrivacyPrivacyBudgetAggregation{} + } else { + cv = *v } - var uv types.ConfiguredTableAnalysisRulePolicyV1 -loop: - for key, value := range shape { - if value == nil { - continue + for _, value := range shape { + var col types.DifferentialPrivacyPrivacyBudgetAggregation + destAddr := &col + if err := awsRestjson1_deserializeDocumentDifferentialPrivacyPrivacyBudgetAggregation(&destAddr, value); err != nil { + return err } - switch key { - case "aggregation": - var mv types.AnalysisRuleAggregation - destAddr := &mv - if err := awsRestjson1_deserializeDocumentAnalysisRuleAggregation(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.ConfiguredTableAnalysisRulePolicyV1MemberAggregation{Value: mv} - break loop - - case "custom": - var mv types.AnalysisRuleCustom - destAddr := &mv - if err := awsRestjson1_deserializeDocumentAnalysisRuleCustom(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.ConfiguredTableAnalysisRulePolicyV1MemberCustom{Value: mv} - break loop - - case "list": - var mv types.AnalysisRuleList - destAddr := &mv - if err := awsRestjson1_deserializeDocumentAnalysisRuleList(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.ConfiguredTableAnalysisRulePolicyV1MemberList{Value: mv} - break loop - - default: - uv = &types.UnknownUnionMember{Tag: key} - break loop + col = *destAddr + cv = append(cv, col) - } } - *v = uv + *v = cv return nil } -func awsRestjson1_deserializeDocumentConfiguredTableAnalysisRuleTypeList(v *[]types.ConfiguredTableAnalysisRuleType, value interface{}) error { +func awsRestjson1_deserializeDocumentDifferentialPrivacyPrivacyImpact(v **types.DifferentialPrivacyPrivacyImpact, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9507,35 +14211,35 @@ func awsRestjson1_deserializeDocumentConfiguredTableAnalysisRuleTypeList(v *[]ty return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ConfiguredTableAnalysisRuleType + var sv *types.DifferentialPrivacyPrivacyImpact if *v == nil { - cv = []types.ConfiguredTableAnalysisRuleType{} + sv = &types.DifferentialPrivacyPrivacyImpact{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.ConfiguredTableAnalysisRuleType - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ConfiguredTableAnalysisRuleType to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "aggregations": + if err := awsRestjson1_deserializeDocumentDifferentialPrivacyPreviewAggregationList(&sv.Aggregations, value); err != nil { + return err } - col = types.ConfiguredTableAnalysisRuleType(jtv) - } - cv = append(cv, col) + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentConfiguredTableAssociation(v **types.ConfiguredTableAssociation, value interface{}) error { +func awsRestjson1_deserializeDocumentDifferentialPrivacySensitivityParameters(v **types.DifferentialPrivacySensitivityParameters, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9548,43 +14252,34 @@ func awsRestjson1_deserializeDocumentConfiguredTableAssociation(v **types.Config return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConfiguredTableAssociation + var sv *types.DifferentialPrivacySensitivityParameters if *v == nil { - sv = &types.ConfiguredTableAssociation{} + sv = &types.DifferentialPrivacySensitivityParameters{} } 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 ConfiguredTableAssociationArn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "configuredTableArn": + case "aggregationExpression": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ConfiguredTableArn to be of type string, got %T instead", value) + return fmt.Errorf("expected DifferentialPrivacyAggregationExpression to be of type string, got %T instead", value) } - sv.ConfiguredTableArn = ptr.String(jtv) + sv.AggregationExpression = ptr.String(jtv) } - case "configuredTableId": + case "aggregationType": 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 DifferentialPrivacyAggregationType to be of type string, got %T instead", value) } - sv.ConfiguredTableId = ptr.String(jtv) + sv.AggregationType = types.DifferentialPrivacyAggregationType(jtv) } - case "createTime": + case "maxColumnValue": if value != nil { switch jtv := value.(type) { case json.Number: @@ -9592,69 +14287,33 @@ func awsRestjson1_deserializeDocumentConfiguredTableAssociation(v **types.Config if err != nil { return err } - sv.CreateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + sv.MaxColumnValue = ptr.Float32(float32(f64)) - } - } + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() - case "description": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TableDescription to be of type string, got %T instead", value) - } - sv.Description = ptr.String(jtv) - } + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) - case "id": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected UUID to be of type string, got %T instead", value) - } - sv.Id = ptr.String(jtv) - } + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) - case "membershipArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected MembershipArn to be of type string, got %T instead", value) - } - sv.MembershipArn = ptr.String(jtv) - } + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) - case "membershipId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected UUID to be of type string, got %T instead", value) - } - sv.MembershipId = ptr.String(jtv) - } + } + sv.MaxColumnValue = ptr.Float32(float32(f64)) - case "name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TableAlias to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } + default: + return fmt.Errorf("expected Float to be a JSON Number, got %T instead", value) - case "roleArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.RoleArn = ptr.String(jtv) } - case "updateTime": + case "minColumnValue": if value != nil { switch jtv := value.(type) { case json.Number: @@ -9662,12 +14321,43 @@ func awsRestjson1_deserializeDocumentConfiguredTableAssociation(v **types.Config if err != nil { return err } - sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.MinColumnValue = ptr.Float32(float32(f64)) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.MinColumnValue = ptr.Float32(float32(f64)) default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + return fmt.Errorf("expected Float to be a JSON Number, got %T instead", value) + + } + } + case "userContributionLimit": + 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.UserContributionLimit = ptr.Int32(int32(i64)) } default: @@ -9679,7 +14369,41 @@ func awsRestjson1_deserializeDocumentConfiguredTableAssociation(v **types.Config return nil } -func awsRestjson1_deserializeDocumentConfiguredTableAssociationSummary(v **types.ConfiguredTableAssociationSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDifferentialPrivacySensitivityParametersList(v *[]types.DifferentialPrivacySensitivityParameters, 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.DifferentialPrivacySensitivityParameters + if *v == nil { + cv = []types.DifferentialPrivacySensitivityParameters{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.DifferentialPrivacySensitivityParameters + destAddr := &col + if err := awsRestjson1_deserializeDocumentDifferentialPrivacySensitivityParameters(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentDifferentialPrivacyTemplateParametersOutput(v **types.DifferentialPrivacyTemplateParametersOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9692,99 +14416,128 @@ func awsRestjson1_deserializeDocumentConfiguredTableAssociationSummary(v **types return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConfiguredTableAssociationSummary + var sv *types.DifferentialPrivacyTemplateParametersOutput if *v == nil { - sv = &types.ConfiguredTableAssociationSummary{} + sv = &types.DifferentialPrivacyTemplateParametersOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "arn": + case "epsilon": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected ConfiguredTableAssociationArn to be of type string, got %T instead", value) + return fmt.Errorf("expected Epsilon to be json.Number, got %T instead", value) } - sv.Arn = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Epsilon = ptr.Int32(int32(i64)) } - case "configuredTableId": + case "usersNoisePerQuery": 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 UsersNoisePerQuery to be json.Number, got %T instead", value) } - sv.ConfiguredTableId = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.UsersNoisePerQuery = ptr.Int32(int32(i64)) } - case "createTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + default: + _, _ = key, value - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } + } + *v = sv + return nil +} - } - } +func awsRestjson1_deserializeDocumentGlueTableReference(v **types.GlueTableReference, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - case "id": + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.GlueTableReference + if *v == nil { + sv = &types.GlueTableReference{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "databaseName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + return fmt.Errorf("expected GlueDatabaseName to be of type string, got %T instead", value) } - sv.Id = ptr.String(jtv) + sv.DatabaseName = ptr.String(jtv) } - case "membershipArn": + case "tableName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected MembershipArn to be of type string, got %T instead", value) + return fmt.Errorf("expected GlueTableName to be of type string, got %T instead", value) } - sv.MembershipArn = ptr.String(jtv) + sv.TableName = ptr.String(jtv) } - case "membershipId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected MembershipIdentifier to be of type string, got %T instead", value) - } - sv.MembershipId = ptr.String(jtv) - } + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.InternalServerException + if *v == nil { + sv = &types.InternalServerException{} + } else { + sv = *v + } - case "name": + for key, value := range shape { + switch key { + case "message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TableAlias to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - case "updateTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + return fmt.Errorf("expected String to be of type string, got %T instead", value) } + sv.Message = ptr.String(jtv) } default: @@ -9796,7 +14549,7 @@ func awsRestjson1_deserializeDocumentConfiguredTableAssociationSummary(v **types return nil } -func awsRestjson1_deserializeDocumentConfiguredTableAssociationSummaryList(v *[]types.ConfiguredTableAssociationSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentJoinOperatorsList(v *[]types.JoinOperator, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9809,20 +14562,22 @@ func awsRestjson1_deserializeDocumentConfiguredTableAssociationSummaryList(v *[] return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ConfiguredTableAssociationSummary + var cv []types.JoinOperator if *v == nil { - cv = []types.ConfiguredTableAssociationSummary{} + cv = []types.JoinOperator{} } else { cv = *v } for _, value := range shape { - var col types.ConfiguredTableAssociationSummary - destAddr := &col - if err := awsRestjson1_deserializeDocumentConfiguredTableAssociationSummary(&destAddr, value); err != nil { - return err + var col types.JoinOperator + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected JoinOperator to be of type string, got %T instead", value) + } + col = types.JoinOperator(jtv) } - col = *destAddr cv = append(cv, col) } @@ -9830,7 +14585,43 @@ func awsRestjson1_deserializeDocumentConfiguredTableAssociationSummaryList(v *[] return nil } -func awsRestjson1_deserializeDocumentConfiguredTableSummary(v **types.ConfiguredTableSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentMemberAbilities(v *[]types.MemberAbility, 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.MemberAbility + if *v == nil { + cv = []types.MemberAbility{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.MemberAbility + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MemberAbility to be of type string, got %T instead", value) + } + col = types.MemberAbility(jtv) + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentMembership(v **types.Membership, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9843,36 +14634,67 @@ func awsRestjson1_deserializeDocumentConfiguredTableSummary(v **types.Configured return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConfiguredTableSummary + var sv *types.Membership if *v == nil { - sv = &types.ConfiguredTableSummary{} + sv = &types.Membership{} } else { sv = *v } for key, value := range shape { switch key { - case "analysisMethod": + case "arn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AnalysisMethod to be of type string, got %T instead", value) + return fmt.Errorf("expected MembershipArn to be of type string, got %T instead", value) } - sv.AnalysisMethod = types.AnalysisMethod(jtv) + sv.Arn = ptr.String(jtv) } - case "analysisRuleTypes": - if err := awsRestjson1_deserializeDocumentConfiguredTableAnalysisRuleTypeList(&sv.AnalysisRuleTypes, value); err != nil { - return err + case "collaborationArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) + } + sv.CollaborationArn = ptr.String(jtv) } - case "arn": + case "collaborationCreatorAccountId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ConfiguredTableArn to be of type string, got %T instead", value) + return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.Arn = ptr.String(jtv) + sv.CollaborationCreatorAccountId = ptr.String(jtv) + } + + case "collaborationCreatorDisplayName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DisplayName to be of type string, got %T instead", value) + } + sv.CollaborationCreatorDisplayName = ptr.String(jtv) + } + + case "collaborationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.CollaborationId = ptr.String(jtv) + } + + case "collaborationName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationName to be of type string, got %T instead", value) + } + sv.CollaborationName = ptr.String(jtv) } case "createTime": @@ -9891,22 +14713,46 @@ func awsRestjson1_deserializeDocumentConfiguredTableSummary(v **types.Configured } } + case "defaultResultConfiguration": + if err := awsRestjson1_deserializeDocumentMembershipProtectedQueryResultConfiguration(&sv.DefaultResultConfiguration, value); err != nil { + return err + } + case "id": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ConfiguredTableIdentifier to be of type string, got %T instead", value) + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) } sv.Id = ptr.String(jtv) } - case "name": + case "memberAbilities": + if err := awsRestjson1_deserializeDocumentMemberAbilities(&sv.MemberAbilities, value); err != nil { + return err + } + + case "paymentConfiguration": + if err := awsRestjson1_deserializeDocumentMembershipPaymentConfiguration(&sv.PaymentConfiguration, value); err != nil { + return err + } + + case "queryLogStatus": 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 MembershipQueryLogStatus to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.QueryLogStatus = types.MembershipQueryLogStatus(jtv) + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MembershipStatus to be of type string, got %T instead", value) + } + sv.Status = types.MembershipStatus(jtv) } case "updateTime": @@ -9934,41 +14780,7 @@ func awsRestjson1_deserializeDocumentConfiguredTableSummary(v **types.Configured return nil } -func awsRestjson1_deserializeDocumentConfiguredTableSummaryList(v *[]types.ConfiguredTableSummary, 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.ConfiguredTableSummary - if *v == nil { - cv = []types.ConfiguredTableSummary{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.ConfiguredTableSummary - destAddr := &col - if err := awsRestjson1_deserializeDocumentConfiguredTableSummary(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictException, value interface{}) error { +func awsRestjson1_deserializeDocumentMembershipPaymentConfiguration(v **types.MembershipPaymentConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9981,49 +14793,18 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConflictException + var sv *types.MembershipPaymentConfiguration if *v == nil { - sv = &types.ConflictException{} + sv = &types.MembershipPaymentConfiguration{} } 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 "reason": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ConflictExceptionReason to be of type string, got %T instead", value) - } - sv.Reason = types.ConflictExceptionReason(jtv) - } - - case "resourceId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.ResourceId = ptr.String(jtv) - } - - case "resourceType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) - } - sv.ResourceType = types.ResourceType(jtv) + case "queryCompute": + if err := awsRestjson1_deserializeDocumentMembershipQueryComputePaymentConfig(&sv.QueryCompute, value); err != nil { + return err } default: @@ -10035,7 +14816,7 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti return nil } -func awsRestjson1_deserializeDocumentDataEncryptionMetadata(v **types.DataEncryptionMetadata, value interface{}) error { +func awsRestjson1_deserializeDocumentMembershipProtectedQueryOutputConfiguration(v *types.MembershipProtectedQueryOutputConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10048,61 +14829,34 @@ func awsRestjson1_deserializeDocumentDataEncryptionMetadata(v **types.DataEncryp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataEncryptionMetadata - if *v == nil { - sv = &types.DataEncryptionMetadata{} - } else { - sv = *v - } - + var uv types.MembershipProtectedQueryOutputConfiguration +loop: for key, value := range shape { + if value == nil { + continue + } switch key { - case "allowCleartext": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.AllowCleartext = ptr.Bool(jtv) - } - - case "allowDuplicates": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.AllowDuplicates = ptr.Bool(jtv) - } - - case "allowJoinsOnColumnsWithDifferentNames": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.AllowJoinsOnColumnsWithDifferentNames = ptr.Bool(jtv) - } - - case "preserveNulls": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.PreserveNulls = ptr.Bool(jtv) + case "s3": + var mv types.ProtectedQueryS3OutputConfiguration + destAddr := &mv + if err := awsRestjson1_deserializeDocumentProtectedQueryS3OutputConfiguration(&destAddr, value); err != nil { + return err } + mv = *destAddr + uv = &types.MembershipProtectedQueryOutputConfigurationMemberS3{Value: mv} + break loop default: - _, _ = key, value + uv = &types.UnknownUnionMember{Tag: key} + break loop } } - *v = sv + *v = uv return nil } -func awsRestjson1_deserializeDocumentGlueTableReference(v **types.GlueTableReference, value interface{}) error { +func awsRestjson1_deserializeDocumentMembershipProtectedQueryResultConfiguration(v **types.MembershipProtectedQueryResultConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10115,31 +14869,27 @@ func awsRestjson1_deserializeDocumentGlueTableReference(v **types.GlueTableRefer return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GlueTableReference + var sv *types.MembershipProtectedQueryResultConfiguration if *v == nil { - sv = &types.GlueTableReference{} + sv = &types.MembershipProtectedQueryResultConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "databaseName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected GlueDatabaseName to be of type string, got %T instead", value) - } - sv.DatabaseName = ptr.String(jtv) + case "outputConfiguration": + if err := awsRestjson1_deserializeDocumentMembershipProtectedQueryOutputConfiguration(&sv.OutputConfiguration, value); err != nil { + return err } - case "tableName": + case "roleArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected GlueTableName to be of type string, got %T instead", value) + return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.TableName = ptr.String(jtv) + sv.RoleArn = ptr.String(jtv) } default: @@ -10151,7 +14901,7 @@ func awsRestjson1_deserializeDocumentGlueTableReference(v **types.GlueTableRefer return nil } -func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error { +func awsRestjson1_deserializeDocumentMembershipQueryComputePaymentConfig(v **types.MembershipQueryComputePaymentConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10164,22 +14914,22 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InternalServerException + var sv *types.MembershipQueryComputePaymentConfig if *v == nil { - sv = &types.InternalServerException{} + sv = &types.MembershipQueryComputePaymentConfig{} } else { sv = *v } for key, value := range shape { switch key { - case "message": + case "isResponsible": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.IsResponsible = ptr.Bool(jtv) } default: @@ -10191,7 +14941,7 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS return nil } -func awsRestjson1_deserializeDocumentJoinOperatorsList(v *[]types.JoinOperator, value interface{}) error { +func awsRestjson1_deserializeDocumentMembershipSummary(v **types.MembershipSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10199,35 +14949,144 @@ func awsRestjson1_deserializeDocumentJoinOperatorsList(v *[]types.JoinOperator, 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.JoinOperator + var sv *types.MembershipSummary if *v == nil { - cv = []types.JoinOperator{} + sv = &types.MembershipSummary{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.JoinOperator - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected JoinOperator to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MembershipArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) } - col = types.JoinOperator(jtv) - } - cv = append(cv, col) + case "collaborationArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) + } + sv.CollaborationArn = ptr.String(jtv) + } + + case "collaborationCreatorAccountId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) + } + sv.CollaborationCreatorAccountId = ptr.String(jtv) + } + + case "collaborationCreatorDisplayName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DisplayName to be of type string, got %T instead", value) + } + sv.CollaborationCreatorDisplayName = ptr.String(jtv) + } + + case "collaborationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationIdentifier to be of type string, got %T instead", value) + } + sv.CollaborationId = ptr.String(jtv) + } + + case "collaborationName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationName to be of type string, got %T instead", value) + } + sv.CollaborationName = ptr.String(jtv) + } + + case "createTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } + + case "memberAbilities": + if err := awsRestjson1_deserializeDocumentMemberAbilities(&sv.MemberAbilities, value); err != nil { + return err + } + + case "paymentConfiguration": + if err := awsRestjson1_deserializeDocumentMembershipPaymentConfiguration(&sv.PaymentConfiguration, value); err != nil { + return err + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MembershipStatus to be of type string, got %T instead", value) + } + sv.Status = types.MembershipStatus(jtv) + } + + case "updateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentMemberAbilities(v *[]types.MemberAbility, value interface{}) error { +func awsRestjson1_deserializeDocumentMembershipSummaryList(v *[]types.MembershipSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10240,22 +15099,20 @@ func awsRestjson1_deserializeDocumentMemberAbilities(v *[]types.MemberAbility, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.MemberAbility + var cv []types.MembershipSummary if *v == nil { - cv = []types.MemberAbility{} + cv = []types.MembershipSummary{} } else { cv = *v } for _, value := range shape { - var col types.MemberAbility - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected MemberAbility to be of type string, got %T instead", value) - } - col = types.MemberAbility(jtv) + var col types.MembershipSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentMembershipSummary(&destAddr, value); err != nil { + return err } + col = *destAddr cv = append(cv, col) } @@ -10263,7 +15120,7 @@ func awsRestjson1_deserializeDocumentMemberAbilities(v *[]types.MemberAbility, v return nil } -func awsRestjson1_deserializeDocumentMembership(v **types.Membership, value interface{}) error { +func awsRestjson1_deserializeDocumentMemberSummary(v **types.MemberSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10276,67 +15133,27 @@ func awsRestjson1_deserializeDocumentMembership(v **types.Membership, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Membership + var sv *types.MemberSummary if *v == nil { - sv = &types.Membership{} + sv = &types.MemberSummary{} } 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 MembershipArn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "collaborationArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) - } - sv.CollaborationArn = ptr.String(jtv) + case "abilities": + if err := awsRestjson1_deserializeDocumentMemberAbilities(&sv.Abilities, value); err != nil { + return err } - case "collaborationCreatorAccountId": + 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.CollaborationCreatorAccountId = ptr.String(jtv) - } - - case "collaborationCreatorDisplayName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DisplayName to be of type string, got %T instead", value) - } - sv.CollaborationCreatorDisplayName = ptr.String(jtv) - } - - case "collaborationId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected UUID to be of type string, got %T instead", value) - } - sv.CollaborationId = ptr.String(jtv) - } - - case "collaborationName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CollaborationName to be of type string, got %T instead", value) - } - sv.CollaborationName = ptr.String(jtv) + sv.AccountId = ptr.String(jtv) } case "createTime": @@ -10355,46 +15172,45 @@ func awsRestjson1_deserializeDocumentMembership(v **types.Membership, value inte } } - case "defaultResultConfiguration": - if err := awsRestjson1_deserializeDocumentMembershipProtectedQueryResultConfiguration(&sv.DefaultResultConfiguration, value); err != nil { - return err - } - - case "id": + case "displayName": 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 DisplayName to be of type string, got %T instead", value) } - sv.Id = ptr.String(jtv) - } - - case "memberAbilities": - if err := awsRestjson1_deserializeDocumentMemberAbilities(&sv.MemberAbilities, value); err != nil { - return err + sv.DisplayName = ptr.String(jtv) } - case "paymentConfiguration": - if err := awsRestjson1_deserializeDocumentMembershipPaymentConfiguration(&sv.PaymentConfiguration, value); err != nil { - return err + case "membershipArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MembershipArn to be of type string, got %T instead", value) + } + sv.MembershipArn = ptr.String(jtv) } - case "queryLogStatus": + case "membershipId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected MembershipQueryLogStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) } - sv.QueryLogStatus = types.MembershipQueryLogStatus(jtv) + sv.MembershipId = ptr.String(jtv) + } + + case "paymentConfiguration": + if err := awsRestjson1_deserializeDocumentPaymentConfiguration(&sv.PaymentConfiguration, value); err != nil { + return err } case "status": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected MembershipStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected MemberStatus to be of type string, got %T instead", value) } - sv.Status = types.MembershipStatus(jtv) + sv.Status = types.MemberStatus(jtv) } case "updateTime": @@ -10422,7 +15238,41 @@ func awsRestjson1_deserializeDocumentMembership(v **types.Membership, value inte return nil } -func awsRestjson1_deserializeDocumentMembershipPaymentConfiguration(v **types.MembershipPaymentConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentMemberSummaryList(v *[]types.MemberSummary, 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.MemberSummary + if *v == nil { + cv = []types.MemberSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.MemberSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentMemberSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentParameterMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10435,9 +15285,45 @@ func awsRestjson1_deserializeDocumentMembershipPaymentConfiguration(v **types.Me return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.MembershipPaymentConfiguration + var mv map[string]string if *v == nil { - sv = &types.MembershipPaymentConfiguration{} + 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 ParameterValue to be of type string, got %T instead", value) + } + parsedVal = jtv + } + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentPaymentConfiguration(v **types.PaymentConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.PaymentConfiguration + if *v == nil { + sv = &types.PaymentConfiguration{} } else { sv = *v } @@ -10445,7 +15331,7 @@ func awsRestjson1_deserializeDocumentMembershipPaymentConfiguration(v **types.Me for key, value := range shape { switch key { case "queryCompute": - if err := awsRestjson1_deserializeDocumentMembershipQueryComputePaymentConfig(&sv.QueryCompute, value); err != nil { + if err := awsRestjson1_deserializeDocumentQueryComputePaymentConfig(&sv.QueryCompute, value); err != nil { return err } @@ -10458,7 +15344,7 @@ func awsRestjson1_deserializeDocumentMembershipPaymentConfiguration(v **types.Me return nil } -func awsRestjson1_deserializeDocumentMembershipProtectedQueryOutputConfiguration(v *types.MembershipProtectedQueryOutputConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentPrivacyBudget(v *types.PrivacyBudget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10471,21 +15357,21 @@ func awsRestjson1_deserializeDocumentMembershipProtectedQueryOutputConfiguration return fmt.Errorf("unexpected JSON type %v", value) } - var uv types.MembershipProtectedQueryOutputConfiguration + var uv types.PrivacyBudget loop: for key, value := range shape { if value == nil { continue } switch key { - case "s3": - var mv types.ProtectedQueryS3OutputConfiguration + case "differentialPrivacy": + var mv types.DifferentialPrivacyPrivacyBudget destAddr := &mv - if err := awsRestjson1_deserializeDocumentProtectedQueryS3OutputConfiguration(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentDifferentialPrivacyPrivacyBudget(&destAddr, value); err != nil { return err } mv = *destAddr - uv = &types.MembershipProtectedQueryOutputConfigurationMemberS3{Value: mv} + uv = &types.PrivacyBudgetMemberDifferentialPrivacy{Value: mv} break loop default: @@ -10498,7 +15384,7 @@ loop: return nil } -func awsRestjson1_deserializeDocumentMembershipProtectedQueryResultConfiguration(v **types.MembershipProtectedQueryResultConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentPrivacyBudgetSummary(v **types.PrivacyBudgetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10511,27 +15397,122 @@ func awsRestjson1_deserializeDocumentMembershipProtectedQueryResultConfiguration return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.MembershipProtectedQueryResultConfiguration + var sv *types.PrivacyBudgetSummary if *v == nil { - sv = &types.MembershipProtectedQueryResultConfiguration{} + sv = &types.PrivacyBudgetSummary{} } else { sv = *v } - for key, value := range shape { - switch key { - case "outputConfiguration": - if err := awsRestjson1_deserializeDocumentMembershipProtectedQueryOutputConfiguration(&sv.OutputConfiguration, value); err != nil { - return err + for key, value := range shape { + switch key { + case "budget": + if err := awsRestjson1_deserializeDocumentPrivacyBudget(&sv.Budget, value); err != nil { + return err + } + + case "collaborationArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) + } + sv.CollaborationArn = ptr.String(jtv) + } + + case "collaborationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.CollaborationId = ptr.String(jtv) + } + + case "createTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } + + case "membershipArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MembershipArn to be of type string, got %T instead", value) + } + sv.MembershipArn = ptr.String(jtv) + } + + case "membershipId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MembershipIdentifier to be of type string, got %T instead", value) + } + sv.MembershipId = ptr.String(jtv) + } + + case "privacyBudgetTemplateArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PrivacyBudgetTemplateArn to be of type string, got %T instead", value) + } + sv.PrivacyBudgetTemplateArn = ptr.String(jtv) + } + + case "privacyBudgetTemplateId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PrivacyBudgetTemplateIdentifier to be of type string, got %T instead", value) + } + sv.PrivacyBudgetTemplateId = ptr.String(jtv) } - case "roleArn": + case "type": 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 PrivacyBudgetType to be of type string, got %T instead", value) + } + sv.Type = types.PrivacyBudgetType(jtv) + } + + case "updateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.RoleArn = ptr.String(jtv) } default: @@ -10543,7 +15524,7 @@ func awsRestjson1_deserializeDocumentMembershipProtectedQueryResultConfiguration return nil } -func awsRestjson1_deserializeDocumentMembershipQueryComputePaymentConfig(v **types.MembershipQueryComputePaymentConfig, value interface{}) error { +func awsRestjson1_deserializeDocumentPrivacyBudgetSummaryList(v *[]types.PrivacyBudgetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10551,39 +15532,33 @@ func awsRestjson1_deserializeDocumentMembershipQueryComputePaymentConfig(v **typ 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.MembershipQueryComputePaymentConfig + var cv []types.PrivacyBudgetSummary if *v == nil { - sv = &types.MembershipQueryComputePaymentConfig{} + cv = []types.PrivacyBudgetSummary{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "isResponsible": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.IsResponsible = ptr.Bool(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.PrivacyBudgetSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentPrivacyBudgetSummary(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentMembershipSummary(v **types.MembershipSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentPrivacyBudgetTemplate(v **types.PrivacyBudgetTemplate, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10596,9 +15571,9 @@ func awsRestjson1_deserializeDocumentMembershipSummary(v **types.MembershipSumma return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.MembershipSummary + var sv *types.PrivacyBudgetTemplate if *v == nil { - sv = &types.MembershipSummary{} + sv = &types.PrivacyBudgetTemplate{} } else { sv = *v } @@ -10609,56 +15584,38 @@ func awsRestjson1_deserializeDocumentMembershipSummary(v **types.MembershipSumma if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected MembershipArn to be of type string, got %T instead", value) + return fmt.Errorf("expected PrivacyBudgetTemplateArn to be of type string, got %T instead", value) } sv.Arn = ptr.String(jtv) } - case "collaborationArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) - } - sv.CollaborationArn = ptr.String(jtv) - } - - case "collaborationCreatorAccountId": + case "autoRefresh": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) + return fmt.Errorf("expected PrivacyBudgetTemplateAutoRefresh to be of type string, got %T instead", value) } - sv.CollaborationCreatorAccountId = ptr.String(jtv) + sv.AutoRefresh = types.PrivacyBudgetTemplateAutoRefresh(jtv) } - case "collaborationCreatorDisplayName": + case "collaborationArn": 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 CollaborationArn to be of type string, got %T instead", value) } - sv.CollaborationCreatorDisplayName = ptr.String(jtv) + sv.CollaborationArn = ptr.String(jtv) } case "collaborationId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected CollaborationIdentifier to be of type string, got %T instead", value) + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) } sv.CollaborationId = ptr.String(jtv) } - case "collaborationName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CollaborationName to be of type string, got %T instead", value) - } - sv.CollaborationName = ptr.String(jtv) - } - case "createTime": if value != nil { switch jtv := value.(type) { @@ -10679,28 +15636,41 @@ func awsRestjson1_deserializeDocumentMembershipSummary(v **types.MembershipSumma 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 PrivacyBudgetTemplateIdentifier to be of type string, got %T instead", value) } sv.Id = ptr.String(jtv) } - case "memberAbilities": - if err := awsRestjson1_deserializeDocumentMemberAbilities(&sv.MemberAbilities, value); err != nil { - return err + case "membershipArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MembershipArn to be of type string, got %T instead", value) + } + sv.MembershipArn = ptr.String(jtv) } - case "paymentConfiguration": - if err := awsRestjson1_deserializeDocumentMembershipPaymentConfiguration(&sv.PaymentConfiguration, value); err != nil { + case "membershipId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.MembershipId = ptr.String(jtv) + } + + case "parameters": + if err := awsRestjson1_deserializeDocumentPrivacyBudgetTemplateParametersOutput(&sv.Parameters, value); err != nil { return err } - case "status": + case "privacyBudgetType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected MembershipStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected PrivacyBudgetType to be of type string, got %T instead", value) } - sv.Status = types.MembershipStatus(jtv) + sv.PrivacyBudgetType = types.PrivacyBudgetType(jtv) } case "updateTime": @@ -10728,7 +15698,7 @@ func awsRestjson1_deserializeDocumentMembershipSummary(v **types.MembershipSumma return nil } -func awsRestjson1_deserializeDocumentMembershipSummaryList(v *[]types.MembershipSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentPrivacyBudgetTemplateParametersOutput(v *types.PrivacyBudgetTemplateParametersOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10736,33 +15706,39 @@ func awsRestjson1_deserializeDocumentMembershipSummaryList(v *[]types.Membership 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.MembershipSummary - if *v == nil { - cv = []types.MembershipSummary{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.MembershipSummary - destAddr := &col - if err := awsRestjson1_deserializeDocumentMembershipSummary(&destAddr, value); err != nil { - return err + var uv types.PrivacyBudgetTemplateParametersOutput +loop: + for key, value := range shape { + if value == nil { + continue } - col = *destAddr - cv = append(cv, col) + switch key { + case "differentialPrivacy": + var mv types.DifferentialPrivacyTemplateParametersOutput + destAddr := &mv + if err := awsRestjson1_deserializeDocumentDifferentialPrivacyTemplateParametersOutput(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.PrivacyBudgetTemplateParametersOutputMemberDifferentialPrivacy{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + } } - *v = cv + *v = uv return nil } -func awsRestjson1_deserializeDocumentMemberSummary(v **types.MemberSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentPrivacyBudgetTemplateSummary(v **types.PrivacyBudgetTemplateSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10775,27 +15751,40 @@ func awsRestjson1_deserializeDocumentMemberSummary(v **types.MemberSummary, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.MemberSummary + var sv *types.PrivacyBudgetTemplateSummary if *v == nil { - sv = &types.MemberSummary{} + sv = &types.PrivacyBudgetTemplateSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "abilities": - if err := awsRestjson1_deserializeDocumentMemberAbilities(&sv.Abilities, value); err != nil { - return err + case "arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PrivacyBudgetTemplateArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) } - case "accountId": + case "collaborationArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) + return fmt.Errorf("expected CollaborationArn to be of type string, got %T instead", value) } - sv.AccountId = ptr.String(jtv) + sv.CollaborationArn = ptr.String(jtv) + } + + case "collaborationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.CollaborationId = ptr.String(jtv) } case "createTime": @@ -10814,13 +15803,13 @@ func awsRestjson1_deserializeDocumentMemberSummary(v **types.MemberSummary, valu } } - case "displayName": + case "id": 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 PrivacyBudgetTemplateIdentifier to be of type string, got %T instead", value) } - sv.DisplayName = ptr.String(jtv) + sv.Id = ptr.String(jtv) } case "membershipArn": @@ -10841,18 +15830,13 @@ func awsRestjson1_deserializeDocumentMemberSummary(v **types.MemberSummary, valu sv.MembershipId = ptr.String(jtv) } - case "paymentConfiguration": - if err := awsRestjson1_deserializeDocumentPaymentConfiguration(&sv.PaymentConfiguration, value); err != nil { - return err - } - - case "status": + case "privacyBudgetType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected MemberStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected PrivacyBudgetType to be of type string, got %T instead", value) } - sv.Status = types.MemberStatus(jtv) + sv.PrivacyBudgetType = types.PrivacyBudgetType(jtv) } case "updateTime": @@ -10880,7 +15864,7 @@ func awsRestjson1_deserializeDocumentMemberSummary(v **types.MemberSummary, valu return nil } -func awsRestjson1_deserializeDocumentMemberSummaryList(v *[]types.MemberSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentPrivacyBudgetTemplateSummaryList(v *[]types.PrivacyBudgetTemplateSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10893,17 +15877,17 @@ func awsRestjson1_deserializeDocumentMemberSummaryList(v *[]types.MemberSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.MemberSummary + var cv []types.PrivacyBudgetTemplateSummary if *v == nil { - cv = []types.MemberSummary{} + cv = []types.PrivacyBudgetTemplateSummary{} } else { cv = *v } for _, value := range shape { - var col types.MemberSummary + var col types.PrivacyBudgetTemplateSummary destAddr := &col - if err := awsRestjson1_deserializeDocumentMemberSummary(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentPrivacyBudgetTemplateSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -10914,7 +15898,7 @@ func awsRestjson1_deserializeDocumentMemberSummaryList(v *[]types.MemberSummary, return nil } -func awsRestjson1_deserializeDocumentParameterMap(v *map[string]string, value interface{}) error { +func awsRestjson1_deserializeDocumentPrivacyImpact(v *types.PrivacyImpact, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10927,62 +15911,30 @@ func awsRestjson1_deserializeDocumentParameterMap(v *map[string]string, value in return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]string - if *v == nil { - mv = map[string]string{} - } else { - mv = *v - } - + var uv types.PrivacyImpact +loop: for key, value := range shape { - var parsedVal string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ParameterValue to be of type string, got %T instead", value) - } - parsedVal = jtv + if value == nil { + continue } - mv[key] = parsedVal - - } - *v = mv - return nil -} - -func awsRestjson1_deserializeDocumentPaymentConfiguration(v **types.PaymentConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.PaymentConfiguration - if *v == nil { - sv = &types.PaymentConfiguration{} - } else { - sv = *v - } - - for key, value := range shape { switch key { - case "queryCompute": - if err := awsRestjson1_deserializeDocumentQueryComputePaymentConfig(&sv.QueryCompute, value); err != nil { + case "differentialPrivacy": + var mv types.DifferentialPrivacyPrivacyImpact + destAddr := &mv + if err := awsRestjson1_deserializeDocumentDifferentialPrivacyPrivacyImpact(&destAddr, value); err != nil { return err } + mv = *destAddr + uv = &types.PrivacyImpactMemberDifferentialPrivacy{Value: mv} + break loop default: - _, _ = key, value + uv = &types.UnknownUnionMember{Tag: key} + break loop } } - *v = sv + *v = uv return nil } @@ -11024,6 +15976,11 @@ func awsRestjson1_deserializeDocumentProtectedQuery(v **types.ProtectedQuery, va } } + case "differentialPrivacy": + if err := awsRestjson1_deserializeDocumentDifferentialPrivacyParameters(&sv.DifferentialPrivacy, value); err != nil { + return err + } + case "error": if err := awsRestjson1_deserializeDocumentProtectedQueryError(&sv.Error, value); err != nil { return err diff --git a/service/cleanrooms/generated.json b/service/cleanrooms/generated.json index 409d61655b5..f5dc2681d5c 100644 --- a/service/cleanrooms/generated.json +++ b/service/cleanrooms/generated.json @@ -13,46 +13,63 @@ "api_op_BatchGetSchema.go", "api_op_CreateAnalysisTemplate.go", "api_op_CreateCollaboration.go", + "api_op_CreateConfiguredAudienceModelAssociation.go", "api_op_CreateConfiguredTable.go", "api_op_CreateConfiguredTableAnalysisRule.go", "api_op_CreateConfiguredTableAssociation.go", "api_op_CreateMembership.go", + "api_op_CreatePrivacyBudgetTemplate.go", "api_op_DeleteAnalysisTemplate.go", "api_op_DeleteCollaboration.go", + "api_op_DeleteConfiguredAudienceModelAssociation.go", "api_op_DeleteConfiguredTable.go", "api_op_DeleteConfiguredTableAnalysisRule.go", "api_op_DeleteConfiguredTableAssociation.go", "api_op_DeleteMember.go", "api_op_DeleteMembership.go", + "api_op_DeletePrivacyBudgetTemplate.go", "api_op_GetAnalysisTemplate.go", "api_op_GetCollaboration.go", "api_op_GetCollaborationAnalysisTemplate.go", + "api_op_GetCollaborationConfiguredAudienceModelAssociation.go", + "api_op_GetCollaborationPrivacyBudgetTemplate.go", + "api_op_GetConfiguredAudienceModelAssociation.go", "api_op_GetConfiguredTable.go", "api_op_GetConfiguredTableAnalysisRule.go", "api_op_GetConfiguredTableAssociation.go", "api_op_GetMembership.go", + "api_op_GetPrivacyBudgetTemplate.go", "api_op_GetProtectedQuery.go", "api_op_GetSchema.go", "api_op_GetSchemaAnalysisRule.go", "api_op_ListAnalysisTemplates.go", "api_op_ListCollaborationAnalysisTemplates.go", + "api_op_ListCollaborationConfiguredAudienceModelAssociations.go", + "api_op_ListCollaborationPrivacyBudgetTemplates.go", + "api_op_ListCollaborationPrivacyBudgets.go", "api_op_ListCollaborations.go", + "api_op_ListConfiguredAudienceModelAssociations.go", "api_op_ListConfiguredTableAssociations.go", "api_op_ListConfiguredTables.go", "api_op_ListMembers.go", "api_op_ListMemberships.go", + "api_op_ListPrivacyBudgetTemplates.go", + "api_op_ListPrivacyBudgets.go", "api_op_ListProtectedQueries.go", "api_op_ListSchemas.go", "api_op_ListTagsForResource.go", + "api_op_PreviewPrivacyImpact.go", "api_op_StartProtectedQuery.go", "api_op_TagResource.go", "api_op_UntagResource.go", "api_op_UpdateAnalysisTemplate.go", "api_op_UpdateCollaboration.go", + "api_op_UpdateConfiguredAudienceModelAssociation.go", "api_op_UpdateConfiguredTable.go", "api_op_UpdateConfiguredTableAnalysisRule.go", "api_op_UpdateConfiguredTableAssociation.go", "api_op_UpdateMembership.go", + "api_op_UpdatePrivacyBudgetTemplate.go", "api_op_UpdateProtectedQuery.go", "auth.go", "deserializers.go", diff --git a/service/cleanrooms/go.mod b/service/cleanrooms/go.mod index b121b9de787..03ce4b78447 100644 --- a/service/cleanrooms/go.mod +++ b/service/cleanrooms/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cleanrooms/go.sum b/service/cleanrooms/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/cleanrooms/go.sum +++ b/service/cleanrooms/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cleanrooms/serializers.go b/service/cleanrooms/serializers.go index 44d0927d4b7..f1761e1eb06 100644 --- a/service/cleanrooms/serializers.go +++ b/service/cleanrooms/serializers.go @@ -438,6 +438,116 @@ func awsRestjson1_serializeOpDocumentCreateCollaborationInput(v *CreateCollabora return nil } +type awsRestjson1_serializeOpCreateConfiguredAudienceModelAssociation struct { +} + +func (*awsRestjson1_serializeOpCreateConfiguredAudienceModelAssociation) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateConfiguredAudienceModelAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateConfiguredAudienceModelAssociationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/configuredaudiencemodelassociations") + 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_serializeOpHttpBindingsCreateConfiguredAudienceModelAssociationInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateConfiguredAudienceModelAssociationInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateConfiguredAudienceModelAssociationInput(v *CreateConfiguredAudienceModelAssociationInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} + } + if v.MembershipIdentifier != nil { + if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateConfiguredAudienceModelAssociationInput(v *CreateConfiguredAudienceModelAssociationInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ConfiguredAudienceModelArn != nil { + ok := object.Key("configuredAudienceModelArn") + ok.String(*v.ConfiguredAudienceModelArn) + } + + if v.ConfiguredAudienceModelAssociationName != nil { + ok := object.Key("configuredAudienceModelAssociationName") + ok.String(*v.ConfiguredAudienceModelAssociationName) + } + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + if v.ManageResourcePolicies != nil { + ok := object.Key("manageResourcePolicies") + ok.Boolean(*v.ManageResourcePolicies) + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpCreateConfiguredTable struct { } @@ -850,6 +960,113 @@ func awsRestjson1_serializeOpDocumentCreateMembershipInput(v *CreateMembershipIn return nil } +type awsRestjson1_serializeOpCreatePrivacyBudgetTemplate struct { +} + +func (*awsRestjson1_serializeOpCreatePrivacyBudgetTemplate) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreatePrivacyBudgetTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreatePrivacyBudgetTemplateInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/privacybudgettemplates") + 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_serializeOpHttpBindingsCreatePrivacyBudgetTemplateInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreatePrivacyBudgetTemplateInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreatePrivacyBudgetTemplateInput(v *CreatePrivacyBudgetTemplateInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} + } + if v.MembershipIdentifier != nil { + if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreatePrivacyBudgetTemplateInput(v *CreatePrivacyBudgetTemplateInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.AutoRefresh) > 0 { + ok := object.Key("autoRefresh") + ok.String(string(v.AutoRefresh)) + } + + if v.Parameters != nil { + ok := object.Key("parameters") + if err := awsRestjson1_serializeDocumentPrivacyBudgetTemplateParametersInput(v.Parameters, ok); err != nil { + return err + } + } + + if len(v.PrivacyBudgetType) > 0 { + ok := object.Key("privacyBudgetType") + ok.String(string(v.PrivacyBudgetType)) + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpDeleteAnalysisTemplate struct { } @@ -989,6 +1206,80 @@ func awsRestjson1_serializeOpHttpBindingsDeleteCollaborationInput(v *DeleteColla return nil } +type awsRestjson1_serializeOpDeleteConfiguredAudienceModelAssociation struct { +} + +func (*awsRestjson1_serializeOpDeleteConfiguredAudienceModelAssociation) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteConfiguredAudienceModelAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteConfiguredAudienceModelAssociationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}") + 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_serializeOpHttpBindingsDeleteConfiguredAudienceModelAssociationInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteConfiguredAudienceModelAssociationInput(v *DeleteConfiguredAudienceModelAssociationInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ConfiguredAudienceModelAssociationIdentifier == nil || len(*v.ConfiguredAudienceModelAssociationIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member configuredAudienceModelAssociationIdentifier must not be empty")} + } + if v.ConfiguredAudienceModelAssociationIdentifier != nil { + if err := encoder.SetURI("configuredAudienceModelAssociationIdentifier").String(*v.ConfiguredAudienceModelAssociationIdentifier); err != nil { + return err + } + } + + if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} + } + if v.MembershipIdentifier != nil { + if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpDeleteConfiguredTable struct { } @@ -1341,14 +1632,14 @@ func awsRestjson1_serializeOpHttpBindingsDeleteMembershipInput(v *DeleteMembersh return nil } -type awsRestjson1_serializeOpGetAnalysisTemplate struct { +type awsRestjson1_serializeOpDeletePrivacyBudgetTemplate struct { } -func (*awsRestjson1_serializeOpGetAnalysisTemplate) ID() string { +func (*awsRestjson1_serializeOpDeletePrivacyBudgetTemplate) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetAnalysisTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDeletePrivacyBudgetTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1356,16 +1647,16 @@ func (m *awsRestjson1_serializeOpGetAnalysisTemplate) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetAnalysisTemplateInput) + input, ok := in.Parameters.(*DeletePrivacyBudgetTemplateInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}") + opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" + request.Method = "DELETE" var restEncoder *httpbinding.Encoder if request.URL.RawPath == "" { restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) @@ -1378,7 +1669,7 @@ func (m *awsRestjson1_serializeOpGetAnalysisTemplate) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetAnalysisTemplateInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsDeletePrivacyBudgetTemplateInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1389,12 +1680,86 @@ func (m *awsRestjson1_serializeOpGetAnalysisTemplate) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetAnalysisTemplateInput(v *GetAnalysisTemplateInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsDeletePrivacyBudgetTemplateInput(v *DeletePrivacyBudgetTemplateInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AnalysisTemplateIdentifier == nil || len(*v.AnalysisTemplateIdentifier) == 0 { + if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} + } + if v.MembershipIdentifier != nil { + if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { + return err + } + } + + if v.PrivacyBudgetTemplateIdentifier == nil || len(*v.PrivacyBudgetTemplateIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member privacyBudgetTemplateIdentifier must not be empty")} + } + if v.PrivacyBudgetTemplateIdentifier != nil { + if err := encoder.SetURI("privacyBudgetTemplateIdentifier").String(*v.PrivacyBudgetTemplateIdentifier); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetAnalysisTemplate struct { +} + +func (*awsRestjson1_serializeOpGetAnalysisTemplate) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetAnalysisTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetAnalysisTemplateInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}") + 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_serializeOpHttpBindingsGetAnalysisTemplateInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetAnalysisTemplateInput(v *GetAnalysisTemplateInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AnalysisTemplateIdentifier == nil || len(*v.AnalysisTemplateIdentifier) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member analysisTemplateIdentifier must not be empty")} } if v.AnalysisTemplateIdentifier != nil { @@ -1554,14 +1919,14 @@ func awsRestjson1_serializeOpHttpBindingsGetCollaborationAnalysisTemplateInput(v return nil } -type awsRestjson1_serializeOpGetConfiguredTable struct { +type awsRestjson1_serializeOpGetCollaborationConfiguredAudienceModelAssociation struct { } -func (*awsRestjson1_serializeOpGetConfiguredTable) ID() string { +func (*awsRestjson1_serializeOpGetCollaborationConfiguredAudienceModelAssociation) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetConfiguredTable) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetCollaborationConfiguredAudienceModelAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1569,13 +1934,13 @@ func (m *awsRestjson1_serializeOpGetConfiguredTable) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetConfiguredTableInput) + input, ok := in.Parameters.(*GetCollaborationConfiguredAudienceModelAssociationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/configuredTables/{configuredTableIdentifier}") + opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -1591,7 +1956,7 @@ func (m *awsRestjson1_serializeOpGetConfiguredTable) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetConfiguredTableInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetCollaborationConfiguredAudienceModelAssociationInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1602,16 +1967,25 @@ func (m *awsRestjson1_serializeOpGetConfiguredTable) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetConfiguredTableInput(v *GetConfiguredTableInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetCollaborationConfiguredAudienceModelAssociationInput(v *GetCollaborationConfiguredAudienceModelAssociationInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfiguredTableIdentifier == nil || len(*v.ConfiguredTableIdentifier) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member configuredTableIdentifier must not be empty")} + if v.CollaborationIdentifier == nil || len(*v.CollaborationIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member collaborationIdentifier must not be empty")} } - if v.ConfiguredTableIdentifier != nil { - if err := encoder.SetURI("configuredTableIdentifier").String(*v.ConfiguredTableIdentifier); err != nil { + if v.CollaborationIdentifier != nil { + if err := encoder.SetURI("collaborationIdentifier").String(*v.CollaborationIdentifier); err != nil { + return err + } + } + + if v.ConfiguredAudienceModelAssociationIdentifier == nil || len(*v.ConfiguredAudienceModelAssociationIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member configuredAudienceModelAssociationIdentifier must not be empty")} + } + if v.ConfiguredAudienceModelAssociationIdentifier != nil { + if err := encoder.SetURI("configuredAudienceModelAssociationIdentifier").String(*v.ConfiguredAudienceModelAssociationIdentifier); err != nil { return err } } @@ -1619,14 +1993,14 @@ func awsRestjson1_serializeOpHttpBindingsGetConfiguredTableInput(v *GetConfigure return nil } -type awsRestjson1_serializeOpGetConfiguredTableAnalysisRule struct { +type awsRestjson1_serializeOpGetCollaborationPrivacyBudgetTemplate struct { } -func (*awsRestjson1_serializeOpGetConfiguredTableAnalysisRule) ID() string { +func (*awsRestjson1_serializeOpGetCollaborationPrivacyBudgetTemplate) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetConfiguredTableAnalysisRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetCollaborationPrivacyBudgetTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1634,13 +2008,13 @@ func (m *awsRestjson1_serializeOpGetConfiguredTableAnalysisRule) HandleSerialize return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetConfiguredTableAnalysisRuleInput) + input, ok := in.Parameters.(*GetCollaborationPrivacyBudgetTemplateInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/configuredTables/{configuredTableIdentifier}/analysisRule/{analysisRuleType}") + opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -1656,7 +2030,7 @@ func (m *awsRestjson1_serializeOpGetConfiguredTableAnalysisRule) HandleSerialize return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetConfiguredTableAnalysisRuleInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetCollaborationPrivacyBudgetTemplateInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1667,25 +2041,25 @@ func (m *awsRestjson1_serializeOpGetConfiguredTableAnalysisRule) HandleSerialize return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetConfiguredTableAnalysisRuleInput(v *GetConfiguredTableAnalysisRuleInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetCollaborationPrivacyBudgetTemplateInput(v *GetCollaborationPrivacyBudgetTemplateInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if len(v.AnalysisRuleType) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member analysisRuleType must not be empty")} + if v.CollaborationIdentifier == nil || len(*v.CollaborationIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member collaborationIdentifier must not be empty")} } - if len(v.AnalysisRuleType) > 0 { - if err := encoder.SetURI("analysisRuleType").String(string(v.AnalysisRuleType)); err != nil { + if v.CollaborationIdentifier != nil { + if err := encoder.SetURI("collaborationIdentifier").String(*v.CollaborationIdentifier); err != nil { return err } } - if v.ConfiguredTableIdentifier == nil || len(*v.ConfiguredTableIdentifier) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member configuredTableIdentifier must not be empty")} + if v.PrivacyBudgetTemplateIdentifier == nil || len(*v.PrivacyBudgetTemplateIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member privacyBudgetTemplateIdentifier must not be empty")} } - if v.ConfiguredTableIdentifier != nil { - if err := encoder.SetURI("configuredTableIdentifier").String(*v.ConfiguredTableIdentifier); err != nil { + if v.PrivacyBudgetTemplateIdentifier != nil { + if err := encoder.SetURI("privacyBudgetTemplateIdentifier").String(*v.PrivacyBudgetTemplateIdentifier); err != nil { return err } } @@ -1693,14 +2067,14 @@ func awsRestjson1_serializeOpHttpBindingsGetConfiguredTableAnalysisRuleInput(v * return nil } -type awsRestjson1_serializeOpGetConfiguredTableAssociation struct { +type awsRestjson1_serializeOpGetConfiguredAudienceModelAssociation struct { } -func (*awsRestjson1_serializeOpGetConfiguredTableAssociation) ID() string { +func (*awsRestjson1_serializeOpGetConfiguredAudienceModelAssociation) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetConfiguredTableAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetConfiguredAudienceModelAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1708,13 +2082,13 @@ func (m *awsRestjson1_serializeOpGetConfiguredTableAssociation) HandleSerialize( return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetConfiguredTableAssociationInput) + input, ok := in.Parameters.(*GetConfiguredAudienceModelAssociationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/configuredTableAssociations/{configuredTableAssociationIdentifier}") + opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -1730,7 +2104,7 @@ func (m *awsRestjson1_serializeOpGetConfiguredTableAssociation) HandleSerialize( return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetConfiguredTableAssociationInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetConfiguredAudienceModelAssociationInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1741,16 +2115,16 @@ func (m *awsRestjson1_serializeOpGetConfiguredTableAssociation) HandleSerialize( return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetConfiguredTableAssociationInput(v *GetConfiguredTableAssociationInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetConfiguredAudienceModelAssociationInput(v *GetConfiguredAudienceModelAssociationInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ConfiguredTableAssociationIdentifier == nil || len(*v.ConfiguredTableAssociationIdentifier) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member configuredTableAssociationIdentifier must not be empty")} + if v.ConfiguredAudienceModelAssociationIdentifier == nil || len(*v.ConfiguredAudienceModelAssociationIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member configuredAudienceModelAssociationIdentifier must not be empty")} } - if v.ConfiguredTableAssociationIdentifier != nil { - if err := encoder.SetURI("configuredTableAssociationIdentifier").String(*v.ConfiguredTableAssociationIdentifier); err != nil { + if v.ConfiguredAudienceModelAssociationIdentifier != nil { + if err := encoder.SetURI("configuredAudienceModelAssociationIdentifier").String(*v.ConfiguredAudienceModelAssociationIdentifier); err != nil { return err } } @@ -1767,14 +2141,14 @@ func awsRestjson1_serializeOpHttpBindingsGetConfiguredTableAssociationInput(v *G return nil } -type awsRestjson1_serializeOpGetMembership struct { +type awsRestjson1_serializeOpGetConfiguredTable struct { } -func (*awsRestjson1_serializeOpGetMembership) ID() string { +func (*awsRestjson1_serializeOpGetConfiguredTable) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetMembership) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetConfiguredTable) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1782,13 +2156,13 @@ func (m *awsRestjson1_serializeOpGetMembership) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetMembershipInput) + input, ok := in.Parameters.(*GetConfiguredTableInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}") + opPath, opQuery := httpbinding.SplitURI("/configuredTables/{configuredTableIdentifier}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -1804,7 +2178,7 @@ func (m *awsRestjson1_serializeOpGetMembership) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetMembershipInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetConfiguredTableInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1815,16 +2189,16 @@ func (m *awsRestjson1_serializeOpGetMembership) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetMembershipInput(v *GetMembershipInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetConfiguredTableInput(v *GetConfiguredTableInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} + if v.ConfiguredTableIdentifier == nil || len(*v.ConfiguredTableIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member configuredTableIdentifier must not be empty")} } - if v.MembershipIdentifier != nil { - if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { + if v.ConfiguredTableIdentifier != nil { + if err := encoder.SetURI("configuredTableIdentifier").String(*v.ConfiguredTableIdentifier); err != nil { return err } } @@ -1832,14 +2206,14 @@ func awsRestjson1_serializeOpHttpBindingsGetMembershipInput(v *GetMembershipInpu return nil } -type awsRestjson1_serializeOpGetProtectedQuery struct { +type awsRestjson1_serializeOpGetConfiguredTableAnalysisRule struct { } -func (*awsRestjson1_serializeOpGetProtectedQuery) ID() string { +func (*awsRestjson1_serializeOpGetConfiguredTableAnalysisRule) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetProtectedQuery) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetConfiguredTableAnalysisRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1847,13 +2221,13 @@ func (m *awsRestjson1_serializeOpGetProtectedQuery) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetProtectedQueryInput) + input, ok := in.Parameters.(*GetConfiguredTableAnalysisRuleInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/protectedQueries/{protectedQueryIdentifier}") + opPath, opQuery := httpbinding.SplitURI("/configuredTables/{configuredTableIdentifier}/analysisRule/{analysisRuleType}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -1869,7 +2243,7 @@ func (m *awsRestjson1_serializeOpGetProtectedQuery) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetProtectedQueryInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetConfiguredTableAnalysisRuleInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1880,25 +2254,25 @@ func (m *awsRestjson1_serializeOpGetProtectedQuery) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetProtectedQueryInput(v *GetProtectedQueryInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetConfiguredTableAnalysisRuleInput(v *GetConfiguredTableAnalysisRuleInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} + if len(v.AnalysisRuleType) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member analysisRuleType must not be empty")} } - if v.MembershipIdentifier != nil { - if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { + if len(v.AnalysisRuleType) > 0 { + if err := encoder.SetURI("analysisRuleType").String(string(v.AnalysisRuleType)); err != nil { return err } } - if v.ProtectedQueryIdentifier == nil || len(*v.ProtectedQueryIdentifier) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member protectedQueryIdentifier must not be empty")} + if v.ConfiguredTableIdentifier == nil || len(*v.ConfiguredTableIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member configuredTableIdentifier must not be empty")} } - if v.ProtectedQueryIdentifier != nil { - if err := encoder.SetURI("protectedQueryIdentifier").String(*v.ProtectedQueryIdentifier); err != nil { + if v.ConfiguredTableIdentifier != nil { + if err := encoder.SetURI("configuredTableIdentifier").String(*v.ConfiguredTableIdentifier); err != nil { return err } } @@ -1906,14 +2280,14 @@ func awsRestjson1_serializeOpHttpBindingsGetProtectedQueryInput(v *GetProtectedQ return nil } -type awsRestjson1_serializeOpGetSchema struct { +type awsRestjson1_serializeOpGetConfiguredTableAssociation struct { } -func (*awsRestjson1_serializeOpGetSchema) ID() string { +func (*awsRestjson1_serializeOpGetConfiguredTableAssociation) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetSchema) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetConfiguredTableAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1921,13 +2295,13 @@ func (m *awsRestjson1_serializeOpGetSchema) HandleSerialize(ctx context.Context, return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetSchemaInput) + input, ok := in.Parameters.(*GetConfiguredTableAssociationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}/schemas/{name}") + opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/configuredTableAssociations/{configuredTableAssociationIdentifier}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -1943,7 +2317,7 @@ func (m *awsRestjson1_serializeOpGetSchema) HandleSerialize(ctx context.Context, return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetSchemaInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetConfiguredTableAssociationInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1954,25 +2328,25 @@ func (m *awsRestjson1_serializeOpGetSchema) HandleSerialize(ctx context.Context, return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetSchemaInput(v *GetSchemaInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetConfiguredTableAssociationInput(v *GetConfiguredTableAssociationInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CollaborationIdentifier == nil || len(*v.CollaborationIdentifier) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member collaborationIdentifier must not be empty")} + if v.ConfiguredTableAssociationIdentifier == nil || len(*v.ConfiguredTableAssociationIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member configuredTableAssociationIdentifier must not be empty")} } - if v.CollaborationIdentifier != nil { - if err := encoder.SetURI("collaborationIdentifier").String(*v.CollaborationIdentifier); err != nil { + if v.ConfiguredTableAssociationIdentifier != nil { + if err := encoder.SetURI("configuredTableAssociationIdentifier").String(*v.ConfiguredTableAssociationIdentifier); err != nil { return err } } - if v.Name == nil || len(*v.Name) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member name must not be empty")} + if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} } - if v.Name != nil { - if err := encoder.SetURI("name").String(*v.Name); err != nil { + if v.MembershipIdentifier != nil { + if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { return err } } @@ -1980,14 +2354,14 @@ func awsRestjson1_serializeOpHttpBindingsGetSchemaInput(v *GetSchemaInput, encod return nil } -type awsRestjson1_serializeOpGetSchemaAnalysisRule struct { +type awsRestjson1_serializeOpGetMembership struct { } -func (*awsRestjson1_serializeOpGetSchemaAnalysisRule) ID() string { +func (*awsRestjson1_serializeOpGetMembership) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetSchemaAnalysisRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetMembership) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1995,13 +2369,13 @@ func (m *awsRestjson1_serializeOpGetSchemaAnalysisRule) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetSchemaAnalysisRuleInput) + input, ok := in.Parameters.(*GetMembershipInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}/schemas/{name}/analysisRule/{type}") + opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -2017,7 +2391,7 @@ func (m *awsRestjson1_serializeOpGetSchemaAnalysisRule) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetSchemaAnalysisRuleInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetMembershipInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2028,34 +2402,16 @@ func (m *awsRestjson1_serializeOpGetSchemaAnalysisRule) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetSchemaAnalysisRuleInput(v *GetSchemaAnalysisRuleInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetMembershipInput(v *GetMembershipInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CollaborationIdentifier == nil || len(*v.CollaborationIdentifier) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member collaborationIdentifier must not be empty")} - } - if v.CollaborationIdentifier != nil { - if err := encoder.SetURI("collaborationIdentifier").String(*v.CollaborationIdentifier); err != nil { - return err - } - } - - 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 - } - } - - if len(v.Type) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member type must not be empty")} + if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} } - if len(v.Type) > 0 { - if err := encoder.SetURI("type").String(string(v.Type)); err != nil { + if v.MembershipIdentifier != nil { + if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { return err } } @@ -2063,14 +2419,14 @@ func awsRestjson1_serializeOpHttpBindingsGetSchemaAnalysisRuleInput(v *GetSchema return nil } -type awsRestjson1_serializeOpListAnalysisTemplates struct { +type awsRestjson1_serializeOpGetPrivacyBudgetTemplate struct { } -func (*awsRestjson1_serializeOpListAnalysisTemplates) ID() string { +func (*awsRestjson1_serializeOpGetPrivacyBudgetTemplate) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListAnalysisTemplates) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetPrivacyBudgetTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -2078,13 +2434,13 @@ func (m *awsRestjson1_serializeOpListAnalysisTemplates) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListAnalysisTemplatesInput) + input, ok := in.Parameters.(*GetPrivacyBudgetTemplateInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/analysistemplates") + opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -2100,7 +2456,7 @@ func (m *awsRestjson1_serializeOpListAnalysisTemplates) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListAnalysisTemplatesInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetPrivacyBudgetTemplateInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2111,15 +2467,11 @@ func (m *awsRestjson1_serializeOpListAnalysisTemplates) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListAnalysisTemplatesInput(v *ListAnalysisTemplatesInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetPrivacyBudgetTemplateInput(v *GetPrivacyBudgetTemplateInput, 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.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} } @@ -2129,21 +2481,553 @@ func awsRestjson1_serializeOpHttpBindingsListAnalysisTemplatesInput(v *ListAnaly } } - if v.NextToken != nil { - encoder.SetQuery("nextToken").String(*v.NextToken) + if v.PrivacyBudgetTemplateIdentifier == nil || len(*v.PrivacyBudgetTemplateIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member privacyBudgetTemplateIdentifier must not be empty")} + } + if v.PrivacyBudgetTemplateIdentifier != nil { + if err := encoder.SetURI("privacyBudgetTemplateIdentifier").String(*v.PrivacyBudgetTemplateIdentifier); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetProtectedQuery struct { +} + +func (*awsRestjson1_serializeOpGetProtectedQuery) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetProtectedQuery) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetProtectedQueryInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/protectedQueries/{protectedQueryIdentifier}") + 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_serializeOpHttpBindingsGetProtectedQueryInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetProtectedQueryInput(v *GetProtectedQueryInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} + } + if v.MembershipIdentifier != nil { + if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { + return err + } + } + + if v.ProtectedQueryIdentifier == nil || len(*v.ProtectedQueryIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member protectedQueryIdentifier must not be empty")} + } + if v.ProtectedQueryIdentifier != nil { + if err := encoder.SetURI("protectedQueryIdentifier").String(*v.ProtectedQueryIdentifier); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetSchema struct { +} + +func (*awsRestjson1_serializeOpGetSchema) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetSchema) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetSchemaInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}/schemas/{name}") + 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_serializeOpHttpBindingsGetSchemaInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetSchemaInput(v *GetSchemaInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.CollaborationIdentifier == nil || len(*v.CollaborationIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member collaborationIdentifier must not be empty")} + } + if v.CollaborationIdentifier != nil { + if err := encoder.SetURI("collaborationIdentifier").String(*v.CollaborationIdentifier); err != nil { + return err + } + } + + 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 awsRestjson1_serializeOpGetSchemaAnalysisRule struct { +} + +func (*awsRestjson1_serializeOpGetSchemaAnalysisRule) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetSchemaAnalysisRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetSchemaAnalysisRuleInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}/schemas/{name}/analysisRule/{type}") + 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_serializeOpHttpBindingsGetSchemaAnalysisRuleInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetSchemaAnalysisRuleInput(v *GetSchemaAnalysisRuleInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.CollaborationIdentifier == nil || len(*v.CollaborationIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member collaborationIdentifier must not be empty")} + } + if v.CollaborationIdentifier != nil { + if err := encoder.SetURI("collaborationIdentifier").String(*v.CollaborationIdentifier); err != nil { + return err + } + } + + 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 + } + } + + if len(v.Type) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member type must not be empty")} + } + if len(v.Type) > 0 { + if err := encoder.SetURI("type").String(string(v.Type)); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpListAnalysisTemplates struct { +} + +func (*awsRestjson1_serializeOpListAnalysisTemplates) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListAnalysisTemplates) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListAnalysisTemplatesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/analysistemplates") + 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_serializeOpHttpBindingsListAnalysisTemplatesInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListAnalysisTemplatesInput(v *ListAnalysisTemplatesInput, 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.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} + } + if v.MembershipIdentifier != nil { + if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { + return err + } + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + return nil +} + +type awsRestjson1_serializeOpListCollaborationAnalysisTemplates struct { +} + +func (*awsRestjson1_serializeOpListCollaborationAnalysisTemplates) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListCollaborationAnalysisTemplates) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListCollaborationAnalysisTemplatesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}/analysistemplates") + 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_serializeOpHttpBindingsListCollaborationAnalysisTemplatesInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListCollaborationAnalysisTemplatesInput(v *ListCollaborationAnalysisTemplatesInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.CollaborationIdentifier == nil || len(*v.CollaborationIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member collaborationIdentifier must not be empty")} + } + if v.CollaborationIdentifier != nil { + if err := encoder.SetURI("collaborationIdentifier").String(*v.CollaborationIdentifier); 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_serializeOpListCollaborationConfiguredAudienceModelAssociations struct { +} + +func (*awsRestjson1_serializeOpListCollaborationConfiguredAudienceModelAssociations) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListCollaborationConfiguredAudienceModelAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListCollaborationConfiguredAudienceModelAssociationsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}/configuredaudiencemodelassociations") + 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_serializeOpHttpBindingsListCollaborationConfiguredAudienceModelAssociationsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListCollaborationConfiguredAudienceModelAssociationsInput(v *ListCollaborationConfiguredAudienceModelAssociationsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.CollaborationIdentifier == nil || len(*v.CollaborationIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member collaborationIdentifier must not be empty")} + } + if v.CollaborationIdentifier != nil { + if err := encoder.SetURI("collaborationIdentifier").String(*v.CollaborationIdentifier); 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_serializeOpListCollaborationPrivacyBudgets struct { +} + +func (*awsRestjson1_serializeOpListCollaborationPrivacyBudgets) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListCollaborationPrivacyBudgets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListCollaborationPrivacyBudgetsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}/privacybudgets") + 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_serializeOpHttpBindingsListCollaborationPrivacyBudgetsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListCollaborationPrivacyBudgetsInput(v *ListCollaborationPrivacyBudgetsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.CollaborationIdentifier == nil || len(*v.CollaborationIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member collaborationIdentifier must not be empty")} + } + if v.CollaborationIdentifier != nil { + if err := encoder.SetURI("collaborationIdentifier").String(*v.CollaborationIdentifier); err != nil { + return err + } + } + + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + if len(v.PrivacyBudgetType) > 0 { + encoder.SetQuery("privacyBudgetType").String(string(v.PrivacyBudgetType)) } return nil } -type awsRestjson1_serializeOpListCollaborationAnalysisTemplates struct { +type awsRestjson1_serializeOpListCollaborationPrivacyBudgetTemplates struct { } -func (*awsRestjson1_serializeOpListCollaborationAnalysisTemplates) ID() string { +func (*awsRestjson1_serializeOpListCollaborationPrivacyBudgetTemplates) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListCollaborationAnalysisTemplates) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListCollaborationPrivacyBudgetTemplates) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -2151,13 +3035,13 @@ func (m *awsRestjson1_serializeOpListCollaborationAnalysisTemplates) HandleSeria return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListCollaborationAnalysisTemplatesInput) + input, ok := in.Parameters.(*ListCollaborationPrivacyBudgetTemplatesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}/analysistemplates") + opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}/privacybudgettemplates") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -2173,7 +3057,7 @@ func (m *awsRestjson1_serializeOpListCollaborationAnalysisTemplates) HandleSeria return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListCollaborationAnalysisTemplatesInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListCollaborationPrivacyBudgetTemplatesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2184,7 +3068,7 @@ func (m *awsRestjson1_serializeOpListCollaborationAnalysisTemplates) HandleSeria return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListCollaborationAnalysisTemplatesInput(v *ListCollaborationAnalysisTemplatesInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListCollaborationPrivacyBudgetTemplatesInput(v *ListCollaborationPrivacyBudgetTemplatesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -2277,6 +3161,79 @@ func awsRestjson1_serializeOpHttpBindingsListCollaborationsInput(v *ListCollabor return nil } +type awsRestjson1_serializeOpListConfiguredAudienceModelAssociations struct { +} + +func (*awsRestjson1_serializeOpListConfiguredAudienceModelAssociations) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListConfiguredAudienceModelAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListConfiguredAudienceModelAssociationsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/configuredaudiencemodelassociations") + 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_serializeOpHttpBindingsListConfiguredAudienceModelAssociationsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListConfiguredAudienceModelAssociationsInput(v *ListConfiguredAudienceModelAssociationsInput, 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.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} + } + if v.MembershipIdentifier != nil { + if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { + return err + } + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + return nil +} + type awsRestjson1_serializeOpListConfiguredTableAssociations struct { } @@ -2330,19 +3287,156 @@ func awsRestjson1_serializeOpHttpBindingsListConfiguredTableAssociationsInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) - } - - if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) + } + + if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} + } + if v.MembershipIdentifier != nil { + if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { + return err + } + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + return nil +} + +type awsRestjson1_serializeOpListConfiguredTables struct { +} + +func (*awsRestjson1_serializeOpListConfiguredTables) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListConfiguredTables) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListConfiguredTablesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/configuredTables") + 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_serializeOpHttpBindingsListConfiguredTablesInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListConfiguredTablesInput(v *ListConfiguredTablesInput, 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_serializeOpListMembers struct { +} + +func (*awsRestjson1_serializeOpListMembers) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListMembers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListMembersInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}/members") + 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_serializeOpHttpBindingsListMembersInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListMembersInput(v *ListMembersInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.CollaborationIdentifier == nil || len(*v.CollaborationIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member collaborationIdentifier must not be empty")} } - if v.MembershipIdentifier != nil { - if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { + if v.CollaborationIdentifier != nil { + if err := encoder.SetURI("collaborationIdentifier").String(*v.CollaborationIdentifier); err != nil { return err } } + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) + } + if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } @@ -2350,14 +3444,14 @@ func awsRestjson1_serializeOpHttpBindingsListConfiguredTableAssociationsInput(v return nil } -type awsRestjson1_serializeOpListConfiguredTables struct { +type awsRestjson1_serializeOpListMemberships struct { } -func (*awsRestjson1_serializeOpListConfiguredTables) ID() string { +func (*awsRestjson1_serializeOpListMemberships) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListConfiguredTables) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListMemberships) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -2365,13 +3459,13 @@ func (m *awsRestjson1_serializeOpListConfiguredTables) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListConfiguredTablesInput) + input, ok := in.Parameters.(*ListMembershipsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/configuredTables") + opPath, opQuery := httpbinding.SplitURI("/memberships") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -2387,7 +3481,7 @@ func (m *awsRestjson1_serializeOpListConfiguredTables) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListConfiguredTablesInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListMembershipsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2398,7 +3492,7 @@ func (m *awsRestjson1_serializeOpListConfiguredTables) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListConfiguredTablesInput(v *ListConfiguredTablesInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListMembershipsInput(v *ListMembershipsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -2411,17 +3505,21 @@ func awsRestjson1_serializeOpHttpBindingsListConfiguredTablesInput(v *ListConfig encoder.SetQuery("nextToken").String(*v.NextToken) } + if len(v.Status) > 0 { + encoder.SetQuery("status").String(string(v.Status)) + } + return nil } -type awsRestjson1_serializeOpListMembers struct { +type awsRestjson1_serializeOpListPrivacyBudgets struct { } -func (*awsRestjson1_serializeOpListMembers) ID() string { +func (*awsRestjson1_serializeOpListPrivacyBudgets) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListMembers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListPrivacyBudgets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -2429,13 +3527,13 @@ func (m *awsRestjson1_serializeOpListMembers) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListMembersInput) + input, ok := in.Parameters.(*ListPrivacyBudgetsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}/members") + opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/privacybudgets") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -2451,7 +3549,7 @@ func (m *awsRestjson1_serializeOpListMembers) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListMembersInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListPrivacyBudgetsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2462,39 +3560,43 @@ func (m *awsRestjson1_serializeOpListMembers) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListMembersInput(v *ListMembersInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListPrivacyBudgetsInput(v *ListPrivacyBudgetsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CollaborationIdentifier == nil || len(*v.CollaborationIdentifier) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member collaborationIdentifier must not be empty")} + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } - if v.CollaborationIdentifier != nil { - if err := encoder.SetURI("collaborationIdentifier").String(*v.CollaborationIdentifier); err != nil { + + if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} + } + if v.MembershipIdentifier != nil { + if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("maxResults").Integer(*v.MaxResults) - } - if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } + if len(v.PrivacyBudgetType) > 0 { + encoder.SetQuery("privacyBudgetType").String(string(v.PrivacyBudgetType)) + } + return nil } -type awsRestjson1_serializeOpListMemberships struct { +type awsRestjson1_serializeOpListPrivacyBudgetTemplates struct { } -func (*awsRestjson1_serializeOpListMemberships) ID() string { +func (*awsRestjson1_serializeOpListPrivacyBudgetTemplates) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListMemberships) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListPrivacyBudgetTemplates) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -2502,13 +3604,13 @@ func (m *awsRestjson1_serializeOpListMemberships) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListMembershipsInput) + input, ok := in.Parameters.(*ListPrivacyBudgetTemplatesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/memberships") + opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/privacybudgettemplates") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -2524,7 +3626,7 @@ func (m *awsRestjson1_serializeOpListMemberships) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListMembershipsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListPrivacyBudgetTemplatesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2535,7 +3637,7 @@ func (m *awsRestjson1_serializeOpListMemberships) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListMembershipsInput(v *ListMembershipsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListPrivacyBudgetTemplatesInput(v *ListPrivacyBudgetTemplatesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -2544,12 +3646,17 @@ func awsRestjson1_serializeOpHttpBindingsListMembershipsInput(v *ListMemberships encoder.SetQuery("maxResults").Integer(*v.MaxResults) } - if v.NextToken != nil { - encoder.SetQuery("nextToken").String(*v.NextToken) + if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} + } + if v.MembershipIdentifier != nil { + if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { + return err + } } - if len(v.Status) > 0 { - encoder.SetQuery("status").String(string(v.Status)) + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) } return nil @@ -2774,6 +3881,96 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor return nil } +type awsRestjson1_serializeOpPreviewPrivacyImpact struct { +} + +func (*awsRestjson1_serializeOpPreviewPrivacyImpact) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpPreviewPrivacyImpact) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*PreviewPrivacyImpactInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/previewprivacyimpact") + 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_serializeOpHttpBindingsPreviewPrivacyImpactInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentPreviewPrivacyImpactInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsPreviewPrivacyImpactInput(v *PreviewPrivacyImpactInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} + } + if v.MembershipIdentifier != nil { + if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentPreviewPrivacyImpactInput(v *PreviewPrivacyImpactInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Parameters != nil { + ok := object.Key("parameters") + if err := awsRestjson1_serializeDocumentPreviewPrivacyImpactParametersInput(v.Parameters, ok); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpStartProtectedQuery struct { } @@ -3040,11 +4237,108 @@ func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInpu type awsRestjson1_serializeOpUpdateAnalysisTemplate struct { } -func (*awsRestjson1_serializeOpUpdateAnalysisTemplate) ID() string { +func (*awsRestjson1_serializeOpUpdateAnalysisTemplate) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateAnalysisTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateAnalysisTemplateInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}") + 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_serializeOpHttpBindingsUpdateAnalysisTemplateInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateAnalysisTemplateInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateAnalysisTemplateInput(v *UpdateAnalysisTemplateInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AnalysisTemplateIdentifier == nil || len(*v.AnalysisTemplateIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member analysisTemplateIdentifier must not be empty")} + } + if v.AnalysisTemplateIdentifier != nil { + if err := encoder.SetURI("analysisTemplateIdentifier").String(*v.AnalysisTemplateIdentifier); err != nil { + return err + } + } + + if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} + } + if v.MembershipIdentifier != nil { + if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateAnalysisTemplateInput(v *UpdateAnalysisTemplateInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + return nil +} + +type awsRestjson1_serializeOpUpdateCollaboration struct { +} + +func (*awsRestjson1_serializeOpUpdateCollaboration) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateAnalysisTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpUpdateCollaboration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3052,13 +4346,13 @@ func (m *awsRestjson1_serializeOpUpdateAnalysisTemplate) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateAnalysisTemplateInput) + input, ok := in.Parameters.(*UpdateCollaborationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}") + opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PATCH" @@ -3074,14 +4368,14 @@ func (m *awsRestjson1_serializeOpUpdateAnalysisTemplate) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateAnalysisTemplateInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsUpdateCollaborationInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateAnalysisTemplateInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentUpdateCollaborationInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3096,25 +4390,16 @@ func (m *awsRestjson1_serializeOpUpdateAnalysisTemplate) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateAnalysisTemplateInput(v *UpdateAnalysisTemplateInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsUpdateCollaborationInput(v *UpdateCollaborationInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AnalysisTemplateIdentifier == nil || len(*v.AnalysisTemplateIdentifier) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member analysisTemplateIdentifier must not be empty")} - } - if v.AnalysisTemplateIdentifier != nil { - if err := encoder.SetURI("analysisTemplateIdentifier").String(*v.AnalysisTemplateIdentifier); err != nil { - return err - } - } - - if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} + if v.CollaborationIdentifier == nil || len(*v.CollaborationIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member collaborationIdentifier must not be empty")} } - if v.MembershipIdentifier != nil { - if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { + if v.CollaborationIdentifier != nil { + if err := encoder.SetURI("collaborationIdentifier").String(*v.CollaborationIdentifier); err != nil { return err } } @@ -3122,7 +4407,7 @@ func awsRestjson1_serializeOpHttpBindingsUpdateAnalysisTemplateInput(v *UpdateAn return nil } -func awsRestjson1_serializeOpDocumentUpdateAnalysisTemplateInput(v *UpdateAnalysisTemplateInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateCollaborationInput(v *UpdateCollaborationInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3131,17 +4416,22 @@ func awsRestjson1_serializeOpDocumentUpdateAnalysisTemplateInput(v *UpdateAnalys ok.String(*v.Description) } + if v.Name != nil { + ok := object.Key("name") + ok.String(*v.Name) + } + return nil } -type awsRestjson1_serializeOpUpdateCollaboration struct { +type awsRestjson1_serializeOpUpdateConfiguredAudienceModelAssociation struct { } -func (*awsRestjson1_serializeOpUpdateCollaboration) ID() string { +func (*awsRestjson1_serializeOpUpdateConfiguredAudienceModelAssociation) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateCollaboration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpUpdateConfiguredAudienceModelAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3149,13 +4439,13 @@ func (m *awsRestjson1_serializeOpUpdateCollaboration) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateCollaborationInput) + input, ok := in.Parameters.(*UpdateConfiguredAudienceModelAssociationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/collaborations/{collaborationIdentifier}") + opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PATCH" @@ -3171,14 +4461,14 @@ func (m *awsRestjson1_serializeOpUpdateCollaboration) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateCollaborationInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsUpdateConfiguredAudienceModelAssociationInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateCollaborationInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentUpdateConfiguredAudienceModelAssociationInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3193,16 +4483,25 @@ func (m *awsRestjson1_serializeOpUpdateCollaboration) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateCollaborationInput(v *UpdateCollaborationInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsUpdateConfiguredAudienceModelAssociationInput(v *UpdateConfiguredAudienceModelAssociationInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CollaborationIdentifier == nil || len(*v.CollaborationIdentifier) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member collaborationIdentifier must not be empty")} + if v.ConfiguredAudienceModelAssociationIdentifier == nil || len(*v.ConfiguredAudienceModelAssociationIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member configuredAudienceModelAssociationIdentifier must not be empty")} } - if v.CollaborationIdentifier != nil { - if err := encoder.SetURI("collaborationIdentifier").String(*v.CollaborationIdentifier); err != nil { + if v.ConfiguredAudienceModelAssociationIdentifier != nil { + if err := encoder.SetURI("configuredAudienceModelAssociationIdentifier").String(*v.ConfiguredAudienceModelAssociationIdentifier); err != nil { + return err + } + } + + if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} + } + if v.MembershipIdentifier != nil { + if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { return err } } @@ -3210,7 +4509,7 @@ func awsRestjson1_serializeOpHttpBindingsUpdateCollaborationInput(v *UpdateColla return nil } -func awsRestjson1_serializeOpDocumentUpdateCollaborationInput(v *UpdateCollaborationInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateConfiguredAudienceModelAssociationInput(v *UpdateConfiguredAudienceModelAssociationInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3616,6 +4915,110 @@ func awsRestjson1_serializeOpDocumentUpdateMembershipInput(v *UpdateMembershipIn return nil } +type awsRestjson1_serializeOpUpdatePrivacyBudgetTemplate struct { +} + +func (*awsRestjson1_serializeOpUpdatePrivacyBudgetTemplate) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdatePrivacyBudgetTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdatePrivacyBudgetTemplateInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/memberships/{membershipIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}") + 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_serializeOpHttpBindingsUpdatePrivacyBudgetTemplateInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdatePrivacyBudgetTemplateInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdatePrivacyBudgetTemplateInput(v *UpdatePrivacyBudgetTemplateInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MembershipIdentifier == nil || len(*v.MembershipIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member membershipIdentifier must not be empty")} + } + if v.MembershipIdentifier != nil { + if err := encoder.SetURI("membershipIdentifier").String(*v.MembershipIdentifier); err != nil { + return err + } + } + + if v.PrivacyBudgetTemplateIdentifier == nil || len(*v.PrivacyBudgetTemplateIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member privacyBudgetTemplateIdentifier must not be empty")} + } + if v.PrivacyBudgetTemplateIdentifier != nil { + if err := encoder.SetURI("privacyBudgetTemplateIdentifier").String(*v.PrivacyBudgetTemplateIdentifier); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdatePrivacyBudgetTemplateInput(v *UpdatePrivacyBudgetTemplateInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Parameters != nil { + ok := object.Key("parameters") + if err := awsRestjson1_serializeDocumentPrivacyBudgetTemplateUpdateParameters(v.Parameters, ok); err != nil { + return err + } + } + + if len(v.PrivacyBudgetType) > 0 { + ok := object.Key("privacyBudgetType") + ok.String(string(v.PrivacyBudgetType)) + } + + return nil +} + type awsRestjson1_serializeOpUpdateProtectedQuery struct { } @@ -3942,6 +5345,13 @@ func awsRestjson1_serializeDocumentAnalysisRuleCustom(v *types.AnalysisRuleCusto } } + if v.DifferentialPrivacy != nil { + ok := object.Key("differentialPrivacy") + if err := awsRestjson1_serializeDocumentDifferentialPrivacyConfiguration(v.DifferentialPrivacy, ok); err != nil { + return err + } + } + return nil } @@ -4075,6 +5485,96 @@ func awsRestjson1_serializeDocumentDataEncryptionMetadata(v *types.DataEncryptio return nil } +func awsRestjson1_serializeDocumentDifferentialPrivacyColumn(v *types.DifferentialPrivacyColumn, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Name != nil { + ok := object.Key("name") + ok.String(*v.Name) + } + + return nil +} + +func awsRestjson1_serializeDocumentDifferentialPrivacyColumnList(v []types.DifferentialPrivacyColumn, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentDifferentialPrivacyColumn(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentDifferentialPrivacyConfiguration(v *types.DifferentialPrivacyConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Columns != nil { + ok := object.Key("columns") + if err := awsRestjson1_serializeDocumentDifferentialPrivacyColumnList(v.Columns, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentDifferentialPrivacyPreviewParametersInput(v *types.DifferentialPrivacyPreviewParametersInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Epsilon != nil { + ok := object.Key("epsilon") + ok.Integer(*v.Epsilon) + } + + if v.UsersNoisePerQuery != nil { + ok := object.Key("usersNoisePerQuery") + ok.Integer(*v.UsersNoisePerQuery) + } + + return nil +} + +func awsRestjson1_serializeDocumentDifferentialPrivacyTemplateParametersInput(v *types.DifferentialPrivacyTemplateParametersInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Epsilon != nil { + ok := object.Key("epsilon") + ok.Integer(*v.Epsilon) + } + + if v.UsersNoisePerQuery != nil { + ok := object.Key("usersNoisePerQuery") + ok.Integer(*v.UsersNoisePerQuery) + } + + return nil +} + +func awsRestjson1_serializeDocumentDifferentialPrivacyTemplateUpdateParameters(v *types.DifferentialPrivacyTemplateUpdateParameters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Epsilon != nil { + ok := object.Key("epsilon") + ok.Integer(*v.Epsilon) + } + + if v.UsersNoisePerQuery != nil { + ok := object.Key("usersNoisePerQuery") + ok.Integer(*v.UsersNoisePerQuery) + } + + return nil +} + func awsRestjson1_serializeDocumentGlueTableReference(v *types.GlueTableReference, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -4246,6 +5746,60 @@ func awsRestjson1_serializeDocumentPaymentConfiguration(v *types.PaymentConfigur return nil } +func awsRestjson1_serializeDocumentPreviewPrivacyImpactParametersInput(v types.PreviewPrivacyImpactParametersInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.PreviewPrivacyImpactParametersInputMemberDifferentialPrivacy: + av := object.Key("differentialPrivacy") + if err := awsRestjson1_serializeDocumentDifferentialPrivacyPreviewParametersInput(&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_serializeDocumentPrivacyBudgetTemplateParametersInput(v types.PrivacyBudgetTemplateParametersInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.PrivacyBudgetTemplateParametersInputMemberDifferentialPrivacy: + av := object.Key("differentialPrivacy") + if err := awsRestjson1_serializeDocumentDifferentialPrivacyTemplateParametersInput(&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_serializeDocumentPrivacyBudgetTemplateUpdateParameters(v types.PrivacyBudgetTemplateUpdateParameters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.PrivacyBudgetTemplateUpdateParametersMemberDifferentialPrivacy: + av := object.Key("differentialPrivacy") + if err := awsRestjson1_serializeDocumentDifferentialPrivacyTemplateUpdateParameters(&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_serializeDocumentProtectedQueryOutputConfiguration(v types.ProtectedQueryOutputConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/cleanrooms/types/enums.go b/service/cleanrooms/types/enums.go index bbd0170eda9..85082e44422 100644 --- a/service/cleanrooms/types/enums.go +++ b/service/cleanrooms/types/enums.go @@ -169,6 +169,31 @@ func (ConflictExceptionReason) Values() []ConflictExceptionReason { } } +type DifferentialPrivacyAggregationType string + +// Enum values for DifferentialPrivacyAggregationType +const ( + DifferentialPrivacyAggregationTypeAvg DifferentialPrivacyAggregationType = "AVG" + DifferentialPrivacyAggregationTypeCount DifferentialPrivacyAggregationType = "COUNT" + DifferentialPrivacyAggregationTypeCountDistinct DifferentialPrivacyAggregationType = "COUNT_DISTINCT" + DifferentialPrivacyAggregationTypeSum DifferentialPrivacyAggregationType = "SUM" + DifferentialPrivacyAggregationTypeStddev DifferentialPrivacyAggregationType = "STDDEV" +) + +// Values returns all known values for DifferentialPrivacyAggregationType. 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 (DifferentialPrivacyAggregationType) Values() []DifferentialPrivacyAggregationType { + return []DifferentialPrivacyAggregationType{ + "AVG", + "COUNT", + "COUNT_DISTINCT", + "SUM", + "STDDEV", + } +} + type FilterableMemberStatus string // Enum values for FilterableMemberStatus @@ -343,6 +368,41 @@ func (ParameterType) Values() []ParameterType { } } +type PrivacyBudgetTemplateAutoRefresh string + +// Enum values for PrivacyBudgetTemplateAutoRefresh +const ( + PrivacyBudgetTemplateAutoRefreshCalendarMonth PrivacyBudgetTemplateAutoRefresh = "CALENDAR_MONTH" + PrivacyBudgetTemplateAutoRefreshNone PrivacyBudgetTemplateAutoRefresh = "NONE" +) + +// Values returns all known values for PrivacyBudgetTemplateAutoRefresh. 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 (PrivacyBudgetTemplateAutoRefresh) Values() []PrivacyBudgetTemplateAutoRefresh { + return []PrivacyBudgetTemplateAutoRefresh{ + "CALENDAR_MONTH", + "NONE", + } +} + +type PrivacyBudgetType string + +// Enum values for PrivacyBudgetType +const ( + PrivacyBudgetTypeDifferentialPrivacy PrivacyBudgetType = "DIFFERENTIAL_PRIVACY" +) + +// Values returns all known values for PrivacyBudgetType. 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 (PrivacyBudgetType) Values() []PrivacyBudgetType { + return []PrivacyBudgetType{ + "DIFFERENTIAL_PRIVACY", + } +} + type ProtectedQueryStatus string // Enum values for ProtectedQueryStatus diff --git a/service/cleanrooms/types/types.go b/service/cleanrooms/types/types.go index d78f3096de5..31312717b7d 100644 --- a/service/cleanrooms/types/types.go +++ b/service/cleanrooms/types/types.go @@ -151,7 +151,7 @@ type AnalysisRuleAggregation struct { } // A type of analysis rule that enables the table owner to approve custom SQL -// queries on their configured tables. +// queries on their configured tables. It supports differential privacy. type AnalysisRuleCustom struct { // The analysis templates that are allowed by the custom analysis rule. @@ -163,6 +163,9 @@ type AnalysisRuleCustom struct { // analysis rule. Required when allowedAnalyses is ANY_QUERY . AllowedAnalysisProviders []string + // The differential privacy configuration. + DifferentialPrivacy *DifferentialPrivacyConfiguration + noSmithyDocumentSerde } @@ -629,332 +632,284 @@ type CollaborationAnalysisTemplateSummary struct { noSmithyDocumentSerde } -// The metadata of the collaboration. -type CollaborationSummary struct { +// The configured audience model association within a collaboration. +type CollaborationConfiguredAudienceModelAssociation struct { - // The ARN of the collaboration. + // The Amazon Resource Name (ARN) of the configured audience model association. // // This member is required. Arn *string - // The time when the collaboration was created. - // - // This member is required. - CreateTime *time.Time - - // The identifier used to reference members of the collaboration. Currently only - // supports Amazon Web Services account ID. + // The unique ARN for the configured audience model's associated collaboration. // // This member is required. - CreatorAccountId *string + CollaborationArn *string - // The display name of the collaboration creator. + // A unique identifier for the collaboration that the configured audience model + // associations belong to. Accepts collaboration ID. // // This member is required. - CreatorDisplayName *string + CollaborationId *string - // The identifier for the collaboration. + // The Amazon Resource Name (ARN) of the configure audience model. // // This member is required. - Id *string + ConfiguredAudienceModelArn *string - // The status of a member in a collaboration. + // The time at which the configured audience model association was created. // // This member is required. - MemberStatus MemberStatus + CreateTime *time.Time - // A human-readable identifier provided by the collaboration owner. Display names - // are not unique. + // The identifier used to reference members of the collaboration. Only supports + // AWS account ID. // // This member is required. - Name *string + CreatorAccountId *string - // The time the collaboration metadata was last updated. + // The identifier of the configured audience model association. // // This member is required. - UpdateTime *time.Time - - // The ARN of a member in a collaboration. - MembershipArn *string - - // The identifier of a member in a collaboration. - MembershipId *string - - noSmithyDocumentSerde -} - -// A column within a schema relation, derived from the underlying Glue table. -type Column struct { + Id *string - // The name of the column. + // The name of the configured audience model association. // // This member is required. Name *string - // The type of the column. + // The most recent time at which the configured audience model association was + // updated. // // This member is required. - Type *string + UpdateTime *time.Time + + // The description of the configured audience model association. + Description *string noSmithyDocumentSerde } -// A table that has been configured for use in a collaboration. -type ConfiguredTable struct { +// A summary of the configured audience model association in the collaboration. +type CollaborationConfiguredAudienceModelAssociationSummary struct { - // The columns within the underlying Glue table that can be utilized within - // collaborations. + // The Amazon Resource Name (ARN) of the configured audience model association. // // This member is required. - AllowedColumns []string + Arn *string - // The analysis method for the configured table. The only valid value is currently - // `DIRECT_QUERY`. + // The unique ARN for the configured audience model's associated collaboration. // // This member is required. - AnalysisMethod AnalysisMethod + CollaborationArn *string - // The types of analysis rules associated with this configured table. Currently, - // only one analysis rule may be associated with a configured table. + // A unique identifier for the collaboration that the configured audience model + // associations belong to. Accepts collaboration ID. // // This member is required. - AnalysisRuleTypes []ConfiguredTableAnalysisRuleType + CollaborationId *string - // The unique ARN for the configured table. + // The time at which the configured audience model association was created. // // This member is required. - Arn *string + CreateTime *time.Time - // The time the configured table was created. + // The identifier used to reference members of the collaboration. Only supports + // AWS account ID. // // This member is required. - CreateTime *time.Time + CreatorAccountId *string - // The unique ID for the configured table. + // The identifier of the configured audience model association. // // This member is required. Id *string - // A name for the configured table. + // The name of the configured audience model association. // // This member is required. Name *string - // The Glue table that this configured table represents. - // - // This member is required. - TableReference TableReference - - // The time the configured table was last updated + // The most recent time at which the configured audience model association was + // updated. // // This member is required. UpdateTime *time.Time - // A description for the configured table. + // The description of the configured audience model association. Description *string noSmithyDocumentSerde } -// A configured table analysis rule, which limits how data for this table can be -// used. -type ConfiguredTableAnalysisRule struct { +// A summary of the collaboration privacy budgets. This summary includes the +// collaboration information, creation information, epsilon provided, and utility +// in terms of aggregations. +type CollaborationPrivacyBudgetSummary struct { - // The unique ARN for the configured table. + // The includes epsilon provided and utility in terms of aggregations. // // This member is required. - ConfiguredTableArn *string + Budget PrivacyBudget - // The unique ID for the configured table. + // The ARN of the collaboration that includes this privacy budget. // // This member is required. - ConfiguredTableId *string + CollaborationArn *string - // The time the configured table analysis rule was created. + // The unique identifier of the collaboration that includes this privacy budget. // // This member is required. - CreateTime *time.Time + CollaborationId *string - // The policy that controls SQL query rules. + // The time at which the privacy budget was created. // // This member is required. - Policy ConfiguredTableAnalysisRulePolicy + CreateTime *time.Time - // The type of configured table analysis rule. + // The unique identifier of the account that created this privacy budget. // // This member is required. - Type ConfiguredTableAnalysisRuleType + CreatorAccountId *string - // The time the configured table analysis rule was last updated. + // The unique identifier of the collaboration privacy budget. // // This member is required. - UpdateTime *time.Time - - noSmithyDocumentSerde -} - -// Controls on the query specifications that can be run on a configured table. -// -// The following types satisfy this interface: -// -// ConfiguredTableAnalysisRulePolicyMemberV1 -type ConfiguredTableAnalysisRulePolicy interface { - isConfiguredTableAnalysisRulePolicy() -} - -// Controls on the query specifications that can be run on a configured table. -type ConfiguredTableAnalysisRulePolicyMemberV1 struct { - Value ConfiguredTableAnalysisRulePolicyV1 - - noSmithyDocumentSerde -} - -func (*ConfiguredTableAnalysisRulePolicyMemberV1) isConfiguredTableAnalysisRulePolicy() {} - -// Controls on the query specifications that can be run on a configured table. -// -// The following types satisfy this interface: -// -// ConfiguredTableAnalysisRulePolicyV1MemberAggregation -// ConfiguredTableAnalysisRulePolicyV1MemberCustom -// ConfiguredTableAnalysisRulePolicyV1MemberList -type ConfiguredTableAnalysisRulePolicyV1 interface { - isConfiguredTableAnalysisRulePolicyV1() -} - -// Analysis rule type that enables only aggregation queries on a configured table. -type ConfiguredTableAnalysisRulePolicyV1MemberAggregation struct { - Value AnalysisRuleAggregation - - noSmithyDocumentSerde -} - -func (*ConfiguredTableAnalysisRulePolicyV1MemberAggregation) isConfiguredTableAnalysisRulePolicyV1() { -} + Id *string -// A type of analysis rule that enables the table owner to approve custom SQL -// queries on their configured tables. -type ConfiguredTableAnalysisRulePolicyV1MemberCustom struct { - Value AnalysisRuleCustom + // The ARN of the collaboration privacy budget template. + // + // This member is required. + PrivacyBudgetTemplateArn *string - noSmithyDocumentSerde -} + // The unique identifier of the collaboration privacy budget template. + // + // This member is required. + PrivacyBudgetTemplateId *string -func (*ConfiguredTableAnalysisRulePolicyV1MemberCustom) isConfiguredTableAnalysisRulePolicyV1() {} + // The type of privacy budget template. + // + // This member is required. + Type PrivacyBudgetType -// Analysis rule type that enables only list queries on a configured table. -type ConfiguredTableAnalysisRulePolicyV1MemberList struct { - Value AnalysisRuleList + // The most recent time at which the privacy budget was updated. + // + // This member is required. + UpdateTime *time.Time noSmithyDocumentSerde } -func (*ConfiguredTableAnalysisRulePolicyV1MemberList) isConfiguredTableAnalysisRulePolicyV1() {} - -// A configured table association links a configured table to a collaboration. -type ConfiguredTableAssociation struct { +// An array that specifies the information for a collaboration's privacy budget +// template. +type CollaborationPrivacyBudgetTemplate struct { - // The unique ARN for the configured table association. + // The ARN of the collaboration privacy budget template. // // This member is required. Arn *string - // The unique ARN for the configured table that the association refers to. + // How often the privacy budget refreshes. If you plan to regularly bring new data + // into the collaboration, use CALENDAR_MONTH to automatically get a new privacy + // budget for the collaboration every calendar month. Choosing this option allows + // arbitrary amounts of information to be revealed about rows of the data when + // repeatedly queried across refreshes. Avoid choosing this if the same rows will + // be repeatedly queried between privacy budget refreshes. // // This member is required. - ConfiguredTableArn *string + AutoRefresh PrivacyBudgetTemplateAutoRefresh - // The unique ID for the configured table that the association refers to. + // The ARN of the collaboration that includes this collaboration privacy budget + // template. // // This member is required. - ConfiguredTableId *string + CollaborationArn *string - // The time the configured table association was created. + // The unique identifier of the collaboration that includes this collaboration + // privacy budget template. // // This member is required. - CreateTime *time.Time + CollaborationId *string - // The unique ID for the configured table association. + // The time at which the collaboration privacy budget template was created. // // This member is required. - Id *string + CreateTime *time.Time - // The unique ARN for the membership this configured table association belongs to. + // The unique identifier of the account that created this collaboration privacy + // budget template. // // This member is required. - MembershipArn *string + CreatorAccountId *string - // The unique ID for the membership this configured table association belongs to. + // The unique identifier of the collaboration privacy budget template. // // This member is required. - MembershipId *string + Id *string - // The name of the configured table association, in lowercase. The table is - // identified by this name when running protected queries against the underlying - // data. + // Specifies the epsilon and noise parameters for the privacy budget template. // // This member is required. - Name *string + Parameters PrivacyBudgetTemplateParametersOutput - // The service will assume this role to access catalog metadata and query the - // table. + // The type of privacy budget template. // // This member is required. - RoleArn *string + PrivacyBudgetType PrivacyBudgetType - // The time the configured table association was last updated. + // The most recent time at which the collaboration privacy budget template was + // updated. // // This member is required. UpdateTime *time.Time - // A description of the configured table association. - Description *string - noSmithyDocumentSerde } -// The configured table association summary for the objects listed by the request. -type ConfiguredTableAssociationSummary struct { +// A summary of the collaboration's privacy budget template. This summary includes +// information about who created the privacy budget template and what +// collaborations it belongs to. +type CollaborationPrivacyBudgetTemplateSummary struct { - // The unique ARN for the configured table association. + // The ARN of the collaboration privacy budget template. // // This member is required. Arn *string - // The unique configured table ID that this configured table association refers to. + // The ARN of the collaboration that contains this collaboration privacy budget + // template. // // This member is required. - ConfiguredTableId *string + CollaborationArn *string - // The time the configured table association was created. + // The unique identifier of the collaboration that contains this collaboration + // privacy budget template. // // This member is required. - CreateTime *time.Time + CollaborationId *string - // The unique ID for the configured table association. + // The time at which the collaboration privacy budget template was created. // // This member is required. - Id *string + CreateTime *time.Time - // The unique ARN for the membership that the configured table association belongs - // to. + // The unique identifier of the account that created this collaboration privacy + // budget template. // // This member is required. - MembershipArn *string + CreatorAccountId *string - // The unique ID for the membership that the configured table association belongs - // to. + // The unique identifier of the collaboration privacy budget template. // // This member is required. - MembershipId *string + Id *string - // The name of the configured table association. The table is identified by this - // name when running Protected Queries against the underlying data. + // The type of the privacy budget template. // // This member is required. - Name *string + PrivacyBudgetType PrivacyBudgetType - // The time the configured table association was last updated. + // The most recent time at which the collaboration privacy budget template was + // updated. // // This member is required. UpdateTime *time.Time @@ -962,75 +917,758 @@ type ConfiguredTableAssociationSummary struct { noSmithyDocumentSerde } -// The configured table summary for the objects listed by the request. -type ConfiguredTableSummary struct { +// The metadata of the collaboration. +type CollaborationSummary struct { - // The analysis method for the configured tables. The only valid value is - // currently `DIRECT_QUERY`. + // The ARN of the collaboration. // // This member is required. - AnalysisMethod AnalysisMethod + Arn *string - // The types of analysis rules associated with this configured table. + // The time when the collaboration was created. // // This member is required. - AnalysisRuleTypes []ConfiguredTableAnalysisRuleType + CreateTime *time.Time - // The unique ARN of the configured table. + // The identifier used to reference members of the collaboration. Currently only + // supports Amazon Web Services account ID. // // This member is required. - Arn *string + CreatorAccountId *string - // The time the configured table was created. + // The display name of the collaboration creator. // // This member is required. - CreateTime *time.Time + CreatorDisplayName *string - // The unique ID of the configured table. + // The identifier for the collaboration. // // This member is required. Id *string - // The name of the configured table. + // The status of a member in a collaboration. + // + // This member is required. + MemberStatus MemberStatus + + // A human-readable identifier provided by the collaboration owner. Display names + // are not unique. // // This member is required. Name *string - // The time the configured table was last updated. + // The time the collaboration metadata was last updated. // // This member is required. UpdateTime *time.Time + // The ARN of a member in a collaboration. + MembershipArn *string + + // The identifier of a member in a collaboration. + MembershipId *string + noSmithyDocumentSerde } -// The settings for client-side encryption for cryptographic computing. -type DataEncryptionMetadata struct { +// A column within a schema relation, derived from the underlying Glue table. +type Column struct { + + // The name of the column. + // + // This member is required. + Name *string + + // The type of the column. + // + // This member is required. + Type *string + + noSmithyDocumentSerde +} + +// Details about the configured audience model association. +type ConfiguredAudienceModelAssociation struct { + + // The Amazon Resource Name (ARN) of the configured audience model association. + // + // This member is required. + Arn *string + + // The Amazon Resource Name (ARN) of the collaboration that contains this + // configured audience model association. + // + // This member is required. + CollaborationArn *string + + // A unique identifier of the collaboration that contains this configured audience + // model association. + // + // This member is required. + CollaborationId *string + + // The Amazon Resource Name (ARN) of the configured audience model that was used + // for this configured audience model association. + // + // This member is required. + ConfiguredAudienceModelArn *string + + // The time at which the configured audience model association was created. + // + // This member is required. + CreateTime *time.Time + + // A unique identifier of the configured audience model association. + // + // This member is required. + Id *string + + // When TRUE , indicates that the resource policy for the configured audience model + // resource being associated is configured for Clean Rooms to manage permissions + // related to the given collaboration. When FALSE , indicates that the configured + // audience model resource owner will manage permissions related to the given + // collaboration. + // + // This member is required. + ManageResourcePolicies *bool + + // The Amazon Resource Name (ARN) of the membership that contains this configured + // audience model association. + // + // This member is required. + MembershipArn *string + + // A unique identifier for the membership that contains this configured audience + // model association. + // + // This member is required. + MembershipId *string + + // The name of the configured audience model association. + // + // This member is required. + Name *string + + // The most recent time at which the configured audience model association was + // updated. + // + // This member is required. + UpdateTime *time.Time + + // The description of the configured audience model association. + Description *string + + noSmithyDocumentSerde +} + +// A summary of the configured audience model association. +type ConfiguredAudienceModelAssociationSummary struct { + + // The Amazon Resource Name (ARN) of the configured audience model association. + // + // This member is required. + Arn *string + + // The Amazon Resource Name (ARN) of the collaboration that contains the + // configured audience model association. + // + // This member is required. + CollaborationArn *string + + // A unique identifier of the collaboration that configured audience model is + // associated with. + // + // This member is required. + CollaborationId *string + + // The Amazon Resource Name (ARN) of the configured audience model that was used + // for this configured audience model association. + // + // This member is required. + ConfiguredAudienceModelArn *string + + // The time at which the configured audience model association was created. + // + // This member is required. + CreateTime *time.Time + + // A unique identifier of the configured audience model association. + // + // This member is required. + Id *string + + // The Amazon Resource Name (ARN) of the membership that contains the configured + // audience model association. + // + // This member is required. + MembershipArn *string + + // A unique identifier of the membership that contains the configured audience + // model association. + // + // This member is required. + MembershipId *string + + // The name of the configured audience model association. + // + // This member is required. + Name *string + + // The most recent time at which the configured audience model association was + // updated. + // + // This member is required. + UpdateTime *time.Time + + // The description of the configured audience model association. + Description *string + + noSmithyDocumentSerde +} + +// A table that has been configured for use in a collaboration. +type ConfiguredTable struct { + + // The columns within the underlying Glue table that can be utilized within + // collaborations. + // + // This member is required. + AllowedColumns []string + + // The analysis method for the configured table. The only valid value is currently + // `DIRECT_QUERY`. + // + // This member is required. + AnalysisMethod AnalysisMethod + + // The types of analysis rules associated with this configured table. Currently, + // only one analysis rule may be associated with a configured table. + // + // This member is required. + AnalysisRuleTypes []ConfiguredTableAnalysisRuleType + + // The unique ARN for the configured table. + // + // This member is required. + Arn *string + + // The time the configured table was created. + // + // This member is required. + CreateTime *time.Time + + // The unique ID for the configured table. + // + // This member is required. + Id *string + + // A name for the configured table. + // + // This member is required. + Name *string + + // The Glue table that this configured table represents. + // + // This member is required. + TableReference TableReference + + // The time the configured table was last updated + // + // This member is required. + UpdateTime *time.Time + + // A description for the configured table. + Description *string + + noSmithyDocumentSerde +} + +// A configured table analysis rule, which limits how data for this table can be +// used. +type ConfiguredTableAnalysisRule struct { + + // The unique ARN for the configured table. + // + // This member is required. + ConfiguredTableArn *string + + // The unique ID for the configured table. + // + // This member is required. + ConfiguredTableId *string + + // The time the configured table analysis rule was created. + // + // This member is required. + CreateTime *time.Time + + // The policy that controls SQL query rules. + // + // This member is required. + Policy ConfiguredTableAnalysisRulePolicy + + // The type of configured table analysis rule. + // + // This member is required. + Type ConfiguredTableAnalysisRuleType + + // The time the configured table analysis rule was last updated. + // + // This member is required. + UpdateTime *time.Time + + noSmithyDocumentSerde +} + +// Controls on the query specifications that can be run on a configured table. +// +// The following types satisfy this interface: +// +// ConfiguredTableAnalysisRulePolicyMemberV1 +type ConfiguredTableAnalysisRulePolicy interface { + isConfiguredTableAnalysisRulePolicy() +} + +// Controls on the query specifications that can be run on a configured table. +type ConfiguredTableAnalysisRulePolicyMemberV1 struct { + Value ConfiguredTableAnalysisRulePolicyV1 + + noSmithyDocumentSerde +} + +func (*ConfiguredTableAnalysisRulePolicyMemberV1) isConfiguredTableAnalysisRulePolicy() {} + +// Controls on the query specifications that can be run on a configured table. +// +// The following types satisfy this interface: +// +// ConfiguredTableAnalysisRulePolicyV1MemberAggregation +// ConfiguredTableAnalysisRulePolicyV1MemberCustom +// ConfiguredTableAnalysisRulePolicyV1MemberList +type ConfiguredTableAnalysisRulePolicyV1 interface { + isConfiguredTableAnalysisRulePolicyV1() +} + +// Analysis rule type that enables only aggregation queries on a configured table. +type ConfiguredTableAnalysisRulePolicyV1MemberAggregation struct { + Value AnalysisRuleAggregation + + noSmithyDocumentSerde +} + +func (*ConfiguredTableAnalysisRulePolicyV1MemberAggregation) isConfiguredTableAnalysisRulePolicyV1() { +} + +// A type of analysis rule that enables the table owner to approve custom SQL +// queries on their configured tables. It supports differential privacy. +type ConfiguredTableAnalysisRulePolicyV1MemberCustom struct { + Value AnalysisRuleCustom + + noSmithyDocumentSerde +} + +func (*ConfiguredTableAnalysisRulePolicyV1MemberCustom) isConfiguredTableAnalysisRulePolicyV1() {} + +// Analysis rule type that enables only list queries on a configured table. +type ConfiguredTableAnalysisRulePolicyV1MemberList struct { + Value AnalysisRuleList + + noSmithyDocumentSerde +} + +func (*ConfiguredTableAnalysisRulePolicyV1MemberList) isConfiguredTableAnalysisRulePolicyV1() {} + +// A configured table association links a configured table to a collaboration. +type ConfiguredTableAssociation struct { + + // The unique ARN for the configured table association. + // + // This member is required. + Arn *string + + // The unique ARN for the configured table that the association refers to. + // + // This member is required. + ConfiguredTableArn *string + + // The unique ID for the configured table that the association refers to. + // + // This member is required. + ConfiguredTableId *string + + // The time the configured table association was created. + // + // This member is required. + CreateTime *time.Time + + // The unique ID for the configured table association. + // + // This member is required. + Id *string + + // The unique ARN for the membership this configured table association belongs to. + // + // This member is required. + MembershipArn *string + + // The unique ID for the membership this configured table association belongs to. + // + // This member is required. + MembershipId *string + + // The name of the configured table association, in lowercase. The table is + // identified by this name when running protected queries against the underlying + // data. + // + // This member is required. + Name *string + + // The service will assume this role to access catalog metadata and query the + // table. + // + // This member is required. + RoleArn *string + + // The time the configured table association was last updated. + // + // This member is required. + UpdateTime *time.Time + + // A description of the configured table association. + Description *string + + noSmithyDocumentSerde +} + +// The configured table association summary for the objects listed by the request. +type ConfiguredTableAssociationSummary struct { + + // The unique ARN for the configured table association. + // + // This member is required. + Arn *string + + // The unique configured table ID that this configured table association refers to. + // + // This member is required. + ConfiguredTableId *string + + // The time the configured table association was created. + // + // This member is required. + CreateTime *time.Time + + // The unique ID for the configured table association. + // + // This member is required. + Id *string + + // The unique ARN for the membership that the configured table association belongs + // to. + // + // This member is required. + MembershipArn *string + + // The unique ID for the membership that the configured table association belongs + // to. + // + // This member is required. + MembershipId *string + + // The name of the configured table association. The table is identified by this + // name when running Protected Queries against the underlying data. + // + // This member is required. + Name *string + + // The time the configured table association was last updated. + // + // This member is required. + UpdateTime *time.Time + + noSmithyDocumentSerde +} + +// The configured table summary for the objects listed by the request. +type ConfiguredTableSummary struct { + + // The analysis method for the configured tables. The only valid value is + // currently `DIRECT_QUERY`. + // + // This member is required. + AnalysisMethod AnalysisMethod + + // The types of analysis rules associated with this configured table. + // + // This member is required. + AnalysisRuleTypes []ConfiguredTableAnalysisRuleType + + // The unique ARN of the configured table. + // + // This member is required. + Arn *string + + // The time the configured table was created. + // + // This member is required. + CreateTime *time.Time + + // The unique ID of the configured table. + // + // This member is required. + Id *string + + // The name of the configured table. + // + // This member is required. + Name *string + + // The time the configured table was last updated. + // + // This member is required. + UpdateTime *time.Time + + noSmithyDocumentSerde +} + +// The settings for client-side encryption for cryptographic computing. +type DataEncryptionMetadata struct { // Indicates whether encrypted tables can contain cleartext data ( TRUE ) or are to // cryptographically process every column ( FALSE ). // // This member is required. - AllowCleartext *bool + AllowCleartext *bool + + // Indicates whether Fingerprint columns can contain duplicate entries ( TRUE ) or + // are to contain only non-repeated values ( FALSE ). + // + // This member is required. + AllowDuplicates *bool + + // Indicates whether Fingerprint columns can be joined on any other Fingerprint + // column with a different name ( TRUE ) or can only be joined on Fingerprint + // columns of the same name ( FALSE ). + // + // This member is required. + AllowJoinsOnColumnsWithDifferentNames *bool + + // Indicates whether NULL values are to be copied as NULL to encrypted tables ( TRUE + // ) or cryptographically processed ( FALSE ). + // + // This member is required. + PreserveNulls *bool + + noSmithyDocumentSerde +} + +// Specifies the name of the column that contains the unique identifier of your +// users, whose privacy you want to protect. +type DifferentialPrivacyColumn struct { + + // The name of the column, such as user_id, that contains the unique identifier of + // your users, whose privacy you want to protect. If you want to turn on + // differential privacy for two or more tables in a collaboration, you must + // configure the same column as the user identifier column in both analysis rules. + // + // This member is required. + Name *string + + noSmithyDocumentSerde +} + +// Specifies the unique identifier for your users. +type DifferentialPrivacyConfiguration struct { + + // The name of the column (such as user_id) that contains the unique identifier of + // your users whose privacy you want to protect. If you want to turn on differential + // privacy for two or more tables in a collaboration, you must configure the same + // column as the user identifier column in both analysis rules. + // + // This member is required. + Columns []DifferentialPrivacyColumn + + noSmithyDocumentSerde +} + +// An array that contains the sensitivity parameters. +type DifferentialPrivacyParameters struct { + + // Provides the sensitivity parameters that you can use to better understand the + // total amount of noise in query results. + // + // This member is required. + SensitivityParameters []DifferentialPrivacySensitivityParameters + + noSmithyDocumentSerde +} + +// Provides an estimate of the number of aggregation functions that the member who +// can query can run given the epsilon and noise parameters. +type DifferentialPrivacyPreviewAggregation struct { + + // The maximum number of aggregations that the member who can query can run given + // the epsilon and noise parameters. + // + // This member is required. + MaxCount *int32 + + // The type of aggregation function. + // + // This member is required. + Type DifferentialPrivacyAggregationType + + noSmithyDocumentSerde +} + +// The epsilon and noise parameters that you want to preview. +type DifferentialPrivacyPreviewParametersInput struct { + + // The epsilon value that you want to preview. + // + // This member is required. + Epsilon *int32 + + // Noise added per query is measured in terms of the number of users whose + // contributions you want to obscure. This value governs the rate at which the + // privacy budget is depleted. + // + // This member is required. + UsersNoisePerQuery *int32 + + noSmithyDocumentSerde +} + +// Specifies the configured epsilon value and the utility in terms of total +// aggregations, as well as the remaining aggregations available. +type DifferentialPrivacyPrivacyBudget struct { + + // This information includes the configured epsilon value and the utility in terms + // of total aggregations, as well as the remaining aggregations. + // + // This member is required. + Aggregations []DifferentialPrivacyPrivacyBudgetAggregation + + // The epsilon value that you configured. + // + // This member is required. + Epsilon *int32 + + noSmithyDocumentSerde +} + +// Information about the total number of aggregations, as well as the remaining +// aggregations. +type DifferentialPrivacyPrivacyBudgetAggregation struct { + + // The maximum number of aggregation functions that you can perform with the given + // privacy budget. + // + // This member is required. + MaxCount *int32 - // Indicates whether Fingerprint columns can contain duplicate entries ( TRUE ) or - // are to contain only non-repeated values ( FALSE ). + // The remaining number of aggregation functions that can be run with the + // available privacy budget. // // This member is required. - AllowDuplicates *bool + RemainingCount *int32 - // Indicates whether Fingerprint columns can be joined on any other Fingerprint - // column with a different name ( TRUE ) or can only be joined on Fingerprint - // columns of the same name ( FALSE ). + // The different types of aggregation functions that you can perform. // // This member is required. - AllowJoinsOnColumnsWithDifferentNames *bool + Type DifferentialPrivacyAggregationType - // Indicates whether NULL values are to be copied as NULL to encrypted tables ( TRUE - // ) or cryptographically processed ( FALSE ). + noSmithyDocumentSerde +} + +// Information about the number of aggregation functions that the member who can +// query can run given the epsilon and noise parameters. +type DifferentialPrivacyPrivacyImpact struct { + + // The number of aggregation functions that you can perform. // // This member is required. - PreserveNulls *bool + Aggregations []DifferentialPrivacyPreviewAggregation + + noSmithyDocumentSerde +} + +// Provides the sensitivity parameters. +type DifferentialPrivacySensitivityParameters struct { + + // The aggregation expression that was run. + // + // This member is required. + AggregationExpression *string + + // The type of aggregation function that was run. + // + // This member is required. + AggregationType DifferentialPrivacyAggregationType + + // The maximum number of rows contributed by a user in a SQL query. + // + // This member is required. + UserContributionLimit *int32 + + // The upper bound of the aggregation expression. + MaxColumnValue *float32 + + // The lower bound of the aggregation expression. + MinColumnValue *float32 + + noSmithyDocumentSerde +} + +// The epsilon and noise parameter values that you want to use for the +// differential privacy template. +type DifferentialPrivacyTemplateParametersInput struct { + + // The epsilon value that you want to use. + // + // This member is required. + Epsilon *int32 + + // Noise added per query is measured in terms of the number of users whose + // contributions you want to obscure. This value governs the rate at which the + // privacy budget is depleted. + // + // This member is required. + UsersNoisePerQuery *int32 + + noSmithyDocumentSerde +} + +// The epsilon and noise parameter values that were used for the differential +// privacy template. +type DifferentialPrivacyTemplateParametersOutput struct { + + // The epsilon value that you specified. + // + // This member is required. + Epsilon *int32 + + // Noise added per query is measured in terms of the number of users whose + // contributions you want to obscure. This value governs the rate at which the + // privacy budget is depleted. + // + // This member is required. + UsersNoisePerQuery *int32 + + noSmithyDocumentSerde +} + +// The epsilon and noise parameter values that you want to update in the +// differential privacy template. +type DifferentialPrivacyTemplateUpdateParameters struct { + + // The updated epsilon value that you want to use. + Epsilon *int32 + + // The updated value of noise added per query. It is measured in terms of the + // number of users whose contributions you want to obscure. This value governs the + // rate at which the privacy budget is depleted. + UsersNoisePerQuery *int32 noSmithyDocumentSerde } @@ -1353,6 +1991,310 @@ type PaymentConfiguration struct { noSmithyDocumentSerde } +// Specifies the updated epsilon and noise parameters to preview. The preview +// allows you to see how the maximum number of each type of aggregation function +// would change with the new parameters. +// +// The following types satisfy this interface: +// +// PreviewPrivacyImpactParametersInputMemberDifferentialPrivacy +type PreviewPrivacyImpactParametersInput interface { + isPreviewPrivacyImpactParametersInput() +} + +// An array that specifies the epsilon and noise parameters. +type PreviewPrivacyImpactParametersInputMemberDifferentialPrivacy struct { + Value DifferentialPrivacyPreviewParametersInput + + noSmithyDocumentSerde +} + +func (*PreviewPrivacyImpactParametersInputMemberDifferentialPrivacy) isPreviewPrivacyImpactParametersInput() { +} + +// The epsilon parameter value and number of each aggregation function that you +// can perform. +// +// The following types satisfy this interface: +// +// PrivacyBudgetMemberDifferentialPrivacy +type PrivacyBudget interface { + isPrivacyBudget() +} + +// An object that specifies the epsilon parameter and the utility in terms of +// total aggregations, as well as the remaining aggregations available. +type PrivacyBudgetMemberDifferentialPrivacy struct { + Value DifferentialPrivacyPrivacyBudget + + noSmithyDocumentSerde +} + +func (*PrivacyBudgetMemberDifferentialPrivacy) isPrivacyBudget() {} + +// An array that summaries the specified privacy budget. This summary includes +// collaboration information, creation information, membership information, and +// privacy budget information. +type PrivacyBudgetSummary struct { + + // The provided privacy budget. + // + // This member is required. + Budget PrivacyBudget + + // The ARN of the collaboration that contains this privacy budget. + // + // This member is required. + CollaborationArn *string + + // The unique identifier of the collaboration that contains this privacy budget. + // + // This member is required. + CollaborationId *string + + // The time at which the privacy budget was created. + // + // This member is required. + CreateTime *time.Time + + // The unique identifier of the privacy budget. + // + // This member is required. + Id *string + + // The Amazon Resource Name (ARN) of the member who created the privacy budget + // summary. + // + // This member is required. + MembershipArn *string + + // The identifier for a membership resource. + // + // This member is required. + MembershipId *string + + // The ARN of the privacy budget template. + // + // This member is required. + PrivacyBudgetTemplateArn *string + + // The unique identifier of the privacy budget template. + // + // This member is required. + PrivacyBudgetTemplateId *string + + // Specifies the type of the privacy budget. + // + // This member is required. + Type PrivacyBudgetType + + // The most recent time at which the privacy budget was updated. + // + // This member is required. + UpdateTime *time.Time + + noSmithyDocumentSerde +} + +// An object that defines the privacy budget template. +type PrivacyBudgetTemplate struct { + + // The ARN of the privacy budget template. + // + // This member is required. + Arn *string + + // How often the privacy budget refreshes. If you plan to regularly bring new data + // into the collaboration, use CALENDAR_MONTH to automatically get a new privacy + // budget for the collaboration every calendar month. Choosing this option allows + // arbitrary amounts of information to be revealed about rows of the data when + // repeatedly queried across refreshes. Avoid choosing this if the same rows will + // be repeatedly queried between privacy budget refreshes. + // + // This member is required. + AutoRefresh PrivacyBudgetTemplateAutoRefresh + + // The ARN of the collaboration that contains this privacy budget template. + // + // This member is required. + CollaborationArn *string + + // The unique ID of the collaboration that contains this privacy budget template. + // + // This member is required. + CollaborationId *string + + // The time at which the privacy budget template was created. + // + // This member is required. + CreateTime *time.Time + + // The unique identifier of the privacy budget template. + // + // This member is required. + Id *string + + // The Amazon Resource Name (ARN) of the member who created the privacy budget + // template. + // + // This member is required. + MembershipArn *string + + // The identifier for a membership resource. + // + // This member is required. + MembershipId *string + + // Specifies the epislon and noise parameters for the privacy budget template. + // + // This member is required. + Parameters PrivacyBudgetTemplateParametersOutput + + // Specifies the type of the privacy budget template. + // + // This member is required. + PrivacyBudgetType PrivacyBudgetType + + // The most recent time at which the privacy budget template was updated. + // + // This member is required. + UpdateTime *time.Time + + noSmithyDocumentSerde +} + +// The epsilon and noise parameters that you want to use for the privacy budget +// template. +// +// The following types satisfy this interface: +// +// PrivacyBudgetTemplateParametersInputMemberDifferentialPrivacy +type PrivacyBudgetTemplateParametersInput interface { + isPrivacyBudgetTemplateParametersInput() +} + +// An object that specifies the epsilon and noise parameters. +type PrivacyBudgetTemplateParametersInputMemberDifferentialPrivacy struct { + Value DifferentialPrivacyTemplateParametersInput + + noSmithyDocumentSerde +} + +func (*PrivacyBudgetTemplateParametersInputMemberDifferentialPrivacy) isPrivacyBudgetTemplateParametersInput() { +} + +// The epsilon and noise parameters that were used in the privacy budget template. +// +// The following types satisfy this interface: +// +// PrivacyBudgetTemplateParametersOutputMemberDifferentialPrivacy +type PrivacyBudgetTemplateParametersOutput interface { + isPrivacyBudgetTemplateParametersOutput() +} + +// The epsilon and noise parameters. +type PrivacyBudgetTemplateParametersOutputMemberDifferentialPrivacy struct { + Value DifferentialPrivacyTemplateParametersOutput + + noSmithyDocumentSerde +} + +func (*PrivacyBudgetTemplateParametersOutputMemberDifferentialPrivacy) isPrivacyBudgetTemplateParametersOutput() { +} + +// A summary of the privacy budget template. The summary includes membership +// information, collaboration information, and creation information. +type PrivacyBudgetTemplateSummary struct { + + // The ARN of the privacy budget template. + // + // This member is required. + Arn *string + + // The ARN of the collaboration that contains this privacy budget template. + // + // This member is required. + CollaborationArn *string + + // The unique ID of the collaboration that contains this privacy budget template. + // + // This member is required. + CollaborationId *string + + // The time at which the privacy budget template was created. + // + // This member is required. + CreateTime *time.Time + + // The unique identifier of the privacy budget template. + // + // This member is required. + Id *string + + // The Amazon Resource Name (ARN) of the member who created the privacy budget + // template. + // + // This member is required. + MembershipArn *string + + // The identifier for a membership resource. + // + // This member is required. + MembershipId *string + + // The type of the privacy budget template. + // + // This member is required. + PrivacyBudgetType PrivacyBudgetType + + // The most recent time at which the privacy budget template was updated. + // + // This member is required. + UpdateTime *time.Time + + noSmithyDocumentSerde +} + +// The epsilon and noise parameters that you want to update in the privacy budget +// template. +// +// The following types satisfy this interface: +// +// PrivacyBudgetTemplateUpdateParametersMemberDifferentialPrivacy +type PrivacyBudgetTemplateUpdateParameters interface { + isPrivacyBudgetTemplateUpdateParameters() +} + +// An object that specifies the new values for the epsilon and noise parameters. +type PrivacyBudgetTemplateUpdateParametersMemberDifferentialPrivacy struct { + Value DifferentialPrivacyTemplateUpdateParameters + + noSmithyDocumentSerde +} + +func (*PrivacyBudgetTemplateUpdateParametersMemberDifferentialPrivacy) isPrivacyBudgetTemplateUpdateParameters() { +} + +// Provides an estimate of the number of aggregation functions that the member who +// can query can run given the epsilon and noise parameters. +// +// The following types satisfy this interface: +// +// PrivacyImpactMemberDifferentialPrivacy +type PrivacyImpact interface { + isPrivacyImpact() +} + +// An object that lists the number and type of aggregation functions you can +// perform. +type PrivacyImpactMemberDifferentialPrivacy struct { + Value DifferentialPrivacyPrivacyImpact + + noSmithyDocumentSerde +} + +func (*PrivacyImpactMemberDifferentialPrivacy) isPrivacyImpact() {} + // The parameters for an Clean Rooms protected query. type ProtectedQuery struct { @@ -1381,6 +2323,10 @@ type ProtectedQuery struct { // This member is required. Status ProtectedQueryStatus + // The sensitivity parameters of the differential privacy results of the protected + // query. + DifferentialPrivacy *DifferentialPrivacyParameters + // An error thrown by the protected query. Error *ProtectedQueryError @@ -1772,6 +2718,12 @@ func (*UnknownUnionMember) isAnalysisSource() {} func (*UnknownUnionMember) isConfiguredTableAnalysisRulePolicy() {} func (*UnknownUnionMember) isConfiguredTableAnalysisRulePolicyV1() {} func (*UnknownUnionMember) isMembershipProtectedQueryOutputConfiguration() {} +func (*UnknownUnionMember) isPreviewPrivacyImpactParametersInput() {} +func (*UnknownUnionMember) isPrivacyBudget() {} +func (*UnknownUnionMember) isPrivacyBudgetTemplateParametersInput() {} +func (*UnknownUnionMember) isPrivacyBudgetTemplateParametersOutput() {} +func (*UnknownUnionMember) isPrivacyBudgetTemplateUpdateParameters() {} +func (*UnknownUnionMember) isPrivacyImpact() {} func (*UnknownUnionMember) isProtectedQueryOutput() {} func (*UnknownUnionMember) isProtectedQueryOutputConfiguration() {} func (*UnknownUnionMember) isTableReference() {} diff --git a/service/cleanrooms/types/types_exported_test.go b/service/cleanrooms/types/types_exported_test.go index 31c438dda63..6c42dc46a17 100644 --- a/service/cleanrooms/types/types_exported_test.go +++ b/service/cleanrooms/types/types_exported_test.go @@ -131,6 +131,114 @@ func ExampleMembershipProtectedQueryOutputConfiguration_outputUsage() { var _ *types.ProtectedQueryS3OutputConfiguration +func ExamplePreviewPrivacyImpactParametersInput_outputUsage() { + var union types.PreviewPrivacyImpactParametersInput + // type switches can be used to check the union value + switch v := union.(type) { + case *types.PreviewPrivacyImpactParametersInputMemberDifferentialPrivacy: + _ = v.Value // Value is types.DifferentialPrivacyPreviewParametersInput + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.DifferentialPrivacyPreviewParametersInput + +func ExamplePrivacyBudget_outputUsage() { + var union types.PrivacyBudget + // type switches can be used to check the union value + switch v := union.(type) { + case *types.PrivacyBudgetMemberDifferentialPrivacy: + _ = v.Value // Value is types.DifferentialPrivacyPrivacyBudget + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.DifferentialPrivacyPrivacyBudget + +func ExamplePrivacyBudgetTemplateParametersInput_outputUsage() { + var union types.PrivacyBudgetTemplateParametersInput + // type switches can be used to check the union value + switch v := union.(type) { + case *types.PrivacyBudgetTemplateParametersInputMemberDifferentialPrivacy: + _ = v.Value // Value is types.DifferentialPrivacyTemplateParametersInput + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.DifferentialPrivacyTemplateParametersInput + +func ExamplePrivacyBudgetTemplateParametersOutput_outputUsage() { + var union types.PrivacyBudgetTemplateParametersOutput + // type switches can be used to check the union value + switch v := union.(type) { + case *types.PrivacyBudgetTemplateParametersOutputMemberDifferentialPrivacy: + _ = v.Value // Value is types.DifferentialPrivacyTemplateParametersOutput + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.DifferentialPrivacyTemplateParametersOutput + +func ExamplePrivacyBudgetTemplateUpdateParameters_outputUsage() { + var union types.PrivacyBudgetTemplateUpdateParameters + // type switches can be used to check the union value + switch v := union.(type) { + case *types.PrivacyBudgetTemplateUpdateParametersMemberDifferentialPrivacy: + _ = v.Value // Value is types.DifferentialPrivacyTemplateUpdateParameters + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.DifferentialPrivacyTemplateUpdateParameters + +func ExamplePrivacyImpact_outputUsage() { + var union types.PrivacyImpact + // type switches can be used to check the union value + switch v := union.(type) { + case *types.PrivacyImpactMemberDifferentialPrivacy: + _ = v.Value // Value is types.DifferentialPrivacyPrivacyImpact + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.DifferentialPrivacyPrivacyImpact + func ExampleProtectedQueryOutput_outputUsage() { var union types.ProtectedQueryOutput // type switches can be used to check the union value diff --git a/service/cleanrooms/validators.go b/service/cleanrooms/validators.go index 03ea7e8694b..a4bb6c7e6db 100644 --- a/service/cleanrooms/validators.go +++ b/service/cleanrooms/validators.go @@ -90,6 +90,26 @@ func (m *validateOpCreateCollaboration) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpCreateConfiguredAudienceModelAssociation struct { +} + +func (*validateOpCreateConfiguredAudienceModelAssociation) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateConfiguredAudienceModelAssociation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateConfiguredAudienceModelAssociationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateConfiguredAudienceModelAssociationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateConfiguredTableAnalysisRule struct { } @@ -170,6 +190,26 @@ func (m *validateOpCreateMembership) HandleInitialize(ctx context.Context, in mi return next.HandleInitialize(ctx, in) } +type validateOpCreatePrivacyBudgetTemplate struct { +} + +func (*validateOpCreatePrivacyBudgetTemplate) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreatePrivacyBudgetTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreatePrivacyBudgetTemplateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreatePrivacyBudgetTemplateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteAnalysisTemplate struct { } @@ -210,6 +250,26 @@ func (m *validateOpDeleteCollaboration) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpDeleteConfiguredAudienceModelAssociation struct { +} + +func (*validateOpDeleteConfiguredAudienceModelAssociation) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteConfiguredAudienceModelAssociation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteConfiguredAudienceModelAssociationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteConfiguredAudienceModelAssociationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteConfiguredTableAnalysisRule struct { } @@ -310,6 +370,26 @@ func (m *validateOpDeleteMembership) HandleInitialize(ctx context.Context, in mi return next.HandleInitialize(ctx, in) } +type validateOpDeletePrivacyBudgetTemplate struct { +} + +func (*validateOpDeletePrivacyBudgetTemplate) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeletePrivacyBudgetTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeletePrivacyBudgetTemplateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeletePrivacyBudgetTemplateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetAnalysisTemplate struct { } @@ -350,6 +430,26 @@ func (m *validateOpGetCollaborationAnalysisTemplate) HandleInitialize(ctx contex return next.HandleInitialize(ctx, in) } +type validateOpGetCollaborationConfiguredAudienceModelAssociation struct { +} + +func (*validateOpGetCollaborationConfiguredAudienceModelAssociation) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetCollaborationConfiguredAudienceModelAssociation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetCollaborationConfiguredAudienceModelAssociationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetCollaborationConfiguredAudienceModelAssociationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetCollaboration struct { } @@ -370,6 +470,46 @@ func (m *validateOpGetCollaboration) HandleInitialize(ctx context.Context, in mi return next.HandleInitialize(ctx, in) } +type validateOpGetCollaborationPrivacyBudgetTemplate struct { +} + +func (*validateOpGetCollaborationPrivacyBudgetTemplate) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetCollaborationPrivacyBudgetTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetCollaborationPrivacyBudgetTemplateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetCollaborationPrivacyBudgetTemplateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetConfiguredAudienceModelAssociation struct { +} + +func (*validateOpGetConfiguredAudienceModelAssociation) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetConfiguredAudienceModelAssociation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetConfiguredAudienceModelAssociationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetConfiguredAudienceModelAssociationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetConfiguredTableAnalysisRule struct { } @@ -450,6 +590,26 @@ func (m *validateOpGetMembership) HandleInitialize(ctx context.Context, in middl return next.HandleInitialize(ctx, in) } +type validateOpGetPrivacyBudgetTemplate struct { +} + +func (*validateOpGetPrivacyBudgetTemplate) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetPrivacyBudgetTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetPrivacyBudgetTemplateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetPrivacyBudgetTemplateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetProtectedQuery struct { } @@ -550,6 +710,86 @@ func (m *validateOpListCollaborationAnalysisTemplates) HandleInitialize(ctx cont return next.HandleInitialize(ctx, in) } +type validateOpListCollaborationConfiguredAudienceModelAssociations struct { +} + +func (*validateOpListCollaborationConfiguredAudienceModelAssociations) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListCollaborationConfiguredAudienceModelAssociations) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListCollaborationConfiguredAudienceModelAssociationsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListCollaborationConfiguredAudienceModelAssociationsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpListCollaborationPrivacyBudgets struct { +} + +func (*validateOpListCollaborationPrivacyBudgets) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListCollaborationPrivacyBudgets) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListCollaborationPrivacyBudgetsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListCollaborationPrivacyBudgetsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpListCollaborationPrivacyBudgetTemplates struct { +} + +func (*validateOpListCollaborationPrivacyBudgetTemplates) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListCollaborationPrivacyBudgetTemplates) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListCollaborationPrivacyBudgetTemplatesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListCollaborationPrivacyBudgetTemplatesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpListConfiguredAudienceModelAssociations struct { +} + +func (*validateOpListConfiguredAudienceModelAssociations) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListConfiguredAudienceModelAssociations) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListConfiguredAudienceModelAssociationsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListConfiguredAudienceModelAssociationsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListConfiguredTableAssociations struct { } @@ -590,6 +830,46 @@ func (m *validateOpListMembers) HandleInitialize(ctx context.Context, in middlew return next.HandleInitialize(ctx, in) } +type validateOpListPrivacyBudgets struct { +} + +func (*validateOpListPrivacyBudgets) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListPrivacyBudgets) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListPrivacyBudgetsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListPrivacyBudgetsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpListPrivacyBudgetTemplates struct { +} + +func (*validateOpListPrivacyBudgetTemplates) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListPrivacyBudgetTemplates) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListPrivacyBudgetTemplatesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListPrivacyBudgetTemplatesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListProtectedQueries struct { } @@ -650,6 +930,26 @@ func (m *validateOpListTagsForResource) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpPreviewPrivacyImpact struct { +} + +func (*validateOpPreviewPrivacyImpact) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpPreviewPrivacyImpact) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*PreviewPrivacyImpactInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpPreviewPrivacyImpactInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpStartProtectedQuery struct { } @@ -750,6 +1050,26 @@ func (m *validateOpUpdateCollaboration) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpUpdateConfiguredAudienceModelAssociation struct { +} + +func (*validateOpUpdateConfiguredAudienceModelAssociation) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateConfiguredAudienceModelAssociation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateConfiguredAudienceModelAssociationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateConfiguredAudienceModelAssociationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateConfiguredTableAnalysisRule struct { } @@ -830,6 +1150,26 @@ func (m *validateOpUpdateMembership) HandleInitialize(ctx context.Context, in mi return next.HandleInitialize(ctx, in) } +type validateOpUpdatePrivacyBudgetTemplate struct { +} + +func (*validateOpUpdatePrivacyBudgetTemplate) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdatePrivacyBudgetTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdatePrivacyBudgetTemplateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdatePrivacyBudgetTemplateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateProtectedQuery struct { } @@ -866,6 +1206,10 @@ func addOpCreateCollaborationValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpCreateCollaboration{}, middleware.After) } +func addOpCreateConfiguredAudienceModelAssociationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateConfiguredAudienceModelAssociation{}, middleware.After) +} + func addOpCreateConfiguredTableAnalysisRuleValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateConfiguredTableAnalysisRule{}, middleware.After) } @@ -882,6 +1226,10 @@ func addOpCreateMembershipValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateMembership{}, middleware.After) } +func addOpCreatePrivacyBudgetTemplateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreatePrivacyBudgetTemplate{}, middleware.After) +} + func addOpDeleteAnalysisTemplateValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteAnalysisTemplate{}, middleware.After) } @@ -890,6 +1238,10 @@ func addOpDeleteCollaborationValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpDeleteCollaboration{}, middleware.After) } +func addOpDeleteConfiguredAudienceModelAssociationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteConfiguredAudienceModelAssociation{}, middleware.After) +} + func addOpDeleteConfiguredTableAnalysisRuleValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteConfiguredTableAnalysisRule{}, middleware.After) } @@ -910,6 +1262,10 @@ func addOpDeleteMembershipValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteMembership{}, middleware.After) } +func addOpDeletePrivacyBudgetTemplateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeletePrivacyBudgetTemplate{}, middleware.After) +} + func addOpGetAnalysisTemplateValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetAnalysisTemplate{}, middleware.After) } @@ -918,10 +1274,22 @@ func addOpGetCollaborationAnalysisTemplateValidationMiddleware(stack *middleware return stack.Initialize.Add(&validateOpGetCollaborationAnalysisTemplate{}, middleware.After) } +func addOpGetCollaborationConfiguredAudienceModelAssociationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetCollaborationConfiguredAudienceModelAssociation{}, middleware.After) +} + func addOpGetCollaborationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetCollaboration{}, middleware.After) } +func addOpGetCollaborationPrivacyBudgetTemplateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetCollaborationPrivacyBudgetTemplate{}, middleware.After) +} + +func addOpGetConfiguredAudienceModelAssociationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetConfiguredAudienceModelAssociation{}, middleware.After) +} + func addOpGetConfiguredTableAnalysisRuleValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetConfiguredTableAnalysisRule{}, middleware.After) } @@ -938,6 +1306,10 @@ func addOpGetMembershipValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetMembership{}, middleware.After) } +func addOpGetPrivacyBudgetTemplateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetPrivacyBudgetTemplate{}, middleware.After) +} + func addOpGetProtectedQueryValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetProtectedQuery{}, middleware.After) } @@ -958,6 +1330,22 @@ func addOpListCollaborationAnalysisTemplatesValidationMiddleware(stack *middlewa return stack.Initialize.Add(&validateOpListCollaborationAnalysisTemplates{}, middleware.After) } +func addOpListCollaborationConfiguredAudienceModelAssociationsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListCollaborationConfiguredAudienceModelAssociations{}, middleware.After) +} + +func addOpListCollaborationPrivacyBudgetsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListCollaborationPrivacyBudgets{}, middleware.After) +} + +func addOpListCollaborationPrivacyBudgetTemplatesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListCollaborationPrivacyBudgetTemplates{}, middleware.After) +} + +func addOpListConfiguredAudienceModelAssociationsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListConfiguredAudienceModelAssociations{}, middleware.After) +} + func addOpListConfiguredTableAssociationsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListConfiguredTableAssociations{}, middleware.After) } @@ -966,6 +1354,14 @@ func addOpListMembersValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListMembers{}, middleware.After) } +func addOpListPrivacyBudgetsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListPrivacyBudgets{}, middleware.After) +} + +func addOpListPrivacyBudgetTemplatesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListPrivacyBudgetTemplates{}, middleware.After) +} + func addOpListProtectedQueriesValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListProtectedQueries{}, middleware.After) } @@ -978,6 +1374,10 @@ func addOpListTagsForResourceValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpListTagsForResource{}, middleware.After) } +func addOpPreviewPrivacyImpactValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpPreviewPrivacyImpact{}, middleware.After) +} + func addOpStartProtectedQueryValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpStartProtectedQuery{}, middleware.After) } @@ -998,6 +1398,10 @@ func addOpUpdateCollaborationValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpUpdateCollaboration{}, middleware.After) } +func addOpUpdateConfiguredAudienceModelAssociationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateConfiguredAudienceModelAssociation{}, middleware.After) +} + func addOpUpdateConfiguredTableAnalysisRuleValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateConfiguredTableAnalysisRule{}, middleware.After) } @@ -1014,6 +1418,10 @@ func addOpUpdateMembershipValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateMembership{}, middleware.After) } +func addOpUpdatePrivacyBudgetTemplateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdatePrivacyBudgetTemplate{}, middleware.After) +} + func addOpUpdateProtectedQueryValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateProtectedQuery{}, middleware.After) } @@ -1169,6 +1577,11 @@ func validateAnalysisRuleCustom(v *types.AnalysisRuleCustom) error { if v.AllowedAnalyses == nil { invalidParams.Add(smithy.NewErrParamRequired("AllowedAnalyses")) } + if v.DifferentialPrivacy != nil { + if err := validateDifferentialPrivacyConfiguration(v.DifferentialPrivacy); err != nil { + invalidParams.AddNested("DifferentialPrivacy", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1266,6 +1679,93 @@ func validateDataEncryptionMetadata(v *types.DataEncryptionMetadata) error { } } +func validateDifferentialPrivacyColumn(v *types.DifferentialPrivacyColumn) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DifferentialPrivacyColumn"} + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDifferentialPrivacyColumnList(v []types.DifferentialPrivacyColumn) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DifferentialPrivacyColumnList"} + for i := range v { + if err := validateDifferentialPrivacyColumn(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDifferentialPrivacyConfiguration(v *types.DifferentialPrivacyConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DifferentialPrivacyConfiguration"} + if v.Columns == nil { + invalidParams.Add(smithy.NewErrParamRequired("Columns")) + } else if v.Columns != nil { + if err := validateDifferentialPrivacyColumnList(v.Columns); err != nil { + invalidParams.AddNested("Columns", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDifferentialPrivacyPreviewParametersInput(v *types.DifferentialPrivacyPreviewParametersInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DifferentialPrivacyPreviewParametersInput"} + if v.Epsilon == nil { + invalidParams.Add(smithy.NewErrParamRequired("Epsilon")) + } + if v.UsersNoisePerQuery == nil { + invalidParams.Add(smithy.NewErrParamRequired("UsersNoisePerQuery")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDifferentialPrivacyTemplateParametersInput(v *types.DifferentialPrivacyTemplateParametersInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DifferentialPrivacyTemplateParametersInput"} + if v.Epsilon == nil { + invalidParams.Add(smithy.NewErrParamRequired("Epsilon")) + } + if v.UsersNoisePerQuery == nil { + invalidParams.Add(smithy.NewErrParamRequired("UsersNoisePerQuery")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateGlueTableReference(v *types.GlueTableReference) error { if v == nil { return nil @@ -1387,10 +1887,48 @@ func validateMemberSpecification(v *types.MemberSpecification) error { if v.DisplayName == nil { invalidParams.Add(smithy.NewErrParamRequired("DisplayName")) } - if v.PaymentConfiguration != nil { - if err := validatePaymentConfiguration(v.PaymentConfiguration); err != nil { - invalidParams.AddNested("PaymentConfiguration", err.(smithy.InvalidParamsError)) + if v.PaymentConfiguration != nil { + if err := validatePaymentConfiguration(v.PaymentConfiguration); err != nil { + invalidParams.AddNested("PaymentConfiguration", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validatePaymentConfiguration(v *types.PaymentConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "PaymentConfiguration"} + if v.QueryCompute == nil { + invalidParams.Add(smithy.NewErrParamRequired("QueryCompute")) + } else if v.QueryCompute != nil { + if err := validateQueryComputePaymentConfig(v.QueryCompute); err != nil { + invalidParams.AddNested("QueryCompute", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validatePreviewPrivacyImpactParametersInput(v types.PreviewPrivacyImpactParametersInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "PreviewPrivacyImpactParametersInput"} + switch uv := v.(type) { + case *types.PreviewPrivacyImpactParametersInputMemberDifferentialPrivacy: + if err := validateDifferentialPrivacyPreviewParametersInput(&uv.Value); err != nil { + invalidParams.AddNested("[differentialPrivacy]", err.(smithy.InvalidParamsError)) } + } if invalidParams.Len() > 0 { return invalidParams @@ -1399,17 +1937,17 @@ func validateMemberSpecification(v *types.MemberSpecification) error { } } -func validatePaymentConfiguration(v *types.PaymentConfiguration) error { +func validatePrivacyBudgetTemplateParametersInput(v types.PrivacyBudgetTemplateParametersInput) error { if v == nil { return nil } - invalidParams := smithy.InvalidParamsError{Context: "PaymentConfiguration"} - if v.QueryCompute == nil { - invalidParams.Add(smithy.NewErrParamRequired("QueryCompute")) - } else if v.QueryCompute != nil { - if err := validateQueryComputePaymentConfig(v.QueryCompute); err != nil { - invalidParams.AddNested("QueryCompute", err.(smithy.InvalidParamsError)) + invalidParams := smithy.InvalidParamsError{Context: "PrivacyBudgetTemplateParametersInput"} + switch uv := v.(type) { + case *types.PrivacyBudgetTemplateParametersInputMemberDifferentialPrivacy: + if err := validateDifferentialPrivacyTemplateParametersInput(&uv.Value); err != nil { + invalidParams.AddNested("[differentialPrivacy]", err.(smithy.InvalidParamsError)) } + } if invalidParams.Len() > 0 { return invalidParams @@ -1617,6 +2155,30 @@ func validateOpCreateCollaborationInput(v *CreateCollaborationInput) error { } } +func validateOpCreateConfiguredAudienceModelAssociationInput(v *CreateConfiguredAudienceModelAssociationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateConfiguredAudienceModelAssociationInput"} + if v.MembershipIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("MembershipIdentifier")) + } + if v.ConfiguredAudienceModelArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ConfiguredAudienceModelArn")) + } + if v.ConfiguredAudienceModelAssociationName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ConfiguredAudienceModelAssociationName")) + } + if v.ManageResourcePolicies == nil { + invalidParams.Add(smithy.NewErrParamRequired("ManageResourcePolicies")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateConfiguredTableAnalysisRuleInput(v *CreateConfiguredTableAnalysisRuleInput) error { if v == nil { return nil @@ -1722,6 +2284,34 @@ func validateOpCreateMembershipInput(v *CreateMembershipInput) error { } } +func validateOpCreatePrivacyBudgetTemplateInput(v *CreatePrivacyBudgetTemplateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreatePrivacyBudgetTemplateInput"} + if v.MembershipIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("MembershipIdentifier")) + } + if len(v.AutoRefresh) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("AutoRefresh")) + } + if len(v.PrivacyBudgetType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("PrivacyBudgetType")) + } + if v.Parameters == nil { + invalidParams.Add(smithy.NewErrParamRequired("Parameters")) + } else if v.Parameters != nil { + if err := validatePrivacyBudgetTemplateParametersInput(v.Parameters); err != nil { + invalidParams.AddNested("Parameters", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteAnalysisTemplateInput(v *DeleteAnalysisTemplateInput) error { if v == nil { return nil @@ -1755,6 +2345,24 @@ func validateOpDeleteCollaborationInput(v *DeleteCollaborationInput) error { } } +func validateOpDeleteConfiguredAudienceModelAssociationInput(v *DeleteConfiguredAudienceModelAssociationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteConfiguredAudienceModelAssociationInput"} + if v.ConfiguredAudienceModelAssociationIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("ConfiguredAudienceModelAssociationIdentifier")) + } + if v.MembershipIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("MembershipIdentifier")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteConfiguredTableAnalysisRuleInput(v *DeleteConfiguredTableAnalysisRuleInput) error { if v == nil { return nil @@ -1839,6 +2447,24 @@ func validateOpDeleteMembershipInput(v *DeleteMembershipInput) error { } } +func validateOpDeletePrivacyBudgetTemplateInput(v *DeletePrivacyBudgetTemplateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeletePrivacyBudgetTemplateInput"} + if v.MembershipIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("MembershipIdentifier")) + } + if v.PrivacyBudgetTemplateIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("PrivacyBudgetTemplateIdentifier")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetAnalysisTemplateInput(v *GetAnalysisTemplateInput) error { if v == nil { return nil @@ -1875,6 +2501,24 @@ func validateOpGetCollaborationAnalysisTemplateInput(v *GetCollaborationAnalysis } } +func validateOpGetCollaborationConfiguredAudienceModelAssociationInput(v *GetCollaborationConfiguredAudienceModelAssociationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetCollaborationConfiguredAudienceModelAssociationInput"} + if v.CollaborationIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("CollaborationIdentifier")) + } + if v.ConfiguredAudienceModelAssociationIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("ConfiguredAudienceModelAssociationIdentifier")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetCollaborationInput(v *GetCollaborationInput) error { if v == nil { return nil @@ -1890,6 +2534,42 @@ func validateOpGetCollaborationInput(v *GetCollaborationInput) error { } } +func validateOpGetCollaborationPrivacyBudgetTemplateInput(v *GetCollaborationPrivacyBudgetTemplateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetCollaborationPrivacyBudgetTemplateInput"} + if v.CollaborationIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("CollaborationIdentifier")) + } + if v.PrivacyBudgetTemplateIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("PrivacyBudgetTemplateIdentifier")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetConfiguredAudienceModelAssociationInput(v *GetConfiguredAudienceModelAssociationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetConfiguredAudienceModelAssociationInput"} + if v.ConfiguredAudienceModelAssociationIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("ConfiguredAudienceModelAssociationIdentifier")) + } + if v.MembershipIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("MembershipIdentifier")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetConfiguredTableAnalysisRuleInput(v *GetConfiguredTableAnalysisRuleInput) error { if v == nil { return nil @@ -1956,6 +2636,24 @@ func validateOpGetMembershipInput(v *GetMembershipInput) error { } } +func validateOpGetPrivacyBudgetTemplateInput(v *GetPrivacyBudgetTemplateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetPrivacyBudgetTemplateInput"} + if v.MembershipIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("MembershipIdentifier")) + } + if v.PrivacyBudgetTemplateIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("PrivacyBudgetTemplateIdentifier")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetProtectedQueryInput(v *GetProtectedQueryInput) error { if v == nil { return nil @@ -2043,6 +2741,69 @@ func validateOpListCollaborationAnalysisTemplatesInput(v *ListCollaborationAnaly } } +func validateOpListCollaborationConfiguredAudienceModelAssociationsInput(v *ListCollaborationConfiguredAudienceModelAssociationsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListCollaborationConfiguredAudienceModelAssociationsInput"} + if v.CollaborationIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("CollaborationIdentifier")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListCollaborationPrivacyBudgetsInput(v *ListCollaborationPrivacyBudgetsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListCollaborationPrivacyBudgetsInput"} + if v.CollaborationIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("CollaborationIdentifier")) + } + if len(v.PrivacyBudgetType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("PrivacyBudgetType")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListCollaborationPrivacyBudgetTemplatesInput(v *ListCollaborationPrivacyBudgetTemplatesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListCollaborationPrivacyBudgetTemplatesInput"} + if v.CollaborationIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("CollaborationIdentifier")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListConfiguredAudienceModelAssociationsInput(v *ListConfiguredAudienceModelAssociationsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListConfiguredAudienceModelAssociationsInput"} + if v.MembershipIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("MembershipIdentifier")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListConfiguredTableAssociationsInput(v *ListConfiguredTableAssociationsInput) error { if v == nil { return nil @@ -2073,6 +2834,39 @@ func validateOpListMembersInput(v *ListMembersInput) error { } } +func validateOpListPrivacyBudgetsInput(v *ListPrivacyBudgetsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListPrivacyBudgetsInput"} + if v.MembershipIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("MembershipIdentifier")) + } + if len(v.PrivacyBudgetType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("PrivacyBudgetType")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListPrivacyBudgetTemplatesInput(v *ListPrivacyBudgetTemplatesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListPrivacyBudgetTemplatesInput"} + if v.MembershipIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("MembershipIdentifier")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListProtectedQueriesInput(v *ListProtectedQueriesInput) error { if v == nil { return nil @@ -2118,6 +2912,28 @@ func validateOpListTagsForResourceInput(v *ListTagsForResourceInput) error { } } +func validateOpPreviewPrivacyImpactInput(v *PreviewPrivacyImpactInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "PreviewPrivacyImpactInput"} + if v.MembershipIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("MembershipIdentifier")) + } + if v.Parameters == nil { + invalidParams.Add(smithy.NewErrParamRequired("Parameters")) + } else if v.Parameters != nil { + if err := validatePreviewPrivacyImpactParametersInput(v.Parameters); err != nil { + invalidParams.AddNested("Parameters", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpStartProtectedQueryInput(v *StartProtectedQueryInput) error { if v == nil { return nil @@ -2213,6 +3029,24 @@ func validateOpUpdateCollaborationInput(v *UpdateCollaborationInput) error { } } +func validateOpUpdateConfiguredAudienceModelAssociationInput(v *UpdateConfiguredAudienceModelAssociationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateConfiguredAudienceModelAssociationInput"} + if v.ConfiguredAudienceModelAssociationIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("ConfiguredAudienceModelAssociationIdentifier")) + } + if v.MembershipIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("MembershipIdentifier")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpUpdateConfiguredTableAnalysisRuleInput(v *UpdateConfiguredTableAnalysisRuleInput) error { if v == nil { return nil @@ -2291,6 +3125,27 @@ func validateOpUpdateMembershipInput(v *UpdateMembershipInput) error { } } +func validateOpUpdatePrivacyBudgetTemplateInput(v *UpdatePrivacyBudgetTemplateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdatePrivacyBudgetTemplateInput"} + if v.MembershipIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("MembershipIdentifier")) + } + if v.PrivacyBudgetTemplateIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("PrivacyBudgetTemplateIdentifier")) + } + if len(v.PrivacyBudgetType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("PrivacyBudgetType")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpUpdateProtectedQueryInput(v *UpdateProtectedQueryInput) error { if v == nil { return nil diff --git a/service/cleanroomsml/LICENSE.txt b/service/cleanroomsml/LICENSE.txt new file mode 100644 index 00000000000..d6456956733 --- /dev/null +++ b/service/cleanroomsml/LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/service/cleanroomsml/api_client.go b/service/cleanroomsml/api_client.go new file mode 100644 index 00000000000..545510b6a18 --- /dev/null +++ b/service/cleanroomsml/api_client.go @@ -0,0 +1,463 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/aws/defaults" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/retry" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + internalauthsmithy "github.com/aws/aws-sdk-go-v2/internal/auth/smithy" + internalConfig "github.com/aws/aws-sdk-go-v2/internal/configsources" + smithy "github.com/aws/smithy-go" + smithydocument "github.com/aws/smithy-go/document" + "github.com/aws/smithy-go/logging" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "net" + "net/http" + "time" +) + +const ServiceID = "CleanRoomsML" +const ServiceAPIVersion = "2023-09-06" + +// Client provides the API client to make operations call for cleanrooms-ml. +type Client struct { + options Options +} + +// New returns an initialized Client based on the functional options. Provide +// additional functional options to further configure the behavior of the client, +// such as changing the client's endpoint or adding custom middleware behavior. +func New(options Options, optFns ...func(*Options)) *Client { + options = options.Copy() + + resolveDefaultLogger(&options) + + setResolvedDefaultsMode(&options) + + resolveHTTPClient(&options) + + resolveHTTPSignerV4(&options) + + resolveEndpointResolverV2(&options) + + resolveAuthSchemeResolver(&options) + + for _, fn := range optFns { + fn(&options) + } + + resolveRetryer(&options) + + ignoreAnonymousAuth(&options) + + resolveAuthSchemes(&options) + + client := &Client{ + options: options, + } + + return client +} + +// Options returns a copy of the client configuration. +// +// Callers SHOULD NOT perform mutations on any inner structures within client +// config. Config overrides should instead be made on a per-operation basis through +// functional options. +func (c *Client) Options() Options { + return c.options.Copy() +} + +func (c *Client) invokeOperation(ctx context.Context, opID string, params interface{}, optFns []func(*Options), stackFns ...func(*middleware.Stack, Options) error) (result interface{}, metadata middleware.Metadata, err error) { + ctx = middleware.ClearStackValues(ctx) + stack := middleware.NewStack(opID, smithyhttp.NewStackRequest) + options := c.options.Copy() + + for _, fn := range optFns { + fn(&options) + } + + finalizeRetryMaxAttemptOptions(&options, *c) + + finalizeClientEndpointResolverOptions(&options) + + for _, fn := range stackFns { + if err := fn(stack, options); err != nil { + return nil, metadata, err + } + } + + for _, fn := range options.APIOptions { + if err := fn(stack); err != nil { + return nil, metadata, err + } + } + + handler := middleware.DecorateHandler(smithyhttp.NewClientHandler(options.HTTPClient), stack) + result, metadata, err = handler.Handle(ctx, params) + if err != nil { + err = &smithy.OperationError{ + ServiceID: ServiceID, + OperationName: opID, + Err: err, + } + } + return result, metadata, err +} + +type operationInputKey struct{} + +func setOperationInput(ctx context.Context, input interface{}) context.Context { + return middleware.WithStackValue(ctx, operationInputKey{}, input) +} + +func getOperationInput(ctx context.Context) interface{} { + return middleware.GetStackValue(ctx, operationInputKey{}) +} + +type setOperationInputMiddleware struct { +} + +func (*setOperationInputMiddleware) ID() string { + return "setOperationInput" +} + +func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + ctx = setOperationInput(ctx, in.Parameters) + return next.HandleSerialize(ctx, in) +} + +func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { + if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { + return fmt.Errorf("add ResolveAuthScheme: %v", err) + } + if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { + return fmt.Errorf("add GetIdentity: %v", err) + } + if err := stack.Finalize.Insert(&resolveEndpointV2Middleware{options: options}, "GetIdentity", middleware.After); err != nil { + return fmt.Errorf("add ResolveEndpointV2: %v", err) + } + if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { + return fmt.Errorf("add Signing: %v", err) + } + return nil +} +func resolveAuthSchemeResolver(options *Options) { + if options.AuthSchemeResolver == nil { + options.AuthSchemeResolver = &defaultAuthSchemeResolver{} + } +} + +func resolveAuthSchemes(options *Options) { + if options.AuthSchemes == nil { + options.AuthSchemes = []smithyhttp.AuthScheme{ + internalauth.NewHTTPAuthScheme("aws.auth#sigv4", &internalauthsmithy.V4SignerAdapter{ + Signer: options.HTTPSignerV4, + Logger: options.Logger, + LogSigning: options.ClientLogMode.IsSigning(), + }), + } + } +} + +type noSmithyDocumentSerde = smithydocument.NoSerde + +type legacyEndpointContextSetter struct { + LegacyResolver EndpointResolver +} + +func (*legacyEndpointContextSetter) ID() string { + return "legacyEndpointContextSetter" +} + +func (m *legacyEndpointContextSetter) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.LegacyResolver != nil { + ctx = awsmiddleware.SetRequiresLegacyEndpoints(ctx, true) + } + + return next.HandleInitialize(ctx, in) + +} +func addlegacyEndpointContextSetter(stack *middleware.Stack, o Options) error { + return stack.Initialize.Add(&legacyEndpointContextSetter{ + LegacyResolver: o.EndpointResolver, + }, middleware.Before) +} + +func resolveDefaultLogger(o *Options) { + if o.Logger != nil { + return + } + o.Logger = logging.Nop{} +} + +func addSetLoggerMiddleware(stack *middleware.Stack, o Options) error { + return middleware.AddSetLoggerMiddleware(stack, o.Logger) +} + +func setResolvedDefaultsMode(o *Options) { + if len(o.resolvedDefaultsMode) > 0 { + return + } + + var mode aws.DefaultsMode + mode.SetFromString(string(o.DefaultsMode)) + + if mode == aws.DefaultsModeAuto { + mode = defaults.ResolveDefaultsModeAuto(o.Region, o.RuntimeEnvironment) + } + + o.resolvedDefaultsMode = mode +} + +// NewFromConfig returns a new client from the provided config. +func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client { + opts := Options{ + Region: cfg.Region, + DefaultsMode: cfg.DefaultsMode, + RuntimeEnvironment: cfg.RuntimeEnvironment, + HTTPClient: cfg.HTTPClient, + Credentials: cfg.Credentials, + APIOptions: cfg.APIOptions, + Logger: cfg.Logger, + ClientLogMode: cfg.ClientLogMode, + AppID: cfg.AppID, + } + resolveAWSRetryerProvider(cfg, &opts) + resolveAWSRetryMaxAttempts(cfg, &opts) + resolveAWSRetryMode(cfg, &opts) + resolveAWSEndpointResolver(cfg, &opts) + resolveUseDualStackEndpoint(cfg, &opts) + resolveUseFIPSEndpoint(cfg, &opts) + resolveBaseEndpoint(cfg, &opts) + return New(opts, optFns...) +} + +func resolveHTTPClient(o *Options) { + var buildable *awshttp.BuildableClient + + if o.HTTPClient != nil { + var ok bool + buildable, ok = o.HTTPClient.(*awshttp.BuildableClient) + if !ok { + return + } + } else { + buildable = awshttp.NewBuildableClient() + } + + modeConfig, err := defaults.GetModeConfiguration(o.resolvedDefaultsMode) + if err == nil { + buildable = buildable.WithDialerOptions(func(dialer *net.Dialer) { + if dialerTimeout, ok := modeConfig.GetConnectTimeout(); ok { + dialer.Timeout = dialerTimeout + } + }) + + buildable = buildable.WithTransportOptions(func(transport *http.Transport) { + if tlsHandshakeTimeout, ok := modeConfig.GetTLSNegotiationTimeout(); ok { + transport.TLSHandshakeTimeout = tlsHandshakeTimeout + } + }) + } + + o.HTTPClient = buildable +} + +func resolveRetryer(o *Options) { + if o.Retryer != nil { + return + } + + if len(o.RetryMode) == 0 { + modeConfig, err := defaults.GetModeConfiguration(o.resolvedDefaultsMode) + if err == nil { + o.RetryMode = modeConfig.RetryMode + } + } + if len(o.RetryMode) == 0 { + o.RetryMode = aws.RetryModeStandard + } + + var standardOptions []func(*retry.StandardOptions) + if v := o.RetryMaxAttempts; v != 0 { + standardOptions = append(standardOptions, func(so *retry.StandardOptions) { + so.MaxAttempts = v + }) + } + + switch o.RetryMode { + case aws.RetryModeAdaptive: + var adaptiveOptions []func(*retry.AdaptiveModeOptions) + if len(standardOptions) != 0 { + adaptiveOptions = append(adaptiveOptions, func(ao *retry.AdaptiveModeOptions) { + ao.StandardOptions = append(ao.StandardOptions, standardOptions...) + }) + } + o.Retryer = retry.NewAdaptiveMode(adaptiveOptions...) + + default: + o.Retryer = retry.NewStandard(standardOptions...) + } +} + +func resolveAWSRetryerProvider(cfg aws.Config, o *Options) { + if cfg.Retryer == nil { + return + } + o.Retryer = cfg.Retryer() +} + +func resolveAWSRetryMode(cfg aws.Config, o *Options) { + if len(cfg.RetryMode) == 0 { + return + } + o.RetryMode = cfg.RetryMode +} +func resolveAWSRetryMaxAttempts(cfg aws.Config, o *Options) { + if cfg.RetryMaxAttempts == 0 { + return + } + o.RetryMaxAttempts = cfg.RetryMaxAttempts +} + +func finalizeRetryMaxAttemptOptions(o *Options, client Client) { + if v := o.RetryMaxAttempts; v == 0 || v == client.options.RetryMaxAttempts { + return + } + + o.Retryer = retry.AddWithMaxAttempts(o.Retryer, o.RetryMaxAttempts) +} + +func resolveAWSEndpointResolver(cfg aws.Config, o *Options) { + if cfg.EndpointResolver == nil && cfg.EndpointResolverWithOptions == nil { + return + } + o.EndpointResolver = withEndpointResolver(cfg.EndpointResolver, cfg.EndpointResolverWithOptions) +} + +func addClientUserAgent(stack *middleware.Stack, options Options) error { + if err := awsmiddleware.AddSDKAgentKeyValue(awsmiddleware.APIMetadata, "cleanroomsml", goModuleVersion)(stack); err != nil { + return err + } + + if len(options.AppID) > 0 { + return awsmiddleware.AddSDKAgentKey(awsmiddleware.ApplicationIdentifier, options.AppID)(stack) + } + + return nil +} + +type HTTPSignerV4 interface { + SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error +} + +func resolveHTTPSignerV4(o *Options) { + if o.HTTPSignerV4 != nil { + return + } + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) +} + +func addRetryMiddlewares(stack *middleware.Stack, o Options) error { + mo := retry.AddRetryMiddlewaresOptions{ + Retryer: o.Retryer, + LogRetryAttempts: o.ClientLogMode.IsRetries(), + } + return retry.AddRetryMiddlewares(stack, mo) +} + +// resolves dual-stack endpoint configuration +func resolveUseDualStackEndpoint(cfg aws.Config, o *Options) error { + if len(cfg.ConfigSources) == 0 { + return nil + } + value, found, err := internalConfig.ResolveUseDualStackEndpoint(context.Background(), cfg.ConfigSources) + if err != nil { + return err + } + if found { + o.EndpointOptions.UseDualStackEndpoint = value + } + return nil +} + +// resolves FIPS endpoint configuration +func resolveUseFIPSEndpoint(cfg aws.Config, o *Options) error { + if len(cfg.ConfigSources) == 0 { + return nil + } + value, found, err := internalConfig.ResolveUseFIPSEndpoint(context.Background(), cfg.ConfigSources) + if err != nil { + return err + } + if found { + o.EndpointOptions.UseFIPSEndpoint = value + } + return nil +} + +func addRequestIDRetrieverMiddleware(stack *middleware.Stack) error { + return awsmiddleware.AddRequestIDRetrieverMiddleware(stack) +} + +func addResponseErrorMiddleware(stack *middleware.Stack) error { + return awshttp.AddResponseErrorMiddleware(stack) +} + +func addRequestResponseLogging(stack *middleware.Stack, o Options) error { + return stack.Deserialize.Add(&smithyhttp.RequestResponseLogger{ + LogRequest: o.ClientLogMode.IsRequest(), + LogRequestWithBody: o.ClientLogMode.IsRequestWithBody(), + LogResponse: o.ClientLogMode.IsResponse(), + LogResponseWithBody: o.ClientLogMode.IsResponseWithBody(), + }, middleware.After) +} + +type disableHTTPSMiddleware struct { + DisableHTTPS bool +} + +func (*disableHTTPSMiddleware) ID() string { + return "disableHTTPS" +} + +func (m *disableHTTPSMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.DisableHTTPS && !smithyhttp.GetHostnameImmutable(ctx) { + req.URL.Scheme = "http" + } + + return next.HandleFinalize(ctx, in) +} + +func addDisableHTTPSMiddleware(stack *middleware.Stack, o Options) error { + return stack.Finalize.Insert(&disableHTTPSMiddleware{ + DisableHTTPS: o.EndpointOptions.DisableHTTPS, + }, "ResolveEndpointV2", middleware.After) +} diff --git a/service/cleanroomsml/api_client_test.go b/service/cleanroomsml/api_client_test.go new file mode 100644 index 00000000000..20ba25ad087 --- /dev/null +++ b/service/cleanroomsml/api_client_test.go @@ -0,0 +1,123 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "io/ioutil" + "net/http" + "strings" + "testing" +) + +func TestClient_resolveRetryOptions(t *testing.T) { + nopClient := smithyhttp.ClientDoFunc(func(_ *http.Request) (*http.Response, error) { + return &http.Response{ + StatusCode: 200, + Header: http.Header{}, + Body: ioutil.NopCloser(strings.NewReader("")), + }, nil + }) + + cases := map[string]struct { + defaultsMode aws.DefaultsMode + retryer aws.Retryer + retryMaxAttempts int + opRetryMaxAttempts *int + retryMode aws.RetryMode + expectClientRetryMode aws.RetryMode + expectClientMaxAttempts int + expectOpMaxAttempts int + }{ + "defaults": { + defaultsMode: aws.DefaultsModeStandard, + expectClientRetryMode: aws.RetryModeStandard, + expectClientMaxAttempts: 3, + expectOpMaxAttempts: 3, + }, + "custom default retry": { + retryMode: aws.RetryModeAdaptive, + retryMaxAttempts: 10, + expectClientRetryMode: aws.RetryModeAdaptive, + expectClientMaxAttempts: 10, + expectOpMaxAttempts: 10, + }, + "custom op max attempts": { + retryMode: aws.RetryModeAdaptive, + retryMaxAttempts: 10, + opRetryMaxAttempts: aws.Int(2), + expectClientRetryMode: aws.RetryModeAdaptive, + expectClientMaxAttempts: 10, + expectOpMaxAttempts: 2, + }, + "custom op no change max attempts": { + retryMode: aws.RetryModeAdaptive, + retryMaxAttempts: 10, + opRetryMaxAttempts: aws.Int(10), + expectClientRetryMode: aws.RetryModeAdaptive, + expectClientMaxAttempts: 10, + expectOpMaxAttempts: 10, + }, + "custom op 0 max attempts": { + retryMode: aws.RetryModeAdaptive, + retryMaxAttempts: 10, + opRetryMaxAttempts: aws.Int(0), + expectClientRetryMode: aws.RetryModeAdaptive, + expectClientMaxAttempts: 10, + expectOpMaxAttempts: 10, + }, + } + + for name, c := range cases { + t.Run(name, func(t *testing.T) { + client := NewFromConfig(aws.Config{ + DefaultsMode: c.defaultsMode, + Retryer: func() func() aws.Retryer { + if c.retryer == nil { + return nil + } + + return func() aws.Retryer { return c.retryer } + }(), + HTTPClient: nopClient, + RetryMaxAttempts: c.retryMaxAttempts, + RetryMode: c.retryMode, + }) + + if e, a := c.expectClientRetryMode, client.options.RetryMode; e != a { + t.Errorf("expect %v retry mode, got %v", e, a) + } + if e, a := c.expectClientMaxAttempts, client.options.Retryer.MaxAttempts(); e != a { + t.Errorf("expect %v max attempts, got %v", e, a) + } + + _, _, err := client.invokeOperation(context.Background(), "mockOperation", struct{}{}, + []func(*Options){ + func(o *Options) { + if c.opRetryMaxAttempts == nil { + return + } + o.RetryMaxAttempts = *c.opRetryMaxAttempts + }, + }, + func(s *middleware.Stack, o Options) error { + s.Initialize.Clear() + s.Serialize.Clear() + s.Build.Clear() + s.Finalize.Clear() + s.Deserialize.Clear() + + if e, a := c.expectOpMaxAttempts, o.Retryer.MaxAttempts(); e != a { + t.Errorf("expect %v op max attempts, got %v", e, a) + } + return nil + }) + if err != nil { + t.Fatalf("expect no operation error, got %v", err) + } + }) + } +} diff --git a/service/cleanroomsml/api_op_CreateAudienceModel.go b/service/cleanroomsml/api_op_CreateAudienceModel.go new file mode 100644 index 00000000000..3fd627dbda8 --- /dev/null +++ b/service/cleanroomsml/api_op_CreateAudienceModel.go @@ -0,0 +1,182 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Defines the information necessary to create an audience model. An audience +// model is a machine learning model that Clean Rooms ML trains to measure +// similarity between users. Clean Rooms ML manages training and storing the +// audience model. The audience model can be used in multiple calls to the +// StartAudienceGenerationJob API. +func (c *Client) CreateAudienceModel(ctx context.Context, params *CreateAudienceModelInput, optFns ...func(*Options)) (*CreateAudienceModelOutput, error) { + if params == nil { + params = &CreateAudienceModelInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateAudienceModel", params, optFns, c.addOperationCreateAudienceModelMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateAudienceModelOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateAudienceModelInput struct { + + // The name of the audience model resource. + // + // This member is required. + Name *string + + // The Amazon Resource Name (ARN) of the training dataset for this audience model. + // + // This member is required. + TrainingDatasetArn *string + + // The description of the audience model. + Description *string + + // The Amazon Resource Name (ARN) of the KMS key. This key is used to encrypt and + // decrypt customer-owned data in the trained ML model and the associated data. + KmsKeyArn *string + + // The optional metadata that you apply to the resource to help you categorize and + // organize them. Each tag consists of a key and an optional value, both of which + // you define. The following basic restrictions apply to tags: + // - Maximum number of tags per resource - 50. + // - For each resource, each tag key must be unique, and each tag key can have + // only one value. + // - Maximum key length - 128 Unicode characters in UTF-8. + // - Maximum value length - 256 Unicode characters in UTF-8. + // - If your tagging schema is used across multiple services and resources, + // remember that other services may have restrictions on allowed characters. + // Generally allowed characters are: letters, numbers, and spaces representable in + // UTF-8, and the following characters: + - = . _ : / @. + // - Tag keys and values are case sensitive. + // - Do not use aws:, AWS:, or any upper or lowercase combination of such as a + // prefix for keys as it is reserved for AWS use. You cannot edit or delete tag + // keys with this prefix. Values can have this prefix. If a tag value has aws as + // its prefix but the key does not, then Forecast considers it to be a user tag and + // will count against the limit of 50 tags. Tags with only the key prefix of aws do + // not count against your tags per resource limit. + Tags map[string]string + + // The end date and time of the training window. + TrainingDataEndTime *time.Time + + // The start date and time of the training window. + TrainingDataStartTime *time.Time + + noSmithyDocumentSerde +} + +type CreateAudienceModelOutput struct { + + // The Amazon Resource Name (ARN) of the audience model. + // + // This member is required. + AudienceModelArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateAudienceModelMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateAudienceModel{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateAudienceModel{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateAudienceModel"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpCreateAudienceModelValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateAudienceModel(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateAudienceModel(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateAudienceModel", + } +} diff --git a/service/cleanroomsml/api_op_CreateConfiguredAudienceModel.go b/service/cleanroomsml/api_op_CreateConfiguredAudienceModel.go new file mode 100644 index 00000000000..6e3d01acb19 --- /dev/null +++ b/service/cleanroomsml/api_op_CreateConfiguredAudienceModel.go @@ -0,0 +1,203 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanroomsml/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Defines the information necessary to create a configured audience model. +func (c *Client) CreateConfiguredAudienceModel(ctx context.Context, params *CreateConfiguredAudienceModelInput, optFns ...func(*Options)) (*CreateConfiguredAudienceModelOutput, error) { + if params == nil { + params = &CreateConfiguredAudienceModelInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateConfiguredAudienceModel", params, optFns, c.addOperationCreateConfiguredAudienceModelMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateConfiguredAudienceModelOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateConfiguredAudienceModelInput struct { + + // The Amazon Resource Name (ARN) of the audience model to use for the configured + // audience model. + // + // This member is required. + AudienceModelArn *string + + // The name of the configured audience model. + // + // This member is required. + Name *string + + // Configure the Amazon S3 location and IAM Role for audiences created using this + // configured audience model. Each audience will have a unique location. The IAM + // Role must have s3:PutObject permission on the destination Amazon S3 location. + // If the destination is protected with Amazon S3 KMS-SSE, then the Role must also + // have the required KMS permissions. + // + // This member is required. + OutputConfig *types.ConfiguredAudienceModelOutputConfig + + // Whether audience metrics are shared. + // + // This member is required. + SharedAudienceMetrics []types.SharedAudienceMetrics + + // Configure the list of output sizes of audiences that can be created using this + // configured audience model. A request to StartAudienceGenerationJob that uses + // this configured audience model must have an audienceSize selected from this + // list. You can use the ABSOLUTE AudienceSize to configure out audience sizes + // using the count of identifiers in the output. You can use the Percentage + // AudienceSize to configure sizes in the range 1-100 percent. + AudienceSizeConfig *types.AudienceSizeConfig + + // Configure how the service tags audience generation jobs created using this + // configured audience model. If you specify NONE , the tags from the + // StartAudienceGenerationJob request determine the tags of the audience generation + // job. If you specify FROM_PARENT_RESOURCE , the audience generation job inherits + // the tags from the configured audience model, by default. Tags in the + // StartAudienceGenerationJob will override the default. + ChildResourceTagOnCreatePolicy types.TagOnCreatePolicy + + // The description of the configured audience model. + Description *string + + // The minimum number of users from the seed audience that must match with users + // in the training data of the audience model. + MinMatchingSeedSize *int32 + + // The optional metadata that you apply to the resource to help you categorize and + // organize them. Each tag consists of a key and an optional value, both of which + // you define. The following basic restrictions apply to tags: + // - Maximum number of tags per resource - 50. + // - For each resource, each tag key must be unique, and each tag key can have + // only one value. + // - Maximum key length - 128 Unicode characters in UTF-8. + // - Maximum value length - 256 Unicode characters in UTF-8. + // - If your tagging schema is used across multiple services and resources, + // remember that other services may have restrictions on allowed characters. + // Generally allowed characters are: letters, numbers, and spaces representable in + // UTF-8, and the following characters: + - = . _ : / @. + // - Tag keys and values are case sensitive. + // - Do not use aws:, AWS:, or any upper or lowercase combination of such as a + // prefix for keys as it is reserved for AWS use. You cannot edit or delete tag + // keys with this prefix. Values can have this prefix. If a tag value has aws as + // its prefix but the key does not, then Forecast considers it to be a user tag and + // will count against the limit of 50 tags. Tags with only the key prefix of aws do + // not count against your tags per resource limit. + Tags map[string]string + + noSmithyDocumentSerde +} + +type CreateConfiguredAudienceModelOutput struct { + + // The Amazon Resource Name (ARN) of the configured audience model. + // + // This member is required. + ConfiguredAudienceModelArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateConfiguredAudienceModelMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateConfiguredAudienceModel{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateConfiguredAudienceModel{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateConfiguredAudienceModel"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpCreateConfiguredAudienceModelValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateConfiguredAudienceModel(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateConfiguredAudienceModel(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateConfiguredAudienceModel", + } +} diff --git a/service/cleanroomsml/api_op_CreateTrainingDataset.go b/service/cleanroomsml/api_op_CreateTrainingDataset.go new file mode 100644 index 00000000000..0ce562f7317 --- /dev/null +++ b/service/cleanroomsml/api_op_CreateTrainingDataset.go @@ -0,0 +1,181 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanroomsml/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Defines the information necessary to create a training dataset, or seed +// audience. In Clean Rooms ML, the TrainingDataset is metadata that points to a +// Glue table, which is read only during AudienceModel creation. +func (c *Client) CreateTrainingDataset(ctx context.Context, params *CreateTrainingDatasetInput, optFns ...func(*Options)) (*CreateTrainingDatasetOutput, error) { + if params == nil { + params = &CreateTrainingDatasetInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateTrainingDataset", params, optFns, c.addOperationCreateTrainingDatasetMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateTrainingDatasetOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateTrainingDatasetInput struct { + + // The name of the training dataset. This name must be unique in your account and + // region. + // + // This member is required. + Name *string + + // The ARN of the IAM role that Clean Rooms ML can assume to read the data + // referred to in the dataSource field of each dataset. Passing a role across AWS + // accounts is not allowed. If you pass a role that isn't in your account, you get + // an AccessDeniedException error. + // + // This member is required. + RoleArn *string + + // An array of information that lists the Dataset objects, which specifies the + // dataset type and details on its location and schema. You must provide a role + // that has read access to these tables. + // + // This member is required. + TrainingData []types.Dataset + + // The description of the training dataset. + Description *string + + // The optional metadata that you apply to the resource to help you categorize and + // organize them. Each tag consists of a key and an optional value, both of which + // you define. The following basic restrictions apply to tags: + // - Maximum number of tags per resource - 50. + // - For each resource, each tag key must be unique, and each tag key can have + // only one value. + // - Maximum key length - 128 Unicode characters in UTF-8. + // - Maximum value length - 256 Unicode characters in UTF-8. + // - If your tagging schema is used across multiple services and resources, + // remember that other services may have restrictions on allowed characters. + // Generally allowed characters are: letters, numbers, and spaces representable in + // UTF-8, and the following characters: + - = . _ : / @. + // - Tag keys and values are case sensitive. + // - Do not use aws:, AWS:, or any upper or lowercase combination of such as a + // prefix for keys as it is reserved for AWS use. You cannot edit or delete tag + // keys with this prefix. Values can have this prefix. If a tag value has aws as + // its prefix but the key does not, then Clean Rooms ML considers it to be a user + // tag and will count against the limit of 50 tags. Tags with only the key prefix + // of aws do not count against your tags per resource limit. + Tags map[string]string + + noSmithyDocumentSerde +} + +type CreateTrainingDatasetOutput struct { + + // The Amazon Resource Name (ARN) of the training dataset resource. + // + // This member is required. + TrainingDatasetArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateTrainingDatasetMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateTrainingDataset{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateTrainingDataset{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateTrainingDataset"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpCreateTrainingDatasetValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateTrainingDataset(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateTrainingDataset(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateTrainingDataset", + } +} diff --git a/service/cleanroomsml/api_op_DeleteAudienceGenerationJob.go b/service/cleanroomsml/api_op_DeleteAudienceGenerationJob.go new file mode 100644 index 00000000000..e3053dd4ac4 --- /dev/null +++ b/service/cleanroomsml/api_op_DeleteAudienceGenerationJob.go @@ -0,0 +1,134 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes the specified audience generation job, and removes all data associated +// with the job. +func (c *Client) DeleteAudienceGenerationJob(ctx context.Context, params *DeleteAudienceGenerationJobInput, optFns ...func(*Options)) (*DeleteAudienceGenerationJobOutput, error) { + if params == nil { + params = &DeleteAudienceGenerationJobInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteAudienceGenerationJob", params, optFns, c.addOperationDeleteAudienceGenerationJobMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteAudienceGenerationJobOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteAudienceGenerationJobInput struct { + + // The Amazon Resource Name (ARN) of the audience generation job that you want to + // delete. + // + // This member is required. + AudienceGenerationJobArn *string + + noSmithyDocumentSerde +} + +type DeleteAudienceGenerationJobOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteAudienceGenerationJobMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteAudienceGenerationJob{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteAudienceGenerationJob{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteAudienceGenerationJob"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteAudienceGenerationJobValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteAudienceGenerationJob(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteAudienceGenerationJob(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteAudienceGenerationJob", + } +} diff --git a/service/cleanroomsml/api_op_DeleteAudienceModel.go b/service/cleanroomsml/api_op_DeleteAudienceModel.go new file mode 100644 index 00000000000..a7f1cedf7dc --- /dev/null +++ b/service/cleanroomsml/api_op_DeleteAudienceModel.go @@ -0,0 +1,134 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Specifies an audience model that you want to delete. You can't delete an +// audience model if there are any configured audience models that depend on the +// audience model. +func (c *Client) DeleteAudienceModel(ctx context.Context, params *DeleteAudienceModelInput, optFns ...func(*Options)) (*DeleteAudienceModelOutput, error) { + if params == nil { + params = &DeleteAudienceModelInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteAudienceModel", params, optFns, c.addOperationDeleteAudienceModelMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteAudienceModelOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteAudienceModelInput struct { + + // The Amazon Resource Name (ARN) of the audience model that you want to delete. + // + // This member is required. + AudienceModelArn *string + + noSmithyDocumentSerde +} + +type DeleteAudienceModelOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteAudienceModelMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteAudienceModel{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteAudienceModel{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteAudienceModel"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteAudienceModelValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteAudienceModel(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteAudienceModel(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteAudienceModel", + } +} diff --git a/service/cleanroomsml/api_op_DeleteConfiguredAudienceModel.go b/service/cleanroomsml/api_op_DeleteConfiguredAudienceModel.go new file mode 100644 index 00000000000..787302c3e7d --- /dev/null +++ b/service/cleanroomsml/api_op_DeleteConfiguredAudienceModel.go @@ -0,0 +1,136 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes the specified configured audience model. You can't delete a configured +// audience model if there are any lookalike models that use the configured +// audience model. If you delete a configured audience model, it will be removed +// from any collaborations that it is associated to. +func (c *Client) DeleteConfiguredAudienceModel(ctx context.Context, params *DeleteConfiguredAudienceModelInput, optFns ...func(*Options)) (*DeleteConfiguredAudienceModelOutput, error) { + if params == nil { + params = &DeleteConfiguredAudienceModelInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteConfiguredAudienceModel", params, optFns, c.addOperationDeleteConfiguredAudienceModelMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteConfiguredAudienceModelOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteConfiguredAudienceModelInput struct { + + // The Amazon Resource Name (ARN) of the configured audience model that you want + // to delete. + // + // This member is required. + ConfiguredAudienceModelArn *string + + noSmithyDocumentSerde +} + +type DeleteConfiguredAudienceModelOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteConfiguredAudienceModelMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteConfiguredAudienceModel{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteConfiguredAudienceModel{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteConfiguredAudienceModel"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteConfiguredAudienceModelValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteConfiguredAudienceModel(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteConfiguredAudienceModel(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteConfiguredAudienceModel", + } +} diff --git a/service/cleanroomsml/api_op_DeleteConfiguredAudienceModelPolicy.go b/service/cleanroomsml/api_op_DeleteConfiguredAudienceModelPolicy.go new file mode 100644 index 00000000000..4032234171f --- /dev/null +++ b/service/cleanroomsml/api_op_DeleteConfiguredAudienceModelPolicy.go @@ -0,0 +1,133 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes the specified configured audience model policy. +func (c *Client) DeleteConfiguredAudienceModelPolicy(ctx context.Context, params *DeleteConfiguredAudienceModelPolicyInput, optFns ...func(*Options)) (*DeleteConfiguredAudienceModelPolicyOutput, error) { + if params == nil { + params = &DeleteConfiguredAudienceModelPolicyInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteConfiguredAudienceModelPolicy", params, optFns, c.addOperationDeleteConfiguredAudienceModelPolicyMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteConfiguredAudienceModelPolicyOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteConfiguredAudienceModelPolicyInput struct { + + // The Amazon Resource Name (ARN) of the configured audience model policy that you + // want to delete. + // + // This member is required. + ConfiguredAudienceModelArn *string + + noSmithyDocumentSerde +} + +type DeleteConfiguredAudienceModelPolicyOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteConfiguredAudienceModelPolicyMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteConfiguredAudienceModelPolicy{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteConfiguredAudienceModelPolicy{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteConfiguredAudienceModelPolicy"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteConfiguredAudienceModelPolicyValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteConfiguredAudienceModelPolicy(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteConfiguredAudienceModelPolicy(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteConfiguredAudienceModelPolicy", + } +} diff --git a/service/cleanroomsml/api_op_DeleteTrainingDataset.go b/service/cleanroomsml/api_op_DeleteTrainingDataset.go new file mode 100644 index 00000000000..ceac1d858ab --- /dev/null +++ b/service/cleanroomsml/api_op_DeleteTrainingDataset.go @@ -0,0 +1,136 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Specifies a training dataset that you want to delete. You can't delete a +// training dataset if there are any audience models that depend on the training +// dataset. In Clean Rooms ML, the TrainingDataset is metadata that points to a +// Glue table, which is read only during AudienceModel creation. This action +// deletes the metadata. +func (c *Client) DeleteTrainingDataset(ctx context.Context, params *DeleteTrainingDatasetInput, optFns ...func(*Options)) (*DeleteTrainingDatasetOutput, error) { + if params == nil { + params = &DeleteTrainingDatasetInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteTrainingDataset", params, optFns, c.addOperationDeleteTrainingDatasetMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteTrainingDatasetOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteTrainingDatasetInput struct { + + // The Amazon Resource Name (ARN) of the training dataset that you want to delete. + // + // This member is required. + TrainingDatasetArn *string + + noSmithyDocumentSerde +} + +type DeleteTrainingDatasetOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteTrainingDatasetMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteTrainingDataset{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteTrainingDataset{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteTrainingDataset"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteTrainingDatasetValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteTrainingDataset(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteTrainingDataset(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteTrainingDataset", + } +} diff --git a/service/cleanroomsml/api_op_GetAudienceGenerationJob.go b/service/cleanroomsml/api_op_GetAudienceGenerationJob.go new file mode 100644 index 00000000000..c6950f5ad08 --- /dev/null +++ b/service/cleanroomsml/api_op_GetAudienceGenerationJob.go @@ -0,0 +1,199 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanroomsml/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Returns information about an audience generation job. +func (c *Client) GetAudienceGenerationJob(ctx context.Context, params *GetAudienceGenerationJobInput, optFns ...func(*Options)) (*GetAudienceGenerationJobOutput, error) { + if params == nil { + params = &GetAudienceGenerationJobInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetAudienceGenerationJob", params, optFns, c.addOperationGetAudienceGenerationJobMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetAudienceGenerationJobOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetAudienceGenerationJobInput struct { + + // The Amazon Resource Name (ARN) of the audience generation job that you are + // interested in. + // + // This member is required. + AudienceGenerationJobArn *string + + noSmithyDocumentSerde +} + +type GetAudienceGenerationJobOutput struct { + + // The Amazon Resource Name (ARN) of the audience generation job. + // + // This member is required. + AudienceGenerationJobArn *string + + // The Amazon Resource Name (ARN) of the configured audience model used for this + // audience generation job. + // + // This member is required. + ConfiguredAudienceModelArn *string + + // The time at which the audience generation job was created. + // + // This member is required. + CreateTime *time.Time + + // The name of the audience generation job. + // + // This member is required. + Name *string + + // The status of the audience generation job. + // + // This member is required. + Status types.AudienceGenerationJobStatus + + // The most recent time at which the audience generation job was updated. + // + // This member is required. + UpdateTime *time.Time + + // The identifier of the collaboration that this audience generation job is + // associated with. + CollaborationId *string + + // The description of the audience generation job. + Description *string + + // Configure whether the seed users are included in the output audience. By + // default, Clean Rooms ML removes seed users from the output audience. If you + // specify TRUE , the seed users will appear first in the output. Clean Rooms ML + // does not explicitly reveal whether a user was in the seed, but the recipient of + // the audience will know that the first minimumSeedSize count of users are from + // the seed. + IncludeSeedInOutput *bool + + // The relevance scores for different audience sizes. + Metrics *types.AudienceQualityMetrics + + // The seed audience that was used for this audience generation job. This field + // will be null if the account calling the API is the account that started this + // audience generation job. + SeedAudience *types.AudienceGenerationJobDataSource + + // The AWS account that started this audience generation job. + StartedBy *string + + // Details about the status of the audience generation job. + StatusDetails *types.StatusDetails + + // The tags that are associated to this audience generation job. + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetAudienceGenerationJobMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetAudienceGenerationJob{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetAudienceGenerationJob{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetAudienceGenerationJob"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpGetAudienceGenerationJobValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetAudienceGenerationJob(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetAudienceGenerationJob(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetAudienceGenerationJob", + } +} diff --git a/service/cleanroomsml/api_op_GetAudienceModel.go b/service/cleanroomsml/api_op_GetAudienceModel.go new file mode 100644 index 00000000000..f7daa31028c --- /dev/null +++ b/service/cleanroomsml/api_op_GetAudienceModel.go @@ -0,0 +1,187 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanroomsml/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Returns information about an audience model +func (c *Client) GetAudienceModel(ctx context.Context, params *GetAudienceModelInput, optFns ...func(*Options)) (*GetAudienceModelOutput, error) { + if params == nil { + params = &GetAudienceModelInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetAudienceModel", params, optFns, c.addOperationGetAudienceModelMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetAudienceModelOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetAudienceModelInput struct { + + // The Amazon Resource Name (ARN) of the audience model that you are interested in. + // + // This member is required. + AudienceModelArn *string + + noSmithyDocumentSerde +} + +type GetAudienceModelOutput struct { + + // The Amazon Resource Name (ARN) of the audience model. + // + // This member is required. + AudienceModelArn *string + + // The time at which the audience model was created. + // + // This member is required. + CreateTime *time.Time + + // The name of the audience model. + // + // This member is required. + Name *string + + // The status of the audience model. + // + // This member is required. + Status types.AudienceModelStatus + + // The Amazon Resource Name (ARN) of the training dataset that was used for this + // audience model. + // + // This member is required. + TrainingDatasetArn *string + + // The most recent time at which the audience model was updated. + // + // This member is required. + UpdateTime *time.Time + + // The description of the audience model. + Description *string + + // The KMS key ARN used for the audience model. + KmsKeyArn *string + + // Accuracy metrics for the model. + Metrics []types.AudienceModelMetric + + // Details about the status of the audience model. + StatusDetails *types.StatusDetails + + // The tags that are assigned to the audience model. + Tags map[string]string + + // The end date specified for the training window. + TrainingDataEndTime *time.Time + + // The start date specified for the training window. + TrainingDataStartTime *time.Time + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetAudienceModelMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetAudienceModel{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetAudienceModel{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetAudienceModel"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpGetAudienceModelValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetAudienceModel(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetAudienceModel(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetAudienceModel", + } +} diff --git a/service/cleanroomsml/api_op_GetConfiguredAudienceModel.go b/service/cleanroomsml/api_op_GetConfiguredAudienceModel.go new file mode 100644 index 00000000000..f2f6811e558 --- /dev/null +++ b/service/cleanroomsml/api_op_GetConfiguredAudienceModel.go @@ -0,0 +1,199 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanroomsml/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Returns information about a specified configured audience model. +func (c *Client) GetConfiguredAudienceModel(ctx context.Context, params *GetConfiguredAudienceModelInput, optFns ...func(*Options)) (*GetConfiguredAudienceModelOutput, error) { + if params == nil { + params = &GetConfiguredAudienceModelInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetConfiguredAudienceModel", params, optFns, c.addOperationGetConfiguredAudienceModelMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetConfiguredAudienceModelOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetConfiguredAudienceModelInput struct { + + // The Amazon Resource Name (ARN) of the configured audience model that you are + // interested in. + // + // This member is required. + ConfiguredAudienceModelArn *string + + noSmithyDocumentSerde +} + +type GetConfiguredAudienceModelOutput struct { + + // The Amazon Resource Name (ARN) of the audience model used for this configured + // audience model. + // + // This member is required. + AudienceModelArn *string + + // The Amazon Resource Name (ARN) of the configured audience model. + // + // This member is required. + ConfiguredAudienceModelArn *string + + // The time at which the configured audience model was created. + // + // This member is required. + CreateTime *time.Time + + // The name of the configured audience model. + // + // This member is required. + Name *string + + // The output configuration of the configured audience model + // + // This member is required. + OutputConfig *types.ConfiguredAudienceModelOutputConfig + + // Whether audience metrics are shared. + // + // This member is required. + SharedAudienceMetrics []types.SharedAudienceMetrics + + // The status of the configured audience model. + // + // This member is required. + Status types.ConfiguredAudienceModelStatus + + // The most recent time at which the configured audience model was updated. + // + // This member is required. + UpdateTime *time.Time + + // The list of output sizes of audiences that can be created using this configured + // audience model. A request to StartAudienceGenerationJob that uses this + // configured audience model must have an audienceSize selected from this list. + // You can use the ABSOLUTE AudienceSize to configure out audience sizes using the + // count of identifiers in the output. You can use the Percentage AudienceSize to + // configure sizes in the range 1-100 percent. + AudienceSizeConfig *types.AudienceSizeConfig + + // Provides the childResourceTagOnCreatePolicy that was used for this configured + // audience model. + ChildResourceTagOnCreatePolicy types.TagOnCreatePolicy + + // The description of the configured audience model. + Description *string + + // The minimum number of users from the seed audience that must match with users + // in the training data of the audience model. + MinMatchingSeedSize *int32 + + // The tags that are associated to this configured audience model. + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetConfiguredAudienceModelMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetConfiguredAudienceModel{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetConfiguredAudienceModel{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetConfiguredAudienceModel"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpGetConfiguredAudienceModelValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetConfiguredAudienceModel(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetConfiguredAudienceModel(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetConfiguredAudienceModel", + } +} diff --git a/service/cleanroomsml/api_op_GetConfiguredAudienceModelPolicy.go b/service/cleanroomsml/api_op_GetConfiguredAudienceModelPolicy.go new file mode 100644 index 00000000000..171bc71b8c1 --- /dev/null +++ b/service/cleanroomsml/api_op_GetConfiguredAudienceModelPolicy.go @@ -0,0 +1,150 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns information about a configured audience model policy. +func (c *Client) GetConfiguredAudienceModelPolicy(ctx context.Context, params *GetConfiguredAudienceModelPolicyInput, optFns ...func(*Options)) (*GetConfiguredAudienceModelPolicyOutput, error) { + if params == nil { + params = &GetConfiguredAudienceModelPolicyInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetConfiguredAudienceModelPolicy", params, optFns, c.addOperationGetConfiguredAudienceModelPolicyMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetConfiguredAudienceModelPolicyOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetConfiguredAudienceModelPolicyInput struct { + + // The Amazon Resource Name (ARN) of the configured audience model that you are + // interested in. + // + // This member is required. + ConfiguredAudienceModelArn *string + + noSmithyDocumentSerde +} + +type GetConfiguredAudienceModelPolicyOutput struct { + + // The Amazon Resource Name (ARN) of the configured audience model. + // + // This member is required. + ConfiguredAudienceModelArn *string + + // The configured audience model policy. This is a JSON IAM resource policy. + // + // This member is required. + ConfiguredAudienceModelPolicy *string + + // A cryptographic hash of the contents of the policy used to prevent unexpected + // concurrent modification of the policy. + // + // This member is required. + PolicyHash *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetConfiguredAudienceModelPolicyMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetConfiguredAudienceModelPolicy{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetConfiguredAudienceModelPolicy{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetConfiguredAudienceModelPolicy"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpGetConfiguredAudienceModelPolicyValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetConfiguredAudienceModelPolicy(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetConfiguredAudienceModelPolicy(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetConfiguredAudienceModelPolicy", + } +} diff --git a/service/cleanroomsml/api_op_GetTrainingDataset.go b/service/cleanroomsml/api_op_GetTrainingDataset.go new file mode 100644 index 00000000000..60643ffaed7 --- /dev/null +++ b/service/cleanroomsml/api_op_GetTrainingDataset.go @@ -0,0 +1,177 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanroomsml/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Returns information about a training dataset. +func (c *Client) GetTrainingDataset(ctx context.Context, params *GetTrainingDatasetInput, optFns ...func(*Options)) (*GetTrainingDatasetOutput, error) { + if params == nil { + params = &GetTrainingDatasetInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetTrainingDataset", params, optFns, c.addOperationGetTrainingDatasetMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetTrainingDatasetOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetTrainingDatasetInput struct { + + // The Amazon Resource Name (ARN) of the training dataset that you are interested + // in. + // + // This member is required. + TrainingDatasetArn *string + + noSmithyDocumentSerde +} + +type GetTrainingDatasetOutput struct { + + // The time at which the training dataset was created. + // + // This member is required. + CreateTime *time.Time + + // The name of the training dataset. + // + // This member is required. + Name *string + + // The IAM role used to read the training data. + // + // This member is required. + RoleArn *string + + // The status of the training dataset. + // + // This member is required. + Status types.TrainingDatasetStatus + + // Metadata about the requested training data. + // + // This member is required. + TrainingData []types.Dataset + + // The Amazon Resource Name (ARN) of the training dataset. + // + // This member is required. + TrainingDatasetArn *string + + // The most recent time at which the training dataset was updated. + // + // This member is required. + UpdateTime *time.Time + + // The description of the training dataset. + Description *string + + // The tags that are assigned to this training dataset. + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetTrainingDatasetMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetTrainingDataset{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetTrainingDataset{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetTrainingDataset"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpGetTrainingDatasetValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetTrainingDataset(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetTrainingDataset(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetTrainingDataset", + } +} diff --git a/service/cleanroomsml/api_op_ListAudienceExportJobs.go b/service/cleanroomsml/api_op_ListAudienceExportJobs.go new file mode 100644 index 00000000000..23ba6266f3e --- /dev/null +++ b/service/cleanroomsml/api_op_ListAudienceExportJobs.go @@ -0,0 +1,237 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanroomsml/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns a list of the audience export jobs. +func (c *Client) ListAudienceExportJobs(ctx context.Context, params *ListAudienceExportJobsInput, optFns ...func(*Options)) (*ListAudienceExportJobsOutput, error) { + if params == nil { + params = &ListAudienceExportJobsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListAudienceExportJobs", params, optFns, c.addOperationListAudienceExportJobsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListAudienceExportJobsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListAudienceExportJobsInput struct { + + // The Amazon Resource Name (ARN) of the audience generation job that you are + // interested in. + AudienceGenerationJobArn *string + + // The maximum size of the results that is returned per call. + MaxResults *int32 + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListAudienceExportJobsOutput struct { + + // The audience export jobs that match the request. + // + // This member is required. + AudienceExportJobs []types.AudienceExportJobSummary + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListAudienceExportJobsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListAudienceExportJobs{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListAudienceExportJobs{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListAudienceExportJobs"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListAudienceExportJobs(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// ListAudienceExportJobsAPIClient is a client that implements the +// ListAudienceExportJobs operation. +type ListAudienceExportJobsAPIClient interface { + ListAudienceExportJobs(context.Context, *ListAudienceExportJobsInput, ...func(*Options)) (*ListAudienceExportJobsOutput, error) +} + +var _ ListAudienceExportJobsAPIClient = (*Client)(nil) + +// ListAudienceExportJobsPaginatorOptions is the paginator options for +// ListAudienceExportJobs +type ListAudienceExportJobsPaginatorOptions struct { + // The maximum size of the results that is returned per call. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListAudienceExportJobsPaginator is a paginator for ListAudienceExportJobs +type ListAudienceExportJobsPaginator struct { + options ListAudienceExportJobsPaginatorOptions + client ListAudienceExportJobsAPIClient + params *ListAudienceExportJobsInput + nextToken *string + firstPage bool +} + +// NewListAudienceExportJobsPaginator returns a new ListAudienceExportJobsPaginator +func NewListAudienceExportJobsPaginator(client ListAudienceExportJobsAPIClient, params *ListAudienceExportJobsInput, optFns ...func(*ListAudienceExportJobsPaginatorOptions)) *ListAudienceExportJobsPaginator { + if params == nil { + params = &ListAudienceExportJobsInput{} + } + + options := ListAudienceExportJobsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListAudienceExportJobsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListAudienceExportJobsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListAudienceExportJobs page. +func (p *ListAudienceExportJobsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListAudienceExportJobsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.ListAudienceExportJobs(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListAudienceExportJobs(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListAudienceExportJobs", + } +} diff --git a/service/cleanroomsml/api_op_ListAudienceGenerationJobs.go b/service/cleanroomsml/api_op_ListAudienceGenerationJobs.go new file mode 100644 index 00000000000..1193d7cbd83 --- /dev/null +++ b/service/cleanroomsml/api_op_ListAudienceGenerationJobs.go @@ -0,0 +1,243 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanroomsml/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns a list of audience generation jobs. +func (c *Client) ListAudienceGenerationJobs(ctx context.Context, params *ListAudienceGenerationJobsInput, optFns ...func(*Options)) (*ListAudienceGenerationJobsOutput, error) { + if params == nil { + params = &ListAudienceGenerationJobsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListAudienceGenerationJobs", params, optFns, c.addOperationListAudienceGenerationJobsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListAudienceGenerationJobsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListAudienceGenerationJobsInput struct { + + // The identifier of the collaboration that contains the audience generation jobs + // that you are interested in. + CollaborationId *string + + // The Amazon Resource Name (ARN) of the configured audience model that was used + // for the audience generation jobs that you are interested in. + ConfiguredAudienceModelArn *string + + // The maximum size of the results that is returned per call. + MaxResults *int32 + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListAudienceGenerationJobsOutput struct { + + // The audience generation jobs that match the request. + // + // This member is required. + AudienceGenerationJobs []types.AudienceGenerationJobSummary + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListAudienceGenerationJobsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListAudienceGenerationJobs{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListAudienceGenerationJobs{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListAudienceGenerationJobs"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListAudienceGenerationJobs(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// ListAudienceGenerationJobsAPIClient is a client that implements the +// ListAudienceGenerationJobs operation. +type ListAudienceGenerationJobsAPIClient interface { + ListAudienceGenerationJobs(context.Context, *ListAudienceGenerationJobsInput, ...func(*Options)) (*ListAudienceGenerationJobsOutput, error) +} + +var _ ListAudienceGenerationJobsAPIClient = (*Client)(nil) + +// ListAudienceGenerationJobsPaginatorOptions is the paginator options for +// ListAudienceGenerationJobs +type ListAudienceGenerationJobsPaginatorOptions struct { + // The maximum size of the results that is returned per call. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListAudienceGenerationJobsPaginator is a paginator for +// ListAudienceGenerationJobs +type ListAudienceGenerationJobsPaginator struct { + options ListAudienceGenerationJobsPaginatorOptions + client ListAudienceGenerationJobsAPIClient + params *ListAudienceGenerationJobsInput + nextToken *string + firstPage bool +} + +// NewListAudienceGenerationJobsPaginator returns a new +// ListAudienceGenerationJobsPaginator +func NewListAudienceGenerationJobsPaginator(client ListAudienceGenerationJobsAPIClient, params *ListAudienceGenerationJobsInput, optFns ...func(*ListAudienceGenerationJobsPaginatorOptions)) *ListAudienceGenerationJobsPaginator { + if params == nil { + params = &ListAudienceGenerationJobsInput{} + } + + options := ListAudienceGenerationJobsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListAudienceGenerationJobsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListAudienceGenerationJobsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListAudienceGenerationJobs page. +func (p *ListAudienceGenerationJobsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListAudienceGenerationJobsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.ListAudienceGenerationJobs(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListAudienceGenerationJobs(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListAudienceGenerationJobs", + } +} diff --git a/service/cleanroomsml/api_op_ListAudienceModels.go b/service/cleanroomsml/api_op_ListAudienceModels.go new file mode 100644 index 00000000000..33bf7cce471 --- /dev/null +++ b/service/cleanroomsml/api_op_ListAudienceModels.go @@ -0,0 +1,233 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanroomsml/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns a list of audience models. +func (c *Client) ListAudienceModels(ctx context.Context, params *ListAudienceModelsInput, optFns ...func(*Options)) (*ListAudienceModelsOutput, error) { + if params == nil { + params = &ListAudienceModelsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListAudienceModels", params, optFns, c.addOperationListAudienceModelsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListAudienceModelsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListAudienceModelsInput struct { + + // The maximum size of the results that is returned per call. + MaxResults *int32 + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListAudienceModelsOutput struct { + + // The audience models that match the request. + // + // This member is required. + AudienceModels []types.AudienceModelSummary + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListAudienceModelsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListAudienceModels{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListAudienceModels{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListAudienceModels"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListAudienceModels(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// ListAudienceModelsAPIClient is a client that implements the ListAudienceModels +// operation. +type ListAudienceModelsAPIClient interface { + ListAudienceModels(context.Context, *ListAudienceModelsInput, ...func(*Options)) (*ListAudienceModelsOutput, error) +} + +var _ ListAudienceModelsAPIClient = (*Client)(nil) + +// ListAudienceModelsPaginatorOptions is the paginator options for +// ListAudienceModels +type ListAudienceModelsPaginatorOptions struct { + // The maximum size of the results that is returned per call. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListAudienceModelsPaginator is a paginator for ListAudienceModels +type ListAudienceModelsPaginator struct { + options ListAudienceModelsPaginatorOptions + client ListAudienceModelsAPIClient + params *ListAudienceModelsInput + nextToken *string + firstPage bool +} + +// NewListAudienceModelsPaginator returns a new ListAudienceModelsPaginator +func NewListAudienceModelsPaginator(client ListAudienceModelsAPIClient, params *ListAudienceModelsInput, optFns ...func(*ListAudienceModelsPaginatorOptions)) *ListAudienceModelsPaginator { + if params == nil { + params = &ListAudienceModelsInput{} + } + + options := ListAudienceModelsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListAudienceModelsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListAudienceModelsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListAudienceModels page. +func (p *ListAudienceModelsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListAudienceModelsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.ListAudienceModels(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListAudienceModels(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListAudienceModels", + } +} diff --git a/service/cleanroomsml/api_op_ListConfiguredAudienceModels.go b/service/cleanroomsml/api_op_ListConfiguredAudienceModels.go new file mode 100644 index 00000000000..f311cacb357 --- /dev/null +++ b/service/cleanroomsml/api_op_ListConfiguredAudienceModels.go @@ -0,0 +1,235 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanroomsml/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns a list of the configured audience models. +func (c *Client) ListConfiguredAudienceModels(ctx context.Context, params *ListConfiguredAudienceModelsInput, optFns ...func(*Options)) (*ListConfiguredAudienceModelsOutput, error) { + if params == nil { + params = &ListConfiguredAudienceModelsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListConfiguredAudienceModels", params, optFns, c.addOperationListConfiguredAudienceModelsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListConfiguredAudienceModelsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListConfiguredAudienceModelsInput struct { + + // The maximum size of the results that is returned per call. + MaxResults *int32 + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListConfiguredAudienceModelsOutput struct { + + // The configured audience models. + // + // This member is required. + ConfiguredAudienceModels []types.ConfiguredAudienceModelSummary + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListConfiguredAudienceModelsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListConfiguredAudienceModels{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListConfiguredAudienceModels{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListConfiguredAudienceModels"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListConfiguredAudienceModels(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// ListConfiguredAudienceModelsAPIClient is a client that implements the +// ListConfiguredAudienceModels operation. +type ListConfiguredAudienceModelsAPIClient interface { + ListConfiguredAudienceModels(context.Context, *ListConfiguredAudienceModelsInput, ...func(*Options)) (*ListConfiguredAudienceModelsOutput, error) +} + +var _ ListConfiguredAudienceModelsAPIClient = (*Client)(nil) + +// ListConfiguredAudienceModelsPaginatorOptions is the paginator options for +// ListConfiguredAudienceModels +type ListConfiguredAudienceModelsPaginatorOptions struct { + // The maximum size of the results that is returned per call. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListConfiguredAudienceModelsPaginator is a paginator for +// ListConfiguredAudienceModels +type ListConfiguredAudienceModelsPaginator struct { + options ListConfiguredAudienceModelsPaginatorOptions + client ListConfiguredAudienceModelsAPIClient + params *ListConfiguredAudienceModelsInput + nextToken *string + firstPage bool +} + +// NewListConfiguredAudienceModelsPaginator returns a new +// ListConfiguredAudienceModelsPaginator +func NewListConfiguredAudienceModelsPaginator(client ListConfiguredAudienceModelsAPIClient, params *ListConfiguredAudienceModelsInput, optFns ...func(*ListConfiguredAudienceModelsPaginatorOptions)) *ListConfiguredAudienceModelsPaginator { + if params == nil { + params = &ListConfiguredAudienceModelsInput{} + } + + options := ListConfiguredAudienceModelsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListConfiguredAudienceModelsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListConfiguredAudienceModelsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListConfiguredAudienceModels page. +func (p *ListConfiguredAudienceModelsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListConfiguredAudienceModelsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.ListConfiguredAudienceModels(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListConfiguredAudienceModels(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListConfiguredAudienceModels", + } +} diff --git a/service/cleanroomsml/api_op_ListTagsForResource.go b/service/cleanroomsml/api_op_ListTagsForResource.go new file mode 100644 index 00000000000..367f4a4e9e7 --- /dev/null +++ b/service/cleanroomsml/api_op_ListTagsForResource.go @@ -0,0 +1,138 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns a list of tags for a provided resource. +func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) { + if params == nil { + params = &ListTagsForResourceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListTagsForResource", params, optFns, c.addOperationListTagsForResourceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListTagsForResourceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListTagsForResourceInput struct { + + // The Amazon Resource Name (ARN) of the resource that you are interested in. + // + // This member is required. + ResourceArn *string + + noSmithyDocumentSerde +} + +type ListTagsForResourceOutput struct { + + // The tags that are associated with the resource. + // + // This member is required. + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListTagsForResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListTagsForResource{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListTagsForResource{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListTagsForResource"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpListTagsForResourceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTagsForResource(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opListTagsForResource(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListTagsForResource", + } +} diff --git a/service/cleanroomsml/api_op_ListTrainingDatasets.go b/service/cleanroomsml/api_op_ListTrainingDatasets.go new file mode 100644 index 00000000000..b4d6ee469e8 --- /dev/null +++ b/service/cleanroomsml/api_op_ListTrainingDatasets.go @@ -0,0 +1,233 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanroomsml/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns a list of training datasets. +func (c *Client) ListTrainingDatasets(ctx context.Context, params *ListTrainingDatasetsInput, optFns ...func(*Options)) (*ListTrainingDatasetsOutput, error) { + if params == nil { + params = &ListTrainingDatasetsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListTrainingDatasets", params, optFns, c.addOperationListTrainingDatasetsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListTrainingDatasetsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListTrainingDatasetsInput struct { + + // The maximum size of the results that is returned per call. + MaxResults *int32 + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListTrainingDatasetsOutput struct { + + // The training datasets that match the request. + // + // This member is required. + TrainingDatasets []types.TrainingDatasetSummary + + // The token value retrieved from a previous call to access the next page of + // results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListTrainingDatasetsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListTrainingDatasets{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListTrainingDatasets{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListTrainingDatasets"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTrainingDatasets(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// ListTrainingDatasetsAPIClient is a client that implements the +// ListTrainingDatasets operation. +type ListTrainingDatasetsAPIClient interface { + ListTrainingDatasets(context.Context, *ListTrainingDatasetsInput, ...func(*Options)) (*ListTrainingDatasetsOutput, error) +} + +var _ ListTrainingDatasetsAPIClient = (*Client)(nil) + +// ListTrainingDatasetsPaginatorOptions is the paginator options for +// ListTrainingDatasets +type ListTrainingDatasetsPaginatorOptions struct { + // The maximum size of the results that is returned per call. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListTrainingDatasetsPaginator is a paginator for ListTrainingDatasets +type ListTrainingDatasetsPaginator struct { + options ListTrainingDatasetsPaginatorOptions + client ListTrainingDatasetsAPIClient + params *ListTrainingDatasetsInput + nextToken *string + firstPage bool +} + +// NewListTrainingDatasetsPaginator returns a new ListTrainingDatasetsPaginator +func NewListTrainingDatasetsPaginator(client ListTrainingDatasetsAPIClient, params *ListTrainingDatasetsInput, optFns ...func(*ListTrainingDatasetsPaginatorOptions)) *ListTrainingDatasetsPaginator { + if params == nil { + params = &ListTrainingDatasetsInput{} + } + + options := ListTrainingDatasetsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListTrainingDatasetsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListTrainingDatasetsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListTrainingDatasets page. +func (p *ListTrainingDatasetsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListTrainingDatasetsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.ListTrainingDatasets(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListTrainingDatasets(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListTrainingDatasets", + } +} diff --git a/service/cleanroomsml/api_op_PutConfiguredAudienceModelPolicy.go b/service/cleanroomsml/api_op_PutConfiguredAudienceModelPolicy.go new file mode 100644 index 00000000000..a05d53d8e97 --- /dev/null +++ b/service/cleanroomsml/api_op_PutConfiguredAudienceModelPolicy.go @@ -0,0 +1,158 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanroomsml/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Create or update the resource policy for a configured audience model. +func (c *Client) PutConfiguredAudienceModelPolicy(ctx context.Context, params *PutConfiguredAudienceModelPolicyInput, optFns ...func(*Options)) (*PutConfiguredAudienceModelPolicyOutput, error) { + if params == nil { + params = &PutConfiguredAudienceModelPolicyInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "PutConfiguredAudienceModelPolicy", params, optFns, c.addOperationPutConfiguredAudienceModelPolicyMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*PutConfiguredAudienceModelPolicyOutput) + out.ResultMetadata = metadata + return out, nil +} + +type PutConfiguredAudienceModelPolicyInput struct { + + // The Amazon Resource Name (ARN) of the configured audience model that the + // resource policy will govern. + // + // This member is required. + ConfiguredAudienceModelArn *string + + // The IAM resource policy. + // + // This member is required. + ConfiguredAudienceModelPolicy *string + + // Use this to prevent unexpected concurrent modification of the policy. + PolicyExistenceCondition types.PolicyExistenceCondition + + // A cryptographic hash of the contents of the policy used to prevent unexpected + // concurrent modification of the policy. + PreviousPolicyHash *string + + noSmithyDocumentSerde +} + +type PutConfiguredAudienceModelPolicyOutput struct { + + // The IAM resource policy. + // + // This member is required. + ConfiguredAudienceModelPolicy *string + + // A cryptographic hash of the contents of the policy used to prevent unexpected + // concurrent modification of the policy. + // + // This member is required. + PolicyHash *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationPutConfiguredAudienceModelPolicyMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpPutConfiguredAudienceModelPolicy{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpPutConfiguredAudienceModelPolicy{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "PutConfiguredAudienceModelPolicy"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpPutConfiguredAudienceModelPolicyValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutConfiguredAudienceModelPolicy(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opPutConfiguredAudienceModelPolicy(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "PutConfiguredAudienceModelPolicy", + } +} diff --git a/service/cleanroomsml/api_op_StartAudienceExportJob.go b/service/cleanroomsml/api_op_StartAudienceExportJob.go new file mode 100644 index 00000000000..f45cf76afc2 --- /dev/null +++ b/service/cleanroomsml/api_op_StartAudienceExportJob.go @@ -0,0 +1,148 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanroomsml/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Export an audience of a specified size after you have generated an audience. +func (c *Client) StartAudienceExportJob(ctx context.Context, params *StartAudienceExportJobInput, optFns ...func(*Options)) (*StartAudienceExportJobOutput, error) { + if params == nil { + params = &StartAudienceExportJobInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "StartAudienceExportJob", params, optFns, c.addOperationStartAudienceExportJobMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*StartAudienceExportJobOutput) + out.ResultMetadata = metadata + return out, nil +} + +type StartAudienceExportJobInput struct { + + // The Amazon Resource Name (ARN) of the audience generation job that you want to + // export. + // + // This member is required. + AudienceGenerationJobArn *string + + // The size of the generated audience. Must match one of the sizes in the + // configured audience model. + // + // This member is required. + AudienceSize *types.AudienceSize + + // The name of the audience export job. + // + // This member is required. + Name *string + + // The description of the audience export job. + Description *string + + noSmithyDocumentSerde +} + +type StartAudienceExportJobOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationStartAudienceExportJobMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpStartAudienceExportJob{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpStartAudienceExportJob{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "StartAudienceExportJob"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpStartAudienceExportJobValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartAudienceExportJob(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opStartAudienceExportJob(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "StartAudienceExportJob", + } +} diff --git a/service/cleanroomsml/api_op_StartAudienceGenerationJob.go b/service/cleanroomsml/api_op_StartAudienceGenerationJob.go new file mode 100644 index 00000000000..53f4cb81516 --- /dev/null +++ b/service/cleanroomsml/api_op_StartAudienceGenerationJob.go @@ -0,0 +1,180 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanroomsml/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Information necessary to start the audience generation job. +func (c *Client) StartAudienceGenerationJob(ctx context.Context, params *StartAudienceGenerationJobInput, optFns ...func(*Options)) (*StartAudienceGenerationJobOutput, error) { + if params == nil { + params = &StartAudienceGenerationJobInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "StartAudienceGenerationJob", params, optFns, c.addOperationStartAudienceGenerationJobMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*StartAudienceGenerationJobOutput) + out.ResultMetadata = metadata + return out, nil +} + +type StartAudienceGenerationJobInput struct { + + // The Amazon Resource Name (ARN) of the configured audience model that is used + // for this audience generation job. + // + // This member is required. + ConfiguredAudienceModelArn *string + + // The name of the audience generation job. + // + // This member is required. + Name *string + + // The seed audience that is used to generate the audience. + // + // This member is required. + SeedAudience *types.AudienceGenerationJobDataSource + + // The identifier of the collaboration that contains the audience generation job. + CollaborationId *string + + // The description of the audience generation job. + Description *string + + // Whether the seed audience is included in the audience generation output. + IncludeSeedInOutput bool + + // The optional metadata that you apply to the resource to help you categorize and + // organize them. Each tag consists of a key and an optional value, both of which + // you define. The following basic restrictions apply to tags: + // - Maximum number of tags per resource - 50. + // - For each resource, each tag key must be unique, and each tag key can have + // only one value. + // - Maximum key length - 128 Unicode characters in UTF-8. + // - Maximum value length - 256 Unicode characters in UTF-8. + // - If your tagging schema is used across multiple services and resources, + // remember that other services may have restrictions on allowed characters. + // Generally allowed characters are: letters, numbers, and spaces representable in + // UTF-8, and the following characters: + - = . _ : / @. + // - Tag keys and values are case sensitive. + // - Do not use aws:, AWS:, or any upper or lowercase combination of such as a + // prefix for keys as it is reserved for AWS use. You cannot edit or delete tag + // keys with this prefix. Values can have this prefix. If a tag value has aws as + // its prefix but the key does not, then Forecast considers it to be a user tag and + // will count against the limit of 50 tags. Tags with only the key prefix of aws do + // not count against your tags per resource limit. + Tags map[string]string + + noSmithyDocumentSerde +} + +type StartAudienceGenerationJobOutput struct { + + // The Amazon Resource Name (ARN) of the audience generation job. + // + // This member is required. + AudienceGenerationJobArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationStartAudienceGenerationJobMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpStartAudienceGenerationJob{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpStartAudienceGenerationJob{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "StartAudienceGenerationJob"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpStartAudienceGenerationJobValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartAudienceGenerationJob(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opStartAudienceGenerationJob(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "StartAudienceGenerationJob", + } +} diff --git a/service/cleanroomsml/api_op_TagResource.go b/service/cleanroomsml/api_op_TagResource.go new file mode 100644 index 00000000000..d6b4051b3ea --- /dev/null +++ b/service/cleanroomsml/api_op_TagResource.go @@ -0,0 +1,155 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Adds metadata tags to a specified resource. +func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { + if params == nil { + params = &TagResourceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "TagResource", params, optFns, c.addOperationTagResourceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*TagResourceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type TagResourceInput struct { + + // The Amazon Resource Name (ARN) of the resource that you want to assign tags. + // + // This member is required. + ResourceArn *string + + // The optional metadata that you apply to the resource to help you categorize and + // organize them. Each tag consists of a key and an optional value, both of which + // you define. The following basic restrictions apply to tags: + // - Maximum number of tags per resource - 50. + // - For each resource, each tag key must be unique, and each tag key can have + // only one value. + // - Maximum key length - 128 Unicode characters in UTF-8. + // - Maximum value length - 256 Unicode characters in UTF-8. + // - If your tagging schema is used across multiple services and resources, + // remember that other services may have restrictions on allowed characters. + // Generally allowed characters are: letters, numbers, and spaces representable in + // UTF-8, and the following characters: + - = . _ : / @. + // - Tag keys and values are case sensitive. + // - Do not use aws:, AWS:, or any upper or lowercase combination of such as a + // prefix for keys as it is reserved for AWS use. You cannot edit or delete tag + // keys with this prefix. Values can have this prefix. If a tag value has aws as + // its prefix but the key does not, then Forecast considers it to be a user tag and + // will count against the limit of 50 tags. Tags with only the key prefix of aws do + // not count against your tags per resource limit. + // + // This member is required. + Tags map[string]string + + noSmithyDocumentSerde +} + +type TagResourceOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationTagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpTagResource{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpTagResource{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "TagResource"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpTagResourceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opTagResource(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opTagResource(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "TagResource", + } +} diff --git a/service/cleanroomsml/api_op_UntagResource.go b/service/cleanroomsml/api_op_UntagResource.go new file mode 100644 index 00000000000..a7b30c33a13 --- /dev/null +++ b/service/cleanroomsml/api_op_UntagResource.go @@ -0,0 +1,138 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Removes metadata tags from a specified resource. +func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { + if params == nil { + params = &UntagResourceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UntagResource", params, optFns, c.addOperationUntagResourceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UntagResourceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UntagResourceInput struct { + + // The Amazon Resource Name (ARN) of the resource that you want to remove tags + // from. + // + // This member is required. + ResourceArn *string + + // The key values of tags that you want to remove. + // + // This member is required. + TagKeys []string + + noSmithyDocumentSerde +} + +type UntagResourceOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUntagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpUntagResource{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUntagResource{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "UntagResource"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpUntagResourceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUntagResource(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUntagResource(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "UntagResource", + } +} diff --git a/service/cleanroomsml/api_op_UpdateConfiguredAudienceModel.go b/service/cleanroomsml/api_op_UpdateConfiguredAudienceModel.go new file mode 100644 index 00000000000..5db647f91a4 --- /dev/null +++ b/service/cleanroomsml/api_op_UpdateConfiguredAudienceModel.go @@ -0,0 +1,162 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/cleanroomsml/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Provides the information necessary to update a configured audience model. +// Updates that impact audience generation jobs take effect when a new job starts, +// but do not impact currently running jobs. +func (c *Client) UpdateConfiguredAudienceModel(ctx context.Context, params *UpdateConfiguredAudienceModelInput, optFns ...func(*Options)) (*UpdateConfiguredAudienceModelOutput, error) { + if params == nil { + params = &UpdateConfiguredAudienceModelInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateConfiguredAudienceModel", params, optFns, c.addOperationUpdateConfiguredAudienceModelMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateConfiguredAudienceModelOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateConfiguredAudienceModelInput struct { + + // The Amazon Resource Name (ARN) of the configured audience model that you want + // to update. + // + // This member is required. + ConfiguredAudienceModelArn *string + + // The Amazon Resource Name (ARN) of the new audience model that you want to use. + AudienceModelArn *string + + // The new audience size configuration. + AudienceSizeConfig *types.AudienceSizeConfig + + // The new description of the configured audience model. + Description *string + + // The minimum number of users from the seed audience that must match with users + // in the training data of the audience model. + MinMatchingSeedSize *int32 + + // The new output configuration. + OutputConfig *types.ConfiguredAudienceModelOutputConfig + + // The new value for whether to share audience metrics. + SharedAudienceMetrics []types.SharedAudienceMetrics + + noSmithyDocumentSerde +} + +type UpdateConfiguredAudienceModelOutput struct { + + // The Amazon Resource Name (ARN) of the configured audience model that was + // updated. + // + // This member is required. + ConfiguredAudienceModelArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateConfiguredAudienceModelMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateConfiguredAudienceModel{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateConfiguredAudienceModel{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateConfiguredAudienceModel"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateConfiguredAudienceModelValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateConfiguredAudienceModel(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateConfiguredAudienceModel(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "UpdateConfiguredAudienceModel", + } +} diff --git a/service/cleanroomsml/auth.go b/service/cleanroomsml/auth.go new file mode 100644 index 00000000000..10d2fecedc6 --- /dev/null +++ b/service/cleanroomsml/auth.go @@ -0,0 +1,256 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + smithy "github.com/aws/smithy-go" + smithyauth "github.com/aws/smithy-go/auth" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +func bindAuthParamsRegion(params *AuthResolverParameters, _ interface{}, options Options) { + params.Region = options.Region +} + +type setLegacyContextSigningOptionsMiddleware struct { +} + +func (*setLegacyContextSigningOptionsMiddleware) ID() string { + return "setLegacyContextSigningOptions" +} + +func (m *setLegacyContextSigningOptionsMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + rscheme := getResolvedAuthScheme(ctx) + schemeID := rscheme.Scheme.SchemeID() + + if sn := awsmiddleware.GetSigningName(ctx); sn != "" { + if schemeID == "aws.auth#sigv4" { + smithyhttp.SetSigV4SigningName(&rscheme.SignerProperties, sn) + } else if schemeID == "aws.auth#sigv4a" { + smithyhttp.SetSigV4ASigningName(&rscheme.SignerProperties, sn) + } + } + + if sr := awsmiddleware.GetSigningRegion(ctx); sr != "" { + if schemeID == "aws.auth#sigv4" { + smithyhttp.SetSigV4SigningRegion(&rscheme.SignerProperties, sr) + } else if schemeID == "aws.auth#sigv4a" { + smithyhttp.SetSigV4ASigningRegions(&rscheme.SignerProperties, []string{sr}) + } + } + + return next.HandleFinalize(ctx, in) +} + +func addSetLegacyContextSigningOptionsMiddleware(stack *middleware.Stack) error { + return stack.Finalize.Insert(&setLegacyContextSigningOptionsMiddleware{}, "Signing", middleware.Before) +} + +// AuthResolverParameters contains the set of inputs necessary for auth scheme +// resolution. +type AuthResolverParameters struct { + // The name of the operation being invoked. + Operation string + + // The region in which the operation is being invoked. + Region string +} + +func bindAuthResolverParams(operation string, input interface{}, options Options) *AuthResolverParameters { + params := &AuthResolverParameters{ + Operation: operation, + } + + bindAuthParamsRegion(params, input, options) + + return params +} + +// AuthSchemeResolver returns a set of possible authentication options for an +// operation. +type AuthSchemeResolver interface { + ResolveAuthSchemes(context.Context, *AuthResolverParameters) ([]*smithyauth.Option, error) +} + +type defaultAuthSchemeResolver struct{} + +var _ AuthSchemeResolver = (*defaultAuthSchemeResolver)(nil) + +func (*defaultAuthSchemeResolver) ResolveAuthSchemes(ctx context.Context, params *AuthResolverParameters) ([]*smithyauth.Option, error) { + if overrides, ok := operationAuthOptions[params.Operation]; ok { + return overrides(params), nil + } + return serviceAuthOptions(params), nil +} + +var operationAuthOptions = map[string]func(*AuthResolverParameters) []*smithyauth.Option{} + +func serviceAuthOptions(params *AuthResolverParameters) []*smithyauth.Option { + return []*smithyauth.Option{ + { + SchemeID: smithyauth.SchemeIDSigV4, + SignerProperties: func() smithy.Properties { + var props smithy.Properties + smithyhttp.SetSigV4SigningName(&props, "cleanrooms-ml") + smithyhttp.SetSigV4SigningRegion(&props, params.Region) + return props + }(), + }, + } +} + +type resolveAuthSchemeMiddleware struct { + operation string + options Options +} + +func (*resolveAuthSchemeMiddleware) ID() string { + return "ResolveAuthScheme" +} + +func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) + options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + } + + scheme, ok := m.selectScheme(options) + if !ok { + return out, metadata, fmt.Errorf("could not select an auth scheme") + } + + ctx = setResolvedAuthScheme(ctx, scheme) + return next.HandleFinalize(ctx, in) +} + +func (m *resolveAuthSchemeMiddleware) selectScheme(options []*smithyauth.Option) (*resolvedAuthScheme, bool) { + for _, option := range options { + if option.SchemeID == smithyauth.SchemeIDAnonymous { + return newResolvedAuthScheme(smithyhttp.NewAnonymousScheme(), option), true + } + + for _, scheme := range m.options.AuthSchemes { + if scheme.SchemeID() != option.SchemeID { + continue + } + + if scheme.IdentityResolver(m.options) != nil { + return newResolvedAuthScheme(scheme, option), true + } + } + } + + return nil, false +} + +type resolvedAuthSchemeKey struct{} + +type resolvedAuthScheme struct { + Scheme smithyhttp.AuthScheme + IdentityProperties smithy.Properties + SignerProperties smithy.Properties +} + +func newResolvedAuthScheme(scheme smithyhttp.AuthScheme, option *smithyauth.Option) *resolvedAuthScheme { + return &resolvedAuthScheme{ + Scheme: scheme, + IdentityProperties: option.IdentityProperties, + SignerProperties: option.SignerProperties, + } +} + +func setResolvedAuthScheme(ctx context.Context, scheme *resolvedAuthScheme) context.Context { + return middleware.WithStackValue(ctx, resolvedAuthSchemeKey{}, scheme) +} + +func getResolvedAuthScheme(ctx context.Context) *resolvedAuthScheme { + v, _ := middleware.GetStackValue(ctx, resolvedAuthSchemeKey{}).(*resolvedAuthScheme) + return v +} + +type getIdentityMiddleware struct { + options Options +} + +func (*getIdentityMiddleware) ID() string { + return "GetIdentity" +} + +func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + rscheme := getResolvedAuthScheme(ctx) + if rscheme == nil { + return out, metadata, fmt.Errorf("no resolved auth scheme") + } + + resolver := rscheme.Scheme.IdentityResolver(m.options) + if resolver == nil { + return out, metadata, fmt.Errorf("no identity resolver") + } + + identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) + if err != nil { + return out, metadata, fmt.Errorf("get identity: %v", err) + } + + ctx = setIdentity(ctx, identity) + return next.HandleFinalize(ctx, in) +} + +type identityKey struct{} + +func setIdentity(ctx context.Context, identity smithyauth.Identity) context.Context { + return middleware.WithStackValue(ctx, identityKey{}, identity) +} + +func getIdentity(ctx context.Context) smithyauth.Identity { + v, _ := middleware.GetStackValue(ctx, identityKey{}).(smithyauth.Identity) + return v +} + +type signRequestMiddleware struct { +} + +func (*signRequestMiddleware) ID() string { + return "Signing" +} + +func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unexpected transport type %T", in.Request) + } + + rscheme := getResolvedAuthScheme(ctx) + if rscheme == nil { + return out, metadata, fmt.Errorf("no resolved auth scheme") + } + + identity := getIdentity(ctx) + if identity == nil { + return out, metadata, fmt.Errorf("no identity") + } + + signer := rscheme.Scheme.Signer() + if signer == nil { + return out, metadata, fmt.Errorf("no signer") + } + + if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { + return out, metadata, fmt.Errorf("sign request: %v", err) + } + + return next.HandleFinalize(ctx, in) +} diff --git a/service/cleanroomsml/deserializers.go b/service/cleanroomsml/deserializers.go new file mode 100644 index 00000000000..ef6161f078a --- /dev/null +++ b/service/cleanroomsml/deserializers.go @@ -0,0 +1,6007 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "bytes" + "context" + "encoding/json" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws/protocol/restjson" + "github.com/aws/aws-sdk-go-v2/service/cleanroomsml/types" + smithy "github.com/aws/smithy-go" + smithyio "github.com/aws/smithy-go/io" + "github.com/aws/smithy-go/middleware" + "github.com/aws/smithy-go/ptr" + smithytime "github.com/aws/smithy-go/time" + smithyhttp "github.com/aws/smithy-go/transport/http" + "io" + "io/ioutil" + "math" + "strings" +) + +type awsRestjson1_deserializeOpCreateAudienceModel struct { +} + +func (*awsRestjson1_deserializeOpCreateAudienceModel) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateAudienceModel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorCreateAudienceModel(response, &metadata) + } + output := &CreateAudienceModelOutput{} + 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_deserializeOpDocumentCreateAudienceModelOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateAudienceModel(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreateAudienceModelOutput(v **CreateAudienceModelOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateAudienceModelOutput + if *v == nil { + sv = &CreateAudienceModelOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "audienceModelArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AudienceModelArn to be of type string, got %T instead", value) + } + sv.AudienceModelArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpCreateConfiguredAudienceModel struct { +} + +func (*awsRestjson1_deserializeOpCreateConfiguredAudienceModel) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateConfiguredAudienceModel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorCreateConfiguredAudienceModel(response, &metadata) + } + output := &CreateConfiguredAudienceModelOutput{} + 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_deserializeOpDocumentCreateConfiguredAudienceModelOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateConfiguredAudienceModel(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreateConfiguredAudienceModelOutput(v **CreateConfiguredAudienceModelOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateConfiguredAudienceModelOutput + if *v == nil { + sv = &CreateConfiguredAudienceModelOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "configuredAudienceModelArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConfiguredAudienceModelArn to be of type string, got %T instead", value) + } + sv.ConfiguredAudienceModelArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpCreateTrainingDataset struct { +} + +func (*awsRestjson1_deserializeOpCreateTrainingDataset) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateTrainingDataset) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorCreateTrainingDataset(response, &metadata) + } + output := &CreateTrainingDatasetOutput{} + 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_deserializeOpDocumentCreateTrainingDatasetOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateTrainingDataset(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreateTrainingDatasetOutput(v **CreateTrainingDatasetOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateTrainingDatasetOutput + if *v == nil { + sv = &CreateTrainingDatasetOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "trainingDatasetArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TrainingDatasetArn to be of type string, got %T instead", value) + } + sv.TrainingDatasetArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpDeleteAudienceGenerationJob struct { +} + +func (*awsRestjson1_deserializeOpDeleteAudienceGenerationJob) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteAudienceGenerationJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorDeleteAudienceGenerationJob(response, &metadata) + } + output := &DeleteAudienceGenerationJobOutput{} + 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 awsRestjson1_deserializeOpErrorDeleteAudienceGenerationJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpDeleteAudienceModel struct { +} + +func (*awsRestjson1_deserializeOpDeleteAudienceModel) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteAudienceModel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorDeleteAudienceModel(response, &metadata) + } + output := &DeleteAudienceModelOutput{} + 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 awsRestjson1_deserializeOpErrorDeleteAudienceModel(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpDeleteConfiguredAudienceModel struct { +} + +func (*awsRestjson1_deserializeOpDeleteConfiguredAudienceModel) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteConfiguredAudienceModel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorDeleteConfiguredAudienceModel(response, &metadata) + } + output := &DeleteConfiguredAudienceModelOutput{} + 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 awsRestjson1_deserializeOpErrorDeleteConfiguredAudienceModel(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpDeleteConfiguredAudienceModelPolicy struct { +} + +func (*awsRestjson1_deserializeOpDeleteConfiguredAudienceModelPolicy) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteConfiguredAudienceModelPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorDeleteConfiguredAudienceModelPolicy(response, &metadata) + } + output := &DeleteConfiguredAudienceModelPolicyOutput{} + 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 awsRestjson1_deserializeOpErrorDeleteConfiguredAudienceModelPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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 + + } +} + +type awsRestjson1_deserializeOpDeleteTrainingDataset struct { +} + +func (*awsRestjson1_deserializeOpDeleteTrainingDataset) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteTrainingDataset) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorDeleteTrainingDataset(response, &metadata) + } + output := &DeleteTrainingDatasetOutput{} + 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 awsRestjson1_deserializeOpErrorDeleteTrainingDataset(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpGetAudienceGenerationJob struct { +} + +func (*awsRestjson1_deserializeOpGetAudienceGenerationJob) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetAudienceGenerationJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorGetAudienceGenerationJob(response, &metadata) + } + output := &GetAudienceGenerationJobOutput{} + 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_deserializeOpDocumentGetAudienceGenerationJobOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetAudienceGenerationJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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_deserializeOpDocumentGetAudienceGenerationJobOutput(v **GetAudienceGenerationJobOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetAudienceGenerationJobOutput + if *v == nil { + sv = &GetAudienceGenerationJobOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "audienceGenerationJobArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AudienceGenerationJobArn to be of type string, got %T instead", value) + } + sv.AudienceGenerationJobArn = ptr.String(jtv) + } + + case "collaborationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.CollaborationId = ptr.String(jtv) + } + + case "configuredAudienceModelArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConfiguredAudienceModelArn to be of type string, got %T instead", value) + } + sv.ConfiguredAudienceModelArn = ptr.String(jtv) + } + + case "createTime": + 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.CreateTime = ptr.Time(t) + } + + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "includeSeedInOutput": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.IncludeSeedInOutput = ptr.Bool(jtv) + } + + case "metrics": + if err := awsRestjson1_deserializeDocumentAudienceQualityMetrics(&sv.Metrics, value); err != nil { + return err + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameString to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "seedAudience": + if err := awsRestjson1_deserializeDocumentAudienceGenerationJobDataSource(&sv.SeedAudience, value); err != nil { + return err + } + + case "startedBy": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) + } + sv.StartedBy = ptr.String(jtv) + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AudienceGenerationJobStatus to be of type string, got %T instead", value) + } + sv.Status = types.AudienceGenerationJobStatus(jtv) + } + + case "statusDetails": + if err := awsRestjson1_deserializeDocumentStatusDetails(&sv.StatusDetails, value); err != nil { + return err + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err + } + + case "updateTime": + 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.UpdateTime = ptr.Time(t) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetAudienceModel struct { +} + +func (*awsRestjson1_deserializeOpGetAudienceModel) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetAudienceModel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorGetAudienceModel(response, &metadata) + } + output := &GetAudienceModelOutput{} + 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_deserializeOpDocumentGetAudienceModelOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetAudienceModel(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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_deserializeOpDocumentGetAudienceModelOutput(v **GetAudienceModelOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetAudienceModelOutput + if *v == nil { + sv = &GetAudienceModelOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "audienceModelArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AudienceModelArn to be of type string, got %T instead", value) + } + sv.AudienceModelArn = ptr.String(jtv) + } + + case "createTime": + 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.CreateTime = ptr.Time(t) + } + + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "kmsKeyArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected KmsKeyArn to be of type string, got %T instead", value) + } + sv.KmsKeyArn = ptr.String(jtv) + } + + case "metrics": + if err := awsRestjson1_deserializeDocumentAudienceModelMetrics(&sv.Metrics, value); err != nil { + return err + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameString to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AudienceModelStatus to be of type string, got %T instead", value) + } + sv.Status = types.AudienceModelStatus(jtv) + } + + case "statusDetails": + if err := awsRestjson1_deserializeDocumentStatusDetails(&sv.StatusDetails, value); err != nil { + return err + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err + } + + case "trainingDataEndTime": + 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.TrainingDataEndTime = ptr.Time(t) + } + + case "trainingDatasetArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TrainingDatasetArn to be of type string, got %T instead", value) + } + sv.TrainingDatasetArn = ptr.String(jtv) + } + + case "trainingDataStartTime": + 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.TrainingDataStartTime = ptr.Time(t) + } + + case "updateTime": + 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.UpdateTime = ptr.Time(t) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetConfiguredAudienceModel struct { +} + +func (*awsRestjson1_deserializeOpGetConfiguredAudienceModel) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetConfiguredAudienceModel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorGetConfiguredAudienceModel(response, &metadata) + } + output := &GetConfiguredAudienceModelOutput{} + 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_deserializeOpDocumentGetConfiguredAudienceModelOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetConfiguredAudienceModel(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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_deserializeOpDocumentGetConfiguredAudienceModelOutput(v **GetConfiguredAudienceModelOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetConfiguredAudienceModelOutput + if *v == nil { + sv = &GetConfiguredAudienceModelOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "audienceModelArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AudienceModelArn to be of type string, got %T instead", value) + } + sv.AudienceModelArn = ptr.String(jtv) + } + + case "audienceSizeConfig": + if err := awsRestjson1_deserializeDocumentAudienceSizeConfig(&sv.AudienceSizeConfig, value); err != nil { + return err + } + + case "childResourceTagOnCreatePolicy": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TagOnCreatePolicy to be of type string, got %T instead", value) + } + sv.ChildResourceTagOnCreatePolicy = types.TagOnCreatePolicy(jtv) + } + + case "configuredAudienceModelArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConfiguredAudienceModelArn to be of type string, got %T instead", value) + } + sv.ConfiguredAudienceModelArn = ptr.String(jtv) + } + + case "createTime": + 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.CreateTime = ptr.Time(t) + } + + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "minMatchingSeedSize": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected MinMatchingSeedSize to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MinMatchingSeedSize = ptr.Int32(int32(i64)) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameString to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "outputConfig": + if err := awsRestjson1_deserializeDocumentConfiguredAudienceModelOutputConfig(&sv.OutputConfig, value); err != nil { + return err + } + + case "sharedAudienceMetrics": + if err := awsRestjson1_deserializeDocumentMetricsList(&sv.SharedAudienceMetrics, value); err != nil { + return err + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConfiguredAudienceModelStatus to be of type string, got %T instead", value) + } + sv.Status = types.ConfiguredAudienceModelStatus(jtv) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err + } + + case "updateTime": + 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.UpdateTime = ptr.Time(t) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetConfiguredAudienceModelPolicy struct { +} + +func (*awsRestjson1_deserializeOpGetConfiguredAudienceModelPolicy) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetConfiguredAudienceModelPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorGetConfiguredAudienceModelPolicy(response, &metadata) + } + output := &GetConfiguredAudienceModelPolicyOutput{} + 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_deserializeOpDocumentGetConfiguredAudienceModelPolicyOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetConfiguredAudienceModelPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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_deserializeOpDocumentGetConfiguredAudienceModelPolicyOutput(v **GetConfiguredAudienceModelPolicyOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetConfiguredAudienceModelPolicyOutput + if *v == nil { + sv = &GetConfiguredAudienceModelPolicyOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "configuredAudienceModelArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConfiguredAudienceModelArn to be of type string, got %T instead", value) + } + sv.ConfiguredAudienceModelArn = ptr.String(jtv) + } + + case "configuredAudienceModelPolicy": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourcePolicy to be of type string, got %T instead", value) + } + sv.ConfiguredAudienceModelPolicy = ptr.String(jtv) + } + + case "policyHash": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Hash to be of type string, got %T instead", value) + } + sv.PolicyHash = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetTrainingDataset struct { +} + +func (*awsRestjson1_deserializeOpGetTrainingDataset) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetTrainingDataset) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorGetTrainingDataset(response, &metadata) + } + output := &GetTrainingDatasetOutput{} + 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_deserializeOpDocumentGetTrainingDatasetOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetTrainingDataset(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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_deserializeOpDocumentGetTrainingDatasetOutput(v **GetTrainingDatasetOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetTrainingDatasetOutput + if *v == nil { + sv = &GetTrainingDatasetOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "createTime": + 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.CreateTime = ptr.Time(t) + } + + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameString to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "roleArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) + } + sv.RoleArn = ptr.String(jtv) + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TrainingDatasetStatus to be of type string, got %T instead", value) + } + sv.Status = types.TrainingDatasetStatus(jtv) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err + } + + case "trainingData": + if err := awsRestjson1_deserializeDocumentDatasetList(&sv.TrainingData, value); err != nil { + return err + } + + case "trainingDatasetArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TrainingDatasetArn to be of type string, got %T instead", value) + } + sv.TrainingDatasetArn = ptr.String(jtv) + } + + case "updateTime": + 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.UpdateTime = ptr.Time(t) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListAudienceExportJobs struct { +} + +func (*awsRestjson1_deserializeOpListAudienceExportJobs) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListAudienceExportJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListAudienceExportJobs(response, &metadata) + } + output := &ListAudienceExportJobsOutput{} + 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_deserializeOpDocumentListAudienceExportJobsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListAudienceExportJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListAudienceExportJobsOutput(v **ListAudienceExportJobsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListAudienceExportJobsOutput + if *v == nil { + sv = &ListAudienceExportJobsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "audienceExportJobs": + if err := awsRestjson1_deserializeDocumentAudienceExportJobList(&sv.AudienceExportJobs, 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_deserializeOpListAudienceGenerationJobs struct { +} + +func (*awsRestjson1_deserializeOpListAudienceGenerationJobs) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListAudienceGenerationJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListAudienceGenerationJobs(response, &metadata) + } + output := &ListAudienceGenerationJobsOutput{} + 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_deserializeOpDocumentListAudienceGenerationJobsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListAudienceGenerationJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListAudienceGenerationJobsOutput(v **ListAudienceGenerationJobsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListAudienceGenerationJobsOutput + if *v == nil { + sv = &ListAudienceGenerationJobsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "audienceGenerationJobs": + if err := awsRestjson1_deserializeDocumentAudienceGenerationJobList(&sv.AudienceGenerationJobs, 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_deserializeOpListAudienceModels struct { +} + +func (*awsRestjson1_deserializeOpListAudienceModels) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListAudienceModels) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListAudienceModels(response, &metadata) + } + output := &ListAudienceModelsOutput{} + 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_deserializeOpDocumentListAudienceModelsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListAudienceModels(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListAudienceModelsOutput(v **ListAudienceModelsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListAudienceModelsOutput + if *v == nil { + sv = &ListAudienceModelsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "audienceModels": + if err := awsRestjson1_deserializeDocumentAudienceModelList(&sv.AudienceModels, 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_deserializeOpListConfiguredAudienceModels struct { +} + +func (*awsRestjson1_deserializeOpListConfiguredAudienceModels) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListConfiguredAudienceModels) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListConfiguredAudienceModels(response, &metadata) + } + output := &ListConfiguredAudienceModelsOutput{} + 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_deserializeOpDocumentListConfiguredAudienceModelsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListConfiguredAudienceModels(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListConfiguredAudienceModelsOutput(v **ListConfiguredAudienceModelsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListConfiguredAudienceModelsOutput + if *v == nil { + sv = &ListConfiguredAudienceModelsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "configuredAudienceModels": + if err := awsRestjson1_deserializeDocumentConfiguredAudienceModelList(&sv.ConfiguredAudienceModels, 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_deserializeOpListTagsForResource struct { +} + +func (*awsRestjson1_deserializeOpListTagsForResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListTagsForResource(response, &metadata) + } + output := &ListTagsForResourceOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + 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_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListTagsForResourceOutput + if *v == nil { + sv = &ListTagsForResourceOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListTrainingDatasets struct { +} + +func (*awsRestjson1_deserializeOpListTrainingDatasets) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListTrainingDatasets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListTrainingDatasets(response, &metadata) + } + output := &ListTrainingDatasetsOutput{} + 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_deserializeOpDocumentListTrainingDatasetsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListTrainingDatasets(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListTrainingDatasetsOutput(v **ListTrainingDatasetsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListTrainingDatasetsOutput + if *v == nil { + sv = &ListTrainingDatasetsOutput{} + } 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 "trainingDatasets": + if err := awsRestjson1_deserializeDocumentTrainingDatasetList(&sv.TrainingDatasets, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpPutConfiguredAudienceModelPolicy struct { +} + +func (*awsRestjson1_deserializeOpPutConfiguredAudienceModelPolicy) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpPutConfiguredAudienceModelPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorPutConfiguredAudienceModelPolicy(response, &metadata) + } + output := &PutConfiguredAudienceModelPolicyOutput{} + 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_deserializeOpDocumentPutConfiguredAudienceModelPolicyOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorPutConfiguredAudienceModelPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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_deserializeOpDocumentPutConfiguredAudienceModelPolicyOutput(v **PutConfiguredAudienceModelPolicyOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *PutConfiguredAudienceModelPolicyOutput + if *v == nil { + sv = &PutConfiguredAudienceModelPolicyOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "configuredAudienceModelPolicy": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourcePolicy to be of type string, got %T instead", value) + } + sv.ConfiguredAudienceModelPolicy = ptr.String(jtv) + } + + case "policyHash": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Hash to be of type string, got %T instead", value) + } + sv.PolicyHash = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpStartAudienceExportJob struct { +} + +func (*awsRestjson1_deserializeOpStartAudienceExportJob) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpStartAudienceExportJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorStartAudienceExportJob(response, &metadata) + } + output := &StartAudienceExportJobOutput{} + 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 awsRestjson1_deserializeOpErrorStartAudienceExportJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpStartAudienceGenerationJob struct { +} + +func (*awsRestjson1_deserializeOpStartAudienceGenerationJob) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpStartAudienceGenerationJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorStartAudienceGenerationJob(response, &metadata) + } + output := &StartAudienceGenerationJobOutput{} + 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_deserializeOpDocumentStartAudienceGenerationJobOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorStartAudienceGenerationJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentStartAudienceGenerationJobOutput(v **StartAudienceGenerationJobOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *StartAudienceGenerationJobOutput + if *v == nil { + sv = &StartAudienceGenerationJobOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "audienceGenerationJobArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AudienceGenerationJobArn to be of type string, got %T instead", value) + } + sv.AudienceGenerationJobArn = 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 + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorTagResource(response, &metadata) + } + output := &TagResourceOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + 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 + + } +} + +type awsRestjson1_deserializeOpUntagResource struct { +} + +func (*awsRestjson1_deserializeOpUntagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUntagResource(response, &metadata) + } + output := &UntagResourceOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + 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 + + } +} + +type awsRestjson1_deserializeOpUpdateConfiguredAudienceModel struct { +} + +func (*awsRestjson1_deserializeOpUpdateConfiguredAudienceModel) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateConfiguredAudienceModel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateConfiguredAudienceModel(response, &metadata) + } + output := &UpdateConfiguredAudienceModelOutput{} + 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_deserializeOpDocumentUpdateConfiguredAudienceModelOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateConfiguredAudienceModel(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateConfiguredAudienceModelOutput(v **UpdateConfiguredAudienceModelOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateConfiguredAudienceModelOutput + if *v == nil { + sv = &UpdateConfiguredAudienceModelOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "configuredAudienceModelArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConfiguredAudienceModelArn to be of type string, got %T instead", value) + } + sv.ConfiguredAudienceModelArn = 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_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_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ValidationException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentValidationException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AccessDeniedException + if *v == nil { + sv = &types.AccessDeniedException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAudienceDestination(v **types.AudienceDestination, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AudienceDestination + if *v == nil { + sv = &types.AudienceDestination{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "s3Destination": + if err := awsRestjson1_deserializeDocumentS3ConfigMap(&sv.S3Destination, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAudienceExportJobList(v *[]types.AudienceExportJobSummary, 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.AudienceExportJobSummary + if *v == nil { + cv = []types.AudienceExportJobSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AudienceExportJobSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentAudienceExportJobSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAudienceExportJobSummary(v **types.AudienceExportJobSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AudienceExportJobSummary + if *v == nil { + sv = &types.AudienceExportJobSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "audienceGenerationJobArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AudienceGenerationJobArn to be of type string, got %T instead", value) + } + sv.AudienceGenerationJobArn = ptr.String(jtv) + } + + case "audienceSize": + if err := awsRestjson1_deserializeDocumentAudienceSize(&sv.AudienceSize, value); err != nil { + return err + } + + case "createTime": + 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.CreateTime = ptr.Time(t) + } + + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameString to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "outputLocation": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected S3Path to be of type string, got %T instead", value) + } + sv.OutputLocation = ptr.String(jtv) + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AudienceExportJobStatus to be of type string, got %T instead", value) + } + sv.Status = types.AudienceExportJobStatus(jtv) + } + + case "statusDetails": + if err := awsRestjson1_deserializeDocumentStatusDetails(&sv.StatusDetails, value); err != nil { + return err + } + + case "updateTime": + 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.UpdateTime = ptr.Time(t) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAudienceGenerationJobDataSource(v **types.AudienceGenerationJobDataSource, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AudienceGenerationJobDataSource + if *v == nil { + sv = &types.AudienceGenerationJobDataSource{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "dataSource": + if err := awsRestjson1_deserializeDocumentS3ConfigMap(&sv.DataSource, value); err != nil { + return err + } + + 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) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAudienceGenerationJobList(v *[]types.AudienceGenerationJobSummary, 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.AudienceGenerationJobSummary + if *v == nil { + cv = []types.AudienceGenerationJobSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AudienceGenerationJobSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentAudienceGenerationJobSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAudienceGenerationJobSummary(v **types.AudienceGenerationJobSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AudienceGenerationJobSummary + if *v == nil { + sv = &types.AudienceGenerationJobSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "audienceGenerationJobArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AudienceGenerationJobArn to be of type string, got %T instead", value) + } + sv.AudienceGenerationJobArn = ptr.String(jtv) + } + + case "collaborationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + } + sv.CollaborationId = ptr.String(jtv) + } + + case "configuredAudienceModelArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConfiguredAudienceModelArn to be of type string, got %T instead", value) + } + sv.ConfiguredAudienceModelArn = ptr.String(jtv) + } + + case "createTime": + 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.CreateTime = ptr.Time(t) + } + + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameString to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "startedBy": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) + } + sv.StartedBy = ptr.String(jtv) + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AudienceGenerationJobStatus to be of type string, got %T instead", value) + } + sv.Status = types.AudienceGenerationJobStatus(jtv) + } + + case "updateTime": + 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.UpdateTime = ptr.Time(t) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAudienceModelList(v *[]types.AudienceModelSummary, 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.AudienceModelSummary + if *v == nil { + cv = []types.AudienceModelSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AudienceModelSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentAudienceModelSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAudienceModelMetric(v **types.AudienceModelMetric, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AudienceModelMetric + if *v == nil { + sv = &types.AudienceModelMetric{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "forTopKItemPredictions": + 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.ForTopKItemPredictions = ptr.Int32(int32(i64)) + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AudienceModelMetricType to be of type string, got %T instead", value) + } + sv.Type = types.AudienceModelMetricType(jtv) + } + + case "value": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Value = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.Value = ptr.Float64(f64) + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAudienceModelMetrics(v *[]types.AudienceModelMetric, 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.AudienceModelMetric + if *v == nil { + cv = []types.AudienceModelMetric{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AudienceModelMetric + destAddr := &col + if err := awsRestjson1_deserializeDocumentAudienceModelMetric(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAudienceModelSummary(v **types.AudienceModelSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AudienceModelSummary + if *v == nil { + sv = &types.AudienceModelSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "audienceModelArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AudienceModelArn to be of type string, got %T instead", value) + } + sv.AudienceModelArn = ptr.String(jtv) + } + + case "createTime": + 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.CreateTime = ptr.Time(t) + } + + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameString 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 AudienceModelStatus to be of type string, got %T instead", value) + } + sv.Status = types.AudienceModelStatus(jtv) + } + + case "trainingDatasetArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TrainingDatasetArn to be of type string, got %T instead", value) + } + sv.TrainingDatasetArn = ptr.String(jtv) + } + + case "updateTime": + 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.UpdateTime = ptr.Time(t) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAudienceQualityMetrics(v **types.AudienceQualityMetrics, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AudienceQualityMetrics + if *v == nil { + sv = &types.AudienceQualityMetrics{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "relevanceMetrics": + if err := awsRestjson1_deserializeDocumentRelevanceMetrics(&sv.RelevanceMetrics, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAudienceSize(v **types.AudienceSize, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AudienceSize + if *v == nil { + sv = &types.AudienceSize{} + } 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 AudienceSizeType to be of type string, got %T instead", value) + } + sv.Type = types.AudienceSizeType(jtv) + } + + case "value": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected AudienceSizeValue to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Value = ptr.Int32(int32(i64)) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAudienceSizeBins(v *[]int32, 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 []int32 + if *v == nil { + cv = []int32{} + } else { + cv = *v + } + + for _, value := range shape { + var col int32 + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected AudienceSizeValue to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + col = int32(i64) + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAudienceSizeConfig(v **types.AudienceSizeConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AudienceSizeConfig + if *v == nil { + sv = &types.AudienceSizeConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "audienceSizeBins": + if err := awsRestjson1_deserializeDocumentAudienceSizeBins(&sv.AudienceSizeBins, value); err != nil { + return err + } + + case "audienceSizeType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AudienceSizeType to be of type string, got %T instead", value) + } + sv.AudienceSizeType = types.AudienceSizeType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentColumnSchema(v **types.ColumnSchema, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ColumnSchema + if *v == nil { + sv = &types.ColumnSchema{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "columnName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + } + sv.ColumnName = ptr.String(jtv) + } + + case "columnTypes": + if err := awsRestjson1_deserializeDocumentColumnTypeList(&sv.ColumnTypes, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentColumnTypeList(v *[]types.ColumnType, 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.ColumnType + if *v == nil { + cv = []types.ColumnType{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ColumnType + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColumnType to be of type string, got %T instead", value) + } + col = types.ColumnType(jtv) + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentConfiguredAudienceModelList(v *[]types.ConfiguredAudienceModelSummary, 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.ConfiguredAudienceModelSummary + if *v == nil { + cv = []types.ConfiguredAudienceModelSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ConfiguredAudienceModelSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentConfiguredAudienceModelSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentConfiguredAudienceModelOutputConfig(v **types.ConfiguredAudienceModelOutputConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ConfiguredAudienceModelOutputConfig + if *v == nil { + sv = &types.ConfiguredAudienceModelOutputConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "destination": + if err := awsRestjson1_deserializeDocumentAudienceDestination(&sv.Destination, value); err != nil { + return err + } + + 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) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentConfiguredAudienceModelSummary(v **types.ConfiguredAudienceModelSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ConfiguredAudienceModelSummary + if *v == nil { + sv = &types.ConfiguredAudienceModelSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "audienceModelArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AudienceModelArn to be of type string, got %T instead", value) + } + sv.AudienceModelArn = ptr.String(jtv) + } + + case "configuredAudienceModelArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConfiguredAudienceModelArn to be of type string, got %T instead", value) + } + sv.ConfiguredAudienceModelArn = ptr.String(jtv) + } + + case "createTime": + 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.CreateTime = ptr.Time(t) + } + + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameString to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "outputConfig": + if err := awsRestjson1_deserializeDocumentConfiguredAudienceModelOutputConfig(&sv.OutputConfig, value); err != nil { + return err + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConfiguredAudienceModelStatus to be of type string, got %T instead", value) + } + sv.Status = types.ConfiguredAudienceModelStatus(jtv) + } + + case "updateTime": + 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.UpdateTime = ptr.Time(t) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ConflictException + if *v == nil { + sv = &types.ConflictException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDataset(v **types.Dataset, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.Dataset + if *v == nil { + sv = &types.Dataset{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "inputConfig": + if err := awsRestjson1_deserializeDocumentDatasetInputConfig(&sv.InputConfig, value); err != nil { + return err + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatasetType to be of type string, got %T instead", value) + } + sv.Type = types.DatasetType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDatasetInputConfig(v **types.DatasetInputConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DatasetInputConfig + if *v == nil { + sv = &types.DatasetInputConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "dataSource": + if err := awsRestjson1_deserializeDocumentDataSource(&sv.DataSource, value); err != nil { + return err + } + + case "schema": + if err := awsRestjson1_deserializeDocumentDatasetSchemaList(&sv.Schema, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDatasetList(v *[]types.Dataset, 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.Dataset + if *v == nil { + cv = []types.Dataset{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Dataset + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataset(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentDatasetSchemaList(v *[]types.ColumnSchema, 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.ColumnSchema + if *v == nil { + cv = []types.ColumnSchema{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ColumnSchema + destAddr := &col + if err := awsRestjson1_deserializeDocumentColumnSchema(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentDataSource(v **types.DataSource, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DataSource + if *v == nil { + sv = &types.DataSource{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "glueDataSource": + if err := awsRestjson1_deserializeDocumentGlueDataSource(&sv.GlueDataSource, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentGlueDataSource(v **types.GlueDataSource, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.GlueDataSource + if *v == nil { + sv = &types.GlueDataSource{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "catalogId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) + } + sv.CatalogId = ptr.String(jtv) + } + + case "databaseName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GlueDatabaseName to be of type string, got %T instead", value) + } + sv.DatabaseName = ptr.String(jtv) + } + + case "tableName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GlueTableName to be of type string, got %T instead", value) + } + sv.TableName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentMetricsList(v *[]types.SharedAudienceMetrics, 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.SharedAudienceMetrics + if *v == nil { + cv = []types.SharedAudienceMetrics{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.SharedAudienceMetrics + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SharedAudienceMetrics to be of type string, got %T instead", value) + } + col = types.SharedAudienceMetrics(jtv) + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentRelevanceMetric(v **types.RelevanceMetric, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.RelevanceMetric + if *v == nil { + sv = &types.RelevanceMetric{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "audienceSize": + if err := awsRestjson1_deserializeDocumentAudienceSize(&sv.AudienceSize, value); err != nil { + return err + } + + case "score": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Score = 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.Score = ptr.Float64(f64) + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentRelevanceMetrics(v *[]types.RelevanceMetric, 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.RelevanceMetric + if *v == nil { + cv = []types.RelevanceMetric{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.RelevanceMetric + destAddr := &col + if err := awsRestjson1_deserializeDocumentRelevanceMetric(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ResourceNotFoundException + if *v == nil { + sv = &types.ResourceNotFoundException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentS3ConfigMap(v **types.S3ConfigMap, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.S3ConfigMap + if *v == nil { + sv = &types.S3ConfigMap{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "s3Uri": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected S3Path to be of type string, got %T instead", value) + } + sv.S3Uri = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.ServiceQuotaExceededException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ServiceQuotaExceededException + if *v == nil { + sv = &types.ServiceQuotaExceededException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentStatusDetails(v **types.StatusDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.StatusDetails + if *v == nil { + sv = &types.StatusDetails{} + } 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 "statusCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.StatusCode = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var mv map[string]string + if *v == nil { + mv = map[string]string{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) + } + parsedVal = jtv + } + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentTrainingDatasetList(v *[]types.TrainingDatasetSummary, 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.TrainingDatasetSummary + if *v == nil { + cv = []types.TrainingDatasetSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.TrainingDatasetSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentTrainingDatasetSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentTrainingDatasetSummary(v **types.TrainingDatasetSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.TrainingDatasetSummary + if *v == nil { + sv = &types.TrainingDatasetSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "createTime": + 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.CreateTime = ptr.Time(t) + } + + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameString 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 TrainingDatasetStatus to be of type string, got %T instead", value) + } + sv.Status = types.TrainingDatasetStatus(jtv) + } + + case "trainingDatasetArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TrainingDatasetArn to be of type string, got %T instead", value) + } + sv.TrainingDatasetArn = ptr.String(jtv) + } + + case "updateTime": + 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.UpdateTime = ptr.Time(t) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ValidationException + if *v == nil { + sv = &types.ValidationException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} diff --git a/service/cleanroomsml/doc.go b/service/cleanroomsml/doc.go new file mode 100644 index 00000000000..bbf9f670b74 --- /dev/null +++ b/service/cleanroomsml/doc.go @@ -0,0 +1,7 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +// Package cleanroomsml provides the API client, operations, and parameter types +// for cleanrooms-ml. +// +// API Reference for Amazon Web Services Clean Rooms ML. +package cleanroomsml diff --git a/service/cleanroomsml/endpoints.go b/service/cleanroomsml/endpoints.go new file mode 100644 index 00000000000..e2bf7cadd4f --- /dev/null +++ b/service/cleanroomsml/endpoints.go @@ -0,0 +1,509 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + internalConfig "github.com/aws/aws-sdk-go-v2/internal/configsources" + "github.com/aws/aws-sdk-go-v2/internal/endpoints" + "github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn" + internalendpoints "github.com/aws/aws-sdk-go-v2/service/cleanroomsml/internal/endpoints" + smithyauth "github.com/aws/smithy-go/auth" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + "github.com/aws/smithy-go/ptr" + smithyhttp "github.com/aws/smithy-go/transport/http" + "net/http" + "net/url" + "os" + "strings" +) + +// EndpointResolverOptions is the service endpoint resolver options +type EndpointResolverOptions = internalendpoints.Options + +// EndpointResolver interface for resolving service endpoints. +type EndpointResolver interface { + ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error) +} + +var _ EndpointResolver = &internalendpoints.Resolver{} + +// NewDefaultEndpointResolver constructs a new service endpoint resolver +func NewDefaultEndpointResolver() *internalendpoints.Resolver { + return internalendpoints.New() +} + +// EndpointResolverFunc is a helper utility that wraps a function so it satisfies +// the EndpointResolver interface. This is useful when you want to add additional +// endpoint resolving logic, or stub out specific endpoints with custom values. +type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error) + +func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { + return fn(region, options) +} + +// EndpointResolverFromURL returns an EndpointResolver configured using the +// provided endpoint url. By default, the resolved endpoint resolver uses the +// client region as signing region, and the endpoint source is set to +// EndpointSourceCustom.You can provide functional options to configure endpoint +// values for the resolved endpoint. +func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver { + e := aws.Endpoint{URL: url, Source: aws.EndpointSourceCustom} + for _, fn := range optFns { + fn(&e) + } + + return EndpointResolverFunc( + func(region string, options EndpointResolverOptions) (aws.Endpoint, error) { + if len(e.SigningRegion) == 0 { + e.SigningRegion = region + } + return e, nil + }, + ) +} + +type ResolveEndpoint struct { + Resolver EndpointResolver + Options EndpointResolverOptions +} + +func (*ResolveEndpoint) ID() string { + return "ResolveEndpoint" +} + +func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if !awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.Resolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + eo := m.Options + eo.Logger = middleware.GetLogger(ctx) + + var endpoint aws.Endpoint + endpoint, err = m.Resolver.ResolveEndpoint(awsmiddleware.GetRegion(ctx), eo) + if err != nil { + nf := (&aws.EndpointNotFoundError{}) + if errors.As(err, &nf) { + ctx = awsmiddleware.SetRequiresLegacyEndpoints(ctx, false) + return next.HandleSerialize(ctx, in) + } + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL, err = url.Parse(endpoint.URL) + if err != nil { + return out, metadata, fmt.Errorf("failed to parse endpoint URL: %w", err) + } + + if len(awsmiddleware.GetSigningName(ctx)) == 0 { + signingName := endpoint.SigningName + if len(signingName) == 0 { + signingName = "cleanrooms-ml" + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + } + ctx = awsmiddleware.SetEndpointSource(ctx, endpoint.Source) + ctx = smithyhttp.SetHostnameImmutable(ctx, endpoint.HostnameImmutable) + ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion) + ctx = awsmiddleware.SetPartitionID(ctx, endpoint.PartitionID) + return next.HandleSerialize(ctx, in) +} +func addResolveEndpointMiddleware(stack *middleware.Stack, o Options) error { + return stack.Serialize.Insert(&ResolveEndpoint{ + Resolver: o.EndpointResolver, + Options: o.EndpointOptions, + }, "OperationSerializer", middleware.Before) +} + +func removeResolveEndpointMiddleware(stack *middleware.Stack) error { + _, err := stack.Serialize.Remove((&ResolveEndpoint{}).ID()) + return err +} + +type wrappedEndpointResolver struct { + awsResolver aws.EndpointResolverWithOptions +} + +func (w *wrappedEndpointResolver) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { + return w.awsResolver.ResolveEndpoint(ServiceID, region, options) +} + +type awsEndpointResolverAdaptor func(service, region string) (aws.Endpoint, error) + +func (a awsEndpointResolverAdaptor) ResolveEndpoint(service, region string, options ...interface{}) (aws.Endpoint, error) { + return a(service, region) +} + +var _ aws.EndpointResolverWithOptions = awsEndpointResolverAdaptor(nil) + +// withEndpointResolver returns an aws.EndpointResolverWithOptions that first delegates endpoint resolution to the awsResolver. +// If awsResolver returns aws.EndpointNotFoundError error, the v1 resolver middleware will swallow the error, +// and set an appropriate context flag such that fallback will occur when EndpointResolverV2 is invoked +// via its middleware. +// +// If another error (besides aws.EndpointNotFoundError) is returned, then that error will be propagated. +func withEndpointResolver(awsResolver aws.EndpointResolver, awsResolverWithOptions aws.EndpointResolverWithOptions) EndpointResolver { + var resolver aws.EndpointResolverWithOptions + + if awsResolverWithOptions != nil { + resolver = awsResolverWithOptions + } else if awsResolver != nil { + resolver = awsEndpointResolverAdaptor(awsResolver.ResolveEndpoint) + } + + return &wrappedEndpointResolver{ + awsResolver: resolver, + } +} + +func finalizeClientEndpointResolverOptions(options *Options) { + options.EndpointOptions.LogDeprecated = options.ClientLogMode.IsDeprecatedUsage() + + if len(options.EndpointOptions.ResolvedRegion) == 0 { + const fipsInfix = "-fips-" + const fipsPrefix = "fips-" + const fipsSuffix = "-fips" + + if strings.Contains(options.Region, fipsInfix) || + strings.Contains(options.Region, fipsPrefix) || + strings.Contains(options.Region, fipsSuffix) { + options.EndpointOptions.ResolvedRegion = strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll( + options.Region, fipsInfix, "-"), fipsPrefix, ""), fipsSuffix, "") + options.EndpointOptions.UseFIPSEndpoint = aws.FIPSEndpointStateEnabled + } + } + +} + +func resolveEndpointResolverV2(options *Options) { + if options.EndpointResolverV2 == nil { + options.EndpointResolverV2 = NewDefaultEndpointResolverV2() + } +} + +func resolveBaseEndpoint(cfg aws.Config, o *Options) { + if cfg.BaseEndpoint != nil { + o.BaseEndpoint = cfg.BaseEndpoint + } + + _, g := os.LookupEnv("AWS_ENDPOINT_URL") + _, s := os.LookupEnv("AWS_ENDPOINT_URL_CLEANROOMSML") + + if g && !s { + return + } + + value, found, err := internalConfig.ResolveServiceBaseEndpoint(context.Background(), "CleanRoomsML", cfg.ConfigSources) + if found && err == nil { + o.BaseEndpoint = &value + } +} + +// EndpointParameters provides the parameters that influence how endpoints are +// resolved. +type EndpointParameters struct { + // The AWS region used to dispatch the request. + // + // Parameter is + // required. + // + // AWS::Region + Region *string + + // When true, use the dual-stack endpoint. If the configured endpoint does not + // support dual-stack, dispatching the request MAY return an error. + // + // Defaults to + // false if no value is provided. + // + // AWS::UseDualStack + UseDualStack *bool + + // When true, send this request to the FIPS-compliant regional endpoint. If the + // configured endpoint does not have a FIPS compliant endpoint, dispatching the + // request will return an error. + // + // Defaults to false if no value is + // provided. + // + // AWS::UseFIPS + UseFIPS *bool + + // Override the endpoint used to send this request + // + // Parameter is + // required. + // + // SDK::Endpoint + Endpoint *string +} + +// ValidateRequired validates required parameters are set. +func (p EndpointParameters) ValidateRequired() error { + if p.UseDualStack == nil { + return fmt.Errorf("parameter UseDualStack is required") + } + + if p.UseFIPS == nil { + return fmt.Errorf("parameter UseFIPS is required") + } + + return nil +} + +// WithDefaults returns a shallow copy of EndpointParameterswith default values +// applied to members where applicable. +func (p EndpointParameters) WithDefaults() EndpointParameters { + if p.UseDualStack == nil { + p.UseDualStack = ptr.Bool(false) + } + + if p.UseFIPS == nil { + p.UseFIPS = ptr.Bool(false) + } + return p +} + +// EndpointResolverV2 provides the interface for resolving service endpoints. +type EndpointResolverV2 interface { + // ResolveEndpoint attempts to resolve the endpoint with the provided options, + // returning the endpoint if found. Otherwise an error is returned. + ResolveEndpoint(ctx context.Context, params EndpointParameters) ( + smithyendpoints.Endpoint, error, + ) +} + +// resolver provides the implementation for resolving endpoints. +type resolver struct{} + +func NewDefaultEndpointResolverV2() EndpointResolverV2 { + return &resolver{} +} + +// ResolveEndpoint attempts to resolve the endpoint with the provided options, +// returning the endpoint if found. Otherwise an error is returned. +func (r *resolver) ResolveEndpoint( + ctx context.Context, params EndpointParameters, +) ( + endpoint smithyendpoints.Endpoint, err error, +) { + params = params.WithDefaults() + if err = params.ValidateRequired(); err != nil { + return endpoint, fmt.Errorf("endpoint parameters are not valid, %w", err) + } + _UseDualStack := *params.UseDualStack + _UseFIPS := *params.UseFIPS + + if exprVal := params.Endpoint; exprVal != nil { + _Endpoint := *exprVal + _ = _Endpoint + if _UseFIPS == true { + return endpoint, fmt.Errorf("endpoint rule error, %s", "Invalid Configuration: FIPS and custom endpoint are not supported") + } + if _UseDualStack == true { + return endpoint, fmt.Errorf("endpoint rule error, %s", "Invalid Configuration: Dualstack and custom endpoint are not supported") + } + uriString := _Endpoint + + uri, err := url.Parse(uriString) + if err != nil { + return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString) + } + + return smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + }, nil + } + if exprVal := params.Region; exprVal != nil { + _Region := *exprVal + _ = _Region + if exprVal := awsrulesfn.GetPartition(_Region); exprVal != nil { + _PartitionResult := *exprVal + _ = _PartitionResult + if _UseFIPS == true { + if _UseDualStack == true { + if true == _PartitionResult.SupportsFIPS { + if true == _PartitionResult.SupportsDualStack { + uriString := func() string { + var out strings.Builder + out.WriteString("https://cleanrooms-ml-fips.") + out.WriteString(_Region) + out.WriteString(".") + out.WriteString(_PartitionResult.DualStackDnsSuffix) + return out.String() + }() + + uri, err := url.Parse(uriString) + if err != nil { + return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString) + } + + return smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + }, nil + } + } + return endpoint, fmt.Errorf("endpoint rule error, %s", "FIPS and DualStack are enabled, but this partition does not support one or both") + } + } + if _UseFIPS == true { + if _PartitionResult.SupportsFIPS == true { + uriString := func() string { + var out strings.Builder + out.WriteString("https://cleanrooms-ml-fips.") + out.WriteString(_Region) + out.WriteString(".") + out.WriteString(_PartitionResult.DnsSuffix) + return out.String() + }() + + uri, err := url.Parse(uriString) + if err != nil { + return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString) + } + + return smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + }, nil + } + return endpoint, fmt.Errorf("endpoint rule error, %s", "FIPS is enabled but this partition does not support FIPS") + } + if _UseDualStack == true { + if true == _PartitionResult.SupportsDualStack { + uriString := func() string { + var out strings.Builder + out.WriteString("https://cleanrooms-ml.") + out.WriteString(_Region) + out.WriteString(".") + out.WriteString(_PartitionResult.DualStackDnsSuffix) + return out.String() + }() + + uri, err := url.Parse(uriString) + if err != nil { + return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString) + } + + return smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + }, nil + } + return endpoint, fmt.Errorf("endpoint rule error, %s", "DualStack is enabled but this partition does not support DualStack") + } + uriString := func() string { + var out strings.Builder + out.WriteString("https://cleanrooms-ml.") + out.WriteString(_Region) + out.WriteString(".") + out.WriteString(_PartitionResult.DnsSuffix) + return out.String() + }() + + uri, err := url.Parse(uriString) + if err != nil { + return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString) + } + + return smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + }, nil + } + return endpoint, fmt.Errorf("Endpoint resolution failed. Invalid operation or environment input.") + } + return endpoint, fmt.Errorf("endpoint rule error, %s", "Invalid Configuration: Missing Region") +} + +type endpointParamsBinder interface { + bindEndpointParams(*EndpointParameters) +} + +func bindEndpointParams(input interface{}, options Options) *EndpointParameters { + params := &EndpointParameters{} + + params.Region = aws.String(endpoints.MapFIPSRegion(options.Region)) + params.UseDualStack = aws.Bool(options.EndpointOptions.UseDualStackEndpoint == aws.DualStackEndpointStateEnabled) + params.UseFIPS = aws.Bool(options.EndpointOptions.UseFIPSEndpoint == aws.FIPSEndpointStateEnabled) + params.Endpoint = options.BaseEndpoint + + if b, ok := input.(endpointParamsBinder); ok { + b.bindEndpointParams(params) + } + + return params +} + +type resolveEndpointV2Middleware struct { + options Options +} + +func (*resolveEndpointV2Middleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *resolveEndpointV2Middleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(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) + } + + if m.options.EndpointResolverV2 == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := bindEndpointParams(getOperationInput(ctx), m.options) + endpt, err := m.options.EndpointResolverV2.ResolveEndpoint(ctx, *params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + if endpt.URI.RawPath == "" && req.URL.RawPath != "" { + endpt.URI.RawPath = endpt.URI.Path + } + req.URL.Scheme = endpt.URI.Scheme + req.URL.Host = endpt.URI.Host + req.URL.Path = smithyhttp.JoinPath(endpt.URI.Path, req.URL.Path) + req.URL.RawPath = smithyhttp.JoinPath(endpt.URI.RawPath, req.URL.RawPath) + for k := range endpt.Headers { + req.Header.Set(k, endpt.Headers.Get(k)) + } + + rscheme := getResolvedAuthScheme(ctx) + if rscheme == nil { + return out, metadata, fmt.Errorf("no resolved auth scheme") + } + + opts, _ := smithyauth.GetAuthOptions(&endpt.Properties) + for _, o := range opts { + rscheme.SignerProperties.SetAll(&o.SignerProperties) + } + + return next.HandleFinalize(ctx, in) +} diff --git a/service/cleanroomsml/endpoints_config_test.go b/service/cleanroomsml/endpoints_config_test.go new file mode 100644 index 00000000000..314e4a3eb58 --- /dev/null +++ b/service/cleanroomsml/endpoints_config_test.go @@ -0,0 +1,139 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "github.com/aws/aws-sdk-go-v2/aws" + "os" + "reflect" + "testing" +) + +type mockConfigSource struct { + global string + service string + ignore bool +} + +// GetIgnoreConfiguredEndpoints is used in knowing when to disable configured +// endpoints feature. +func (m mockConfigSource) GetIgnoreConfiguredEndpoints(context.Context) (bool, bool, error) { + return m.ignore, m.ignore, nil +} + +// GetServiceBaseEndpoint is used to retrieve a normalized SDK ID for use +// with configured endpoints. +func (m mockConfigSource) GetServiceBaseEndpoint(ctx context.Context, sdkID string) (string, bool, error) { + if m.service != "" { + return m.service, true, nil + } + return "", false, nil +} + +func TestResolveBaseEndpoint(t *testing.T) { + cases := map[string]struct { + envGlobal string + envService string + envIgnore bool + configGlobal string + configService string + configIgnore bool + clientEndpoint *string + expectURL *string + }{ + "env ignore": { + envGlobal: "https://env-global.dev", + envService: "https://env-cleanroomsml.dev", + envIgnore: true, + configGlobal: "http://config-global.dev", + configService: "http://config-cleanroomsml.dev", + expectURL: nil, + }, + "env global": { + envGlobal: "https://env-global.dev", + configGlobal: "http://config-global.dev", + configService: "http://config-cleanroomsml.dev", + expectURL: aws.String("https://env-global.dev"), + }, + "env service": { + envGlobal: "https://env-global.dev", + envService: "https://env-cleanroomsml.dev", + configGlobal: "http://config-global.dev", + configService: "http://config-cleanroomsml.dev", + expectURL: aws.String("https://env-cleanroomsml.dev"), + }, + "config ignore": { + envGlobal: "https://env-global.dev", + envService: "https://env-cleanroomsml.dev", + configGlobal: "http://config-global.dev", + configService: "http://config-cleanroomsml.dev", + configIgnore: true, + expectURL: nil, + }, + "config global": { + configGlobal: "http://config-global.dev", + expectURL: aws.String("http://config-global.dev"), + }, + "config service": { + configGlobal: "http://config-global.dev", + configService: "http://config-cleanroomsml.dev", + expectURL: aws.String("http://config-cleanroomsml.dev"), + }, + "client": { + envGlobal: "https://env-global.dev", + envService: "https://env-cleanroomsml.dev", + configGlobal: "http://config-global.dev", + configService: "http://config-cleanroomsml.dev", + clientEndpoint: aws.String("https://client-cleanroomsml.dev"), + expectURL: aws.String("https://client-cleanroomsml.dev"), + }, + } + + for name, c := range cases { + t.Run(name, func(t *testing.T) { + os.Clearenv() + + awsConfig := aws.Config{} + ignore := c.envIgnore || c.configIgnore + + if c.configGlobal != "" && !ignore { + awsConfig.BaseEndpoint = aws.String(c.configGlobal) + } + + if c.envGlobal != "" { + t.Setenv("AWS_ENDPOINT_URL", c.envGlobal) + if !ignore { + awsConfig.BaseEndpoint = aws.String(c.envGlobal) + } + } + + if c.envService != "" { + t.Setenv("AWS_ENDPOINT_URL_CLEANROOMSML", c.envService) + } + + awsConfig.ConfigSources = []interface{}{ + mockConfigSource{ + global: c.envGlobal, + service: c.envService, + ignore: c.envIgnore, + }, + mockConfigSource{ + global: c.configGlobal, + service: c.configService, + ignore: c.configIgnore, + }, + } + + client := NewFromConfig(awsConfig, func(o *Options) { + if c.clientEndpoint != nil { + o.BaseEndpoint = c.clientEndpoint + } + }) + + if e, a := c.expectURL, client.options.BaseEndpoint; !reflect.DeepEqual(e, a) { + t.Errorf("expect endpoint %v , got %v", e, a) + } + }) + } +} diff --git a/service/cleanroomsml/endpoints_test.go b/service/cleanroomsml/endpoints_test.go new file mode 100644 index 00000000000..8bfb1fa923a --- /dev/null +++ b/service/cleanroomsml/endpoints_test.go @@ -0,0 +1,856 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + smithy "github.com/aws/smithy-go" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/ptr" + "github.com/google/go-cmp/cmp" + "net/http" + "net/url" + "strings" + "testing" +) + +// For region us-east-1 with FIPS enabled and DualStack enabled +func TestEndpointCase0(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://cleanrooms-ml-fips.us-east-1.api.aws") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-east-1 with FIPS enabled and DualStack disabled +func TestEndpointCase1(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://cleanrooms-ml-fips.us-east-1.amazonaws.com") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-east-1 with FIPS disabled and DualStack enabled +func TestEndpointCase2(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://cleanrooms-ml.us-east-1.api.aws") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-east-1 with FIPS disabled and DualStack disabled +func TestEndpointCase3(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://cleanrooms-ml.us-east-1.amazonaws.com") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region cn-north-1 with FIPS enabled and DualStack enabled +func TestEndpointCase4(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://cleanrooms-ml-fips.cn-north-1.api.amazonwebservices.com.cn") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region cn-north-1 with FIPS enabled and DualStack disabled +func TestEndpointCase5(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://cleanrooms-ml-fips.cn-north-1.amazonaws.com.cn") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region cn-north-1 with FIPS disabled and DualStack enabled +func TestEndpointCase6(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://cleanrooms-ml.cn-north-1.api.amazonwebservices.com.cn") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region cn-north-1 with FIPS disabled and DualStack disabled +func TestEndpointCase7(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://cleanrooms-ml.cn-north-1.amazonaws.com.cn") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-gov-east-1 with FIPS enabled and DualStack enabled +func TestEndpointCase8(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://cleanrooms-ml-fips.us-gov-east-1.api.aws") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-gov-east-1 with FIPS enabled and DualStack disabled +func TestEndpointCase9(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://cleanrooms-ml-fips.us-gov-east-1.amazonaws.com") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-gov-east-1 with FIPS disabled and DualStack enabled +func TestEndpointCase10(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://cleanrooms-ml.us-gov-east-1.api.aws") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-gov-east-1 with FIPS disabled and DualStack disabled +func TestEndpointCase11(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://cleanrooms-ml.us-gov-east-1.amazonaws.com") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-iso-east-1 with FIPS enabled and DualStack enabled +func TestEndpointCase12(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "FIPS and DualStack are enabled, but this partition does not support one or both", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region us-iso-east-1 with FIPS enabled and DualStack disabled +func TestEndpointCase13(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://cleanrooms-ml-fips.us-iso-east-1.c2s.ic.gov") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-iso-east-1 with FIPS disabled and DualStack enabled +func TestEndpointCase14(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "DualStack is enabled but this partition does not support DualStack", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region us-iso-east-1 with FIPS disabled and DualStack disabled +func TestEndpointCase15(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://cleanrooms-ml.us-iso-east-1.c2s.ic.gov") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-isob-east-1 with FIPS enabled and DualStack enabled +func TestEndpointCase16(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "FIPS and DualStack are enabled, but this partition does not support one or both", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region us-isob-east-1 with FIPS enabled and DualStack disabled +func TestEndpointCase17(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://cleanrooms-ml-fips.us-isob-east-1.sc2s.sgov.gov") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-isob-east-1 with FIPS disabled and DualStack enabled +func TestEndpointCase18(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "DualStack is enabled but this partition does not support DualStack", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region us-isob-east-1 with FIPS disabled and DualStack disabled +func TestEndpointCase19(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://cleanrooms-ml.us-isob-east-1.sc2s.sgov.gov") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For custom endpoint with region set and fips disabled and dualstack disabled +func TestEndpointCase20(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + Endpoint: ptr.String("https://example.com"), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://example.com") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For custom endpoint with region not set and fips disabled and dualstack disabled +func TestEndpointCase21(t *testing.T) { + var params = EndpointParameters{ + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + Endpoint: ptr.String("https://example.com"), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://example.com") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For custom endpoint with fips enabled and dualstack disabled +func TestEndpointCase22(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), + Endpoint: ptr.String("https://example.com"), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "Invalid Configuration: FIPS and custom endpoint are not supported", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For custom endpoint with fips disabled and dualstack enabled +func TestEndpointCase23(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + Endpoint: ptr.String("https://example.com"), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "Invalid Configuration: Dualstack and custom endpoint are not supported", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// Missing region +func TestEndpointCase24(t *testing.T) { + var params = EndpointParameters{} + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "Invalid Configuration: Missing Region", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} diff --git a/service/cleanroomsml/generated.json b/service/cleanroomsml/generated.json new file mode 100644 index 00000000000..ff5b3a16db0 --- /dev/null +++ b/service/cleanroomsml/generated.json @@ -0,0 +1,57 @@ +{ + "dependencies": { + "github.com/aws/aws-sdk-go-v2": "v1.4.0", + "github.com/aws/aws-sdk-go-v2/internal/configsources": "v0.0.0-00010101000000-000000000000", + "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2": "v2.0.0-00010101000000-000000000000", + "github.com/aws/smithy-go": "v1.4.0", + "github.com/google/go-cmp": "v0.5.4" + }, + "files": [ + "api_client.go", + "api_client_test.go", + "api_op_CreateAudienceModel.go", + "api_op_CreateConfiguredAudienceModel.go", + "api_op_CreateTrainingDataset.go", + "api_op_DeleteAudienceGenerationJob.go", + "api_op_DeleteAudienceModel.go", + "api_op_DeleteConfiguredAudienceModel.go", + "api_op_DeleteConfiguredAudienceModelPolicy.go", + "api_op_DeleteTrainingDataset.go", + "api_op_GetAudienceGenerationJob.go", + "api_op_GetAudienceModel.go", + "api_op_GetConfiguredAudienceModel.go", + "api_op_GetConfiguredAudienceModelPolicy.go", + "api_op_GetTrainingDataset.go", + "api_op_ListAudienceExportJobs.go", + "api_op_ListAudienceGenerationJobs.go", + "api_op_ListAudienceModels.go", + "api_op_ListConfiguredAudienceModels.go", + "api_op_ListTagsForResource.go", + "api_op_ListTrainingDatasets.go", + "api_op_PutConfiguredAudienceModelPolicy.go", + "api_op_StartAudienceExportJob.go", + "api_op_StartAudienceGenerationJob.go", + "api_op_TagResource.go", + "api_op_UntagResource.go", + "api_op_UpdateConfiguredAudienceModel.go", + "auth.go", + "deserializers.go", + "doc.go", + "endpoints.go", + "endpoints_config_test.go", + "endpoints_test.go", + "generated.json", + "internal/endpoints/endpoints.go", + "internal/endpoints/endpoints_test.go", + "options.go", + "protocol_test.go", + "serializers.go", + "types/enums.go", + "types/errors.go", + "types/types.go", + "validators.go" + ], + "go": "1.15", + "module": "github.com/aws/aws-sdk-go-v2/service/cleanroomsml", + "unstable": false +} diff --git a/service/cleanroomsml/go.mod b/service/cleanroomsml/go.mod new file mode 100644 index 00000000000..23c6ab940c6 --- /dev/null +++ b/service/cleanroomsml/go.mod @@ -0,0 +1,17 @@ +module github.com/aws/aws-sdk-go-v2/service/cleanroomsml + +go 1.19 + +require ( + github.com/aws/aws-sdk-go-v2 v1.23.2 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 + github.com/aws/smithy-go v1.18.0 + github.com/google/go-cmp v0.5.8 +) + +replace github.com/aws/aws-sdk-go-v2 => ../../ + +replace github.com/aws/aws-sdk-go-v2/internal/configsources => ../../internal/configsources/ + +replace github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 => ../../internal/endpoints/v2/ diff --git a/service/cleanroomsml/go.sum b/service/cleanroomsml/go.sum new file mode 100644 index 00000000000..b005e723d96 --- /dev/null +++ b/service/cleanroomsml/go.sum @@ -0,0 +1,4 @@ +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= +github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cleanroomsml/go_module_metadata.go b/service/cleanroomsml/go_module_metadata.go new file mode 100644 index 00000000000..021e2f50136 --- /dev/null +++ b/service/cleanroomsml/go_module_metadata.go @@ -0,0 +1,6 @@ +// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. + +package cleanroomsml + +// goModuleVersion is the tagged release for this module +const goModuleVersion = "tip" diff --git a/service/cleanroomsml/internal/endpoints/endpoints.go b/service/cleanroomsml/internal/endpoints/endpoints.go new file mode 100644 index 00000000000..d22725bdb3f --- /dev/null +++ b/service/cleanroomsml/internal/endpoints/endpoints.go @@ -0,0 +1,296 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package endpoints + +import ( + "github.com/aws/aws-sdk-go-v2/aws" + endpoints "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2" + "github.com/aws/smithy-go/logging" + "regexp" +) + +// Options is the endpoint resolver configuration options +type Options struct { + // Logger is a logging implementation that log events should be sent to. + Logger logging.Logger + + // LogDeprecated indicates that deprecated endpoints should be logged to the + // provided logger. + LogDeprecated bool + + // ResolvedRegion is used to override the region to be resolved, rather then the + // using the value passed to the ResolveEndpoint method. This value is used by the + // SDK to translate regions like fips-us-east-1 or us-east-1-fips to an alternative + // name. You must not set this value directly in your application. + ResolvedRegion string + + // DisableHTTPS informs the resolver to return an endpoint that does not use the + // HTTPS scheme. + DisableHTTPS bool + + // UseDualStackEndpoint specifies the resolver must resolve a dual-stack endpoint. + UseDualStackEndpoint aws.DualStackEndpointState + + // UseFIPSEndpoint specifies the resolver must resolve a FIPS endpoint. + UseFIPSEndpoint aws.FIPSEndpointState +} + +func (o Options) GetResolvedRegion() string { + return o.ResolvedRegion +} + +func (o Options) GetDisableHTTPS() bool { + return o.DisableHTTPS +} + +func (o Options) GetUseDualStackEndpoint() aws.DualStackEndpointState { + return o.UseDualStackEndpoint +} + +func (o Options) GetUseFIPSEndpoint() aws.FIPSEndpointState { + return o.UseFIPSEndpoint +} + +func transformToSharedOptions(options Options) endpoints.Options { + return endpoints.Options{ + Logger: options.Logger, + LogDeprecated: options.LogDeprecated, + ResolvedRegion: options.ResolvedRegion, + DisableHTTPS: options.DisableHTTPS, + UseDualStackEndpoint: options.UseDualStackEndpoint, + UseFIPSEndpoint: options.UseFIPSEndpoint, + } +} + +// Resolver CleanRoomsML endpoint resolver +type Resolver struct { + partitions endpoints.Partitions +} + +// ResolveEndpoint resolves the service endpoint for the given region and options +func (r *Resolver) ResolveEndpoint(region string, options Options) (endpoint aws.Endpoint, err error) { + if len(region) == 0 { + return endpoint, &aws.MissingRegionError{} + } + + opt := transformToSharedOptions(options) + return r.partitions.ResolveEndpoint(region, opt) +} + +// New returns a new Resolver +func New() *Resolver { + return &Resolver{ + partitions: defaultPartitions, + } +} + +var partitionRegexp = struct { + Aws *regexp.Regexp + AwsCn *regexp.Regexp + AwsIso *regexp.Regexp + AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp + AwsIsoF *regexp.Regexp + AwsUsGov *regexp.Regexp +}{ + + Aws: regexp.MustCompile("^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$"), + AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), + AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), + AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), + AwsIsoF: regexp.MustCompile("^us\\-isof\\-\\w+\\-\\d+$"), + AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), +} + +var defaultPartitions = endpoints.Partitions{ + { + ID: "aws", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.DualStackVariant, + }: { + Hostname: "cleanrooms-ml.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cleanrooms-ml-fips.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, + }: { + Hostname: "cleanrooms-ml-fips.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cleanrooms-ml.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.Aws, + IsRegionalized: true, + }, + { + ID: "aws-cn", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.DualStackVariant, + }: { + Hostname: "cleanrooms-ml.{region}.api.amazonwebservices.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cleanrooms-ml-fips.{region}.amazonaws.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, + }: { + Hostname: "cleanrooms-ml-fips.{region}.api.amazonwebservices.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cleanrooms-ml.{region}.amazonaws.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsCn, + IsRegionalized: true, + }, + { + ID: "aws-iso", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cleanrooms-ml-fips.{region}.c2s.ic.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cleanrooms-ml.{region}.c2s.ic.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIso, + IsRegionalized: true, + }, + { + ID: "aws-iso-b", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cleanrooms-ml-fips.{region}.sc2s.sgov.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cleanrooms-ml.{region}.sc2s.sgov.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoB, + IsRegionalized: true, + }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cleanrooms-ml-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cleanrooms-ml.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, + { + ID: "aws-iso-f", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cleanrooms-ml-fips.{region}.csp.hci.ic.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cleanrooms-ml.{region}.csp.hci.ic.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoF, + IsRegionalized: true, + }, + { + ID: "aws-us-gov", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.DualStackVariant, + }: { + Hostname: "cleanrooms-ml.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cleanrooms-ml-fips.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, + }: { + Hostname: "cleanrooms-ml-fips.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cleanrooms-ml.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsUsGov, + IsRegionalized: true, + }, +} diff --git a/service/cleanroomsml/internal/endpoints/endpoints_test.go b/service/cleanroomsml/internal/endpoints/endpoints_test.go new file mode 100644 index 00000000000..08e5da2d833 --- /dev/null +++ b/service/cleanroomsml/internal/endpoints/endpoints_test.go @@ -0,0 +1,11 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package endpoints + +import ( + "testing" +) + +func TestRegexCompile(t *testing.T) { + _ = defaultPartitions +} diff --git a/service/cleanroomsml/options.go b/service/cleanroomsml/options.go new file mode 100644 index 00000000000..111e3fb3ab7 --- /dev/null +++ b/service/cleanroomsml/options.go @@ -0,0 +1,219 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + internalauthsmithy "github.com/aws/aws-sdk-go-v2/internal/auth/smithy" + smithyauth "github.com/aws/smithy-go/auth" + "github.com/aws/smithy-go/logging" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "net/http" +) + +type HTTPClient interface { + Do(*http.Request) (*http.Response, error) +} + +type Options struct { + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // The optional application specific identifier appended to the User-Agent header. + AppID string + + // This endpoint will be given as input to an EndpointResolverV2. It is used for + // providing a custom base endpoint that is subject to modifications by the + // processing EndpointResolverV2. + BaseEndpoint *string + + // Configures the events that will be sent to the configured logger. + ClientLogMode aws.ClientLogMode + + // The credentials object to use when signing requests. + Credentials aws.CredentialsProvider + + // The configuration DefaultsMode that the SDK should use when constructing the + // clients initial default settings. + DefaultsMode aws.DefaultsMode + + // The endpoint options to be used when attempting to resolve an endpoint. + EndpointOptions EndpointResolverOptions + + // The service endpoint resolver. + // + // Deprecated: Deprecated: EndpointResolver and WithEndpointResolver. Providing a + // value for this field will likely prevent you from using any endpoint-related + // service features released after the introduction of EndpointResolverV2 and + // BaseEndpoint. To migrate an EndpointResolver implementation that uses a custom + // endpoint, set the client option BaseEndpoint instead. + EndpointResolver EndpointResolver + + // Resolves the endpoint used for a particular service operation. This should be + // used over the deprecated EndpointResolver. + EndpointResolverV2 EndpointResolverV2 + + // Signature Version 4 (SigV4) Signer + HTTPSignerV4 HTTPSignerV4 + + // The logger writer interface to write logging messages to. + Logger logging.Logger + + // The region to send requests to. (Required) + Region string + + // RetryMaxAttempts specifies the maximum number attempts an API client will call + // an operation that fails with a retryable error. A value of 0 is ignored, and + // will not be used to configure the API client created default retryer, or modify + // per operation call's retry max attempts. When creating a new API Clients this + // member will only be used if the Retryer Options member is nil. This value will + // be ignored if Retryer is not nil. If specified in an operation call's functional + // options with a value that is different than the constructed client's Options, + // the Client's Retryer will be wrapped to use the operation's specific + // RetryMaxAttempts value. + RetryMaxAttempts int + + // RetryMode specifies the retry mode the API client will be created with, if + // Retryer option is not also specified. When creating a new API Clients this + // member will only be used if the Retryer Options member is nil. This value will + // be ignored if Retryer is not nil. Currently does not support per operation call + // overrides, may in the future. + RetryMode aws.RetryMode + + // Retryer guides how HTTP requests should be retried in case of recoverable + // failures. When nil the API client will use a default retryer. The kind of + // default retry created by the API client can be changed with the RetryMode + // option. + Retryer aws.Retryer + + // The RuntimeEnvironment configuration, only populated if the DefaultsMode is set + // to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You + // should not populate this structure programmatically, or rely on the values here + // within your applications. + RuntimeEnvironment aws.RuntimeEnvironment + + // The initial DefaultsMode used when the client options were constructed. If the + // DefaultsMode was set to aws.DefaultsModeAuto this will store what the resolved + // value was at that point in time. Currently does not support per operation call + // overrides, may in the future. + resolvedDefaultsMode aws.DefaultsMode + + // The HTTP client to invoke API calls with. Defaults to client's default HTTP + // implementation if nil. + HTTPClient HTTPClient + + // The auth scheme resolver which determines how to authenticate for each + // operation. + AuthSchemeResolver AuthSchemeResolver + + // The list of auth schemes supported by the client. + AuthSchemes []smithyhttp.AuthScheme +} + +// Copy creates a clone where the APIOptions list is deep copied. +func (o Options) Copy() Options { + to := o + to.APIOptions = make([]func(*middleware.Stack) error, len(o.APIOptions)) + copy(to.APIOptions, o.APIOptions) + + return to +} + +func (o Options) GetIdentityResolver(schemeID string) smithyauth.IdentityResolver { + if schemeID == "aws.auth#sigv4" { + return getSigV4IdentityResolver(o) + } + if schemeID == "smithy.api#noAuth" { + return &smithyauth.AnonymousIdentityResolver{} + } + return nil +} + +// WithAPIOptions returns a functional option for setting the Client's APIOptions +// option. +func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options) { + return func(o *Options) { + o.APIOptions = append(o.APIOptions, optFns...) + } +} + +// Deprecated: EndpointResolver and WithEndpointResolver. Providing a value for +// this field will likely prevent you from using any endpoint-related service +// features released after the introduction of EndpointResolverV2 and BaseEndpoint. +// To migrate an EndpointResolver implementation that uses a custom endpoint, set +// the client option BaseEndpoint instead. +func WithEndpointResolver(v EndpointResolver) func(*Options) { + return func(o *Options) { + o.EndpointResolver = v + } +} + +// WithEndpointResolverV2 returns a functional option for setting the Client's +// EndpointResolverV2 option. +func WithEndpointResolverV2(v EndpointResolverV2) func(*Options) { + return func(o *Options) { + o.EndpointResolverV2 = v + } +} + +func getSigV4IdentityResolver(o Options) smithyauth.IdentityResolver { + if o.Credentials != nil { + return &internalauthsmithy.CredentialsProviderAdapter{Provider: o.Credentials} + } + return nil +} + +// WithSigV4SigningName applies an override to the authentication workflow to +// use the given signing name for SigV4-authenticated operations. +// +// This is an advanced setting. The value here is FINAL, taking precedence over +// the resolved signing name from both auth scheme resolution and endpoint +// resolution. +func WithSigV4SigningName(name string) func(*Options) { + fn := func(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, + ) { + return next.HandleInitialize(awsmiddleware.SetSigningName(ctx, name), in) + } + return func(o *Options) { + o.APIOptions = append(o.APIOptions, func(s *middleware.Stack) error { + return s.Initialize.Add( + middleware.InitializeMiddlewareFunc("withSigV4SigningName", fn), + middleware.Before, + ) + }) + } +} + +// WithSigV4SigningRegion applies an override to the authentication workflow to +// use the given signing region for SigV4-authenticated operations. +// +// This is an advanced setting. The value here is FINAL, taking precedence over +// the resolved signing region from both auth scheme resolution and endpoint +// resolution. +func WithSigV4SigningRegion(region string) func(*Options) { + fn := func(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, + ) { + return next.HandleInitialize(awsmiddleware.SetSigningRegion(ctx, region), in) + } + return func(o *Options) { + o.APIOptions = append(o.APIOptions, func(s *middleware.Stack) error { + return s.Initialize.Add( + middleware.InitializeMiddlewareFunc("withSigV4SigningRegion", fn), + middleware.Before, + ) + }) + } +} + +func ignoreAnonymousAuth(options *Options) { + if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + options.Credentials = nil + } +} diff --git a/service/cleanroomsml/protocol_test.go b/service/cleanroomsml/protocol_test.go new file mode 100644 index 00000000000..064595c84bc --- /dev/null +++ b/service/cleanroomsml/protocol_test.go @@ -0,0 +1,3 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml diff --git a/service/cleanroomsml/serializers.go b/service/cleanroomsml/serializers.go new file mode 100644 index 00000000000..b28d556565e --- /dev/null +++ b/service/cleanroomsml/serializers.go @@ -0,0 +1,2236 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "bytes" + "context" + "fmt" + "github.com/aws/aws-sdk-go-v2/service/cleanroomsml/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/encoding/httpbinding" + smithyjson "github.com/aws/smithy-go/encoding/json" + "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +type awsRestjson1_serializeOpCreateAudienceModel struct { +} + +func (*awsRestjson1_serializeOpCreateAudienceModel) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateAudienceModel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateAudienceModelInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/audience-model") + 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_serializeOpDocumentCreateAudienceModelInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateAudienceModelInput(v *CreateAudienceModelInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateAudienceModelInput(v *CreateAudienceModelInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + if v.KmsKeyArn != nil { + ok := object.Key("kmsKeyArn") + ok.String(*v.KmsKeyArn) + } + + if v.Name != nil { + ok := object.Key("name") + ok.String(*v.Name) + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil { + return err + } + } + + if v.TrainingDataEndTime != nil { + ok := object.Key("trainingDataEndTime") + ok.String(smithytime.FormatDateTime(*v.TrainingDataEndTime)) + } + + if v.TrainingDatasetArn != nil { + ok := object.Key("trainingDatasetArn") + ok.String(*v.TrainingDatasetArn) + } + + if v.TrainingDataStartTime != nil { + ok := object.Key("trainingDataStartTime") + ok.String(smithytime.FormatDateTime(*v.TrainingDataStartTime)) + } + + return nil +} + +type awsRestjson1_serializeOpCreateConfiguredAudienceModel struct { +} + +func (*awsRestjson1_serializeOpCreateConfiguredAudienceModel) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateConfiguredAudienceModel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateConfiguredAudienceModelInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/configured-audience-model") + 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_serializeOpDocumentCreateConfiguredAudienceModelInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateConfiguredAudienceModelInput(v *CreateConfiguredAudienceModelInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateConfiguredAudienceModelInput(v *CreateConfiguredAudienceModelInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AudienceModelArn != nil { + ok := object.Key("audienceModelArn") + ok.String(*v.AudienceModelArn) + } + + if v.AudienceSizeConfig != nil { + ok := object.Key("audienceSizeConfig") + if err := awsRestjson1_serializeDocumentAudienceSizeConfig(v.AudienceSizeConfig, ok); err != nil { + return err + } + } + + if len(v.ChildResourceTagOnCreatePolicy) > 0 { + ok := object.Key("childResourceTagOnCreatePolicy") + ok.String(string(v.ChildResourceTagOnCreatePolicy)) + } + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + if v.MinMatchingSeedSize != nil { + ok := object.Key("minMatchingSeedSize") + ok.Integer(*v.MinMatchingSeedSize) + } + + if v.Name != nil { + ok := object.Key("name") + ok.String(*v.Name) + } + + if v.OutputConfig != nil { + ok := object.Key("outputConfig") + if err := awsRestjson1_serializeDocumentConfiguredAudienceModelOutputConfig(v.OutputConfig, ok); err != nil { + return err + } + } + + if v.SharedAudienceMetrics != nil { + ok := object.Key("sharedAudienceMetrics") + if err := awsRestjson1_serializeDocumentMetricsList(v.SharedAudienceMetrics, 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_serializeOpCreateTrainingDataset struct { +} + +func (*awsRestjson1_serializeOpCreateTrainingDataset) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateTrainingDataset) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateTrainingDatasetInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/training-dataset") + 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_serializeOpDocumentCreateTrainingDatasetInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateTrainingDatasetInput(v *CreateTrainingDatasetInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateTrainingDatasetInput(v *CreateTrainingDatasetInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + 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.RoleArn != nil { + ok := object.Key("roleArn") + ok.String(*v.RoleArn) + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil { + return err + } + } + + if v.TrainingData != nil { + ok := object.Key("trainingData") + if err := awsRestjson1_serializeDocumentDatasetList(v.TrainingData, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteAudienceGenerationJob struct { +} + +func (*awsRestjson1_serializeOpDeleteAudienceGenerationJob) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteAudienceGenerationJob) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteAudienceGenerationJobInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/audience-generation-job/{audienceGenerationJobArn}") + 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_serializeOpHttpBindingsDeleteAudienceGenerationJobInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteAudienceGenerationJobInput(v *DeleteAudienceGenerationJobInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AudienceGenerationJobArn == nil || len(*v.AudienceGenerationJobArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member audienceGenerationJobArn must not be empty")} + } + if v.AudienceGenerationJobArn != nil { + if err := encoder.SetURI("audienceGenerationJobArn").String(*v.AudienceGenerationJobArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteAudienceModel struct { +} + +func (*awsRestjson1_serializeOpDeleteAudienceModel) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteAudienceModel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteAudienceModelInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/audience-model/{audienceModelArn}") + 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_serializeOpHttpBindingsDeleteAudienceModelInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteAudienceModelInput(v *DeleteAudienceModelInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AudienceModelArn == nil || len(*v.AudienceModelArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member audienceModelArn must not be empty")} + } + if v.AudienceModelArn != nil { + if err := encoder.SetURI("audienceModelArn").String(*v.AudienceModelArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteConfiguredAudienceModel struct { +} + +func (*awsRestjson1_serializeOpDeleteConfiguredAudienceModel) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteConfiguredAudienceModel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteConfiguredAudienceModelInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/configured-audience-model/{configuredAudienceModelArn}") + 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_serializeOpHttpBindingsDeleteConfiguredAudienceModelInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteConfiguredAudienceModelInput(v *DeleteConfiguredAudienceModelInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ConfiguredAudienceModelArn == nil || len(*v.ConfiguredAudienceModelArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member configuredAudienceModelArn must not be empty")} + } + if v.ConfiguredAudienceModelArn != nil { + if err := encoder.SetURI("configuredAudienceModelArn").String(*v.ConfiguredAudienceModelArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteConfiguredAudienceModelPolicy struct { +} + +func (*awsRestjson1_serializeOpDeleteConfiguredAudienceModelPolicy) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteConfiguredAudienceModelPolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteConfiguredAudienceModelPolicyInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/configured-audience-model/{configuredAudienceModelArn}/policy") + 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_serializeOpHttpBindingsDeleteConfiguredAudienceModelPolicyInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteConfiguredAudienceModelPolicyInput(v *DeleteConfiguredAudienceModelPolicyInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ConfiguredAudienceModelArn == nil || len(*v.ConfiguredAudienceModelArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member configuredAudienceModelArn must not be empty")} + } + if v.ConfiguredAudienceModelArn != nil { + if err := encoder.SetURI("configuredAudienceModelArn").String(*v.ConfiguredAudienceModelArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteTrainingDataset struct { +} + +func (*awsRestjson1_serializeOpDeleteTrainingDataset) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteTrainingDataset) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteTrainingDatasetInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/training-dataset/{trainingDatasetArn}") + 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_serializeOpHttpBindingsDeleteTrainingDatasetInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteTrainingDatasetInput(v *DeleteTrainingDatasetInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.TrainingDatasetArn == nil || len(*v.TrainingDatasetArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member trainingDatasetArn must not be empty")} + } + if v.TrainingDatasetArn != nil { + if err := encoder.SetURI("trainingDatasetArn").String(*v.TrainingDatasetArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetAudienceGenerationJob struct { +} + +func (*awsRestjson1_serializeOpGetAudienceGenerationJob) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetAudienceGenerationJob) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetAudienceGenerationJobInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/audience-generation-job/{audienceGenerationJobArn}") + 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_serializeOpHttpBindingsGetAudienceGenerationJobInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetAudienceGenerationJobInput(v *GetAudienceGenerationJobInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AudienceGenerationJobArn == nil || len(*v.AudienceGenerationJobArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member audienceGenerationJobArn must not be empty")} + } + if v.AudienceGenerationJobArn != nil { + if err := encoder.SetURI("audienceGenerationJobArn").String(*v.AudienceGenerationJobArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetAudienceModel struct { +} + +func (*awsRestjson1_serializeOpGetAudienceModel) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetAudienceModel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetAudienceModelInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/audience-model/{audienceModelArn}") + 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_serializeOpHttpBindingsGetAudienceModelInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetAudienceModelInput(v *GetAudienceModelInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AudienceModelArn == nil || len(*v.AudienceModelArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member audienceModelArn must not be empty")} + } + if v.AudienceModelArn != nil { + if err := encoder.SetURI("audienceModelArn").String(*v.AudienceModelArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetConfiguredAudienceModel struct { +} + +func (*awsRestjson1_serializeOpGetConfiguredAudienceModel) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetConfiguredAudienceModel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetConfiguredAudienceModelInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/configured-audience-model/{configuredAudienceModelArn}") + 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_serializeOpHttpBindingsGetConfiguredAudienceModelInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetConfiguredAudienceModelInput(v *GetConfiguredAudienceModelInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ConfiguredAudienceModelArn == nil || len(*v.ConfiguredAudienceModelArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member configuredAudienceModelArn must not be empty")} + } + if v.ConfiguredAudienceModelArn != nil { + if err := encoder.SetURI("configuredAudienceModelArn").String(*v.ConfiguredAudienceModelArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetConfiguredAudienceModelPolicy struct { +} + +func (*awsRestjson1_serializeOpGetConfiguredAudienceModelPolicy) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetConfiguredAudienceModelPolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetConfiguredAudienceModelPolicyInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/configured-audience-model/{configuredAudienceModelArn}/policy") + 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_serializeOpHttpBindingsGetConfiguredAudienceModelPolicyInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetConfiguredAudienceModelPolicyInput(v *GetConfiguredAudienceModelPolicyInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ConfiguredAudienceModelArn == nil || len(*v.ConfiguredAudienceModelArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member configuredAudienceModelArn must not be empty")} + } + if v.ConfiguredAudienceModelArn != nil { + if err := encoder.SetURI("configuredAudienceModelArn").String(*v.ConfiguredAudienceModelArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetTrainingDataset struct { +} + +func (*awsRestjson1_serializeOpGetTrainingDataset) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetTrainingDataset) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetTrainingDatasetInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/training-dataset/{trainingDatasetArn}") + 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_serializeOpHttpBindingsGetTrainingDatasetInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetTrainingDatasetInput(v *GetTrainingDatasetInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.TrainingDatasetArn == nil || len(*v.TrainingDatasetArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member trainingDatasetArn must not be empty")} + } + if v.TrainingDatasetArn != nil { + if err := encoder.SetURI("trainingDatasetArn").String(*v.TrainingDatasetArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpListAudienceExportJobs struct { +} + +func (*awsRestjson1_serializeOpListAudienceExportJobs) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListAudienceExportJobs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListAudienceExportJobsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/audience-export-job") + 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_serializeOpHttpBindingsListAudienceExportJobsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListAudienceExportJobsInput(v *ListAudienceExportJobsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AudienceGenerationJobArn != nil { + encoder.SetQuery("audienceGenerationJobArn").String(*v.AudienceGenerationJobArn) + } + + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + return nil +} + +type awsRestjson1_serializeOpListAudienceGenerationJobs struct { +} + +func (*awsRestjson1_serializeOpListAudienceGenerationJobs) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListAudienceGenerationJobs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListAudienceGenerationJobsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/audience-generation-job") + 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_serializeOpHttpBindingsListAudienceGenerationJobsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListAudienceGenerationJobsInput(v *ListAudienceGenerationJobsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.CollaborationId != nil { + encoder.SetQuery("collaborationId").String(*v.CollaborationId) + } + + if v.ConfiguredAudienceModelArn != nil { + encoder.SetQuery("configuredAudienceModelArn").String(*v.ConfiguredAudienceModelArn) + } + + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + return nil +} + +type awsRestjson1_serializeOpListAudienceModels struct { +} + +func (*awsRestjson1_serializeOpListAudienceModels) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListAudienceModels) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListAudienceModelsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/audience-model") + 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_serializeOpHttpBindingsListAudienceModelsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListAudienceModelsInput(v *ListAudienceModelsInput, 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_serializeOpListConfiguredAudienceModels struct { +} + +func (*awsRestjson1_serializeOpListConfiguredAudienceModels) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListConfiguredAudienceModels) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListConfiguredAudienceModelsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/configured-audience-model") + 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_serializeOpHttpBindingsListConfiguredAudienceModelsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListConfiguredAudienceModelsInput(v *ListConfiguredAudienceModelsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + return nil +} + +type awsRestjson1_serializeOpListTagsForResource struct { +} + +func (*awsRestjson1_serializeOpListTagsForResource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListTagsForResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListTagsForResourceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/tags/{resourceArn}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + 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_serializeOpHttpBindingsListTagsForResourceInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsForResourceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} + } + if v.ResourceArn != nil { + if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpListTrainingDatasets struct { +} + +func (*awsRestjson1_serializeOpListTrainingDatasets) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListTrainingDatasets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListTrainingDatasetsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/training-dataset") + 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_serializeOpHttpBindingsListTrainingDatasetsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListTrainingDatasetsInput(v *ListTrainingDatasetsInput, 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_serializeOpPutConfiguredAudienceModelPolicy struct { +} + +func (*awsRestjson1_serializeOpPutConfiguredAudienceModelPolicy) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpPutConfiguredAudienceModelPolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*PutConfiguredAudienceModelPolicyInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/configured-audience-model/{configuredAudienceModelArn}/policy") + 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_serializeOpHttpBindingsPutConfiguredAudienceModelPolicyInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentPutConfiguredAudienceModelPolicyInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsPutConfiguredAudienceModelPolicyInput(v *PutConfiguredAudienceModelPolicyInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ConfiguredAudienceModelArn == nil || len(*v.ConfiguredAudienceModelArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member configuredAudienceModelArn must not be empty")} + } + if v.ConfiguredAudienceModelArn != nil { + if err := encoder.SetURI("configuredAudienceModelArn").String(*v.ConfiguredAudienceModelArn); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentPutConfiguredAudienceModelPolicyInput(v *PutConfiguredAudienceModelPolicyInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ConfiguredAudienceModelPolicy != nil { + ok := object.Key("configuredAudienceModelPolicy") + ok.String(*v.ConfiguredAudienceModelPolicy) + } + + if len(v.PolicyExistenceCondition) > 0 { + ok := object.Key("policyExistenceCondition") + ok.String(string(v.PolicyExistenceCondition)) + } + + if v.PreviousPolicyHash != nil { + ok := object.Key("previousPolicyHash") + ok.String(*v.PreviousPolicyHash) + } + + return nil +} + +type awsRestjson1_serializeOpStartAudienceExportJob struct { +} + +func (*awsRestjson1_serializeOpStartAudienceExportJob) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpStartAudienceExportJob) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*StartAudienceExportJobInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/audience-export-job") + 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_serializeOpDocumentStartAudienceExportJobInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsStartAudienceExportJobInput(v *StartAudienceExportJobInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentStartAudienceExportJobInput(v *StartAudienceExportJobInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AudienceGenerationJobArn != nil { + ok := object.Key("audienceGenerationJobArn") + ok.String(*v.AudienceGenerationJobArn) + } + + if v.AudienceSize != nil { + ok := object.Key("audienceSize") + if err := awsRestjson1_serializeDocumentAudienceSize(v.AudienceSize, ok); err != nil { + return err + } + } + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + if v.Name != nil { + ok := object.Key("name") + ok.String(*v.Name) + } + + return nil +} + +type awsRestjson1_serializeOpStartAudienceGenerationJob struct { +} + +func (*awsRestjson1_serializeOpStartAudienceGenerationJob) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpStartAudienceGenerationJob) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*StartAudienceGenerationJobInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/audience-generation-job") + 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_serializeOpDocumentStartAudienceGenerationJobInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsStartAudienceGenerationJobInput(v *StartAudienceGenerationJobInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentStartAudienceGenerationJobInput(v *StartAudienceGenerationJobInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CollaborationId != nil { + ok := object.Key("collaborationId") + ok.String(*v.CollaborationId) + } + + if v.ConfiguredAudienceModelArn != nil { + ok := object.Key("configuredAudienceModelArn") + ok.String(*v.ConfiguredAudienceModelArn) + } + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + if v.IncludeSeedInOutput { + ok := object.Key("includeSeedInOutput") + ok.Boolean(v.IncludeSeedInOutput) + } + + if v.Name != nil { + ok := object.Key("name") + ok.String(*v.Name) + } + + if v.SeedAudience != nil { + ok := object.Key("seedAudience") + if err := awsRestjson1_serializeDocumentAudienceGenerationJobDataSource(v.SeedAudience, 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_serializeOpTagResource struct { +} + +func (*awsRestjson1_serializeOpTagResource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpTagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*TagResourceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/tags/{resourceArn}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + 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_serializeOpHttpBindingsTagResourceInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentTagResourceInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} + } + if v.ResourceArn != nil { + if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentTagResourceInput(v *TagResourceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpUntagResource struct { +} + +func (*awsRestjson1_serializeOpUntagResource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUntagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UntagResourceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/tags/{resourceArn}") + 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_serializeOpHttpBindingsUntagResourceInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} + } + if v.ResourceArn != nil { + if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { + return err + } + } + + if v.TagKeys != nil { + for i := range v.TagKeys { + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) + } + } + + return nil +} + +type awsRestjson1_serializeOpUpdateConfiguredAudienceModel struct { +} + +func (*awsRestjson1_serializeOpUpdateConfiguredAudienceModel) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateConfiguredAudienceModel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateConfiguredAudienceModelInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/configured-audience-model/{configuredAudienceModelArn}") + 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_serializeOpHttpBindingsUpdateConfiguredAudienceModelInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateConfiguredAudienceModelInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateConfiguredAudienceModelInput(v *UpdateConfiguredAudienceModelInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ConfiguredAudienceModelArn == nil || len(*v.ConfiguredAudienceModelArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member configuredAudienceModelArn must not be empty")} + } + if v.ConfiguredAudienceModelArn != nil { + if err := encoder.SetURI("configuredAudienceModelArn").String(*v.ConfiguredAudienceModelArn); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateConfiguredAudienceModelInput(v *UpdateConfiguredAudienceModelInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AudienceModelArn != nil { + ok := object.Key("audienceModelArn") + ok.String(*v.AudienceModelArn) + } + + if v.AudienceSizeConfig != nil { + ok := object.Key("audienceSizeConfig") + if err := awsRestjson1_serializeDocumentAudienceSizeConfig(v.AudienceSizeConfig, ok); err != nil { + return err + } + } + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + if v.MinMatchingSeedSize != nil { + ok := object.Key("minMatchingSeedSize") + ok.Integer(*v.MinMatchingSeedSize) + } + + if v.OutputConfig != nil { + ok := object.Key("outputConfig") + if err := awsRestjson1_serializeDocumentConfiguredAudienceModelOutputConfig(v.OutputConfig, ok); err != nil { + return err + } + } + + if v.SharedAudienceMetrics != nil { + ok := object.Key("sharedAudienceMetrics") + if err := awsRestjson1_serializeDocumentMetricsList(v.SharedAudienceMetrics, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAudienceDestination(v *types.AudienceDestination, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.S3Destination != nil { + ok := object.Key("s3Destination") + if err := awsRestjson1_serializeDocumentS3ConfigMap(v.S3Destination, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAudienceGenerationJobDataSource(v *types.AudienceGenerationJobDataSource, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DataSource != nil { + ok := object.Key("dataSource") + if err := awsRestjson1_serializeDocumentS3ConfigMap(v.DataSource, ok); err != nil { + return err + } + } + + if v.RoleArn != nil { + ok := object.Key("roleArn") + ok.String(*v.RoleArn) + } + + return nil +} + +func awsRestjson1_serializeDocumentAudienceSize(v *types.AudienceSize, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.Type) > 0 { + ok := object.Key("type") + ok.String(string(v.Type)) + } + + if v.Value != nil { + ok := object.Key("value") + ok.Integer(*v.Value) + } + + return nil +} + +func awsRestjson1_serializeDocumentAudienceSizeBins(v []int32, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.Integer(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentAudienceSizeConfig(v *types.AudienceSizeConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AudienceSizeBins != nil { + ok := object.Key("audienceSizeBins") + if err := awsRestjson1_serializeDocumentAudienceSizeBins(v.AudienceSizeBins, ok); err != nil { + return err + } + } + + if len(v.AudienceSizeType) > 0 { + ok := object.Key("audienceSizeType") + ok.String(string(v.AudienceSizeType)) + } + + return nil +} + +func awsRestjson1_serializeDocumentColumnSchema(v *types.ColumnSchema, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ColumnName != nil { + ok := object.Key("columnName") + ok.String(*v.ColumnName) + } + + if v.ColumnTypes != nil { + ok := object.Key("columnTypes") + if err := awsRestjson1_serializeDocumentColumnTypeList(v.ColumnTypes, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentColumnTypeList(v []types.ColumnType, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(string(v[i])) + } + return nil +} + +func awsRestjson1_serializeDocumentConfiguredAudienceModelOutputConfig(v *types.ConfiguredAudienceModelOutputConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Destination != nil { + ok := object.Key("destination") + if err := awsRestjson1_serializeDocumentAudienceDestination(v.Destination, ok); err != nil { + return err + } + } + + if v.RoleArn != nil { + ok := object.Key("roleArn") + ok.String(*v.RoleArn) + } + + return nil +} + +func awsRestjson1_serializeDocumentDataset(v *types.Dataset, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.InputConfig != nil { + ok := object.Key("inputConfig") + if err := awsRestjson1_serializeDocumentDatasetInputConfig(v.InputConfig, ok); err != nil { + return err + } + } + + if len(v.Type) > 0 { + ok := object.Key("type") + ok.String(string(v.Type)) + } + + return nil +} + +func awsRestjson1_serializeDocumentDatasetInputConfig(v *types.DatasetInputConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DataSource != nil { + ok := object.Key("dataSource") + if err := awsRestjson1_serializeDocumentDataSource(v.DataSource, ok); err != nil { + return err + } + } + + if v.Schema != nil { + ok := object.Key("schema") + if err := awsRestjson1_serializeDocumentDatasetSchemaList(v.Schema, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentDatasetList(v []types.Dataset, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentDataset(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentDatasetSchemaList(v []types.ColumnSchema, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentColumnSchema(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentDataSource(v *types.DataSource, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.GlueDataSource != nil { + ok := object.Key("glueDataSource") + if err := awsRestjson1_serializeDocumentGlueDataSource(v.GlueDataSource, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentGlueDataSource(v *types.GlueDataSource, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CatalogId != nil { + ok := object.Key("catalogId") + ok.String(*v.CatalogId) + } + + if v.DatabaseName != nil { + ok := object.Key("databaseName") + ok.String(*v.DatabaseName) + } + + if v.TableName != nil { + ok := object.Key("tableName") + ok.String(*v.TableName) + } + + return nil +} + +func awsRestjson1_serializeDocumentMetricsList(v []types.SharedAudienceMetrics, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(string(v[i])) + } + return nil +} + +func awsRestjson1_serializeDocumentS3ConfigMap(v *types.S3ConfigMap, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.S3Uri != nil { + ok := object.Key("s3Uri") + ok.String(*v.S3Uri) + } + + return nil +} + +func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + om.String(v[key]) + } + return nil +} diff --git a/service/cleanroomsml/types/enums.go b/service/cleanroomsml/types/enums.go new file mode 100644 index 00000000000..206af12f736 --- /dev/null +++ b/service/cleanroomsml/types/enums.go @@ -0,0 +1,248 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +type AudienceExportJobStatus string + +// Enum values for AudienceExportJobStatus +const ( + AudienceExportJobStatusCreatePending AudienceExportJobStatus = "CREATE_PENDING" + AudienceExportJobStatusCreateInProgress AudienceExportJobStatus = "CREATE_IN_PROGRESS" + AudienceExportJobStatusCreateFailed AudienceExportJobStatus = "CREATE_FAILED" + AudienceExportJobStatusActive AudienceExportJobStatus = "ACTIVE" +) + +// Values returns all known values for AudienceExportJobStatus. 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 (AudienceExportJobStatus) Values() []AudienceExportJobStatus { + return []AudienceExportJobStatus{ + "CREATE_PENDING", + "CREATE_IN_PROGRESS", + "CREATE_FAILED", + "ACTIVE", + } +} + +type AudienceGenerationJobStatus string + +// Enum values for AudienceGenerationJobStatus +const ( + AudienceGenerationJobStatusCreatePending AudienceGenerationJobStatus = "CREATE_PENDING" + AudienceGenerationJobStatusCreateInProgress AudienceGenerationJobStatus = "CREATE_IN_PROGRESS" + AudienceGenerationJobStatusCreateFailed AudienceGenerationJobStatus = "CREATE_FAILED" + AudienceGenerationJobStatusActive AudienceGenerationJobStatus = "ACTIVE" + AudienceGenerationJobStatusDeletePending AudienceGenerationJobStatus = "DELETE_PENDING" + AudienceGenerationJobStatusDeleteInProgress AudienceGenerationJobStatus = "DELETE_IN_PROGRESS" + AudienceGenerationJobStatusDeleteFailed AudienceGenerationJobStatus = "DELETE_FAILED" +) + +// Values returns all known values for AudienceGenerationJobStatus. 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 (AudienceGenerationJobStatus) Values() []AudienceGenerationJobStatus { + return []AudienceGenerationJobStatus{ + "CREATE_PENDING", + "CREATE_IN_PROGRESS", + "CREATE_FAILED", + "ACTIVE", + "DELETE_PENDING", + "DELETE_IN_PROGRESS", + "DELETE_FAILED", + } +} + +type AudienceModelMetricType string + +// Enum values for AudienceModelMetricType +const ( + AudienceModelMetricTypeNormalizedDiscountedCumulativeGain AudienceModelMetricType = "NORMALIZED_DISCOUNTED_CUMULATIVE_GAIN" + AudienceModelMetricTypeMeanReciprocalRank AudienceModelMetricType = "MEAN_RECIPROCAL_RANK" + AudienceModelMetricTypePrecision AudienceModelMetricType = "PRECISION" + AudienceModelMetricTypeRecall AudienceModelMetricType = "RECALL" +) + +// Values returns all known values for AudienceModelMetricType. 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 (AudienceModelMetricType) Values() []AudienceModelMetricType { + return []AudienceModelMetricType{ + "NORMALIZED_DISCOUNTED_CUMULATIVE_GAIN", + "MEAN_RECIPROCAL_RANK", + "PRECISION", + "RECALL", + } +} + +type AudienceModelStatus string + +// Enum values for AudienceModelStatus +const ( + AudienceModelStatusCreatePending AudienceModelStatus = "CREATE_PENDING" + AudienceModelStatusCreateInProgress AudienceModelStatus = "CREATE_IN_PROGRESS" + AudienceModelStatusCreateFailed AudienceModelStatus = "CREATE_FAILED" + AudienceModelStatusActive AudienceModelStatus = "ACTIVE" + AudienceModelStatusDeletePending AudienceModelStatus = "DELETE_PENDING" + AudienceModelStatusDeleteInProgress AudienceModelStatus = "DELETE_IN_PROGRESS" + AudienceModelStatusDeleteFailed AudienceModelStatus = "DELETE_FAILED" +) + +// Values returns all known values for AudienceModelStatus. 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 (AudienceModelStatus) Values() []AudienceModelStatus { + return []AudienceModelStatus{ + "CREATE_PENDING", + "CREATE_IN_PROGRESS", + "CREATE_FAILED", + "ACTIVE", + "DELETE_PENDING", + "DELETE_IN_PROGRESS", + "DELETE_FAILED", + } +} + +type AudienceSizeType string + +// Enum values for AudienceSizeType +const ( + AudienceSizeTypeAbsolute AudienceSizeType = "ABSOLUTE" + AudienceSizeTypePercentage AudienceSizeType = "PERCENTAGE" +) + +// Values returns all known values for AudienceSizeType. 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 (AudienceSizeType) Values() []AudienceSizeType { + return []AudienceSizeType{ + "ABSOLUTE", + "PERCENTAGE", + } +} + +type ColumnType string + +// Enum values for ColumnType +const ( + ColumnTypeUserId ColumnType = "USER_ID" + ColumnTypeItemId ColumnType = "ITEM_ID" + ColumnTypeTimestamp ColumnType = "TIMESTAMP" + ColumnTypeCategoricalFeature ColumnType = "CATEGORICAL_FEATURE" + ColumnTypeNumericalFeature ColumnType = "NUMERICAL_FEATURE" +) + +// Values returns all known values for ColumnType. 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 (ColumnType) Values() []ColumnType { + return []ColumnType{ + "USER_ID", + "ITEM_ID", + "TIMESTAMP", + "CATEGORICAL_FEATURE", + "NUMERICAL_FEATURE", + } +} + +type ConfiguredAudienceModelStatus string + +// Enum values for ConfiguredAudienceModelStatus +const ( + ConfiguredAudienceModelStatusActive ConfiguredAudienceModelStatus = "ACTIVE" +) + +// Values returns all known values for ConfiguredAudienceModelStatus. 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 (ConfiguredAudienceModelStatus) Values() []ConfiguredAudienceModelStatus { + return []ConfiguredAudienceModelStatus{ + "ACTIVE", + } +} + +type DatasetType string + +// Enum values for DatasetType +const ( + DatasetTypeInteractions DatasetType = "INTERACTIONS" +) + +// Values returns all known values for DatasetType. 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 (DatasetType) Values() []DatasetType { + return []DatasetType{ + "INTERACTIONS", + } +} + +type PolicyExistenceCondition string + +// Enum values for PolicyExistenceCondition +const ( + PolicyExistenceConditionPolicyMustExist PolicyExistenceCondition = "POLICY_MUST_EXIST" + PolicyExistenceConditionPolicyMustNotExist PolicyExistenceCondition = "POLICY_MUST_NOT_EXIST" +) + +// Values returns all known values for PolicyExistenceCondition. 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 (PolicyExistenceCondition) Values() []PolicyExistenceCondition { + return []PolicyExistenceCondition{ + "POLICY_MUST_EXIST", + "POLICY_MUST_NOT_EXIST", + } +} + +type SharedAudienceMetrics string + +// Enum values for SharedAudienceMetrics +const ( + SharedAudienceMetricsAll SharedAudienceMetrics = "ALL" + SharedAudienceMetricsNone SharedAudienceMetrics = "NONE" +) + +// Values returns all known values for SharedAudienceMetrics. 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 (SharedAudienceMetrics) Values() []SharedAudienceMetrics { + return []SharedAudienceMetrics{ + "ALL", + "NONE", + } +} + +type TagOnCreatePolicy string + +// Enum values for TagOnCreatePolicy +const ( + TagOnCreatePolicyFromParentResource TagOnCreatePolicy = "FROM_PARENT_RESOURCE" + TagOnCreatePolicyNone TagOnCreatePolicy = "NONE" +) + +// Values returns all known values for TagOnCreatePolicy. 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 (TagOnCreatePolicy) Values() []TagOnCreatePolicy { + return []TagOnCreatePolicy{ + "FROM_PARENT_RESOURCE", + "NONE", + } +} + +type TrainingDatasetStatus string + +// Enum values for TrainingDatasetStatus +const ( + TrainingDatasetStatusActive TrainingDatasetStatus = "ACTIVE" +) + +// Values returns all known values for TrainingDatasetStatus. 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 (TrainingDatasetStatus) Values() []TrainingDatasetStatus { + return []TrainingDatasetStatus{ + "ACTIVE", + } +} diff --git a/service/cleanroomsml/types/errors.go b/service/cleanroomsml/types/errors.go new file mode 100644 index 00000000000..e806f3b822b --- /dev/null +++ b/service/cleanroomsml/types/errors.go @@ -0,0 +1,138 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +import ( + "fmt" + smithy "github.com/aws/smithy-go" +) + +// You do not have sufficient access to perform this action. +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 } + +// A resource with that name already exists in this region. +type ConflictException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *ConflictException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ConflictException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ConflictException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} +func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The resource you are requesting does not exist. +type ResourceNotFoundException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ResourceNotFoundException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ResourceNotFoundException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} +func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// You have exceeded your service quota. +type ServiceQuotaExceededException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ServiceQuotaExceededException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} +func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The request parameters for this request are incorrect. +type ValidationException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *ValidationException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ValidationException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ValidationException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} +func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/cleanroomsml/types/types.go b/service/cleanroomsml/types/types.go new file mode 100644 index 00000000000..aa93ec3d755 --- /dev/null +++ b/service/cleanroomsml/types/types.go @@ -0,0 +1,464 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +import ( + smithydocument "github.com/aws/smithy-go/document" + "time" +) + +// Defines the Amazon S3 bucket where the configured audience is stored. +type AudienceDestination struct { + + // The Amazon S3 bucket and path for the configured audience. + // + // This member is required. + S3Destination *S3ConfigMap + + noSmithyDocumentSerde +} + +// Provides information about the audience export job. +type AudienceExportJobSummary struct { + + // The Amazon Resource Name (ARN) of the audience generation job that was exported. + // + // This member is required. + AudienceGenerationJobArn *string + + // The size of the generated audience. Must match one of the sizes in the + // configured audience model. + // + // This member is required. + AudienceSize *AudienceSize + + // The time at which the audience export job was created. + // + // This member is required. + CreateTime *time.Time + + // The name of the audience export job. + // + // This member is required. + Name *string + + // The status of the audience export job. + // + // This member is required. + Status AudienceExportJobStatus + + // The most recent time at which the audience export job was updated. + // + // This member is required. + UpdateTime *time.Time + + // The description of the audience export job. + Description *string + + // The Amazon S3 bucket where the audience export is stored. + OutputLocation *string + + // Details about the status of a resource. + StatusDetails *StatusDetails + + noSmithyDocumentSerde +} + +// Defines the Amazon S3 bucket where the training data for the configured +// audience is stored. +type AudienceGenerationJobDataSource struct { + + // The Amazon S3 bucket where the training data for the configured audience is + // stored. + // + // This member is required. + DataSource *S3ConfigMap + + // The ARN of the IAM role that can read the Amazon S3 bucket where the training + // data is stored. + // + // This member is required. + RoleArn *string + + noSmithyDocumentSerde +} + +// Provides information about the configured audience generation job. +type AudienceGenerationJobSummary struct { + + // The Amazon Resource Name (ARN) of the audience generation job. + // + // This member is required. + AudienceGenerationJobArn *string + + // The Amazon Resource Name (ARN) of the configured audience model that was used + // for this audience generation job. + // + // This member is required. + ConfiguredAudienceModelArn *string + + // The time at which the audience generation job was created. + // + // This member is required. + CreateTime *time.Time + + // The name of the audience generation job. + // + // This member is required. + Name *string + + // The status of the audience generation job. + // + // This member is required. + Status AudienceGenerationJobStatus + + // The most recent time at which the audience generation job was updated. + // + // This member is required. + UpdateTime *time.Time + + // The identifier of the collaboration that contains this audience generation job. + CollaborationId *string + + // The description of the audience generation job. + Description *string + + // The AWS Account that submitted the job. + StartedBy *string + + noSmithyDocumentSerde +} + +// The audience model metrics. +type AudienceModelMetric struct { + + // The number of users that were used to generate these model metrics. + // + // This member is required. + ForTopKItemPredictions *int32 + + // The audience model metric. + // + // This member is required. + Type AudienceModelMetricType + + // The value of the audience model metric + // + // This member is required. + Value *float64 + + noSmithyDocumentSerde +} + +// Information about the audience model. +type AudienceModelSummary struct { + + // The Amazon Resource Name (ARN) of the audience model. + // + // This member is required. + AudienceModelArn *string + + // The time at which the audience model was created. + // + // This member is required. + CreateTime *time.Time + + // The name of the audience model. + // + // This member is required. + Name *string + + // The status of the audience model. + // + // This member is required. + Status AudienceModelStatus + + // The Amazon Resource Name (ARN) of the training dataset that was used for the + // audience model. + // + // This member is required. + TrainingDatasetArn *string + + // The most recent time at which the audience model was updated. + // + // This member is required. + UpdateTime *time.Time + + // The description of the audience model. + Description *string + + noSmithyDocumentSerde +} + +// Metrics that describe the quality of the generated audience. +type AudienceQualityMetrics struct { + + // The relevance scores of the generated audience. + // + // This member is required. + RelevanceMetrics []RelevanceMetric + + noSmithyDocumentSerde +} + +// The size of the generated audience. Must match one of the sizes in the +// configured audience model. +type AudienceSize struct { + + // Whether the audience size is defined in absolute terms or as a percentage. You + // can use the ABSOLUTE AudienceSize to configure out audience sizes using the + // count of identifiers in the output. You can use the Percentage AudienceSize to + // configure sizes in the range 1-100 percent. + // + // This member is required. + Type AudienceSizeType + + // Specify an audience size value. + // + // This member is required. + Value *int32 + + noSmithyDocumentSerde +} + +// Configure the list of audience output sizes that can be created. A request to +// StartAudienceGenerationJob that uses this configured audience model must have an +// audienceSize selected from this list. You can use the ABSOLUTE AudienceSize to +// configure out audience sizes using the count of identifiers in the output. You +// can use the Percentage AudienceSize to configure sizes in the range 1-100 +// percent. +type AudienceSizeConfig struct { + + // An array of the different audience output sizes. + // + // This member is required. + AudienceSizeBins []int32 + + // Whether the audience output sizes are defined as an absolute number or a + // percentage. + // + // This member is required. + AudienceSizeType AudienceSizeType + + noSmithyDocumentSerde +} + +// Metadata for a column. +type ColumnSchema struct { + + // The name of a column. + // + // This member is required. + ColumnName *string + + // The data type of column. + // + // This member is required. + ColumnTypes []ColumnType + + noSmithyDocumentSerde +} + +// Configuration information necessary for the configure audience model output. +type ConfiguredAudienceModelOutputConfig struct { + + // Defines the Amazon S3 bucket where the configured audience is stored. + // + // This member is required. + Destination *AudienceDestination + + // The ARN of the IAM role that can write the Amazon S3 bucket. + // + // This member is required. + RoleArn *string + + noSmithyDocumentSerde +} + +// Information about the configured audience model. +type ConfiguredAudienceModelSummary struct { + + // The Amazon Resource Name (ARN) of the audience model that was used to create + // the configured audience model. + // + // This member is required. + AudienceModelArn *string + + // The Amazon Resource Name (ARN) of the configured audience model that you are + // interested in. + // + // This member is required. + ConfiguredAudienceModelArn *string + + // The time at which the configured audience model was created. + // + // This member is required. + CreateTime *time.Time + + // The name of the configured audience model. + // + // This member is required. + Name *string + + // The output configuration of the configured audience model. + // + // This member is required. + OutputConfig *ConfiguredAudienceModelOutputConfig + + // The status of the configured audience model. + // + // This member is required. + Status ConfiguredAudienceModelStatus + + // The most recent time at which the configured audience model was updated. + // + // This member is required. + UpdateTime *time.Time + + // The description of the configured audience model. + Description *string + + noSmithyDocumentSerde +} + +// Defines where the training dataset is located, what type of data it contains, +// and how to access the data. +type Dataset struct { + + // A DatasetInputConfig object that defines the data source and schema mapping. + // + // This member is required. + InputConfig *DatasetInputConfig + + // What type of information is found in the dataset. + // + // This member is required. + Type DatasetType + + noSmithyDocumentSerde +} + +// Defines the Glue data source and schema mapping information. +type DatasetInputConfig struct { + + // A DataSource object that specifies the Glue data source for the training data. + // + // This member is required. + DataSource *DataSource + + // The schema information for the training data. + // + // This member is required. + Schema []ColumnSchema + + noSmithyDocumentSerde +} + +// Defines information about the Glue data source that contains the training data. +type DataSource struct { + + // A GlueDataSource object that defines the catalog ID, database name, and table + // name for the training data. + // + // This member is required. + GlueDataSource *GlueDataSource + + noSmithyDocumentSerde +} + +// Defines the Glue data source that contains the training data. +type GlueDataSource struct { + + // The Glue database that contains the training data. + // + // This member is required. + DatabaseName *string + + // The Glue table that contains the training data. + // + // This member is required. + TableName *string + + // The Glue catalog that contains the training data. + CatalogId *string + + noSmithyDocumentSerde +} + +// The relevance score of a generated audience. +type RelevanceMetric struct { + + // The size of the generated audience. Must match one of the sizes in the + // configured audience model. + // + // This member is required. + AudienceSize *AudienceSize + + // The relevance score of the generated audience. + Score *float64 + + noSmithyDocumentSerde +} + +// Provides information about an Amazon S3 bucket and path. +type S3ConfigMap struct { + + // The Amazon S3 location URI. + // + // This member is required. + S3Uri *string + + noSmithyDocumentSerde +} + +// Details about the status of a resource. +type StatusDetails struct { + + // The error message that was returned. The message is intended for human + // consumption and can change at any time. Use the statusCode for programmatic + // error handling. + Message *string + + // The status code that was returned. The status code is intended for programmatic + // error handling. Clean Rooms ML will not change the status code for existing + // error conditions. + StatusCode *string + + noSmithyDocumentSerde +} + +// Provides information about the training dataset. +type TrainingDatasetSummary struct { + + // The time at which the training dataset was created. + // + // This member is required. + CreateTime *time.Time + + // The name of the training dataset. + // + // This member is required. + Name *string + + // The status of the training dataset. + // + // This member is required. + Status TrainingDatasetStatus + + // The Amazon Resource Name (ARN) of the training dataset. + // + // This member is required. + TrainingDatasetArn *string + + // The most recent time at which the training dataset was updated. + // + // This member is required. + UpdateTime *time.Time + + // The description of the training dataset. + Description *string + + noSmithyDocumentSerde +} + +type noSmithyDocumentSerde = smithydocument.NoSerde diff --git a/service/cleanroomsml/validators.go b/service/cleanroomsml/validators.go new file mode 100644 index 00000000000..a8ada9e59b3 --- /dev/null +++ b/service/cleanroomsml/validators.go @@ -0,0 +1,1112 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package cleanroomsml + +import ( + "context" + "fmt" + "github.com/aws/aws-sdk-go-v2/service/cleanroomsml/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/middleware" +) + +type validateOpCreateAudienceModel struct { +} + +func (*validateOpCreateAudienceModel) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateAudienceModel) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateAudienceModelInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateAudienceModelInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateConfiguredAudienceModel struct { +} + +func (*validateOpCreateConfiguredAudienceModel) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateConfiguredAudienceModel) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateConfiguredAudienceModelInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateConfiguredAudienceModelInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateTrainingDataset struct { +} + +func (*validateOpCreateTrainingDataset) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateTrainingDataset) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateTrainingDatasetInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateTrainingDatasetInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteAudienceGenerationJob struct { +} + +func (*validateOpDeleteAudienceGenerationJob) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteAudienceGenerationJob) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteAudienceGenerationJobInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteAudienceGenerationJobInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteAudienceModel struct { +} + +func (*validateOpDeleteAudienceModel) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteAudienceModel) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteAudienceModelInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteAudienceModelInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteConfiguredAudienceModel struct { +} + +func (*validateOpDeleteConfiguredAudienceModel) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteConfiguredAudienceModel) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteConfiguredAudienceModelInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteConfiguredAudienceModelInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteConfiguredAudienceModelPolicy struct { +} + +func (*validateOpDeleteConfiguredAudienceModelPolicy) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteConfiguredAudienceModelPolicy) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteConfiguredAudienceModelPolicyInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteConfiguredAudienceModelPolicyInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteTrainingDataset struct { +} + +func (*validateOpDeleteTrainingDataset) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteTrainingDataset) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteTrainingDatasetInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteTrainingDatasetInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetAudienceGenerationJob struct { +} + +func (*validateOpGetAudienceGenerationJob) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetAudienceGenerationJob) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetAudienceGenerationJobInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetAudienceGenerationJobInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetAudienceModel struct { +} + +func (*validateOpGetAudienceModel) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetAudienceModel) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetAudienceModelInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetAudienceModelInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetConfiguredAudienceModel struct { +} + +func (*validateOpGetConfiguredAudienceModel) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetConfiguredAudienceModel) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetConfiguredAudienceModelInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetConfiguredAudienceModelInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetConfiguredAudienceModelPolicy struct { +} + +func (*validateOpGetConfiguredAudienceModelPolicy) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetConfiguredAudienceModelPolicy) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetConfiguredAudienceModelPolicyInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetConfiguredAudienceModelPolicyInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetTrainingDataset struct { +} + +func (*validateOpGetTrainingDataset) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetTrainingDataset) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetTrainingDatasetInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetTrainingDatasetInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpListTagsForResource struct { +} + +func (*validateOpListTagsForResource) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListTagsForResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListTagsForResourceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListTagsForResourceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpPutConfiguredAudienceModelPolicy struct { +} + +func (*validateOpPutConfiguredAudienceModelPolicy) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpPutConfiguredAudienceModelPolicy) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*PutConfiguredAudienceModelPolicyInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpPutConfiguredAudienceModelPolicyInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpStartAudienceExportJob struct { +} + +func (*validateOpStartAudienceExportJob) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpStartAudienceExportJob) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*StartAudienceExportJobInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpStartAudienceExportJobInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpStartAudienceGenerationJob struct { +} + +func (*validateOpStartAudienceGenerationJob) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpStartAudienceGenerationJob) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*StartAudienceGenerationJobInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpStartAudienceGenerationJobInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpTagResource struct { +} + +func (*validateOpTagResource) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpTagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*TagResourceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpTagResourceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUntagResource struct { +} + +func (*validateOpUntagResource) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UntagResourceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUntagResourceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateConfiguredAudienceModel struct { +} + +func (*validateOpUpdateConfiguredAudienceModel) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateConfiguredAudienceModel) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateConfiguredAudienceModelInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateConfiguredAudienceModelInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +func addOpCreateAudienceModelValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateAudienceModel{}, middleware.After) +} + +func addOpCreateConfiguredAudienceModelValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateConfiguredAudienceModel{}, middleware.After) +} + +func addOpCreateTrainingDatasetValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateTrainingDataset{}, middleware.After) +} + +func addOpDeleteAudienceGenerationJobValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteAudienceGenerationJob{}, middleware.After) +} + +func addOpDeleteAudienceModelValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteAudienceModel{}, middleware.After) +} + +func addOpDeleteConfiguredAudienceModelValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteConfiguredAudienceModel{}, middleware.After) +} + +func addOpDeleteConfiguredAudienceModelPolicyValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteConfiguredAudienceModelPolicy{}, middleware.After) +} + +func addOpDeleteTrainingDatasetValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteTrainingDataset{}, middleware.After) +} + +func addOpGetAudienceGenerationJobValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetAudienceGenerationJob{}, middleware.After) +} + +func addOpGetAudienceModelValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetAudienceModel{}, middleware.After) +} + +func addOpGetConfiguredAudienceModelValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetConfiguredAudienceModel{}, middleware.After) +} + +func addOpGetConfiguredAudienceModelPolicyValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetConfiguredAudienceModelPolicy{}, middleware.After) +} + +func addOpGetTrainingDatasetValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetTrainingDataset{}, middleware.After) +} + +func addOpListTagsForResourceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListTagsForResource{}, middleware.After) +} + +func addOpPutConfiguredAudienceModelPolicyValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpPutConfiguredAudienceModelPolicy{}, middleware.After) +} + +func addOpStartAudienceExportJobValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpStartAudienceExportJob{}, middleware.After) +} + +func addOpStartAudienceGenerationJobValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpStartAudienceGenerationJob{}, middleware.After) +} + +func addOpTagResourceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpTagResource{}, middleware.After) +} + +func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After) +} + +func addOpUpdateConfiguredAudienceModelValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateConfiguredAudienceModel{}, middleware.After) +} + +func validateAudienceDestination(v *types.AudienceDestination) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AudienceDestination"} + if v.S3Destination == nil { + invalidParams.Add(smithy.NewErrParamRequired("S3Destination")) + } else if v.S3Destination != nil { + if err := validateS3ConfigMap(v.S3Destination); err != nil { + invalidParams.AddNested("S3Destination", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateAudienceGenerationJobDataSource(v *types.AudienceGenerationJobDataSource) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AudienceGenerationJobDataSource"} + if v.DataSource == nil { + invalidParams.Add(smithy.NewErrParamRequired("DataSource")) + } else if v.DataSource != nil { + if err := validateS3ConfigMap(v.DataSource); err != nil { + invalidParams.AddNested("DataSource", err.(smithy.InvalidParamsError)) + } + } + if v.RoleArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("RoleArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateAudienceSize(v *types.AudienceSize) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AudienceSize"} + if len(v.Type) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Type")) + } + if v.Value == nil { + invalidParams.Add(smithy.NewErrParamRequired("Value")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateAudienceSizeConfig(v *types.AudienceSizeConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AudienceSizeConfig"} + if len(v.AudienceSizeType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("AudienceSizeType")) + } + if v.AudienceSizeBins == nil { + invalidParams.Add(smithy.NewErrParamRequired("AudienceSizeBins")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateColumnSchema(v *types.ColumnSchema) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ColumnSchema"} + if v.ColumnName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ColumnName")) + } + if v.ColumnTypes == nil { + invalidParams.Add(smithy.NewErrParamRequired("ColumnTypes")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateConfiguredAudienceModelOutputConfig(v *types.ConfiguredAudienceModelOutputConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ConfiguredAudienceModelOutputConfig"} + if v.Destination == nil { + invalidParams.Add(smithy.NewErrParamRequired("Destination")) + } else if v.Destination != nil { + if err := validateAudienceDestination(v.Destination); err != nil { + invalidParams.AddNested("Destination", err.(smithy.InvalidParamsError)) + } + } + if v.RoleArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("RoleArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDataset(v *types.Dataset) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "Dataset"} + if len(v.Type) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Type")) + } + if v.InputConfig == nil { + invalidParams.Add(smithy.NewErrParamRequired("InputConfig")) + } else if v.InputConfig != nil { + if err := validateDatasetInputConfig(v.InputConfig); err != nil { + invalidParams.AddNested("InputConfig", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDatasetInputConfig(v *types.DatasetInputConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DatasetInputConfig"} + if v.Schema == nil { + invalidParams.Add(smithy.NewErrParamRequired("Schema")) + } else if v.Schema != nil { + if err := validateDatasetSchemaList(v.Schema); err != nil { + invalidParams.AddNested("Schema", err.(smithy.InvalidParamsError)) + } + } + if v.DataSource == nil { + invalidParams.Add(smithy.NewErrParamRequired("DataSource")) + } else if v.DataSource != nil { + if err := validateDataSource(v.DataSource); err != nil { + invalidParams.AddNested("DataSource", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDatasetList(v []types.Dataset) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DatasetList"} + for i := range v { + if err := validateDataset(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDatasetSchemaList(v []types.ColumnSchema) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DatasetSchemaList"} + for i := range v { + if err := validateColumnSchema(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDataSource(v *types.DataSource) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DataSource"} + if v.GlueDataSource == nil { + invalidParams.Add(smithy.NewErrParamRequired("GlueDataSource")) + } else if v.GlueDataSource != nil { + if err := validateGlueDataSource(v.GlueDataSource); err != nil { + invalidParams.AddNested("GlueDataSource", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateGlueDataSource(v *types.GlueDataSource) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GlueDataSource"} + if v.TableName == nil { + invalidParams.Add(smithy.NewErrParamRequired("TableName")) + } + if v.DatabaseName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DatabaseName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateS3ConfigMap(v *types.S3ConfigMap) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "S3ConfigMap"} + if v.S3Uri == nil { + invalidParams.Add(smithy.NewErrParamRequired("S3Uri")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateAudienceModelInput(v *CreateAudienceModelInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateAudienceModelInput"} + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.TrainingDatasetArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("TrainingDatasetArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateConfiguredAudienceModelInput(v *CreateConfiguredAudienceModelInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateConfiguredAudienceModelInput"} + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.AudienceModelArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("AudienceModelArn")) + } + if v.OutputConfig == nil { + invalidParams.Add(smithy.NewErrParamRequired("OutputConfig")) + } else if v.OutputConfig != nil { + if err := validateConfiguredAudienceModelOutputConfig(v.OutputConfig); err != nil { + invalidParams.AddNested("OutputConfig", err.(smithy.InvalidParamsError)) + } + } + if v.SharedAudienceMetrics == nil { + invalidParams.Add(smithy.NewErrParamRequired("SharedAudienceMetrics")) + } + if v.AudienceSizeConfig != nil { + if err := validateAudienceSizeConfig(v.AudienceSizeConfig); err != nil { + invalidParams.AddNested("AudienceSizeConfig", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateTrainingDatasetInput(v *CreateTrainingDatasetInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateTrainingDatasetInput"} + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.RoleArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("RoleArn")) + } + if v.TrainingData == nil { + invalidParams.Add(smithy.NewErrParamRequired("TrainingData")) + } else if v.TrainingData != nil { + if err := validateDatasetList(v.TrainingData); err != nil { + invalidParams.AddNested("TrainingData", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteAudienceGenerationJobInput(v *DeleteAudienceGenerationJobInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteAudienceGenerationJobInput"} + if v.AudienceGenerationJobArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("AudienceGenerationJobArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteAudienceModelInput(v *DeleteAudienceModelInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteAudienceModelInput"} + if v.AudienceModelArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("AudienceModelArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteConfiguredAudienceModelInput(v *DeleteConfiguredAudienceModelInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteConfiguredAudienceModelInput"} + if v.ConfiguredAudienceModelArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ConfiguredAudienceModelArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteConfiguredAudienceModelPolicyInput(v *DeleteConfiguredAudienceModelPolicyInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteConfiguredAudienceModelPolicyInput"} + if v.ConfiguredAudienceModelArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ConfiguredAudienceModelArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteTrainingDatasetInput(v *DeleteTrainingDatasetInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteTrainingDatasetInput"} + if v.TrainingDatasetArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("TrainingDatasetArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetAudienceGenerationJobInput(v *GetAudienceGenerationJobInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetAudienceGenerationJobInput"} + if v.AudienceGenerationJobArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("AudienceGenerationJobArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetAudienceModelInput(v *GetAudienceModelInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetAudienceModelInput"} + if v.AudienceModelArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("AudienceModelArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetConfiguredAudienceModelInput(v *GetConfiguredAudienceModelInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetConfiguredAudienceModelInput"} + if v.ConfiguredAudienceModelArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ConfiguredAudienceModelArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetConfiguredAudienceModelPolicyInput(v *GetConfiguredAudienceModelPolicyInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetConfiguredAudienceModelPolicyInput"} + if v.ConfiguredAudienceModelArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ConfiguredAudienceModelArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetTrainingDatasetInput(v *GetTrainingDatasetInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetTrainingDatasetInput"} + if v.TrainingDatasetArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("TrainingDatasetArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListTagsForResourceInput(v *ListTagsForResourceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListTagsForResourceInput"} + if v.ResourceArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpPutConfiguredAudienceModelPolicyInput(v *PutConfiguredAudienceModelPolicyInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "PutConfiguredAudienceModelPolicyInput"} + if v.ConfiguredAudienceModelArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ConfiguredAudienceModelArn")) + } + if v.ConfiguredAudienceModelPolicy == nil { + invalidParams.Add(smithy.NewErrParamRequired("ConfiguredAudienceModelPolicy")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpStartAudienceExportJobInput(v *StartAudienceExportJobInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "StartAudienceExportJobInput"} + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.AudienceGenerationJobArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("AudienceGenerationJobArn")) + } + if v.AudienceSize == nil { + invalidParams.Add(smithy.NewErrParamRequired("AudienceSize")) + } else if v.AudienceSize != nil { + if err := validateAudienceSize(v.AudienceSize); err != nil { + invalidParams.AddNested("AudienceSize", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpStartAudienceGenerationJobInput(v *StartAudienceGenerationJobInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "StartAudienceGenerationJobInput"} + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.ConfiguredAudienceModelArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ConfiguredAudienceModelArn")) + } + if v.SeedAudience == nil { + invalidParams.Add(smithy.NewErrParamRequired("SeedAudience")) + } else if v.SeedAudience != nil { + if err := validateAudienceGenerationJobDataSource(v.SeedAudience); err != nil { + invalidParams.AddNested("SeedAudience", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpTagResourceInput(v *TagResourceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TagResourceInput"} + if v.ResourceArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) + } + if v.Tags == nil { + invalidParams.Add(smithy.NewErrParamRequired("Tags")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUntagResourceInput(v *UntagResourceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UntagResourceInput"} + if v.ResourceArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) + } + if v.TagKeys == nil { + invalidParams.Add(smithy.NewErrParamRequired("TagKeys")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateConfiguredAudienceModelInput(v *UpdateConfiguredAudienceModelInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateConfiguredAudienceModelInput"} + if v.ConfiguredAudienceModelArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ConfiguredAudienceModelArn")) + } + if v.OutputConfig != nil { + if err := validateConfiguredAudienceModelOutputConfig(v.OutputConfig); err != nil { + invalidParams.AddNested("OutputConfig", err.(smithy.InvalidParamsError)) + } + } + if v.AudienceSizeConfig != nil { + if err := validateAudienceSizeConfig(v.AudienceSizeConfig); err != nil { + invalidParams.AddNested("AudienceSizeConfig", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} diff --git a/service/cloud9/go.mod b/service/cloud9/go.mod index e844aa3c2a6..99fb176c32a 100644 --- a/service/cloud9/go.mod +++ b/service/cloud9/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloud9/go.sum b/service/cloud9/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/cloud9/go.sum +++ b/service/cloud9/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudcontrol/go.mod b/service/cloudcontrol/go.mod index 642ab1286c8..6383963482b 100644 --- a/service/cloudcontrol/go.mod +++ b/service/cloudcontrol/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/cloudcontrol/go.sum b/service/cloudcontrol/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/cloudcontrol/go.sum +++ b/service/cloudcontrol/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/clouddirectory/go.mod b/service/clouddirectory/go.mod index fc366f46b65..c75e6f06bdc 100644 --- a/service/clouddirectory/go.mod +++ b/service/clouddirectory/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/clouddirectory/go.sum b/service/clouddirectory/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/clouddirectory/go.sum +++ b/service/clouddirectory/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudformation/go.mod b/service/cloudformation/go.mod index afbde36607f..4ac7d450950 100644 --- a/service/cloudformation/go.mod +++ b/service/cloudformation/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/cloudformation/go.sum b/service/cloudformation/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/cloudformation/go.sum +++ b/service/cloudformation/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/cloudfront/go.mod b/service/cloudfront/go.mod index 9e1bb267c43..3ed50505975 100644 --- a/service/cloudfront/go.mod +++ b/service/cloudfront/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/cloudfront/go.sum b/service/cloudfront/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/cloudfront/go.sum +++ b/service/cloudfront/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/cloudfrontkeyvaluestore/go.mod b/service/cloudfrontkeyvaluestore/go.mod index 4a7f221841d..f7104e3533d 100644 --- a/service/cloudfrontkeyvaluestore/go.mod +++ b/service/cloudfrontkeyvaluestore/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudfrontkeyvaluestore/go.sum b/service/cloudfrontkeyvaluestore/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/cloudfrontkeyvaluestore/go.sum +++ b/service/cloudfrontkeyvaluestore/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudhsm/go.mod b/service/cloudhsm/go.mod index 5e6234099d8..93c6bfc9098 100644 --- a/service/cloudhsm/go.mod +++ b/service/cloudhsm/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudhsm/go.sum b/service/cloudhsm/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/cloudhsm/go.sum +++ b/service/cloudhsm/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudhsmv2/go.mod b/service/cloudhsmv2/go.mod index efd4b6f6d7f..64e29f1665b 100644 --- a/service/cloudhsmv2/go.mod +++ b/service/cloudhsmv2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudhsmv2/go.sum b/service/cloudhsmv2/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/cloudhsmv2/go.sum +++ b/service/cloudhsmv2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudsearch/go.mod b/service/cloudsearch/go.mod index 03bddf3942d..f5a1cbf8079 100644 --- a/service/cloudsearch/go.mod +++ b/service/cloudsearch/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudsearch/go.sum b/service/cloudsearch/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/cloudsearch/go.sum +++ b/service/cloudsearch/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudsearchdomain/go.mod b/service/cloudsearchdomain/go.mod index d64b32baec3..39b6e729b67 100644 --- a/service/cloudsearchdomain/go.mod +++ b/service/cloudsearchdomain/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudsearchdomain/go.sum b/service/cloudsearchdomain/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/cloudsearchdomain/go.sum +++ b/service/cloudsearchdomain/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudtrail/go.mod b/service/cloudtrail/go.mod index 4c5fda41794..600879ac1b5 100644 --- a/service/cloudtrail/go.mod +++ b/service/cloudtrail/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudtrail/go.sum b/service/cloudtrail/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/cloudtrail/go.sum +++ b/service/cloudtrail/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudtraildata/go.mod b/service/cloudtraildata/go.mod index 0871d3faea6..f9f8c61b321 100644 --- a/service/cloudtraildata/go.mod +++ b/service/cloudtraildata/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudtraildata/go.sum b/service/cloudtraildata/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/cloudtraildata/go.sum +++ b/service/cloudtraildata/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudwatch/go.mod b/service/cloudwatch/go.mod index f63ccc63077..16d88ec72d0 100644 --- a/service/cloudwatch/go.mod +++ b/service/cloudwatch/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/cloudwatch/go.sum b/service/cloudwatch/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/cloudwatch/go.sum +++ b/service/cloudwatch/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/cloudwatchevents/go.mod b/service/cloudwatchevents/go.mod index 315d884dfc9..cb7f40bd736 100644 --- a/service/cloudwatchevents/go.mod +++ b/service/cloudwatchevents/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudwatchevents/go.sum b/service/cloudwatchevents/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/cloudwatchevents/go.sum +++ b/service/cloudwatchevents/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudwatchlogs/go.mod b/service/cloudwatchlogs/go.mod index e6739f1d72c..711ff4d1172 100644 --- a/service/cloudwatchlogs/go.mod +++ b/service/cloudwatchlogs/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudwatchlogs/go.sum b/service/cloudwatchlogs/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/cloudwatchlogs/go.sum +++ b/service/cloudwatchlogs/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codeartifact/go.mod b/service/codeartifact/go.mod index 30ef7555b91..6094e328944 100644 --- a/service/codeartifact/go.mod +++ b/service/codeartifact/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codeartifact/go.sum b/service/codeartifact/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/codeartifact/go.sum +++ b/service/codeartifact/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codebuild/go.mod b/service/codebuild/go.mod index 8ef85c4f365..d7029d3b8e8 100644 --- a/service/codebuild/go.mod +++ b/service/codebuild/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codebuild/go.sum b/service/codebuild/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/codebuild/go.sum +++ b/service/codebuild/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codecatalyst/go.mod b/service/codecatalyst/go.mod index f5e3dc35191..a6e061f77e2 100644 --- a/service/codecatalyst/go.mod +++ b/service/codecatalyst/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codecatalyst/go.sum b/service/codecatalyst/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/codecatalyst/go.sum +++ b/service/codecatalyst/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codecommit/go.mod b/service/codecommit/go.mod index 2a392de959f..b7c6b905d94 100644 --- a/service/codecommit/go.mod +++ b/service/codecommit/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codecommit/go.sum b/service/codecommit/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/codecommit/go.sum +++ b/service/codecommit/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codedeploy/go.mod b/service/codedeploy/go.mod index cb3606c3710..adcfe6f937b 100644 --- a/service/codedeploy/go.mod +++ b/service/codedeploy/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/codedeploy/go.sum b/service/codedeploy/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/codedeploy/go.sum +++ b/service/codedeploy/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/codeguruprofiler/go.mod b/service/codeguruprofiler/go.mod index 5fb22374394..05d802964aa 100644 --- a/service/codeguruprofiler/go.mod +++ b/service/codeguruprofiler/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codeguruprofiler/go.sum b/service/codeguruprofiler/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/codeguruprofiler/go.sum +++ b/service/codeguruprofiler/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codegurureviewer/go.mod b/service/codegurureviewer/go.mod index 2b54205ab22..8417d24cdb1 100644 --- a/service/codegurureviewer/go.mod +++ b/service/codegurureviewer/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/codegurureviewer/go.sum b/service/codegurureviewer/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/codegurureviewer/go.sum +++ b/service/codegurureviewer/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/codegurusecurity/go.mod b/service/codegurusecurity/go.mod index be0ef4dd030..94f52d2b3fa 100644 --- a/service/codegurusecurity/go.mod +++ b/service/codegurusecurity/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codegurusecurity/go.sum b/service/codegurusecurity/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/codegurusecurity/go.sum +++ b/service/codegurusecurity/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codepipeline/go.mod b/service/codepipeline/go.mod index 9138ffaf446..9d94bf29479 100644 --- a/service/codepipeline/go.mod +++ b/service/codepipeline/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codepipeline/go.sum b/service/codepipeline/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/codepipeline/go.sum +++ b/service/codepipeline/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codestar/go.mod b/service/codestar/go.mod index 98b9cf29876..58cad03d57c 100644 --- a/service/codestar/go.mod +++ b/service/codestar/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codestar/go.sum b/service/codestar/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/codestar/go.sum +++ b/service/codestar/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codestarconnections/go.mod b/service/codestarconnections/go.mod index a113a127efa..63a3ecfc6fc 100644 --- a/service/codestarconnections/go.mod +++ b/service/codestarconnections/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codestarconnections/go.sum b/service/codestarconnections/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/codestarconnections/go.sum +++ b/service/codestarconnections/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codestarnotifications/go.mod b/service/codestarnotifications/go.mod index c9b83aba5f0..4e9d087f8a3 100644 --- a/service/codestarnotifications/go.mod +++ b/service/codestarnotifications/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codestarnotifications/go.sum b/service/codestarnotifications/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/codestarnotifications/go.sum +++ b/service/codestarnotifications/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cognitoidentity/go.mod b/service/cognitoidentity/go.mod index 0b0125535fe..be520376241 100644 --- a/service/cognitoidentity/go.mod +++ b/service/cognitoidentity/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cognitoidentity/go.sum b/service/cognitoidentity/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/cognitoidentity/go.sum +++ b/service/cognitoidentity/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cognitoidentityprovider/go.mod b/service/cognitoidentityprovider/go.mod index d8faa215341..c18c8f6653b 100644 --- a/service/cognitoidentityprovider/go.mod +++ b/service/cognitoidentityprovider/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cognitoidentityprovider/go.sum b/service/cognitoidentityprovider/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/cognitoidentityprovider/go.sum +++ b/service/cognitoidentityprovider/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cognitosync/go.mod b/service/cognitosync/go.mod index e075bca53dd..ea1b0ab1bb4 100644 --- a/service/cognitosync/go.mod +++ b/service/cognitosync/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cognitosync/go.sum b/service/cognitosync/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/cognitosync/go.sum +++ b/service/cognitosync/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/comprehend/go.mod b/service/comprehend/go.mod index 95f6e021900..024c343d649 100644 --- a/service/comprehend/go.mod +++ b/service/comprehend/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/comprehend/go.sum b/service/comprehend/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/comprehend/go.sum +++ b/service/comprehend/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/comprehendmedical/go.mod b/service/comprehendmedical/go.mod index 8f6628b281f..1b49740ac0f 100644 --- a/service/comprehendmedical/go.mod +++ b/service/comprehendmedical/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/comprehendmedical/go.sum b/service/comprehendmedical/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/comprehendmedical/go.sum +++ b/service/comprehendmedical/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/computeoptimizer/go.mod b/service/computeoptimizer/go.mod index 16332226780..8b5222c321d 100644 --- a/service/computeoptimizer/go.mod +++ b/service/computeoptimizer/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/computeoptimizer/go.sum b/service/computeoptimizer/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/computeoptimizer/go.sum +++ b/service/computeoptimizer/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/configservice/go.mod b/service/configservice/go.mod index eca52cdc24e..476243f0d53 100644 --- a/service/configservice/go.mod +++ b/service/configservice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/configservice/go.sum b/service/configservice/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/configservice/go.sum +++ b/service/configservice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/connect/go.mod b/service/connect/go.mod index 1fb4b1fe99f..2dddf2d280f 100644 --- a/service/connect/go.mod +++ b/service/connect/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/connect/go.sum b/service/connect/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/connect/go.sum +++ b/service/connect/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/connectcampaigns/go.mod b/service/connectcampaigns/go.mod index 8cd7e648b67..4f671172fe4 100644 --- a/service/connectcampaigns/go.mod +++ b/service/connectcampaigns/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/connectcampaigns/go.sum b/service/connectcampaigns/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/connectcampaigns/go.sum +++ b/service/connectcampaigns/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/connectcases/go.mod b/service/connectcases/go.mod index ceeb880f5ce..b6ec4c93b8a 100644 --- a/service/connectcases/go.mod +++ b/service/connectcases/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/connectcases/go.sum b/service/connectcases/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/connectcases/go.sum +++ b/service/connectcases/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/connectcontactlens/go.mod b/service/connectcontactlens/go.mod index 7b454215032..d4bcf2c07e2 100644 --- a/service/connectcontactlens/go.mod +++ b/service/connectcontactlens/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/connectcontactlens/go.sum b/service/connectcontactlens/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/connectcontactlens/go.sum +++ b/service/connectcontactlens/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/connectparticipant/go.mod b/service/connectparticipant/go.mod index 200564e11de..e244661c3b5 100644 --- a/service/connectparticipant/go.mod +++ b/service/connectparticipant/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/connectparticipant/go.sum b/service/connectparticipant/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/connectparticipant/go.sum +++ b/service/connectparticipant/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/controltower/go.mod b/service/controltower/go.mod index eda82b42bb1..12609dcc8ab 100644 --- a/service/controltower/go.mod +++ b/service/controltower/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/controltower/go.sum b/service/controltower/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/controltower/go.sum +++ b/service/controltower/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/costandusagereportservice/go.mod b/service/costandusagereportservice/go.mod index b8989a2a11c..92b14c33264 100644 --- a/service/costandusagereportservice/go.mod +++ b/service/costandusagereportservice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/costandusagereportservice/go.sum b/service/costandusagereportservice/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/costandusagereportservice/go.sum +++ b/service/costandusagereportservice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/costexplorer/go.mod b/service/costexplorer/go.mod index 6b6a550643a..9f51d835a9a 100644 --- a/service/costexplorer/go.mod +++ b/service/costexplorer/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/costexplorer/go.sum b/service/costexplorer/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/costexplorer/go.sum +++ b/service/costexplorer/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/costoptimizationhub/go.mod b/service/costoptimizationhub/go.mod index 0b516986bc4..2607a671bfd 100644 --- a/service/costoptimizationhub/go.mod +++ b/service/costoptimizationhub/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/costoptimizationhub/go.sum b/service/costoptimizationhub/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/costoptimizationhub/go.sum +++ b/service/costoptimizationhub/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/customerprofiles/go.mod b/service/customerprofiles/go.mod index 488438cf786..45484a66621 100644 --- a/service/customerprofiles/go.mod +++ b/service/customerprofiles/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/customerprofiles/go.sum b/service/customerprofiles/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/customerprofiles/go.sum +++ b/service/customerprofiles/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/databasemigrationservice/go.mod b/service/databasemigrationservice/go.mod index a91197a6614..9f3f4e651e4 100644 --- a/service/databasemigrationservice/go.mod +++ b/service/databasemigrationservice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/databasemigrationservice/go.sum b/service/databasemigrationservice/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/databasemigrationservice/go.sum +++ b/service/databasemigrationservice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/databrew/go.mod b/service/databrew/go.mod index 2a3dcddf1f9..3fd8e48b57a 100644 --- a/service/databrew/go.mod +++ b/service/databrew/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/databrew/go.sum b/service/databrew/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/databrew/go.sum +++ b/service/databrew/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/dataexchange/go.mod b/service/dataexchange/go.mod index 87d79bc592c..4e239709300 100644 --- a/service/dataexchange/go.mod +++ b/service/dataexchange/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/dataexchange/go.sum b/service/dataexchange/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/dataexchange/go.sum +++ b/service/dataexchange/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/datapipeline/go.mod b/service/datapipeline/go.mod index f95507e687a..bd9f72d96fa 100644 --- a/service/datapipeline/go.mod +++ b/service/datapipeline/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/datapipeline/go.sum b/service/datapipeline/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/datapipeline/go.sum +++ b/service/datapipeline/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/datasync/go.mod b/service/datasync/go.mod index 705c2f935a1..3374ad8e287 100644 --- a/service/datasync/go.mod +++ b/service/datasync/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/datasync/go.sum b/service/datasync/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/datasync/go.sum +++ b/service/datasync/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/datazone/go.mod b/service/datazone/go.mod index 67f8ced0a8f..d420292b6ac 100644 --- a/service/datazone/go.mod +++ b/service/datazone/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/datazone/go.sum b/service/datazone/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/datazone/go.sum +++ b/service/datazone/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/dax/go.mod b/service/dax/go.mod index 1db9b298d85..84ad7d676c1 100644 --- a/service/dax/go.mod +++ b/service/dax/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/dax/go.sum b/service/dax/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/dax/go.sum +++ b/service/dax/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/detective/go.mod b/service/detective/go.mod index 189b0bc6661..d00e51d7e61 100644 --- a/service/detective/go.mod +++ b/service/detective/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/detective/go.sum b/service/detective/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/detective/go.sum +++ b/service/detective/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/devicefarm/go.mod b/service/devicefarm/go.mod index 0f434cb34de..fc4587e46ef 100644 --- a/service/devicefarm/go.mod +++ b/service/devicefarm/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/devicefarm/go.sum b/service/devicefarm/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/devicefarm/go.sum +++ b/service/devicefarm/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/devopsguru/go.mod b/service/devopsguru/go.mod index 0df9ee15e2f..6b32cfcfae8 100644 --- a/service/devopsguru/go.mod +++ b/service/devopsguru/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/devopsguru/go.sum b/service/devopsguru/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/devopsguru/go.sum +++ b/service/devopsguru/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/directconnect/go.mod b/service/directconnect/go.mod index fb3dc954b4a..aa4d3c92b2d 100644 --- a/service/directconnect/go.mod +++ b/service/directconnect/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/directconnect/go.sum b/service/directconnect/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/directconnect/go.sum +++ b/service/directconnect/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/directoryservice/go.mod b/service/directoryservice/go.mod index b97701507c3..8b5bde93283 100644 --- a/service/directoryservice/go.mod +++ b/service/directoryservice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/directoryservice/go.sum b/service/directoryservice/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/directoryservice/go.sum +++ b/service/directoryservice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/dlm/go.mod b/service/dlm/go.mod index 526d5c8ea14..7d1cc233176 100644 --- a/service/dlm/go.mod +++ b/service/dlm/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/dlm/go.sum b/service/dlm/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/dlm/go.sum +++ b/service/dlm/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/docdb/go.mod b/service/docdb/go.mod index 07134ae56ea..e43ffdc2f6e 100644 --- a/service/docdb/go.mod +++ b/service/docdb/go.mod @@ -8,7 +8,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.1 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/docdb/go.sum b/service/docdb/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/docdb/go.sum +++ b/service/docdb/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/docdbelastic/go.mod b/service/docdbelastic/go.mod index fe18f7338cf..5d409a302c7 100644 --- a/service/docdbelastic/go.mod +++ b/service/docdbelastic/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/docdbelastic/go.sum b/service/docdbelastic/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/docdbelastic/go.sum +++ b/service/docdbelastic/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/drs/go.mod b/service/drs/go.mod index d0abf47c4b9..84e87130011 100644 --- a/service/drs/go.mod +++ b/service/drs/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/drs/go.sum b/service/drs/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/drs/go.sum +++ b/service/drs/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/dynamodb/go.mod b/service/dynamodb/go.mod index 53afdb37691..02a0f738726 100644 --- a/service/dynamodb/go.mod +++ b/service/dynamodb/go.mod @@ -8,7 +8,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.1 github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.8.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/dynamodb/go.sum b/service/dynamodb/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/dynamodb/go.sum +++ b/service/dynamodb/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/dynamodbstreams/go.mod b/service/dynamodbstreams/go.mod index 19fe1f5db8f..66d3b15fd66 100644 --- a/service/dynamodbstreams/go.mod +++ b/service/dynamodbstreams/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/dynamodbstreams/go.sum b/service/dynamodbstreams/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/dynamodbstreams/go.sum +++ b/service/dynamodbstreams/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ebs/go.mod b/service/ebs/go.mod index f464644ddb3..782a600fb48 100644 --- a/service/ebs/go.mod +++ b/service/ebs/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ebs/go.sum b/service/ebs/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/ebs/go.sum +++ b/service/ebs/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ec2/go.mod b/service/ec2/go.mod index 7878ad613c1..47253edb7d5 100644 --- a/service/ec2/go.mod +++ b/service/ec2/go.mod @@ -8,7 +8,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.1 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ec2/go.sum b/service/ec2/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/ec2/go.sum +++ b/service/ec2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/ec2instanceconnect/go.mod b/service/ec2instanceconnect/go.mod index 729f575c09f..cfab3294ee5 100644 --- a/service/ec2instanceconnect/go.mod +++ b/service/ec2instanceconnect/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ec2instanceconnect/go.sum b/service/ec2instanceconnect/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/ec2instanceconnect/go.sum +++ b/service/ec2instanceconnect/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ecr/go.mod b/service/ecr/go.mod index ad40211dfa8..bc0d590b465 100644 --- a/service/ecr/go.mod +++ b/service/ecr/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ecr/go.sum b/service/ecr/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/ecr/go.sum +++ b/service/ecr/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/ecrpublic/go.mod b/service/ecrpublic/go.mod index 27f09668038..faed7638b74 100644 --- a/service/ecrpublic/go.mod +++ b/service/ecrpublic/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ecrpublic/go.sum b/service/ecrpublic/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/ecrpublic/go.sum +++ b/service/ecrpublic/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ecs/go.mod b/service/ecs/go.mod index 9bdf3220c97..cc8632b198f 100644 --- a/service/ecs/go.mod +++ b/service/ecs/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ecs/go.sum b/service/ecs/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/ecs/go.sum +++ b/service/ecs/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/efs/go.mod b/service/efs/go.mod index 6910ad33451..64f09919fd1 100644 --- a/service/efs/go.mod +++ b/service/efs/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/efs/go.sum b/service/efs/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/efs/go.sum +++ b/service/efs/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/eks/go.mod b/service/eks/go.mod index 48399b14528..3516c39773e 100644 --- a/service/eks/go.mod +++ b/service/eks/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/eks/go.sum b/service/eks/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/eks/go.sum +++ b/service/eks/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/eksauth/go.mod b/service/eksauth/go.mod index 3fde5bdf80e..1f3692b4d8e 100644 --- a/service/eksauth/go.mod +++ b/service/eksauth/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/eksauth/go.sum b/service/eksauth/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/eksauth/go.sum +++ b/service/eksauth/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/elasticache/go.mod b/service/elasticache/go.mod index 7d54e660dd1..5e9aa614684 100644 --- a/service/elasticache/go.mod +++ b/service/elasticache/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elasticache/go.sum b/service/elasticache/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/elasticache/go.sum +++ b/service/elasticache/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/elasticbeanstalk/go.mod b/service/elasticbeanstalk/go.mod index 2e0d19e18c9..b6435602746 100644 --- a/service/elasticbeanstalk/go.mod +++ b/service/elasticbeanstalk/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elasticbeanstalk/go.sum b/service/elasticbeanstalk/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/elasticbeanstalk/go.sum +++ b/service/elasticbeanstalk/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/elasticinference/go.mod b/service/elasticinference/go.mod index 65a295cc049..515a552ce64 100644 --- a/service/elasticinference/go.mod +++ b/service/elasticinference/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/elasticinference/go.sum b/service/elasticinference/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/elasticinference/go.sum +++ b/service/elasticinference/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/elasticloadbalancing/go.mod b/service/elasticloadbalancing/go.mod index b9f89a201b2..80805bdc728 100644 --- a/service/elasticloadbalancing/go.mod +++ b/service/elasticloadbalancing/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elasticloadbalancing/go.sum b/service/elasticloadbalancing/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/elasticloadbalancing/go.sum +++ b/service/elasticloadbalancing/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/elasticloadbalancingv2/go.mod b/service/elasticloadbalancingv2/go.mod index 405d8959900..b9ee640dac0 100644 --- a/service/elasticloadbalancingv2/go.mod +++ b/service/elasticloadbalancingv2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elasticloadbalancingv2/go.sum b/service/elasticloadbalancingv2/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/elasticloadbalancingv2/go.sum +++ b/service/elasticloadbalancingv2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/elasticsearchservice/go.mod b/service/elasticsearchservice/go.mod index 1131e3f12d2..a838296ec59 100644 --- a/service/elasticsearchservice/go.mod +++ b/service/elasticsearchservice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/elasticsearchservice/go.sum b/service/elasticsearchservice/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/elasticsearchservice/go.sum +++ b/service/elasticsearchservice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/elastictranscoder/go.mod b/service/elastictranscoder/go.mod index 15fb0fa215e..1c1fbc1585b 100644 --- a/service/elastictranscoder/go.mod +++ b/service/elastictranscoder/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elastictranscoder/go.sum b/service/elastictranscoder/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/elastictranscoder/go.sum +++ b/service/elastictranscoder/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/emr/go.mod b/service/emr/go.mod index d64600c5b8c..9e40344fcc4 100644 --- a/service/emr/go.mod +++ b/service/emr/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/emr/go.sum b/service/emr/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/emr/go.sum +++ b/service/emr/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/emrcontainers/go.mod b/service/emrcontainers/go.mod index d9dea7b07a1..315946d8169 100644 --- a/service/emrcontainers/go.mod +++ b/service/emrcontainers/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/emrcontainers/go.sum b/service/emrcontainers/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/emrcontainers/go.sum +++ b/service/emrcontainers/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/emrserverless/go.mod b/service/emrserverless/go.mod index b1e7b5e2452..88df96bb0dd 100644 --- a/service/emrserverless/go.mod +++ b/service/emrserverless/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/emrserverless/go.sum b/service/emrserverless/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/emrserverless/go.sum +++ b/service/emrserverless/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/entityresolution/go.mod b/service/entityresolution/go.mod index d230e90b142..7e6873337ef 100644 --- a/service/entityresolution/go.mod +++ b/service/entityresolution/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/entityresolution/go.sum b/service/entityresolution/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/entityresolution/go.sum +++ b/service/entityresolution/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/eventbridge/go.mod b/service/eventbridge/go.mod index 11402624108..4a49ebfcaa4 100644 --- a/service/eventbridge/go.mod +++ b/service/eventbridge/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 github.com/aws/aws-sdk-go-v2/internal/v4a v1.2.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/eventbridge/go.sum b/service/eventbridge/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/eventbridge/go.sum +++ b/service/eventbridge/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/evidently/go.mod b/service/evidently/go.mod index 11f7e66c96f..40724af039e 100644 --- a/service/evidently/go.mod +++ b/service/evidently/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/evidently/go.sum b/service/evidently/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/evidently/go.sum +++ b/service/evidently/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/finspace/go.mod b/service/finspace/go.mod index 41043265659..60e324b6ba6 100644 --- a/service/finspace/go.mod +++ b/service/finspace/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/finspace/go.sum b/service/finspace/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/finspace/go.sum +++ b/service/finspace/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/finspacedata/go.mod b/service/finspacedata/go.mod index ae0d38c635a..e9cbee95492 100644 --- a/service/finspacedata/go.mod +++ b/service/finspacedata/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/finspacedata/go.sum b/service/finspacedata/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/finspacedata/go.sum +++ b/service/finspacedata/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/firehose/go.mod b/service/firehose/go.mod index cc137bc3624..38a596f27ab 100644 --- a/service/firehose/go.mod +++ b/service/firehose/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/firehose/go.sum b/service/firehose/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/firehose/go.sum +++ b/service/firehose/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/fis/go.mod b/service/fis/go.mod index bd509751b13..07fd058a803 100644 --- a/service/fis/go.mod +++ b/service/fis/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/fis/go.sum b/service/fis/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/fis/go.sum +++ b/service/fis/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/fms/go.mod b/service/fms/go.mod index d9243533010..84608956777 100644 --- a/service/fms/go.mod +++ b/service/fms/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/fms/go.sum b/service/fms/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/fms/go.sum +++ b/service/fms/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/forecast/go.mod b/service/forecast/go.mod index 2801d218bde..228bc0a8e6a 100644 --- a/service/forecast/go.mod +++ b/service/forecast/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/forecast/go.sum b/service/forecast/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/forecast/go.sum +++ b/service/forecast/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/forecastquery/go.mod b/service/forecastquery/go.mod index 7aef368ae04..95293557145 100644 --- a/service/forecastquery/go.mod +++ b/service/forecastquery/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/forecastquery/go.sum b/service/forecastquery/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/forecastquery/go.sum +++ b/service/forecastquery/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/frauddetector/go.mod b/service/frauddetector/go.mod index 2936d1afb34..010e897beae 100644 --- a/service/frauddetector/go.mod +++ b/service/frauddetector/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/frauddetector/go.sum b/service/frauddetector/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/frauddetector/go.sum +++ b/service/frauddetector/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/freetier/go.mod b/service/freetier/go.mod index b485d62d6f1..4d901c18ab2 100644 --- a/service/freetier/go.mod +++ b/service/freetier/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/freetier/go.sum b/service/freetier/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/freetier/go.sum +++ b/service/freetier/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/fsx/go.mod b/service/fsx/go.mod index 960a8c517c0..cb6dd295052 100644 --- a/service/fsx/go.mod +++ b/service/fsx/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/fsx/go.sum b/service/fsx/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/fsx/go.sum +++ b/service/fsx/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/gamelift/go.mod b/service/gamelift/go.mod index 02bfb16c4ff..2978359cdbc 100644 --- a/service/gamelift/go.mod +++ b/service/gamelift/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/gamelift/go.sum b/service/gamelift/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/gamelift/go.sum +++ b/service/gamelift/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/glacier/go.mod b/service/glacier/go.mod index 664d7e7f865..8d93c112019 100644 --- a/service/glacier/go.mod +++ b/service/glacier/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/glacier/go.sum b/service/glacier/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/glacier/go.sum +++ b/service/glacier/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/globalaccelerator/go.mod b/service/globalaccelerator/go.mod index 2acb4e24ffc..90e322e758c 100644 --- a/service/globalaccelerator/go.mod +++ b/service/globalaccelerator/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/globalaccelerator/go.sum b/service/globalaccelerator/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/globalaccelerator/go.sum +++ b/service/globalaccelerator/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/glue/go.mod b/service/glue/go.mod index d18a2b3dc08..0fb3dc73290 100644 --- a/service/glue/go.mod +++ b/service/glue/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/glue/go.sum b/service/glue/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/glue/go.sum +++ b/service/glue/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/grafana/go.mod b/service/grafana/go.mod index e49dd4e521d..7b4248e3a3f 100644 --- a/service/grafana/go.mod +++ b/service/grafana/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/grafana/go.sum b/service/grafana/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/grafana/go.sum +++ b/service/grafana/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/greengrass/go.mod b/service/greengrass/go.mod index 010faaa9665..16216059fcc 100644 --- a/service/greengrass/go.mod +++ b/service/greengrass/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/greengrass/go.sum b/service/greengrass/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/greengrass/go.sum +++ b/service/greengrass/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/greengrassv2/go.mod b/service/greengrassv2/go.mod index 3f29490e564..4858f50d34d 100644 --- a/service/greengrassv2/go.mod +++ b/service/greengrassv2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/greengrassv2/go.sum b/service/greengrassv2/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/greengrassv2/go.sum +++ b/service/greengrassv2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/groundstation/go.mod b/service/groundstation/go.mod index ddf550b928c..37749c0e88c 100644 --- a/service/groundstation/go.mod +++ b/service/groundstation/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/groundstation/go.sum b/service/groundstation/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/groundstation/go.sum +++ b/service/groundstation/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/guardduty/go.mod b/service/guardduty/go.mod index df1eedd2791..283679ff053 100644 --- a/service/guardduty/go.mod +++ b/service/guardduty/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/guardduty/go.sum b/service/guardduty/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/guardduty/go.sum +++ b/service/guardduty/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/health/go.mod b/service/health/go.mod index 96fa4b9b415..6271614d7a5 100644 --- a/service/health/go.mod +++ b/service/health/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/health/go.sum b/service/health/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/health/go.sum +++ b/service/health/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/healthlake/go.mod b/service/healthlake/go.mod index 0ce86f5765f..455ae8467f3 100644 --- a/service/healthlake/go.mod +++ b/service/healthlake/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/healthlake/go.sum b/service/healthlake/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/healthlake/go.sum +++ b/service/healthlake/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/honeycode/go.mod b/service/honeycode/go.mod index db75563c906..81ea2b4b7bc 100644 --- a/service/honeycode/go.mod +++ b/service/honeycode/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/honeycode/go.sum b/service/honeycode/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/honeycode/go.sum +++ b/service/honeycode/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iam/go.mod b/service/iam/go.mod index 51da973a163..b1867c26977 100644 --- a/service/iam/go.mod +++ b/service/iam/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iam/go.sum b/service/iam/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/iam/go.sum +++ b/service/iam/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/identitystore/go.mod b/service/identitystore/go.mod index d4d9bb25527..ee44063336e 100644 --- a/service/identitystore/go.mod +++ b/service/identitystore/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/identitystore/go.sum b/service/identitystore/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/identitystore/go.sum +++ b/service/identitystore/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/imagebuilder/go.mod b/service/imagebuilder/go.mod index 9bada7ea94f..9b10d04c5f3 100644 --- a/service/imagebuilder/go.mod +++ b/service/imagebuilder/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/imagebuilder/go.sum b/service/imagebuilder/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/imagebuilder/go.sum +++ b/service/imagebuilder/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/inspector/go.mod b/service/inspector/go.mod index 9d22ac29d19..b4e406daf5f 100644 --- a/service/inspector/go.mod +++ b/service/inspector/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/inspector/go.sum b/service/inspector/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/inspector/go.sum +++ b/service/inspector/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/inspector2/go.mod b/service/inspector2/go.mod index 64b9c73cbc4..b1b1a1b46df 100644 --- a/service/inspector2/go.mod +++ b/service/inspector2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/inspector2/go.sum b/service/inspector2/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/inspector2/go.sum +++ b/service/inspector2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/inspectorscan/go.mod b/service/inspectorscan/go.mod index 23b4d512099..309b65f7bf5 100644 --- a/service/inspectorscan/go.mod +++ b/service/inspectorscan/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/inspectorscan/go.sum b/service/inspectorscan/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/inspectorscan/go.sum +++ b/service/inspectorscan/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/internal/accept-encoding/go.mod b/service/internal/accept-encoding/go.mod index 89abf4d99b4..bffe7489daf 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.19 -require github.com/aws/smithy-go v1.17.0 +require github.com/aws/smithy-go v1.18.0 diff --git a/service/internal/accept-encoding/go.sum b/service/internal/accept-encoding/go.sum index a96e3f8ab8b..4a236cdfa85 100644 --- a/service/internal/accept-encoding/go.sum +++ b/service/internal/accept-encoding/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/internal/benchmark/go.mod b/service/internal/benchmark/go.mod index a6c5510383b..6bb04fa8907 100644 --- a/service/internal/benchmark/go.mod +++ b/service/internal/benchmark/go.mod @@ -9,7 +9,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/lexruntimeservice v1.17.5 github.com/aws/aws-sdk-go-v2/service/s3 v1.46.0 github.com/aws/aws-sdk-go-v2/service/schemas v1.20.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 ) require ( diff --git a/service/internal/benchmark/go.sum b/service/internal/benchmark/go.sum index 41701bcf800..01a217d0a34 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.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/internal/checksum/go.mod b/service/internal/checksum/go.mod index 9b9092368bf..a1c6f5f3718 100644 --- a/service/internal/checksum/go.mod +++ b/service/internal/checksum/go.mod @@ -5,7 +5,7 @@ go 1.19 require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/internal/checksum/go.sum b/service/internal/checksum/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/internal/checksum/go.sum +++ b/service/internal/checksum/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/internal/endpoint-discovery/go.mod b/service/internal/endpoint-discovery/go.mod index e9c350f4b7e..b18e1354fa0 100644 --- a/service/internal/endpoint-discovery/go.mod +++ b/service/internal/endpoint-discovery/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/aws/aws-sdk-go-v2 v1.23.2 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 ) 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 a96e3f8ab8b..4a236cdfa85 100644 --- a/service/internal/endpoint-discovery/go.sum +++ b/service/internal/endpoint-discovery/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/internal/eventstreamtesting/go.mod b/service/internal/eventstreamtesting/go.mod index 28837be58df..2fc8d0877f2 100644 --- a/service/internal/eventstreamtesting/go.mod +++ b/service/internal/eventstreamtesting/go.mod @@ -10,7 +10,7 @@ require ( ) require ( - github.com/aws/smithy-go v1.17.0 // indirect + github.com/aws/smithy-go v1.18.0 // indirect golang.org/x/text v0.14.0 // indirect ) diff --git a/service/internal/eventstreamtesting/go.sum b/service/internal/eventstreamtesting/go.sum index 7b9d281603e..2f7ac40846a 100644 --- a/service/internal/eventstreamtesting/go.sum +++ b/service/internal/eventstreamtesting/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= diff --git a/service/internal/integrationtest/go.mod b/service/internal/integrationtest/go.mod index 13cde53f244..ba8643e20ae 100644 --- a/service/internal/integrationtest/go.mod +++ b/service/internal/integrationtest/go.mod @@ -85,7 +85,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/wafregional v1.18.5 github.com/aws/aws-sdk-go-v2/service/wafv2 v1.42.5 github.com/aws/aws-sdk-go-v2/service/workspaces v1.34.2 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/internal/integrationtest/go.sum b/service/internal/integrationtest/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/internal/integrationtest/go.sum +++ b/service/internal/integrationtest/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/internal/presigned-url/go.mod b/service/internal/presigned-url/go.mod index f1c6a548af2..b1743424762 100644 --- a/service/internal/presigned-url/go.mod +++ b/service/internal/presigned-url/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/aws/aws-sdk-go-v2 v1.23.2 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/internal/presigned-url/go.sum b/service/internal/presigned-url/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/internal/presigned-url/go.sum +++ b/service/internal/presigned-url/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/internal/s3shared/go.mod b/service/internal/s3shared/go.mod index 6280141110e..3b867145c01 100644 --- a/service/internal/s3shared/go.mod +++ b/service/internal/s3shared/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/aws/aws-sdk-go-v2 v1.23.2 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/service/internal/s3shared/go.sum b/service/internal/s3shared/go.sum index a96e3f8ab8b..4a236cdfa85 100644 --- a/service/internal/s3shared/go.sum +++ b/service/internal/s3shared/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/internetmonitor/go.mod b/service/internetmonitor/go.mod index 03d29cfa198..a0e2edf0de4 100644 --- a/service/internetmonitor/go.mod +++ b/service/internetmonitor/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/internetmonitor/go.sum b/service/internetmonitor/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/internetmonitor/go.sum +++ b/service/internetmonitor/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iot/go.mod b/service/iot/go.mod index 5421970ce46..99d2335c7fb 100644 --- a/service/iot/go.mod +++ b/service/iot/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iot/go.sum b/service/iot/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/iot/go.sum +++ b/service/iot/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iot1clickdevicesservice/go.mod b/service/iot1clickdevicesservice/go.mod index 1dcc09c47ab..dac56f012db 100644 --- a/service/iot1clickdevicesservice/go.mod +++ b/service/iot1clickdevicesservice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iot1clickdevicesservice/go.sum b/service/iot1clickdevicesservice/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/iot1clickdevicesservice/go.sum +++ b/service/iot1clickdevicesservice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iot1clickprojects/go.mod b/service/iot1clickprojects/go.mod index 9e6a4b69cda..3d14e5af31a 100644 --- a/service/iot1clickprojects/go.mod +++ b/service/iot1clickprojects/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iot1clickprojects/go.sum b/service/iot1clickprojects/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/iot1clickprojects/go.sum +++ b/service/iot1clickprojects/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotanalytics/go.mod b/service/iotanalytics/go.mod index 8e7b6e5375c..6432ade2bad 100644 --- a/service/iotanalytics/go.mod +++ b/service/iotanalytics/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotanalytics/go.sum b/service/iotanalytics/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/iotanalytics/go.sum +++ b/service/iotanalytics/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotdataplane/go.mod b/service/iotdataplane/go.mod index 7bc69a955a4..64725d5f181 100644 --- a/service/iotdataplane/go.mod +++ b/service/iotdataplane/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotdataplane/go.sum b/service/iotdataplane/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/iotdataplane/go.sum +++ b/service/iotdataplane/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotdeviceadvisor/go.mod b/service/iotdeviceadvisor/go.mod index b5b5c24f130..f2a864362fd 100644 --- a/service/iotdeviceadvisor/go.mod +++ b/service/iotdeviceadvisor/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotdeviceadvisor/go.sum b/service/iotdeviceadvisor/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/iotdeviceadvisor/go.sum +++ b/service/iotdeviceadvisor/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotevents/go.mod b/service/iotevents/go.mod index 5dc600113f4..15ae74edbed 100644 --- a/service/iotevents/go.mod +++ b/service/iotevents/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotevents/go.sum b/service/iotevents/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/iotevents/go.sum +++ b/service/iotevents/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ioteventsdata/go.mod b/service/ioteventsdata/go.mod index 62aef2b3e2d..ea8bb17e56c 100644 --- a/service/ioteventsdata/go.mod +++ b/service/ioteventsdata/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ioteventsdata/go.sum b/service/ioteventsdata/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/ioteventsdata/go.sum +++ b/service/ioteventsdata/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotfleethub/go.mod b/service/iotfleethub/go.mod index 9f585552384..a9b5b49bc05 100644 --- a/service/iotfleethub/go.mod +++ b/service/iotfleethub/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotfleethub/go.sum b/service/iotfleethub/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/iotfleethub/go.sum +++ b/service/iotfleethub/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotfleetwise/go.mod b/service/iotfleetwise/go.mod index 525ef875bde..d1efd1da88c 100644 --- a/service/iotfleetwise/go.mod +++ b/service/iotfleetwise/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotfleetwise/go.sum b/service/iotfleetwise/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/iotfleetwise/go.sum +++ b/service/iotfleetwise/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotjobsdataplane/go.mod b/service/iotjobsdataplane/go.mod index 373e5de901f..11a563f0229 100644 --- a/service/iotjobsdataplane/go.mod +++ b/service/iotjobsdataplane/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotjobsdataplane/go.sum b/service/iotjobsdataplane/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/iotjobsdataplane/go.sum +++ b/service/iotjobsdataplane/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotroborunner/go.mod b/service/iotroborunner/go.mod index e5ba25e115d..9b5436461a6 100644 --- a/service/iotroborunner/go.mod +++ b/service/iotroborunner/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotroborunner/go.sum b/service/iotroborunner/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/iotroborunner/go.sum +++ b/service/iotroborunner/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotsecuretunneling/go.mod b/service/iotsecuretunneling/go.mod index db01a4b07b7..f2dfc810d5f 100644 --- a/service/iotsecuretunneling/go.mod +++ b/service/iotsecuretunneling/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotsecuretunneling/go.sum b/service/iotsecuretunneling/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/iotsecuretunneling/go.sum +++ b/service/iotsecuretunneling/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotsitewise/go.mod b/service/iotsitewise/go.mod index 2fa47e367a3..f32ea6f7c2a 100644 --- a/service/iotsitewise/go.mod +++ b/service/iotsitewise/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/iotsitewise/go.sum b/service/iotsitewise/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/iotsitewise/go.sum +++ b/service/iotsitewise/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/iotthingsgraph/go.mod b/service/iotthingsgraph/go.mod index 91ecb126026..e7a4dd60d82 100644 --- a/service/iotthingsgraph/go.mod +++ b/service/iotthingsgraph/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotthingsgraph/go.sum b/service/iotthingsgraph/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/iotthingsgraph/go.sum +++ b/service/iotthingsgraph/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iottwinmaker/go.mod b/service/iottwinmaker/go.mod index b91b76a5775..cda29e778db 100644 --- a/service/iottwinmaker/go.mod +++ b/service/iottwinmaker/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iottwinmaker/go.sum b/service/iottwinmaker/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/iottwinmaker/go.sum +++ b/service/iottwinmaker/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotwireless/go.mod b/service/iotwireless/go.mod index aae5cb533f7..a0127aa7dd9 100644 --- a/service/iotwireless/go.mod +++ b/service/iotwireless/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotwireless/go.sum b/service/iotwireless/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/iotwireless/go.sum +++ b/service/iotwireless/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ivs/go.mod b/service/ivs/go.mod index 62ac31217c4..ff556a978ff 100644 --- a/service/ivs/go.mod +++ b/service/ivs/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ivs/go.sum b/service/ivs/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/ivs/go.sum +++ b/service/ivs/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ivschat/go.mod b/service/ivschat/go.mod index 7fb4dc27c44..c3ad3ff10a1 100644 --- a/service/ivschat/go.mod +++ b/service/ivschat/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ivschat/go.sum b/service/ivschat/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/ivschat/go.sum +++ b/service/ivschat/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ivsrealtime/go.mod b/service/ivsrealtime/go.mod index 5ec4416ac37..b6a2458c851 100644 --- a/service/ivsrealtime/go.mod +++ b/service/ivsrealtime/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ivsrealtime/go.sum b/service/ivsrealtime/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/ivsrealtime/go.sum +++ b/service/ivsrealtime/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kafka/go.mod b/service/kafka/go.mod index 596f31c7feb..0c83dedb28d 100644 --- a/service/kafka/go.mod +++ b/service/kafka/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kafka/go.sum b/service/kafka/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/kafka/go.sum +++ b/service/kafka/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kafkaconnect/go.mod b/service/kafkaconnect/go.mod index 32d42362ea3..84855a0ef03 100644 --- a/service/kafkaconnect/go.mod +++ b/service/kafkaconnect/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kafkaconnect/go.sum b/service/kafkaconnect/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/kafkaconnect/go.sum +++ b/service/kafkaconnect/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kendra/go.mod b/service/kendra/go.mod index 7b72c068b0d..41b37766bc5 100644 --- a/service/kendra/go.mod +++ b/service/kendra/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kendra/go.sum b/service/kendra/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/kendra/go.sum +++ b/service/kendra/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kendraranking/go.mod b/service/kendraranking/go.mod index 5f817944d96..f58b87dc449 100644 --- a/service/kendraranking/go.mod +++ b/service/kendraranking/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kendraranking/go.sum b/service/kendraranking/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/kendraranking/go.sum +++ b/service/kendraranking/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/keyspaces/go.mod b/service/keyspaces/go.mod index 817176d7ffc..6b0a6c52afc 100644 --- a/service/keyspaces/go.mod +++ b/service/keyspaces/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/keyspaces/go.sum b/service/keyspaces/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/keyspaces/go.sum +++ b/service/keyspaces/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesis/go.mod b/service/kinesis/go.mod index 1e3a915a1a1..e8c1fb5c75d 100644 --- a/service/kinesis/go.mod +++ b/service/kinesis/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/kinesis/go.sum b/service/kinesis/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/kinesis/go.sum +++ b/service/kinesis/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/kinesis/internal/testing/go.mod b/service/kinesis/internal/testing/go.mod index 5a38b57be1b..bbe951d7a72 100644 --- a/service/kinesis/internal/testing/go.mod +++ b/service/kinesis/internal/testing/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.1 github.com/aws/aws-sdk-go-v2/service/internal/eventstreamtesting v1.2.9 github.com/aws/aws-sdk-go-v2/service/kinesis v1.23.2 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kinesis/internal/testing/go.sum b/service/kinesis/internal/testing/go.sum index 80613381630..126d5716fc9 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.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/kinesisanalytics/go.mod b/service/kinesisanalytics/go.mod index 2064ce10942..99b2957d5d7 100644 --- a/service/kinesisanalytics/go.mod +++ b/service/kinesisanalytics/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kinesisanalytics/go.sum b/service/kinesisanalytics/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/kinesisanalytics/go.sum +++ b/service/kinesisanalytics/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisanalyticsv2/go.mod b/service/kinesisanalyticsv2/go.mod index 6a3041e2a49..a3ee0bad535 100644 --- a/service/kinesisanalyticsv2/go.mod +++ b/service/kinesisanalyticsv2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kinesisanalyticsv2/go.sum b/service/kinesisanalyticsv2/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/kinesisanalyticsv2/go.sum +++ b/service/kinesisanalyticsv2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisvideo/go.mod b/service/kinesisvideo/go.mod index dd827cf4590..6e808224792 100644 --- a/service/kinesisvideo/go.mod +++ b/service/kinesisvideo/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kinesisvideo/go.sum b/service/kinesisvideo/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/kinesisvideo/go.sum +++ b/service/kinesisvideo/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisvideoarchivedmedia/go.mod b/service/kinesisvideoarchivedmedia/go.mod index ae9454fb96e..d2ab84993c7 100644 --- a/service/kinesisvideoarchivedmedia/go.mod +++ b/service/kinesisvideoarchivedmedia/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kinesisvideoarchivedmedia/go.sum b/service/kinesisvideoarchivedmedia/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/kinesisvideoarchivedmedia/go.sum +++ b/service/kinesisvideoarchivedmedia/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisvideomedia/go.mod b/service/kinesisvideomedia/go.mod index c8c11bfd194..5196624e5ae 100644 --- a/service/kinesisvideomedia/go.mod +++ b/service/kinesisvideomedia/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kinesisvideomedia/go.sum b/service/kinesisvideomedia/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/kinesisvideomedia/go.sum +++ b/service/kinesisvideomedia/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisvideosignaling/go.mod b/service/kinesisvideosignaling/go.mod index 1a9eb4f91ec..fd540bdb0b7 100644 --- a/service/kinesisvideosignaling/go.mod +++ b/service/kinesisvideosignaling/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kinesisvideosignaling/go.sum b/service/kinesisvideosignaling/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/kinesisvideosignaling/go.sum +++ b/service/kinesisvideosignaling/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisvideowebrtcstorage/go.mod b/service/kinesisvideowebrtcstorage/go.mod index e1af00f1e43..4fd77ed71e6 100644 --- a/service/kinesisvideowebrtcstorage/go.mod +++ b/service/kinesisvideowebrtcstorage/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kinesisvideowebrtcstorage/go.sum b/service/kinesisvideowebrtcstorage/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/kinesisvideowebrtcstorage/go.sum +++ b/service/kinesisvideowebrtcstorage/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kms/go.mod b/service/kms/go.mod index 186a63a85e5..5d2bbbbefb0 100644 --- a/service/kms/go.mod +++ b/service/kms/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kms/go.sum b/service/kms/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/kms/go.sum +++ b/service/kms/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lakeformation/go.mod b/service/lakeformation/go.mod index 4bdbe96b857..02ebef3bae1 100644 --- a/service/lakeformation/go.mod +++ b/service/lakeformation/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lakeformation/go.sum b/service/lakeformation/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/lakeformation/go.sum +++ b/service/lakeformation/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lambda/go.mod b/service/lambda/go.mod index 180e14cf919..425099ef0dd 100644 --- a/service/lambda/go.mod +++ b/service/lambda/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/lambda/go.sum b/service/lambda/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/lambda/go.sum +++ b/service/lambda/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/launchwizard/go.mod b/service/launchwizard/go.mod index 8df3c26a03d..890c30479a6 100644 --- a/service/launchwizard/go.mod +++ b/service/launchwizard/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/launchwizard/go.sum b/service/launchwizard/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/launchwizard/go.sum +++ b/service/launchwizard/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lexmodelbuildingservice/go.mod b/service/lexmodelbuildingservice/go.mod index 0ce57408b7c..c76479a734a 100644 --- a/service/lexmodelbuildingservice/go.mod +++ b/service/lexmodelbuildingservice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lexmodelbuildingservice/go.sum b/service/lexmodelbuildingservice/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/lexmodelbuildingservice/go.sum +++ b/service/lexmodelbuildingservice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lexmodelsv2/go.mod b/service/lexmodelsv2/go.mod index 2b27a3efed0..47a70936baa 100644 --- a/service/lexmodelsv2/go.mod +++ b/service/lexmodelsv2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/lexmodelsv2/go.sum b/service/lexmodelsv2/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/lexmodelsv2/go.sum +++ b/service/lexmodelsv2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/lexruntimeservice/go.mod b/service/lexruntimeservice/go.mod index e60b1b7ffc8..dcfb0bd7a4a 100644 --- a/service/lexruntimeservice/go.mod +++ b/service/lexruntimeservice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lexruntimeservice/go.sum b/service/lexruntimeservice/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/lexruntimeservice/go.sum +++ b/service/lexruntimeservice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lexruntimev2/go.mod b/service/lexruntimev2/go.mod index e0c8d07d5e7..25c562c5bfa 100644 --- a/service/lexruntimev2/go.mod +++ b/service/lexruntimev2/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lexruntimev2/go.sum b/service/lexruntimev2/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/lexruntimev2/go.sum +++ b/service/lexruntimev2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/licensemanager/go.mod b/service/licensemanager/go.mod index d1f3de1f177..c28f3e7a5aa 100644 --- a/service/licensemanager/go.mod +++ b/service/licensemanager/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/licensemanager/go.sum b/service/licensemanager/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/licensemanager/go.sum +++ b/service/licensemanager/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/licensemanagerlinuxsubscriptions/go.mod b/service/licensemanagerlinuxsubscriptions/go.mod index e8c9a3007c9..3806f24befd 100644 --- a/service/licensemanagerlinuxsubscriptions/go.mod +++ b/service/licensemanagerlinuxsubscriptions/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/licensemanagerlinuxsubscriptions/go.sum b/service/licensemanagerlinuxsubscriptions/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/licensemanagerlinuxsubscriptions/go.sum +++ b/service/licensemanagerlinuxsubscriptions/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/licensemanagerusersubscriptions/go.mod b/service/licensemanagerusersubscriptions/go.mod index ef09e022300..0478df27abd 100644 --- a/service/licensemanagerusersubscriptions/go.mod +++ b/service/licensemanagerusersubscriptions/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/licensemanagerusersubscriptions/go.sum b/service/licensemanagerusersubscriptions/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/licensemanagerusersubscriptions/go.sum +++ b/service/licensemanagerusersubscriptions/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lightsail/go.mod b/service/lightsail/go.mod index 094053a295f..b1f172e10bf 100644 --- a/service/lightsail/go.mod +++ b/service/lightsail/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lightsail/go.sum b/service/lightsail/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/lightsail/go.sum +++ b/service/lightsail/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/location/go.mod b/service/location/go.mod index a09ebde4dc9..d53c00af4fc 100644 --- a/service/location/go.mod +++ b/service/location/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/location/go.sum b/service/location/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/location/go.sum +++ b/service/location/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lookoutequipment/go.mod b/service/lookoutequipment/go.mod index 252d20cd4e7..980a969d50c 100644 --- a/service/lookoutequipment/go.mod +++ b/service/lookoutequipment/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lookoutequipment/go.sum b/service/lookoutequipment/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/lookoutequipment/go.sum +++ b/service/lookoutequipment/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lookoutmetrics/go.mod b/service/lookoutmetrics/go.mod index 2aaf8bc2938..0e55f375805 100644 --- a/service/lookoutmetrics/go.mod +++ b/service/lookoutmetrics/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lookoutmetrics/go.sum b/service/lookoutmetrics/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/lookoutmetrics/go.sum +++ b/service/lookoutmetrics/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lookoutvision/go.mod b/service/lookoutvision/go.mod index ce159a594a0..37c6a9fe3c3 100644 --- a/service/lookoutvision/go.mod +++ b/service/lookoutvision/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lookoutvision/go.sum b/service/lookoutvision/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/lookoutvision/go.sum +++ b/service/lookoutvision/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/m2/go.mod b/service/m2/go.mod index 28eaa992183..45c18c4cd6e 100644 --- a/service/m2/go.mod +++ b/service/m2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/m2/go.sum b/service/m2/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/m2/go.sum +++ b/service/m2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/machinelearning/go.mod b/service/machinelearning/go.mod index d41dbb6076a..11ff72db467 100644 --- a/service/machinelearning/go.mod +++ b/service/machinelearning/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/machinelearning/go.sum b/service/machinelearning/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/machinelearning/go.sum +++ b/service/machinelearning/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/macie2/go.mod b/service/macie2/go.mod index 551d85d97d2..313545986fb 100644 --- a/service/macie2/go.mod +++ b/service/macie2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/macie2/go.sum b/service/macie2/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/macie2/go.sum +++ b/service/macie2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/managedblockchain/go.mod b/service/managedblockchain/go.mod index 32ff094ac07..dfa94f1ba70 100644 --- a/service/managedblockchain/go.mod +++ b/service/managedblockchain/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/managedblockchain/go.sum b/service/managedblockchain/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/managedblockchain/go.sum +++ b/service/managedblockchain/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/managedblockchainquery/go.mod b/service/managedblockchainquery/go.mod index 056c4191fbb..5ceaaebf530 100644 --- a/service/managedblockchainquery/go.mod +++ b/service/managedblockchainquery/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/managedblockchainquery/go.sum b/service/managedblockchainquery/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/managedblockchainquery/go.sum +++ b/service/managedblockchainquery/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/marketplacecatalog/go.mod b/service/marketplacecatalog/go.mod index 69df4054b49..189268704c5 100644 --- a/service/marketplacecatalog/go.mod +++ b/service/marketplacecatalog/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/marketplacecatalog/go.sum b/service/marketplacecatalog/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/marketplacecatalog/go.sum +++ b/service/marketplacecatalog/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/marketplacecommerceanalytics/go.mod b/service/marketplacecommerceanalytics/go.mod index 1dd39813448..e76a52b6a64 100644 --- a/service/marketplacecommerceanalytics/go.mod +++ b/service/marketplacecommerceanalytics/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/marketplacecommerceanalytics/go.sum b/service/marketplacecommerceanalytics/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/marketplacecommerceanalytics/go.sum +++ b/service/marketplacecommerceanalytics/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/marketplaceentitlementservice/go.mod b/service/marketplaceentitlementservice/go.mod index b92642a413f..d88a85069bb 100644 --- a/service/marketplaceentitlementservice/go.mod +++ b/service/marketplaceentitlementservice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/marketplaceentitlementservice/go.sum b/service/marketplaceentitlementservice/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/marketplaceentitlementservice/go.sum +++ b/service/marketplaceentitlementservice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/marketplacemetering/go.mod b/service/marketplacemetering/go.mod index bcb4499bb0d..f717bce49a8 100644 --- a/service/marketplacemetering/go.mod +++ b/service/marketplacemetering/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/marketplacemetering/go.sum b/service/marketplacemetering/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/marketplacemetering/go.sum +++ b/service/marketplacemetering/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediaconnect/go.mod b/service/mediaconnect/go.mod index cc99fe07f59..09f97ba2d53 100644 --- a/service/mediaconnect/go.mod +++ b/service/mediaconnect/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/mediaconnect/go.sum b/service/mediaconnect/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/mediaconnect/go.sum +++ b/service/mediaconnect/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/mediaconvert/go.mod b/service/mediaconvert/go.mod index e295c91a9bb..8b11abf1d58 100644 --- a/service/mediaconvert/go.mod +++ b/service/mediaconvert/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mediaconvert/go.sum b/service/mediaconvert/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/mediaconvert/go.sum +++ b/service/mediaconvert/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/medialive/go.mod b/service/medialive/go.mod index 4e8a3a892cf..a29ef669761 100644 --- a/service/medialive/go.mod +++ b/service/medialive/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/medialive/go.sum b/service/medialive/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/medialive/go.sum +++ b/service/medialive/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/mediapackage/go.mod b/service/mediapackage/go.mod index e20dea10213..0b3cfde9642 100644 --- a/service/mediapackage/go.mod +++ b/service/mediapackage/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mediapackage/go.sum b/service/mediapackage/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/mediapackage/go.sum +++ b/service/mediapackage/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediapackagev2/go.mod b/service/mediapackagev2/go.mod index 91fc031d55f..34563cdc697 100644 --- a/service/mediapackagev2/go.mod +++ b/service/mediapackagev2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mediapackagev2/go.sum b/service/mediapackagev2/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/mediapackagev2/go.sum +++ b/service/mediapackagev2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediapackagevod/go.mod b/service/mediapackagevod/go.mod index 02082252554..41331da5893 100644 --- a/service/mediapackagevod/go.mod +++ b/service/mediapackagevod/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mediapackagevod/go.sum b/service/mediapackagevod/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/mediapackagevod/go.sum +++ b/service/mediapackagevod/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediastore/go.mod b/service/mediastore/go.mod index 02370b2d41c..70c43587a86 100644 --- a/service/mediastore/go.mod +++ b/service/mediastore/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mediastore/go.sum b/service/mediastore/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/mediastore/go.sum +++ b/service/mediastore/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediastoredata/go.mod b/service/mediastoredata/go.mod index ca234d00c46..f9849fbe4c5 100644 --- a/service/mediastoredata/go.mod +++ b/service/mediastoredata/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mediastoredata/go.sum b/service/mediastoredata/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/mediastoredata/go.sum +++ b/service/mediastoredata/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediatailor/go.mod b/service/mediatailor/go.mod index c2557039412..ba4424acc89 100644 --- a/service/mediatailor/go.mod +++ b/service/mediatailor/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mediatailor/go.sum b/service/mediatailor/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/mediatailor/go.sum +++ b/service/mediatailor/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/medicalimaging/go.mod b/service/medicalimaging/go.mod index 06139903888..b3c0244b9cd 100644 --- a/service/medicalimaging/go.mod +++ b/service/medicalimaging/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/medicalimaging/go.sum b/service/medicalimaging/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/medicalimaging/go.sum +++ b/service/medicalimaging/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/memorydb/go.mod b/service/memorydb/go.mod index a5aef6b0b24..e00c9b39bd4 100644 --- a/service/memorydb/go.mod +++ b/service/memorydb/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/memorydb/go.sum b/service/memorydb/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/memorydb/go.sum +++ b/service/memorydb/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mgn/go.mod b/service/mgn/go.mod index fbc6ea22ea9..6a956d48a6c 100644 --- a/service/mgn/go.mod +++ b/service/mgn/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mgn/go.sum b/service/mgn/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/mgn/go.sum +++ b/service/mgn/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/migrationhub/go.mod b/service/migrationhub/go.mod index 0cb3624c7a2..968354d6620 100644 --- a/service/migrationhub/go.mod +++ b/service/migrationhub/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/migrationhub/go.sum b/service/migrationhub/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/migrationhub/go.sum +++ b/service/migrationhub/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/migrationhubconfig/go.mod b/service/migrationhubconfig/go.mod index d0c55fc999b..12886bc4e95 100644 --- a/service/migrationhubconfig/go.mod +++ b/service/migrationhubconfig/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/migrationhubconfig/go.sum b/service/migrationhubconfig/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/migrationhubconfig/go.sum +++ b/service/migrationhubconfig/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/migrationhuborchestrator/go.mod b/service/migrationhuborchestrator/go.mod index 990c6192a7f..d9af2e5436d 100644 --- a/service/migrationhuborchestrator/go.mod +++ b/service/migrationhuborchestrator/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/migrationhuborchestrator/go.sum b/service/migrationhuborchestrator/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/migrationhuborchestrator/go.sum +++ b/service/migrationhuborchestrator/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/migrationhubrefactorspaces/go.mod b/service/migrationhubrefactorspaces/go.mod index d2f1ab70963..f84f2e2bdca 100644 --- a/service/migrationhubrefactorspaces/go.mod +++ b/service/migrationhubrefactorspaces/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/migrationhubrefactorspaces/go.sum b/service/migrationhubrefactorspaces/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/migrationhubrefactorspaces/go.sum +++ b/service/migrationhubrefactorspaces/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/migrationhubstrategy/go.mod b/service/migrationhubstrategy/go.mod index 74571c172c4..ca8240f18a1 100644 --- a/service/migrationhubstrategy/go.mod +++ b/service/migrationhubstrategy/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/migrationhubstrategy/go.sum b/service/migrationhubstrategy/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/migrationhubstrategy/go.sum +++ b/service/migrationhubstrategy/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mobile/go.mod b/service/mobile/go.mod index a65ce3cba4d..9082cfb4dc8 100644 --- a/service/mobile/go.mod +++ b/service/mobile/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mobile/go.sum b/service/mobile/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/mobile/go.sum +++ b/service/mobile/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mq/go.mod b/service/mq/go.mod index f48249b5d3e..367e39d33b0 100644 --- a/service/mq/go.mod +++ b/service/mq/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mq/go.sum b/service/mq/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/mq/go.sum +++ b/service/mq/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mturk/go.mod b/service/mturk/go.mod index 039113d7af9..2a4f0c0deb6 100644 --- a/service/mturk/go.mod +++ b/service/mturk/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mturk/go.sum b/service/mturk/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/mturk/go.sum +++ b/service/mturk/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mwaa/go.mod b/service/mwaa/go.mod index eae34463f66..7e3e89474bb 100644 --- a/service/mwaa/go.mod +++ b/service/mwaa/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mwaa/go.sum b/service/mwaa/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/mwaa/go.sum +++ b/service/mwaa/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/neptune/go.mod b/service/neptune/go.mod index 1198138398f..ca4a3628ad7 100644 --- a/service/neptune/go.mod +++ b/service/neptune/go.mod @@ -8,7 +8,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.1 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/neptune/go.sum b/service/neptune/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/neptune/go.sum +++ b/service/neptune/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/neptunedata/go.mod b/service/neptunedata/go.mod index 1be9e246ded..b44346c2335 100644 --- a/service/neptunedata/go.mod +++ b/service/neptunedata/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/neptunedata/go.sum b/service/neptunedata/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/neptunedata/go.sum +++ b/service/neptunedata/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/networkfirewall/go.mod b/service/networkfirewall/go.mod index 99eda6bf049..560d22e4fb5 100644 --- a/service/networkfirewall/go.mod +++ b/service/networkfirewall/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/networkfirewall/go.sum b/service/networkfirewall/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/networkfirewall/go.sum +++ b/service/networkfirewall/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/networkmanager/go.mod b/service/networkmanager/go.mod index 6a8a0cfb01a..888249a5d72 100644 --- a/service/networkmanager/go.mod +++ b/service/networkmanager/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/networkmanager/go.sum b/service/networkmanager/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/networkmanager/go.sum +++ b/service/networkmanager/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/nimble/go.mod b/service/nimble/go.mod index fa91c08910c..ff9f64e41e6 100644 --- a/service/nimble/go.mod +++ b/service/nimble/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/nimble/go.sum b/service/nimble/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/nimble/go.sum +++ b/service/nimble/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/oam/go.mod b/service/oam/go.mod index 430f2704296..77802b8b25a 100644 --- a/service/oam/go.mod +++ b/service/oam/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/oam/go.sum b/service/oam/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/oam/go.sum +++ b/service/oam/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/omics/go.mod b/service/omics/go.mod index 4e01f5e5f42..727824e7716 100644 --- a/service/omics/go.mod +++ b/service/omics/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/omics/go.sum b/service/omics/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/omics/go.sum +++ b/service/omics/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/opensearch/api_op_AddDataSource.go b/service/opensearch/api_op_AddDataSource.go new file mode 100644 index 00000000000..77a408cec32 --- /dev/null +++ b/service/opensearch/api_op_AddDataSource.go @@ -0,0 +1,152 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package opensearch + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/opensearch/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Adds the data source on the domain. +func (c *Client) AddDataSource(ctx context.Context, params *AddDataSourceInput, optFns ...func(*Options)) (*AddDataSourceOutput, error) { + if params == nil { + params = &AddDataSourceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "AddDataSource", params, optFns, c.addOperationAddDataSourceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*AddDataSourceOutput) + out.ResultMetadata = metadata + return out, nil +} + +// Container for the parameters to the AddDataSource operation. +type AddDataSourceInput struct { + + // The type of data source. + // + // This member is required. + DataSourceType types.DataSourceType + + // The name of the domain. + // + // This member is required. + DomainName *string + + // The name of the data source. + // + // This member is required. + Name *string + + // A description of the data source. + Description *string + + noSmithyDocumentSerde +} + +// The result of an AddDataSource operation. +type AddDataSourceOutput struct { + + // A message associated with the data source. + Message *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationAddDataSourceMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpAddDataSource{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpAddDataSource{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "AddDataSource"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpAddDataSourceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAddDataSource(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opAddDataSource(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "AddDataSource", + } +} diff --git a/service/opensearch/api_op_DeleteDataSource.go b/service/opensearch/api_op_DeleteDataSource.go new file mode 100644 index 00000000000..0f675b051ea --- /dev/null +++ b/service/opensearch/api_op_DeleteDataSource.go @@ -0,0 +1,143 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package opensearch + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes the data source. +func (c *Client) DeleteDataSource(ctx context.Context, params *DeleteDataSourceInput, optFns ...func(*Options)) (*DeleteDataSourceOutput, error) { + if params == nil { + params = &DeleteDataSourceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteDataSource", params, optFns, c.addOperationDeleteDataSourceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteDataSourceOutput) + out.ResultMetadata = metadata + return out, nil +} + +// Container for the parameters to the DeleteDataSource operation. +type DeleteDataSourceInput struct { + + // The name of the domain. + // + // This member is required. + DomainName *string + + // The name of the data source. + // + // This member is required. + Name *string + + noSmithyDocumentSerde +} + +// The result of a GetDataSource operation. +type DeleteDataSourceOutput struct { + + // A message associated with the initiated request. + Message *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteDataSourceMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteDataSource{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteDataSource{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteDataSource"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteDataSourceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteDataSource(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteDataSource(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteDataSource", + } +} diff --git a/service/opensearch/api_op_GetDataSource.go b/service/opensearch/api_op_GetDataSource.go new file mode 100644 index 00000000000..bcbf425c04a --- /dev/null +++ b/service/opensearch/api_op_GetDataSource.go @@ -0,0 +1,150 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package opensearch + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/opensearch/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Describes the data source details. +func (c *Client) GetDataSource(ctx context.Context, params *GetDataSourceInput, optFns ...func(*Options)) (*GetDataSourceOutput, error) { + if params == nil { + params = &GetDataSourceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetDataSource", params, optFns, c.addOperationGetDataSourceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetDataSourceOutput) + out.ResultMetadata = metadata + return out, nil +} + +// Container for the parameters to the GetDataSource operation. +type GetDataSourceInput struct { + + // The name of the domain. + // + // This member is required. + DomainName *string + + // The name of the data source. + // + // This member is required. + Name *string + + noSmithyDocumentSerde +} + +// The result of a GetDataSource operation. +type GetDataSourceOutput struct { + + // The type of data source. + DataSourceType types.DataSourceType + + // A description of the data source. + Description *string + + // The name of the data source. + Name *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetDataSourceMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetDataSource{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetDataSource{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetDataSource"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpGetDataSourceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetDataSource(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetDataSource(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetDataSource", + } +} diff --git a/service/opensearch/api_op_ListDataSources.go b/service/opensearch/api_op_ListDataSources.go new file mode 100644 index 00000000000..10e4e10f151 --- /dev/null +++ b/service/opensearch/api_op_ListDataSources.go @@ -0,0 +1,139 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package opensearch + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/opensearch/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// A list of the data source details of the domain. +func (c *Client) ListDataSources(ctx context.Context, params *ListDataSourcesInput, optFns ...func(*Options)) (*ListDataSourcesOutput, error) { + if params == nil { + params = &ListDataSourcesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListDataSources", params, optFns, c.addOperationListDataSourcesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListDataSourcesOutput) + out.ResultMetadata = metadata + return out, nil +} + +// Container for the parameters to the ListDataSources operation. +type ListDataSourcesInput struct { + + // The name of the domain. + // + // This member is required. + DomainName *string + + noSmithyDocumentSerde +} + +// The result of a ListDataSources operation. +type ListDataSourcesOutput struct { + + // A list of the data sources. + DataSources []types.DataSourceDetails + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListDataSourcesMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListDataSources{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListDataSources{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListDataSources"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpListDataSourcesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListDataSources(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opListDataSources(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListDataSources", + } +} diff --git a/service/opensearch/api_op_UpdateDataSource.go b/service/opensearch/api_op_UpdateDataSource.go new file mode 100644 index 00000000000..dd20ddd459c --- /dev/null +++ b/service/opensearch/api_op_UpdateDataSource.go @@ -0,0 +1,152 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package opensearch + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/opensearch/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates the data source on the domain. +func (c *Client) UpdateDataSource(ctx context.Context, params *UpdateDataSourceInput, optFns ...func(*Options)) (*UpdateDataSourceOutput, error) { + if params == nil { + params = &UpdateDataSourceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateDataSource", params, optFns, c.addOperationUpdateDataSourceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateDataSourceOutput) + out.ResultMetadata = metadata + return out, nil +} + +// Container for the parameters to the UpdateDataSource operation. +type UpdateDataSourceInput struct { + + // The type of data source. + // + // This member is required. + DataSourceType types.DataSourceType + + // The name of the domain. + // + // This member is required. + DomainName *string + + // The name of the data source. + // + // This member is required. + Name *string + + // A description of the data source. + Description *string + + noSmithyDocumentSerde +} + +// The result of an UpdateDataSource operation. +type UpdateDataSourceOutput struct { + + // A message associated with the data source. + Message *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateDataSourceMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateDataSource{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateDataSource{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateDataSource"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateDataSourceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateDataSource(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateDataSource(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "UpdateDataSource", + } +} diff --git a/service/opensearch/deserializers.go b/service/opensearch/deserializers.go index 6cdb584db45..b610678ee9b 100644 --- a/service/opensearch/deserializers.go +++ b/service/opensearch/deserializers.go @@ -174,6 +174,175 @@ func awsRestjson1_deserializeOpDocumentAcceptInboundConnectionOutput(v **AcceptI return nil } +type awsRestjson1_deserializeOpAddDataSource struct { +} + +func (*awsRestjson1_deserializeOpAddDataSource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpAddDataSource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorAddDataSource(response, &metadata) + } + output := &AddDataSourceOutput{} + 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_deserializeOpDocumentAddDataSourceOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorAddDataSource(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("BaseException", errorCode): + return awsRestjson1_deserializeErrorBaseException(response, errorBody) + + case strings.EqualFold("DependencyFailureException", errorCode): + return awsRestjson1_deserializeErrorDependencyFailureException(response, errorBody) + + case strings.EqualFold("DisabledOperationException", errorCode): + return awsRestjson1_deserializeErrorDisabledOperationException(response, errorBody) + + case strings.EqualFold("InternalException", errorCode): + return awsRestjson1_deserializeErrorInternalException(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("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentAddDataSourceOutput(v **AddDataSourceOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *AddDataSourceOutput + if *v == nil { + sv = &AddDataSourceOutput{} + } 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 +} + type awsRestjson1_deserializeOpAddTags struct { } @@ -1442,14 +1611,14 @@ func awsRestjson1_deserializeOpDocumentCreateVpcEndpointOutput(v **CreateVpcEndp return nil } -type awsRestjson1_deserializeOpDeleteDomain struct { +type awsRestjson1_deserializeOpDeleteDataSource struct { } -func (*awsRestjson1_deserializeOpDeleteDomain) ID() string { +func (*awsRestjson1_deserializeOpDeleteDataSource) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteDomain) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteDataSource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1463,9 +1632,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_deserializeOpErrorDeleteDataSource(response, &metadata) } - output := &DeleteDomainOutput{} + output := &DeleteDataSourceOutput{} out.Result = output var buff [1024]byte @@ -1486,7 +1655,7 @@ func (m *awsRestjson1_deserializeOpDeleteDomain) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteDomainOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteDataSourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1499,7 +1668,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_deserializeOpErrorDeleteDataSource(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1543,6 +1712,12 @@ func awsRestjson1_deserializeOpErrorDeleteDomain(response *smithyhttp.Response, case strings.EqualFold("BaseException", errorCode): return awsRestjson1_deserializeErrorBaseException(response, errorBody) + case strings.EqualFold("DependencyFailureException", errorCode): + return awsRestjson1_deserializeErrorDependencyFailureException(response, errorBody) + + case strings.EqualFold("DisabledOperationException", errorCode): + return awsRestjson1_deserializeErrorDisabledOperationException(response, errorBody) + case strings.EqualFold("InternalException", errorCode): return awsRestjson1_deserializeErrorInternalException(response, errorBody) @@ -1562,7 +1737,7 @@ func awsRestjson1_deserializeOpErrorDeleteDomain(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentDeleteDomainOutput(v **DeleteDomainOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteDataSourceOutput(v **DeleteDataSourceOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1575,18 +1750,22 @@ func awsRestjson1_deserializeOpDocumentDeleteDomainOutput(v **DeleteDomainOutput return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteDomainOutput + var sv *DeleteDataSourceOutput if *v == nil { - sv = &DeleteDomainOutput{} + sv = &DeleteDataSourceOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DomainStatus": - if err := awsRestjson1_deserializeDocumentDomainStatus(&sv.DomainStatus, 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: @@ -1598,14 +1777,14 @@ func awsRestjson1_deserializeOpDocumentDeleteDomainOutput(v **DeleteDomainOutput return nil } -type awsRestjson1_deserializeOpDeleteInboundConnection struct { +type awsRestjson1_deserializeOpDeleteDomain struct { } -func (*awsRestjson1_deserializeOpDeleteInboundConnection) ID() string { +func (*awsRestjson1_deserializeOpDeleteDomain) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteInboundConnection) 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) @@ -1619,9 +1798,9 @@ func (m *awsRestjson1_deserializeOpDeleteInboundConnection) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteInboundConnection(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteDomain(response, &metadata) } - output := &DeleteInboundConnectionOutput{} + output := &DeleteDomainOutput{} out.Result = output var buff [1024]byte @@ -1642,7 +1821,7 @@ func (m *awsRestjson1_deserializeOpDeleteInboundConnection) HandleDeserialize(ct return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteInboundConnectionOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteDomainOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1655,7 +1834,7 @@ func (m *awsRestjson1_deserializeOpDeleteInboundConnection) HandleDeserialize(ct return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteInboundConnection(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)} @@ -1696,12 +1875,18 @@ func awsRestjson1_deserializeOpErrorDeleteInboundConnection(response *smithyhttp } switch { - case strings.EqualFold("DisabledOperationException", errorCode): - return awsRestjson1_deserializeErrorDisabledOperationException(response, errorBody) + case strings.EqualFold("BaseException", errorCode): + return awsRestjson1_deserializeErrorBaseException(response, errorBody) + + case strings.EqualFold("InternalException", errorCode): + return awsRestjson1_deserializeErrorInternalException(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, @@ -1712,7 +1897,7 @@ func awsRestjson1_deserializeOpErrorDeleteInboundConnection(response *smithyhttp } } -func awsRestjson1_deserializeOpDocumentDeleteInboundConnectionOutput(v **DeleteInboundConnectionOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteDomainOutput(v **DeleteDomainOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1725,17 +1910,17 @@ func awsRestjson1_deserializeOpDocumentDeleteInboundConnectionOutput(v **DeleteI return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteInboundConnectionOutput + var sv *DeleteDomainOutput if *v == nil { - sv = &DeleteInboundConnectionOutput{} + sv = &DeleteDomainOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Connection": - if err := awsRestjson1_deserializeDocumentInboundConnection(&sv.Connection, value); err != nil { + case "DomainStatus": + if err := awsRestjson1_deserializeDocumentDomainStatus(&sv.DomainStatus, value); err != nil { return err } @@ -1748,14 +1933,14 @@ func awsRestjson1_deserializeOpDocumentDeleteInboundConnectionOutput(v **DeleteI return nil } -type awsRestjson1_deserializeOpDeleteOutboundConnection struct { +type awsRestjson1_deserializeOpDeleteInboundConnection struct { } -func (*awsRestjson1_deserializeOpDeleteOutboundConnection) ID() string { +func (*awsRestjson1_deserializeOpDeleteInboundConnection) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteOutboundConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteInboundConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1769,9 +1954,9 @@ func (m *awsRestjson1_deserializeOpDeleteOutboundConnection) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteOutboundConnection(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteInboundConnection(response, &metadata) } - output := &DeleteOutboundConnectionOutput{} + output := &DeleteInboundConnectionOutput{} out.Result = output var buff [1024]byte @@ -1792,7 +1977,7 @@ func (m *awsRestjson1_deserializeOpDeleteOutboundConnection) HandleDeserialize(c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteOutboundConnectionOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteInboundConnectionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1805,7 +1990,7 @@ func (m *awsRestjson1_deserializeOpDeleteOutboundConnection) HandleDeserialize(c return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteOutboundConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteInboundConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1862,7 +2047,7 @@ func awsRestjson1_deserializeOpErrorDeleteOutboundConnection(response *smithyhtt } } -func awsRestjson1_deserializeOpDocumentDeleteOutboundConnectionOutput(v **DeleteOutboundConnectionOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteInboundConnectionOutput(v **DeleteInboundConnectionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1875,9 +2060,9 @@ func awsRestjson1_deserializeOpDocumentDeleteOutboundConnectionOutput(v **Delete return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteOutboundConnectionOutput + var sv *DeleteInboundConnectionOutput if *v == nil { - sv = &DeleteOutboundConnectionOutput{} + sv = &DeleteInboundConnectionOutput{} } else { sv = *v } @@ -1885,7 +2070,7 @@ func awsRestjson1_deserializeOpDocumentDeleteOutboundConnectionOutput(v **Delete for key, value := range shape { switch key { case "Connection": - if err := awsRestjson1_deserializeDocumentOutboundConnection(&sv.Connection, value); err != nil { + if err := awsRestjson1_deserializeDocumentInboundConnection(&sv.Connection, value); err != nil { return err } @@ -1898,14 +2083,14 @@ func awsRestjson1_deserializeOpDocumentDeleteOutboundConnectionOutput(v **Delete return nil } -type awsRestjson1_deserializeOpDeletePackage struct { +type awsRestjson1_deserializeOpDeleteOutboundConnection struct { } -func (*awsRestjson1_deserializeOpDeletePackage) ID() string { +func (*awsRestjson1_deserializeOpDeleteOutboundConnection) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeletePackage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteOutboundConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1919,9 +2104,9 @@ func (m *awsRestjson1_deserializeOpDeletePackage) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeletePackage(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteOutboundConnection(response, &metadata) } - output := &DeletePackageOutput{} + output := &DeleteOutboundConnectionOutput{} out.Result = output var buff [1024]byte @@ -1942,7 +2127,7 @@ func (m *awsRestjson1_deserializeOpDeletePackage) HandleDeserialize(ctx context. return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeletePackageOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteOutboundConnectionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1955,7 +2140,7 @@ func (m *awsRestjson1_deserializeOpDeletePackage) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeletePackage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteOutboundConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1996,7 +2181,157 @@ func awsRestjson1_deserializeOpErrorDeletePackage(response *smithyhttp.Response, } switch { - case strings.EqualFold("AccessDeniedException", errorCode): + case strings.EqualFold("DisabledOperationException", errorCode): + return awsRestjson1_deserializeErrorDisabledOperationException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentDeleteOutboundConnectionOutput(v **DeleteOutboundConnectionOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DeleteOutboundConnectionOutput + if *v == nil { + sv = &DeleteOutboundConnectionOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Connection": + if err := awsRestjson1_deserializeDocumentOutboundConnection(&sv.Connection, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpDeletePackage struct { +} + +func (*awsRestjson1_deserializeOpDeletePackage) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeletePackage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorDeletePackage(response, &metadata) + } + output := &DeletePackageOutput{} + 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_deserializeOpDocumentDeletePackageOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeletePackage(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("BaseException", errorCode): @@ -5060,6 +5395,186 @@ func awsRestjson1_deserializeOpDocumentGetCompatibleVersionsOutput(v **GetCompat return nil } +type awsRestjson1_deserializeOpGetDataSource struct { +} + +func (*awsRestjson1_deserializeOpGetDataSource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetDataSource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorGetDataSource(response, &metadata) + } + output := &GetDataSourceOutput{} + 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_deserializeOpDocumentGetDataSourceOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetDataSource(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("BaseException", errorCode): + return awsRestjson1_deserializeErrorBaseException(response, errorBody) + + case strings.EqualFold("DependencyFailureException", errorCode): + return awsRestjson1_deserializeErrorDependencyFailureException(response, errorBody) + + case strings.EqualFold("DisabledOperationException", errorCode): + return awsRestjson1_deserializeErrorDisabledOperationException(response, errorBody) + + case strings.EqualFold("InternalException", errorCode): + return awsRestjson1_deserializeErrorInternalException(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_deserializeOpDocumentGetDataSourceOutput(v **GetDataSourceOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetDataSourceOutput + if *v == nil { + sv = &GetDataSourceOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DataSourceType": + if err := awsRestjson1_deserializeDocumentDataSourceType(&sv.DataSourceType, value); err != nil { + return err + } + + case "Description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataSourceDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataSourceName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + type awsRestjson1_deserializeOpGetDomainMaintenanceStatus struct { } @@ -5282,14 +5797,191 @@ func awsRestjson1_deserializeOpDocumentGetDomainMaintenanceStatusOutput(v **GetD return nil } -type awsRestjson1_deserializeOpGetPackageVersionHistory struct { +type awsRestjson1_deserializeOpGetPackageVersionHistory struct { +} + +func (*awsRestjson1_deserializeOpGetPackageVersionHistory) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetPackageVersionHistory) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorGetPackageVersionHistory(response, &metadata) + } + output := &GetPackageVersionHistoryOutput{} + 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_deserializeOpDocumentGetPackageVersionHistoryOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetPackageVersionHistory(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("BaseException", errorCode): + return awsRestjson1_deserializeErrorBaseException(response, errorBody) + + case strings.EqualFold("InternalException", errorCode): + return awsRestjson1_deserializeErrorInternalException(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_deserializeOpDocumentGetPackageVersionHistoryOutput(v **GetPackageVersionHistoryOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetPackageVersionHistoryOutput + if *v == nil { + sv = &GetPackageVersionHistoryOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "PackageID": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PackageID to be of type string, got %T instead", value) + } + sv.PackageID = ptr.String(jtv) + } + + case "PackageVersionHistoryList": + if err := awsRestjson1_deserializeDocumentPackageVersionHistoryList(&sv.PackageVersionHistoryList, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetUpgradeHistory struct { } -func (*awsRestjson1_deserializeOpGetPackageVersionHistory) ID() string { +func (*awsRestjson1_deserializeOpGetUpgradeHistory) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetPackageVersionHistory) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetUpgradeHistory) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5303,9 +5995,9 @@ func (m *awsRestjson1_deserializeOpGetPackageVersionHistory) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetPackageVersionHistory(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetUpgradeHistory(response, &metadata) } - output := &GetPackageVersionHistoryOutput{} + output := &GetUpgradeHistoryOutput{} out.Result = output var buff [1024]byte @@ -5326,7 +6018,7 @@ func (m *awsRestjson1_deserializeOpGetPackageVersionHistory) HandleDeserialize(c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetPackageVersionHistoryOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetUpgradeHistoryOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5339,7 +6031,7 @@ func (m *awsRestjson1_deserializeOpGetPackageVersionHistory) HandleDeserialize(c return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetPackageVersionHistory(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetUpgradeHistory(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5380,12 +6072,12 @@ func awsRestjson1_deserializeOpErrorGetPackageVersionHistory(response *smithyhtt } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("BaseException", errorCode): return awsRestjson1_deserializeErrorBaseException(response, errorBody) + case strings.EqualFold("DisabledOperationException", errorCode): + return awsRestjson1_deserializeErrorDisabledOperationException(response, errorBody) + case strings.EqualFold("InternalException", errorCode): return awsRestjson1_deserializeErrorInternalException(response, errorBody) @@ -5405,7 +6097,7 @@ func awsRestjson1_deserializeOpErrorGetPackageVersionHistory(response *smithyhtt } } -func awsRestjson1_deserializeOpDocumentGetPackageVersionHistoryOutput(v **GetPackageVersionHistoryOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetUpgradeHistoryOutput(v **GetUpgradeHistoryOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5418,9 +6110,9 @@ func awsRestjson1_deserializeOpDocumentGetPackageVersionHistoryOutput(v **GetPac return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetPackageVersionHistoryOutput + var sv *GetUpgradeHistoryOutput if *v == nil { - sv = &GetPackageVersionHistoryOutput{} + sv = &GetUpgradeHistoryOutput{} } else { sv = *v } @@ -5436,17 +6128,8 @@ func awsRestjson1_deserializeOpDocumentGetPackageVersionHistoryOutput(v **GetPac sv.NextToken = ptr.String(jtv) } - case "PackageID": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected PackageID to be of type string, got %T instead", value) - } - sv.PackageID = ptr.String(jtv) - } - - case "PackageVersionHistoryList": - if err := awsRestjson1_deserializeDocumentPackageVersionHistoryList(&sv.PackageVersionHistoryList, value); err != nil { + case "UpgradeHistories": + if err := awsRestjson1_deserializeDocumentUpgradeHistoryList(&sv.UpgradeHistories, value); err != nil { return err } @@ -5459,14 +6142,14 @@ func awsRestjson1_deserializeOpDocumentGetPackageVersionHistoryOutput(v **GetPac return nil } -type awsRestjson1_deserializeOpGetUpgradeHistory struct { +type awsRestjson1_deserializeOpGetUpgradeStatus struct { } -func (*awsRestjson1_deserializeOpGetUpgradeHistory) ID() string { +func (*awsRestjson1_deserializeOpGetUpgradeStatus) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetUpgradeHistory) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetUpgradeStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5480,9 +6163,9 @@ func (m *awsRestjson1_deserializeOpGetUpgradeHistory) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetUpgradeHistory(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetUpgradeStatus(response, &metadata) } - output := &GetUpgradeHistoryOutput{} + output := &GetUpgradeStatusOutput{} out.Result = output var buff [1024]byte @@ -5503,7 +6186,7 @@ func (m *awsRestjson1_deserializeOpGetUpgradeHistory) HandleDeserialize(ctx cont return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetUpgradeHistoryOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetUpgradeStatusOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5516,7 +6199,7 @@ func (m *awsRestjson1_deserializeOpGetUpgradeHistory) HandleDeserialize(ctx cont return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetUpgradeHistory(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetUpgradeStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5582,7 +6265,7 @@ func awsRestjson1_deserializeOpErrorGetUpgradeHistory(response *smithyhttp.Respo } } -func awsRestjson1_deserializeOpDocumentGetUpgradeHistoryOutput(v **GetUpgradeHistoryOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetUpgradeStatusOutput(v **GetUpgradeStatusOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5595,27 +6278,40 @@ func awsRestjson1_deserializeOpDocumentGetUpgradeHistoryOutput(v **GetUpgradeHis return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetUpgradeHistoryOutput + var sv *GetUpgradeStatusOutput if *v == nil { - sv = &GetUpgradeHistoryOutput{} + sv = &GetUpgradeStatusOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "NextToken": + case "StepStatus": 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 UpgradeStatus to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.StepStatus = types.UpgradeStatus(jtv) } - case "UpgradeHistories": - if err := awsRestjson1_deserializeDocumentUpgradeHistoryList(&sv.UpgradeHistories, value); err != nil { - return err + case "UpgradeName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UpgradeName to be of type string, got %T instead", value) + } + sv.UpgradeName = ptr.String(jtv) + } + + case "UpgradeStep": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UpgradeStep to be of type string, got %T instead", value) + } + sv.UpgradeStep = types.UpgradeStep(jtv) } default: @@ -5627,14 +6323,14 @@ func awsRestjson1_deserializeOpDocumentGetUpgradeHistoryOutput(v **GetUpgradeHis return nil } -type awsRestjson1_deserializeOpGetUpgradeStatus struct { +type awsRestjson1_deserializeOpListDataSources struct { } -func (*awsRestjson1_deserializeOpGetUpgradeStatus) ID() string { +func (*awsRestjson1_deserializeOpListDataSources) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetUpgradeStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListDataSources) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5648,9 +6344,9 @@ func (m *awsRestjson1_deserializeOpGetUpgradeStatus) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetUpgradeStatus(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListDataSources(response, &metadata) } - output := &GetUpgradeStatusOutput{} + output := &ListDataSourcesOutput{} out.Result = output var buff [1024]byte @@ -5671,7 +6367,7 @@ func (m *awsRestjson1_deserializeOpGetUpgradeStatus) HandleDeserialize(ctx conte return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetUpgradeStatusOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListDataSourcesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5684,7 +6380,7 @@ func (m *awsRestjson1_deserializeOpGetUpgradeStatus) HandleDeserialize(ctx conte return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetUpgradeStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListDataSources(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5728,6 +6424,9 @@ func awsRestjson1_deserializeOpErrorGetUpgradeStatus(response *smithyhttp.Respon case strings.EqualFold("BaseException", errorCode): return awsRestjson1_deserializeErrorBaseException(response, errorBody) + case strings.EqualFold("DependencyFailureException", errorCode): + return awsRestjson1_deserializeErrorDependencyFailureException(response, errorBody) + case strings.EqualFold("DisabledOperationException", errorCode): return awsRestjson1_deserializeErrorDisabledOperationException(response, errorBody) @@ -5750,7 +6449,7 @@ func awsRestjson1_deserializeOpErrorGetUpgradeStatus(response *smithyhttp.Respon } } -func awsRestjson1_deserializeOpDocumentGetUpgradeStatusOutput(v **GetUpgradeStatusOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListDataSourcesOutput(v **ListDataSourcesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5763,40 +6462,18 @@ func awsRestjson1_deserializeOpDocumentGetUpgradeStatusOutput(v **GetUpgradeStat return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetUpgradeStatusOutput + var sv *ListDataSourcesOutput if *v == nil { - sv = &GetUpgradeStatusOutput{} + sv = &ListDataSourcesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "StepStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected UpgradeStatus to be of type string, got %T instead", value) - } - sv.StepStatus = types.UpgradeStatus(jtv) - } - - case "UpgradeName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected UpgradeName to be of type string, got %T instead", value) - } - sv.UpgradeName = ptr.String(jtv) - } - - case "UpgradeStep": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected UpgradeStep to be of type string, got %T instead", value) - } - sv.UpgradeStep = types.UpgradeStep(jtv) + case "DataSources": + if err := awsRestjson1_deserializeDocumentDataSourceList(&sv.DataSources, value); err != nil { + return err } default: @@ -8043,21 +8720,144 @@ func (m *awsRestjson1_deserializeOpRevokeVpcEndpointAccess) HandleDeserialize(ct return out, metadata, err } - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorRevokeVpcEndpointAccess(response, &metadata) + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + 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_deserializeOpErrorRevokeVpcEndpointAccess(response, &metadata) + } + output := &RevokeVpcEndpointAccessOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorRevokeVpcEndpointAccess(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("BaseException", errorCode): + return awsRestjson1_deserializeErrorBaseException(response, errorBody) + + case strings.EqualFold("DisabledOperationException", errorCode): + return awsRestjson1_deserializeErrorDisabledOperationException(response, errorBody) + + case strings.EqualFold("InternalException", errorCode): + return awsRestjson1_deserializeErrorInternalException(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_deserializeOpStartDomainMaintenance struct { +} + +func (*awsRestjson1_deserializeOpStartDomainMaintenance) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpStartDomainMaintenance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorStartDomainMaintenance(response, &metadata) + } + output := &StartDomainMaintenanceOutput{} + 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_deserializeOpDocumentStartDomainMaintenanceOutput(&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(), + } } - output := &RevokeVpcEndpointAccessOutput{} - out.Result = output return out, metadata, err } -func awsRestjson1_deserializeOpErrorRevokeVpcEndpointAccess(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorStartDomainMaintenance(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -8123,14 +8923,54 @@ func awsRestjson1_deserializeOpErrorRevokeVpcEndpointAccess(response *smithyhttp } } -type awsRestjson1_deserializeOpStartDomainMaintenance struct { +func awsRestjson1_deserializeOpDocumentStartDomainMaintenanceOutput(v **StartDomainMaintenanceOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *StartDomainMaintenanceOutput + if *v == nil { + sv = &StartDomainMaintenanceOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "MaintenanceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) + } + sv.MaintenanceId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil } -func (*awsRestjson1_deserializeOpStartDomainMaintenance) ID() string { +type awsRestjson1_deserializeOpStartServiceSoftwareUpdate struct { +} + +func (*awsRestjson1_deserializeOpStartServiceSoftwareUpdate) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpStartDomainMaintenance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpStartServiceSoftwareUpdate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -8144,9 +8984,9 @@ func (m *awsRestjson1_deserializeOpStartDomainMaintenance) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorStartDomainMaintenance(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorStartServiceSoftwareUpdate(response, &metadata) } - output := &StartDomainMaintenanceOutput{} + output := &StartServiceSoftwareUpdateOutput{} out.Result = output var buff [1024]byte @@ -8167,7 +9007,7 @@ func (m *awsRestjson1_deserializeOpStartDomainMaintenance) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentStartDomainMaintenanceOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentStartServiceSoftwareUpdateOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8180,7 +9020,7 @@ func (m *awsRestjson1_deserializeOpStartDomainMaintenance) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorStartDomainMaintenance(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorStartServiceSoftwareUpdate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -8224,9 +9064,6 @@ func awsRestjson1_deserializeOpErrorStartDomainMaintenance(response *smithyhttp. case strings.EqualFold("BaseException", errorCode): return awsRestjson1_deserializeErrorBaseException(response, errorBody) - case strings.EqualFold("DisabledOperationException", errorCode): - return awsRestjson1_deserializeErrorDisabledOperationException(response, errorBody) - case strings.EqualFold("InternalException", errorCode): return awsRestjson1_deserializeErrorInternalException(response, errorBody) @@ -8246,7 +9083,7 @@ func awsRestjson1_deserializeOpErrorStartDomainMaintenance(response *smithyhttp. } } -func awsRestjson1_deserializeOpDocumentStartDomainMaintenanceOutput(v **StartDomainMaintenanceOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentStartServiceSoftwareUpdateOutput(v **StartServiceSoftwareUpdateOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8259,22 +9096,18 @@ func awsRestjson1_deserializeOpDocumentStartDomainMaintenanceOutput(v **StartDom return fmt.Errorf("unexpected JSON type %v", value) } - var sv *StartDomainMaintenanceOutput + var sv *StartServiceSoftwareUpdateOutput if *v == nil { - sv = &StartDomainMaintenanceOutput{} + sv = &StartServiceSoftwareUpdateOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "MaintenanceId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) - } - sv.MaintenanceId = ptr.String(jtv) + case "ServiceSoftwareOptions": + if err := awsRestjson1_deserializeDocumentServiceSoftwareOptions(&sv.ServiceSoftwareOptions, value); err != nil { + return err } default: @@ -8286,14 +9119,14 @@ func awsRestjson1_deserializeOpDocumentStartDomainMaintenanceOutput(v **StartDom return nil } -type awsRestjson1_deserializeOpStartServiceSoftwareUpdate struct { +type awsRestjson1_deserializeOpUpdateDataSource struct { } -func (*awsRestjson1_deserializeOpStartServiceSoftwareUpdate) ID() string { +func (*awsRestjson1_deserializeOpUpdateDataSource) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpStartServiceSoftwareUpdate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpUpdateDataSource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -8307,9 +9140,9 @@ func (m *awsRestjson1_deserializeOpStartServiceSoftwareUpdate) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorStartServiceSoftwareUpdate(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorUpdateDataSource(response, &metadata) } - output := &StartServiceSoftwareUpdateOutput{} + output := &UpdateDataSourceOutput{} out.Result = output var buff [1024]byte @@ -8330,7 +9163,7 @@ func (m *awsRestjson1_deserializeOpStartServiceSoftwareUpdate) HandleDeserialize return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentStartServiceSoftwareUpdateOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentUpdateDataSourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8343,7 +9176,7 @@ func (m *awsRestjson1_deserializeOpStartServiceSoftwareUpdate) HandleDeserialize return out, metadata, err } -func awsRestjson1_deserializeOpErrorStartServiceSoftwareUpdate(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorUpdateDataSource(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -8387,6 +9220,12 @@ func awsRestjson1_deserializeOpErrorStartServiceSoftwareUpdate(response *smithyh case strings.EqualFold("BaseException", errorCode): return awsRestjson1_deserializeErrorBaseException(response, errorBody) + case strings.EqualFold("DependencyFailureException", errorCode): + return awsRestjson1_deserializeErrorDependencyFailureException(response, errorBody) + + case strings.EqualFold("DisabledOperationException", errorCode): + return awsRestjson1_deserializeErrorDisabledOperationException(response, errorBody) + case strings.EqualFold("InternalException", errorCode): return awsRestjson1_deserializeErrorInternalException(response, errorBody) @@ -8406,7 +9245,7 @@ func awsRestjson1_deserializeOpErrorStartServiceSoftwareUpdate(response *smithyh } } -func awsRestjson1_deserializeOpDocumentStartServiceSoftwareUpdateOutput(v **StartServiceSoftwareUpdateOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentUpdateDataSourceOutput(v **UpdateDataSourceOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8419,18 +9258,22 @@ func awsRestjson1_deserializeOpDocumentStartServiceSoftwareUpdateOutput(v **Star return fmt.Errorf("unexpected JSON type %v", value) } - var sv *StartServiceSoftwareUpdateOutput + var sv *UpdateDataSourceOutput if *v == nil { - sv = &StartServiceSoftwareUpdateOutput{} + sv = &UpdateDataSourceOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "ServiceSoftwareOptions": - if err := awsRestjson1_deserializeDocumentServiceSoftwareOptions(&sv.ServiceSoftwareOptions, 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: @@ -11732,6 +12575,134 @@ func awsRestjson1_deserializeDocumentCrossClusterSearchConnectionProperties(v ** return nil } +func awsRestjson1_deserializeDocumentDataSourceDetails(v **types.DataSourceDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DataSourceDetails + if *v == nil { + sv = &types.DataSourceDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DataSourceType": + if err := awsRestjson1_deserializeDocumentDataSourceType(&sv.DataSourceType, value); err != nil { + return err + } + + case "Description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataSourceDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataSourceName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDataSourceList(v *[]types.DataSourceDetails, 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.DataSourceDetails + if *v == nil { + cv = []types.DataSourceDetails{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.DataSourceDetails + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataSourceDetails(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentDataSourceType(v *types.DataSourceType, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %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.DataSourceType +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "S3GlueDataCatalog": + var mv types.S3GlueDataCatalog + destAddr := &mv + if err := awsRestjson1_deserializeDocumentS3GlueDataCatalog(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.DataSourceTypeMemberS3GlueDataCatalog{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + func awsRestjson1_deserializeDocumentDependencyFailureException(v **types.DependencyFailureException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -15743,6 +16714,46 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } +func awsRestjson1_deserializeDocumentS3GlueDataCatalog(v **types.S3GlueDataCatalog, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.S3GlueDataCatalog + if *v == nil { + sv = &types.S3GlueDataCatalog{} + } 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 RoleArn to be of type string, got %T instead", value) + } + sv.RoleArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentSAMLIdp(v **types.SAMLIdp, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/opensearch/generated.json b/service/opensearch/generated.json index 423f47ad4d0..32224db4ea3 100644 --- a/service/opensearch/generated.json +++ b/service/opensearch/generated.json @@ -10,6 +10,7 @@ "api_client.go", "api_client_test.go", "api_op_AcceptInboundConnection.go", + "api_op_AddDataSource.go", "api_op_AddTags.go", "api_op_AssociatePackage.go", "api_op_AuthorizeVpcEndpointAccess.go", @@ -18,6 +19,7 @@ "api_op_CreateOutboundConnection.go", "api_op_CreatePackage.go", "api_op_CreateVpcEndpoint.go", + "api_op_DeleteDataSource.go", "api_op_DeleteDomain.go", "api_op_DeleteInboundConnection.go", "api_op_DeleteOutboundConnection.go", @@ -40,10 +42,12 @@ "api_op_DescribeVpcEndpoints.go", "api_op_DissociatePackage.go", "api_op_GetCompatibleVersions.go", + "api_op_GetDataSource.go", "api_op_GetDomainMaintenanceStatus.go", "api_op_GetPackageVersionHistory.go", "api_op_GetUpgradeHistory.go", "api_op_GetUpgradeStatus.go", + "api_op_ListDataSources.go", "api_op_ListDomainMaintenances.go", "api_op_ListDomainNames.go", "api_op_ListDomainsForPackage.go", @@ -61,6 +65,7 @@ "api_op_RevokeVpcEndpointAccess.go", "api_op_StartDomainMaintenance.go", "api_op_StartServiceSoftwareUpdate.go", + "api_op_UpdateDataSource.go", "api_op_UpdateDomainConfig.go", "api_op_UpdatePackage.go", "api_op_UpdateScheduledAction.go", @@ -81,6 +86,7 @@ "types/enums.go", "types/errors.go", "types/types.go", + "types/types_exported_test.go", "validators.go" ], "go": "1.15", diff --git a/service/opensearch/go.mod b/service/opensearch/go.mod index 709c4e944d4..0f68d89a63c 100644 --- a/service/opensearch/go.mod +++ b/service/opensearch/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/opensearch/go.sum b/service/opensearch/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/opensearch/go.sum +++ b/service/opensearch/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/opensearch/serializers.go b/service/opensearch/serializers.go index 1347e5d3e43..fd679c29030 100644 --- a/service/opensearch/serializers.go +++ b/service/opensearch/serializers.go @@ -80,6 +80,106 @@ func awsRestjson1_serializeOpHttpBindingsAcceptInboundConnectionInput(v *AcceptI return nil } +type awsRestjson1_serializeOpAddDataSource struct { +} + +func (*awsRestjson1_serializeOpAddDataSource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpAddDataSource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*AddDataSourceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/2021-01-01/opensearch/domain/{DomainName}/dataSource") + 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_serializeOpHttpBindingsAddDataSourceInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentAddDataSourceInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsAddDataSourceInput(v *AddDataSourceInput, 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_serializeOpDocumentAddDataSourceInput(v *AddDataSourceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DataSourceType != nil { + ok := object.Key("DataSourceType") + if err := awsRestjson1_serializeDocumentDataSourceType(v.DataSourceType, ok); err != nil { + return err + } + } + + if v.Description != nil { + ok := object.Key("Description") + ok.String(*v.Description) + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + return nil +} + type awsRestjson1_serializeOpAddTags struct { } @@ -874,6 +974,80 @@ func awsRestjson1_serializeOpDocumentCreateVpcEndpointInput(v *CreateVpcEndpoint return nil } +type awsRestjson1_serializeOpDeleteDataSource struct { +} + +func (*awsRestjson1_serializeOpDeleteDataSource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteDataSource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteDataSourceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/2021-01-01/opensearch/domain/{DomainName}/dataSource/{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 := awsRestjson1_serializeOpHttpBindingsDeleteDataSourceInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteDataSourceInput(v *DeleteDataSourceInput, 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.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 awsRestjson1_serializeOpDeleteDomain struct { } @@ -2457,6 +2631,80 @@ func awsRestjson1_serializeOpHttpBindingsGetCompatibleVersionsInput(v *GetCompat return nil } +type awsRestjson1_serializeOpGetDataSource struct { +} + +func (*awsRestjson1_serializeOpGetDataSource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetDataSource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetDataSourceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/2021-01-01/opensearch/domain/{DomainName}/dataSource/{Name}") + 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_serializeOpHttpBindingsGetDataSourceInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetDataSourceInput(v *GetDataSourceInput, 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.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 awsRestjson1_serializeOpGetDomainMaintenanceStatus struct { } @@ -2737,6 +2985,71 @@ func awsRestjson1_serializeOpHttpBindingsGetUpgradeStatusInput(v *GetUpgradeStat return nil } +type awsRestjson1_serializeOpListDataSources struct { +} + +func (*awsRestjson1_serializeOpListDataSources) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListDataSources) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListDataSourcesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/2021-01-01/opensearch/domain/{DomainName}/dataSource") + 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_serializeOpHttpBindingsListDataSourcesInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListDataSourcesInput(v *ListDataSourcesInput, 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_serializeOpListDomainMaintenances struct { } @@ -4002,6 +4315,110 @@ func awsRestjson1_serializeOpDocumentStartServiceSoftwareUpdateInput(v *StartSer return nil } +type awsRestjson1_serializeOpUpdateDataSource struct { +} + +func (*awsRestjson1_serializeOpUpdateDataSource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateDataSource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateDataSourceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/2021-01-01/opensearch/domain/{DomainName}/dataSource/{Name}") + 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_serializeOpHttpBindingsUpdateDataSourceInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateDataSourceInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateDataSourceInput(v *UpdateDataSourceInput, 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.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 +} + +func awsRestjson1_serializeOpDocumentUpdateDataSourceInput(v *UpdateDataSourceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DataSourceType != nil { + ok := object.Key("DataSourceType") + if err := awsRestjson1_serializeDocumentDataSourceType(v.DataSourceType, ok); err != nil { + return err + } + } + + if v.Description != nil { + ok := object.Key("Description") + ok.String(*v.Description) + } + + return nil +} + type awsRestjson1_serializeOpUpdateDomainConfig struct { } @@ -4872,6 +5289,24 @@ func awsRestjson1_serializeDocumentCrossClusterSearchConnectionProperties(v *typ return nil } +func awsRestjson1_serializeDocumentDataSourceType(v types.DataSourceType, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.DataSourceTypeMemberS3GlueDataCatalog: + av := object.Key("S3GlueDataCatalog") + if err := awsRestjson1_serializeDocumentS3GlueDataCatalog(&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_serializeDocumentDescribePackagesFilter(v *types.DescribePackagesFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -5185,6 +5620,18 @@ func awsRestjson1_serializeDocumentPackageSource(v *types.PackageSource, value s return nil } +func awsRestjson1_serializeDocumentS3GlueDataCatalog(v *types.S3GlueDataCatalog, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.RoleArn != nil { + ok := object.Key("RoleArn") + ok.String(*v.RoleArn) + } + + return nil +} + func awsRestjson1_serializeDocumentSAMLIdp(v *types.SAMLIdp, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/opensearch/types/types.go b/service/opensearch/types/types.go index ac124b21107..ec11c7e0c22 100644 --- a/service/opensearch/types/types.go +++ b/service/opensearch/types/types.go @@ -587,6 +587,39 @@ type CrossClusterSearchConnectionProperties struct { noSmithyDocumentSerde } +// Details about the data sources. +type DataSourceDetails struct { + + // The type of data source. + DataSourceType DataSourceType + + // A description of the data source. + Description *string + + // The name of the data source. + Name *string + + noSmithyDocumentSerde +} + +// Information about the data source. +// +// The following types satisfy this interface: +// +// DataSourceTypeMemberS3GlueDataCatalog +type DataSourceType interface { + isDataSourceType() +} + +// The data source for the AWS S3 Glue Data Catalog. +type DataSourceTypeMemberS3GlueDataCatalog struct { + Value S3GlueDataCatalog + + noSmithyDocumentSerde +} + +func (*DataSourceTypeMemberS3GlueDataCatalog) isDataSourceType() {} + // A filter to apply to the DescribePackage response. type DescribePackagesFilter struct { @@ -682,11 +715,15 @@ type DomainEndpointOptions struct { EnforceHTTPS *bool // Specify the TLS security policy to apply to the HTTPS endpoint of the domain. - // Can be one of the following values: + // The policy can be one of the following values: // - Policy-Min-TLS-1-0-2019-07: TLS security policy which supports TLS version - // 1.0 and higher. + // 1.0 to TLS version 1.2 // - Policy-Min-TLS-1-2-2019-07: TLS security policy which supports only TLS // version 1.2 + // - Policy-Min-TLS-1-0-2023-10: TLS security policy which supports TLS version + // 1.0 to TLS version 1.3 + // - Policy-Min-TLS-1-2-2023-10: TLS security policy which supports TLS version + // 1.2 to TLS version 1.3 with perfect forward secrecy cipher suites TLSSecurityPolicy TLSSecurityPolicy noSmithyDocumentSerde @@ -1643,6 +1680,15 @@ type ReservedInstanceOffering struct { noSmithyDocumentSerde } +// Information about the AWS S3 Glue Data Catalog. +type S3GlueDataCatalog struct { + + // The role ARN for the AWS S3 Glue Data Catalog. + RoleArn *string + + noSmithyDocumentSerde +} + // The SAML identity povider information. type SAMLIdp struct { @@ -2150,3 +2196,14 @@ type ZoneAwarenessConfig 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) isDataSourceType() {} diff --git a/service/opensearch/types/types_exported_test.go b/service/opensearch/types/types_exported_test.go new file mode 100644 index 00000000000..fc1e3521255 --- /dev/null +++ b/service/opensearch/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/opensearch/types" +) + +func ExampleDataSourceType_outputUsage() { + var union types.DataSourceType + // type switches can be used to check the union value + switch v := union.(type) { + case *types.DataSourceTypeMemberS3GlueDataCatalog: + _ = v.Value // Value is types.S3GlueDataCatalog + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.S3GlueDataCatalog diff --git a/service/opensearch/validators.go b/service/opensearch/validators.go index 50fa8af26c5..c5f86526a94 100644 --- a/service/opensearch/validators.go +++ b/service/opensearch/validators.go @@ -30,6 +30,26 @@ func (m *validateOpAcceptInboundConnection) HandleInitialize(ctx context.Context return next.HandleInitialize(ctx, in) } +type validateOpAddDataSource struct { +} + +func (*validateOpAddDataSource) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpAddDataSource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*AddDataSourceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpAddDataSourceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpAddTags struct { } @@ -190,6 +210,26 @@ func (m *validateOpCreateVpcEndpoint) HandleInitialize(ctx context.Context, in m return next.HandleInitialize(ctx, in) } +type validateOpDeleteDataSource struct { +} + +func (*validateOpDeleteDataSource) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteDataSource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteDataSourceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteDataSourceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteDomain struct { } @@ -510,6 +550,26 @@ func (m *validateOpDissociatePackage) HandleInitialize(ctx context.Context, in m return next.HandleInitialize(ctx, in) } +type validateOpGetDataSource struct { +} + +func (*validateOpGetDataSource) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetDataSource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetDataSourceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetDataSourceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetDomainMaintenanceStatus struct { } @@ -590,6 +650,26 @@ func (m *validateOpGetUpgradeStatus) HandleInitialize(ctx context.Context, in mi return next.HandleInitialize(ctx, in) } +type validateOpListDataSources struct { +} + +func (*validateOpListDataSources) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListDataSources) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListDataSourcesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListDataSourcesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListDomainMaintenances struct { } @@ -870,6 +950,26 @@ func (m *validateOpStartServiceSoftwareUpdate) HandleInitialize(ctx context.Cont return next.HandleInitialize(ctx, in) } +type validateOpUpdateDataSource struct { +} + +func (*validateOpUpdateDataSource) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateDataSource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateDataSourceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateDataSourceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateDomainConfig struct { } @@ -974,6 +1074,10 @@ func addOpAcceptInboundConnectionValidationMiddleware(stack *middleware.Stack) e return stack.Initialize.Add(&validateOpAcceptInboundConnection{}, middleware.After) } +func addOpAddDataSourceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpAddDataSource{}, middleware.After) +} + func addOpAddTagsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAddTags{}, middleware.After) } @@ -1006,6 +1110,10 @@ func addOpCreateVpcEndpointValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateVpcEndpoint{}, middleware.After) } +func addOpDeleteDataSourceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteDataSource{}, middleware.After) +} + func addOpDeleteDomainValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteDomain{}, middleware.After) } @@ -1070,6 +1178,10 @@ func addOpDissociatePackageValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDissociatePackage{}, middleware.After) } +func addOpGetDataSourceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetDataSource{}, middleware.After) +} + func addOpGetDomainMaintenanceStatusValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetDomainMaintenanceStatus{}, middleware.After) } @@ -1086,6 +1198,10 @@ func addOpGetUpgradeStatusValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetUpgradeStatus{}, middleware.After) } +func addOpListDataSourcesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListDataSources{}, middleware.After) +} + func addOpListDomainMaintenancesValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListDomainMaintenances{}, middleware.After) } @@ -1142,6 +1258,10 @@ func addOpStartServiceSoftwareUpdateValidationMiddleware(stack *middleware.Stack return stack.Initialize.Add(&validateOpStartServiceSoftwareUpdate{}, middleware.After) } +func addOpUpdateDataSourceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateDataSource{}, middleware.After) +} + func addOpUpdateDomainConfigValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateDomainConfig{}, middleware.After) } @@ -1374,6 +1494,27 @@ func validateOpAcceptInboundConnectionInput(v *AcceptInboundConnectionInput) err } } +func validateOpAddDataSourceInput(v *AddDataSourceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AddDataSourceInput"} + if v.DomainName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainName")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.DataSourceType == nil { + invalidParams.Add(smithy.NewErrParamRequired("DataSourceType")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpAddTagsInput(v *AddTagsInput) error { if v == nil { return nil @@ -1550,6 +1691,24 @@ func validateOpCreateVpcEndpointInput(v *CreateVpcEndpointInput) error { } } +func validateOpDeleteDataSourceInput(v *DeleteDataSourceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteDataSourceInput"} + if v.DomainName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainName")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteDomainInput(v *DeleteDomainInput) error { if v == nil { return nil @@ -1796,6 +1955,24 @@ func validateOpDissociatePackageInput(v *DissociatePackageInput) error { } } +func validateOpGetDataSourceInput(v *GetDataSourceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetDataSourceInput"} + if v.DomainName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainName")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetDomainMaintenanceStatusInput(v *GetDomainMaintenanceStatusInput) error { if v == nil { return nil @@ -1859,6 +2036,21 @@ func validateOpGetUpgradeStatusInput(v *GetUpgradeStatusInput) error { } } +func validateOpListDataSourcesInput(v *ListDataSourcesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListDataSourcesInput"} + if v.DomainName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListDomainMaintenancesInput(v *ListDomainMaintenancesInput) error { if v == nil { return nil @@ -2081,6 +2273,27 @@ func validateOpStartServiceSoftwareUpdateInput(v *StartServiceSoftwareUpdateInpu } } +func validateOpUpdateDataSourceInput(v *UpdateDataSourceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateDataSourceInput"} + if v.DomainName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainName")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.DataSourceType == nil { + invalidParams.Add(smithy.NewErrParamRequired("DataSourceType")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpUpdateDomainConfigInput(v *UpdateDomainConfigInput) error { if v == nil { return nil diff --git a/service/opensearchserverless/api_op_CreateCollection.go b/service/opensearchserverless/api_op_CreateCollection.go index 883c4e705b7..108c8506138 100644 --- a/service/opensearchserverless/api_op_CreateCollection.go +++ b/service/opensearchserverless/api_op_CreateCollection.go @@ -43,6 +43,9 @@ type CreateCollectionInput struct { // Description of the collection. Description *string + // Indicates whether standby replicas should be used for a collection. + StandbyReplicas types.StandbyReplicas + // An arbitrary set of tags (key–value pairs) to associate with the OpenSearch // Serverless collection. Tags []types.Tag diff --git a/service/opensearchserverless/deserializers.go b/service/opensearchserverless/deserializers.go index 130eae5259f..beab7bb5384 100644 --- a/service/opensearchserverless/deserializers.go +++ b/service/opensearchserverless/deserializers.go @@ -5056,6 +5056,15 @@ func awsAwsjson10_deserializeDocumentCollectionDetail(v **types.CollectionDetail sv.Name = ptr.String(jtv) } + case "standbyReplicas": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected StandbyReplicas to be of type string, got %T instead", value) + } + sv.StandbyReplicas = types.StandbyReplicas(jtv) + } + case "status": if value != nil { jtv, ok := value.(string) @@ -5452,6 +5461,15 @@ func awsAwsjson10_deserializeDocumentCreateCollectionDetail(v **types.CreateColl sv.Name = ptr.String(jtv) } + case "standbyReplicas": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected StandbyReplicas to be of type string, got %T instead", value) + } + sv.StandbyReplicas = types.StandbyReplicas(jtv) + } + case "status": if value != nil { jtv, ok := value.(string) diff --git a/service/opensearchserverless/endpoints_test.go b/service/opensearchserverless/endpoints_test.go index 04ec41d865d..f12a94c7879 100644 --- a/service/opensearchserverless/endpoints_test.go +++ b/service/opensearchserverless/endpoints_test.go @@ -854,3 +854,23 @@ func TestEndpointCase24(t *testing.T) { t.Errorf("expect %v error in %v", e, a) } } + +// Partition doesn't support DualStack +func TestEndpointCase25(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "DualStack is enabled but this partition does not support DualStack", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} diff --git a/service/opensearchserverless/go.mod b/service/opensearchserverless/go.mod index 86c4068dda5..54bbb943cb6 100644 --- a/service/opensearchserverless/go.mod +++ b/service/opensearchserverless/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/opensearchserverless/go.sum b/service/opensearchserverless/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/opensearchserverless/go.sum +++ b/service/opensearchserverless/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/opensearchserverless/serializers.go b/service/opensearchserverless/serializers.go index abbc6f34add..912313dcaf5 100644 --- a/service/opensearchserverless/serializers.go +++ b/service/opensearchserverless/serializers.go @@ -2414,6 +2414,11 @@ func awsAwsjson10_serializeOpDocumentCreateCollectionInput(v *CreateCollectionIn ok.String(*v.Name) } + if len(v.StandbyReplicas) > 0 { + ok := object.Key("standbyReplicas") + ok.String(string(v.StandbyReplicas)) + } + if v.Tags != nil { ok := object.Key("tags") if err := awsAwsjson10_serializeDocumentTags(v.Tags, ok); err != nil { diff --git a/service/opensearchserverless/types/enums.go b/service/opensearchserverless/types/enums.go index 54fea324db2..662e2ef107e 100644 --- a/service/opensearchserverless/types/enums.go +++ b/service/opensearchserverless/types/enums.go @@ -139,6 +139,26 @@ func (SecurityPolicyType) Values() []SecurityPolicyType { } } +type StandbyReplicas string + +// Enum values for StandbyReplicas +const ( + // Standby replicas enabled + StandbyReplicasEnabled StandbyReplicas = "ENABLED" + // Standby replicas disabled + StandbyReplicasDisabled StandbyReplicas = "DISABLED" +) + +// Values returns all known values for StandbyReplicas. 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 (StandbyReplicas) Values() []StandbyReplicas { + return []StandbyReplicas{ + "ENABLED", + "DISABLED", + } +} + type VpcEndpointStatus string // Enum values for VpcEndpointStatus diff --git a/service/opensearchserverless/types/types.go b/service/opensearchserverless/types/types.go index ce67dd63402..605d03ff1b9 100644 --- a/service/opensearchserverless/types/types.go +++ b/service/opensearchserverless/types/types.go @@ -128,6 +128,9 @@ type CollectionDetail struct { // The name of the collection. Name *string + // Details about an OpenSearch Serverless collection. + StandbyReplicas StandbyReplicas + // The current status of the collection. Status CollectionStatus @@ -213,6 +216,9 @@ type CreateCollectionDetail struct { // The name of the collection. Name *string + // Creates details about an OpenSearch Serverless collection. + StandbyReplicas StandbyReplicas + // The current status of the collection. Status CollectionStatus diff --git a/service/opsworks/go.mod b/service/opsworks/go.mod index 613eb18d78c..4c049781b33 100644 --- a/service/opsworks/go.mod +++ b/service/opsworks/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/opsworks/go.sum b/service/opsworks/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/opsworks/go.sum +++ b/service/opsworks/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/opsworkscm/go.mod b/service/opsworkscm/go.mod index adb13042196..8c1cdeb45ff 100644 --- a/service/opsworkscm/go.mod +++ b/service/opsworkscm/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/opsworkscm/go.sum b/service/opsworkscm/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/opsworkscm/go.sum +++ b/service/opsworkscm/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/organizations/go.mod b/service/organizations/go.mod index a67d3724dce..c14a622055a 100644 --- a/service/organizations/go.mod +++ b/service/organizations/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/organizations/go.sum b/service/organizations/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/organizations/go.sum +++ b/service/organizations/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/osis/go.mod b/service/osis/go.mod index bd10fae5c1f..8f72dde189d 100644 --- a/service/osis/go.mod +++ b/service/osis/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/osis/go.sum b/service/osis/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/osis/go.sum +++ b/service/osis/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/outposts/go.mod b/service/outposts/go.mod index 65852a175b9..46390c2da00 100644 --- a/service/outposts/go.mod +++ b/service/outposts/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/outposts/go.sum b/service/outposts/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/outposts/go.sum +++ b/service/outposts/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/panorama/go.mod b/service/panorama/go.mod index 6ab720672e4..2494d17a735 100644 --- a/service/panorama/go.mod +++ b/service/panorama/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/panorama/go.sum b/service/panorama/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/panorama/go.sum +++ b/service/panorama/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/paymentcryptography/go.mod b/service/paymentcryptography/go.mod index 23eb9c635d8..010e13fe2ae 100644 --- a/service/paymentcryptography/go.mod +++ b/service/paymentcryptography/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/paymentcryptography/go.sum b/service/paymentcryptography/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/paymentcryptography/go.sum +++ b/service/paymentcryptography/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/paymentcryptographydata/go.mod b/service/paymentcryptographydata/go.mod index 88a1d527dfa..a8b24c9a2d4 100644 --- a/service/paymentcryptographydata/go.mod +++ b/service/paymentcryptographydata/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/paymentcryptographydata/go.sum b/service/paymentcryptographydata/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/paymentcryptographydata/go.sum +++ b/service/paymentcryptographydata/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pcaconnectorad/go.mod b/service/pcaconnectorad/go.mod index 5c03aa9cb7a..3286576f3e1 100644 --- a/service/pcaconnectorad/go.mod +++ b/service/pcaconnectorad/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/pcaconnectorad/go.sum b/service/pcaconnectorad/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/pcaconnectorad/go.sum +++ b/service/pcaconnectorad/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/personalize/go.mod b/service/personalize/go.mod index ebd57e7501d..f56c784f87f 100644 --- a/service/personalize/go.mod +++ b/service/personalize/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/personalize/go.sum b/service/personalize/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/personalize/go.sum +++ b/service/personalize/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/personalizeevents/go.mod b/service/personalizeevents/go.mod index cb2f135bd29..48148d54ea9 100644 --- a/service/personalizeevents/go.mod +++ b/service/personalizeevents/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/personalizeevents/go.sum b/service/personalizeevents/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/personalizeevents/go.sum +++ b/service/personalizeevents/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/personalizeruntime/go.mod b/service/personalizeruntime/go.mod index 32cda6a85c8..89f02a0a4cd 100644 --- a/service/personalizeruntime/go.mod +++ b/service/personalizeruntime/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/personalizeruntime/go.sum b/service/personalizeruntime/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/personalizeruntime/go.sum +++ b/service/personalizeruntime/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pi/go.mod b/service/pi/go.mod index 5e01f830d56..280a659f450 100644 --- a/service/pi/go.mod +++ b/service/pi/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/pi/go.sum b/service/pi/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/pi/go.sum +++ b/service/pi/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pinpoint/go.mod b/service/pinpoint/go.mod index ac2c8dd53bb..55e7d5de5d4 100644 --- a/service/pinpoint/go.mod +++ b/service/pinpoint/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/pinpoint/go.sum b/service/pinpoint/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/pinpoint/go.sum +++ b/service/pinpoint/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pinpointemail/go.mod b/service/pinpointemail/go.mod index d65e33602db..8cf1d39b531 100644 --- a/service/pinpointemail/go.mod +++ b/service/pinpointemail/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/pinpointemail/go.sum b/service/pinpointemail/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/pinpointemail/go.sum +++ b/service/pinpointemail/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pinpointsmsvoice/go.mod b/service/pinpointsmsvoice/go.mod index 5e9c7b02e46..f747895d403 100644 --- a/service/pinpointsmsvoice/go.mod +++ b/service/pinpointsmsvoice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/pinpointsmsvoice/go.sum b/service/pinpointsmsvoice/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/pinpointsmsvoice/go.sum +++ b/service/pinpointsmsvoice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pinpointsmsvoicev2/go.mod b/service/pinpointsmsvoicev2/go.mod index 646802028f0..2a010a9b6d7 100644 --- a/service/pinpointsmsvoicev2/go.mod +++ b/service/pinpointsmsvoicev2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/pinpointsmsvoicev2/go.sum b/service/pinpointsmsvoicev2/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/pinpointsmsvoicev2/go.sum +++ b/service/pinpointsmsvoicev2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pipes/go.mod b/service/pipes/go.mod index ecd6cb9d8f6..ab2c4930ff0 100644 --- a/service/pipes/go.mod +++ b/service/pipes/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/pipes/go.sum b/service/pipes/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/pipes/go.sum +++ b/service/pipes/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/polly/go.mod b/service/polly/go.mod index 3ddbd6e7c03..fce28357c70 100644 --- a/service/polly/go.mod +++ b/service/polly/go.mod @@ -8,7 +8,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.1 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/polly/go.sum b/service/polly/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/polly/go.sum +++ b/service/polly/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pricing/go.mod b/service/pricing/go.mod index 7c315e53b98..ce2b44c28ce 100644 --- a/service/pricing/go.mod +++ b/service/pricing/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/pricing/go.sum b/service/pricing/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/pricing/go.sum +++ b/service/pricing/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/privatenetworks/go.mod b/service/privatenetworks/go.mod index cfd8f212017..96e30c5d6fb 100644 --- a/service/privatenetworks/go.mod +++ b/service/privatenetworks/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/privatenetworks/go.sum b/service/privatenetworks/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/privatenetworks/go.sum +++ b/service/privatenetworks/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/proton/go.mod b/service/proton/go.mod index a101e2d1836..55f0b9a1950 100644 --- a/service/proton/go.mod +++ b/service/proton/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/proton/go.sum b/service/proton/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/proton/go.sum +++ b/service/proton/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/qbusiness/go.mod b/service/qbusiness/go.mod index 4990d7ef14c..ddc7311cf26 100644 --- a/service/qbusiness/go.mod +++ b/service/qbusiness/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/qbusiness/go.sum b/service/qbusiness/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/qbusiness/go.sum +++ b/service/qbusiness/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/qconnect/go.mod b/service/qconnect/go.mod index 3226b5ee533..97305bb4534 100644 --- a/service/qconnect/go.mod +++ b/service/qconnect/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/qconnect/go.sum b/service/qconnect/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/qconnect/go.sum +++ b/service/qconnect/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/qldb/go.mod b/service/qldb/go.mod index 083ceed7fb7..9387b93772d 100644 --- a/service/qldb/go.mod +++ b/service/qldb/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/qldb/go.sum b/service/qldb/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/qldb/go.sum +++ b/service/qldb/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/qldbsession/go.mod b/service/qldbsession/go.mod index f5c9d1a178f..b4e1a1bc9de 100644 --- a/service/qldbsession/go.mod +++ b/service/qldbsession/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/qldbsession/go.sum b/service/qldbsession/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/qldbsession/go.sum +++ b/service/qldbsession/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/quicksight/go.mod b/service/quicksight/go.mod index 76a028a1646..d107dddd4a5 100644 --- a/service/quicksight/go.mod +++ b/service/quicksight/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/quicksight/go.sum b/service/quicksight/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/quicksight/go.sum +++ b/service/quicksight/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ram/go.mod b/service/ram/go.mod index 778734d0629..97bc521a617 100644 --- a/service/ram/go.mod +++ b/service/ram/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ram/go.sum b/service/ram/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/ram/go.sum +++ b/service/ram/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/rbin/go.mod b/service/rbin/go.mod index 37d004074bf..a88ec84fb99 100644 --- a/service/rbin/go.mod +++ b/service/rbin/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/rbin/go.sum b/service/rbin/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/rbin/go.sum +++ b/service/rbin/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/rds/go.mod b/service/rds/go.mod index b9b1c596665..1201108f337 100644 --- a/service/rds/go.mod +++ b/service/rds/go.mod @@ -8,7 +8,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.1 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/rds/go.sum b/service/rds/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/rds/go.sum +++ b/service/rds/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/rdsdata/go.mod b/service/rdsdata/go.mod index fb5f67818d3..8c50cc4bece 100644 --- a/service/rdsdata/go.mod +++ b/service/rdsdata/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/rdsdata/go.sum b/service/rdsdata/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/rdsdata/go.sum +++ b/service/rdsdata/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/redshift/go.mod b/service/redshift/go.mod index eea8a8c13c4..460d9fb057d 100644 --- a/service/redshift/go.mod +++ b/service/redshift/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/redshift/go.sum b/service/redshift/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/redshift/go.sum +++ b/service/redshift/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/redshiftdata/go.mod b/service/redshiftdata/go.mod index ab174f715eb..6bf34429edd 100644 --- a/service/redshiftdata/go.mod +++ b/service/redshiftdata/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/redshiftdata/go.sum b/service/redshiftdata/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/redshiftdata/go.sum +++ b/service/redshiftdata/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/redshiftserverless/go.mod b/service/redshiftserverless/go.mod index 4fd27703ef6..c90d6911c0e 100644 --- a/service/redshiftserverless/go.mod +++ b/service/redshiftserverless/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/redshiftserverless/go.sum b/service/redshiftserverless/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/redshiftserverless/go.sum +++ b/service/redshiftserverless/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/rekognition/go.mod b/service/rekognition/go.mod index fffb82a2340..fa6b8d65708 100644 --- a/service/rekognition/go.mod +++ b/service/rekognition/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/rekognition/go.sum b/service/rekognition/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/rekognition/go.sum +++ b/service/rekognition/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/repostspace/go.mod b/service/repostspace/go.mod index 91e85c6c895..998bfd10e2a 100644 --- a/service/repostspace/go.mod +++ b/service/repostspace/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/repostspace/go.sum b/service/repostspace/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/repostspace/go.sum +++ b/service/repostspace/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/resiliencehub/go.mod b/service/resiliencehub/go.mod index bf101869423..33009a8ba9c 100644 --- a/service/resiliencehub/go.mod +++ b/service/resiliencehub/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/resiliencehub/go.sum b/service/resiliencehub/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/resiliencehub/go.sum +++ b/service/resiliencehub/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/resourceexplorer2/go.mod b/service/resourceexplorer2/go.mod index e63b01c9fff..61db838a7da 100644 --- a/service/resourceexplorer2/go.mod +++ b/service/resourceexplorer2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/resourceexplorer2/go.sum b/service/resourceexplorer2/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/resourceexplorer2/go.sum +++ b/service/resourceexplorer2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/resourcegroups/go.mod b/service/resourcegroups/go.mod index 3d7432331a3..5cefd4975a4 100644 --- a/service/resourcegroups/go.mod +++ b/service/resourcegroups/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/resourcegroups/go.sum b/service/resourcegroups/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/resourcegroups/go.sum +++ b/service/resourcegroups/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/resourcegroupstaggingapi/go.mod b/service/resourcegroupstaggingapi/go.mod index b5d97a411f9..3c00e70ae69 100644 --- a/service/resourcegroupstaggingapi/go.mod +++ b/service/resourcegroupstaggingapi/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/resourcegroupstaggingapi/go.sum b/service/resourcegroupstaggingapi/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/resourcegroupstaggingapi/go.sum +++ b/service/resourcegroupstaggingapi/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/robomaker/go.mod b/service/robomaker/go.mod index 1ce52c997c0..c6926575a19 100644 --- a/service/robomaker/go.mod +++ b/service/robomaker/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/robomaker/go.sum b/service/robomaker/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/robomaker/go.sum +++ b/service/robomaker/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/rolesanywhere/go.mod b/service/rolesanywhere/go.mod index 3619fe648c2..9335ed5af33 100644 --- a/service/rolesanywhere/go.mod +++ b/service/rolesanywhere/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/rolesanywhere/go.sum b/service/rolesanywhere/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/rolesanywhere/go.sum +++ b/service/rolesanywhere/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/route53/go.mod b/service/route53/go.mod index 884fe3d8914..3c85ed1ec02 100644 --- a/service/route53/go.mod +++ b/service/route53/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/route53/go.sum b/service/route53/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/route53/go.sum +++ b/service/route53/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/route53domains/go.mod b/service/route53domains/go.mod index cba20abe631..1d11146e97f 100644 --- a/service/route53domains/go.mod +++ b/service/route53domains/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/route53domains/go.sum b/service/route53domains/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/route53domains/go.sum +++ b/service/route53domains/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/route53recoverycluster/go.mod b/service/route53recoverycluster/go.mod index a9e2b871244..6309cb50546 100644 --- a/service/route53recoverycluster/go.mod +++ b/service/route53recoverycluster/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/route53recoverycluster/go.sum b/service/route53recoverycluster/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/route53recoverycluster/go.sum +++ b/service/route53recoverycluster/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/route53recoverycontrolconfig/go.mod b/service/route53recoverycontrolconfig/go.mod index b08fafb59e3..09ee2edf531 100644 --- a/service/route53recoverycontrolconfig/go.mod +++ b/service/route53recoverycontrolconfig/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/route53recoverycontrolconfig/go.sum b/service/route53recoverycontrolconfig/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/route53recoverycontrolconfig/go.sum +++ b/service/route53recoverycontrolconfig/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/route53recoveryreadiness/go.mod b/service/route53recoveryreadiness/go.mod index db58d023871..381af30515d 100644 --- a/service/route53recoveryreadiness/go.mod +++ b/service/route53recoveryreadiness/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/route53recoveryreadiness/go.sum b/service/route53recoveryreadiness/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/route53recoveryreadiness/go.sum +++ b/service/route53recoveryreadiness/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/route53resolver/go.mod b/service/route53resolver/go.mod index d9e3006a981..5909984d406 100644 --- a/service/route53resolver/go.mod +++ b/service/route53resolver/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/route53resolver/go.sum b/service/route53resolver/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/route53resolver/go.sum +++ b/service/route53resolver/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/rum/go.mod b/service/rum/go.mod index 593638a3b31..68134f2c3a6 100644 --- a/service/rum/go.mod +++ b/service/rum/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/rum/go.sum b/service/rum/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/rum/go.sum +++ b/service/rum/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/s3/go.mod b/service/s3/go.mod index c0735a90cc9..95736e5f68b 100644 --- a/service/s3/go.mod +++ b/service/s3/go.mod @@ -12,7 +12,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.2.5 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.5 github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.16.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/s3/go.sum b/service/s3/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/s3/go.sum +++ b/service/s3/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/s3/internal/configtesting/go.mod b/service/s3/internal/configtesting/go.mod index 2a0b8b1e271..80dbe715e08 100644 --- a/service/s3/internal/configtesting/go.mod +++ b/service/s3/internal/configtesting/go.mod @@ -19,7 +19,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/sso v1.17.5 // indirect github.com/aws/aws-sdk-go-v2/service/ssooidc v1.20.3 // indirect github.com/aws/aws-sdk-go-v2/service/sts v1.25.6 // indirect - github.com/aws/smithy-go v1.17.0 // indirect + github.com/aws/smithy-go v1.18.0 // 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 a96e3f8ab8b..4a236cdfa85 100644 --- a/service/s3/internal/configtesting/go.sum +++ b/service/s3/internal/configtesting/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/s3control/go.mod b/service/s3control/go.mod index 992e2f3be84..68b1c2e6573 100644 --- a/service/s3control/go.mod +++ b/service/s3control/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.16.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/s3control/go.sum b/service/s3control/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/s3control/go.sum +++ b/service/s3control/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/s3outposts/go.mod b/service/s3outposts/go.mod index 3e3e40c462e..8c12fce19cd 100644 --- a/service/s3outposts/go.mod +++ b/service/s3outposts/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/s3outposts/go.sum b/service/s3outposts/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/s3outposts/go.sum +++ b/service/s3outposts/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemaker/api_op_AddTags.go b/service/sagemaker/api_op_AddTags.go index 4e1dec99d96..4fd65a0a542 100644 --- a/service/sagemaker/api_op_AddTags.go +++ b/service/sagemaker/api_op_AddTags.go @@ -26,13 +26,13 @@ import ( // hyperparameter tuning job launches, add the tags when you first create the // tuning job by specifying them in the Tags parameter of // CreateHyperParameterTuningJob (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateHyperParameterTuningJob.html) -// Tags that you add to a SageMaker Studio Domain or User Profile by calling this -// API are also added to any Apps that the Domain or User Profile launches after -// you call this API, but not to Apps that the Domain or User Profile launched -// before you called this API. To make sure that the tags associated with a Domain -// or User Profile are also added to all Apps that the Domain or User Profile -// launches, add the tags when you first create the Domain or User Profile by -// specifying them in the Tags parameter of CreateDomain (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateDomain.html) +// Tags that you add to a SageMaker Domain or User Profile by calling this API are +// also added to any Apps that the Domain or User Profile launches after you call +// this API, but not to Apps that the Domain or User Profile launched before you +// called this API. To make sure that the tags associated with a Domain or User +// Profile are also added to all Apps that the Domain or User Profile launches, add +// the tags when you first create the Domain or User Profile by specifying them in +// the Tags parameter of CreateDomain (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateDomain.html) // or CreateUserProfile (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateUserProfile.html) // . func (c *Client) AddTags(ctx context.Context, params *AddTagsInput, optFns ...func(*Options)) (*AddTagsOutput, error) { diff --git a/service/sagemaker/api_op_CreateApp.go b/service/sagemaker/api_op_CreateApp.go index 1f99ea7a9c4..57a905c0bed 100644 --- a/service/sagemaker/api_op_CreateApp.go +++ b/service/sagemaker/api_op_CreateApp.go @@ -13,9 +13,9 @@ import ( ) // Creates a running app for the specified UserProfile. This operation is -// automatically invoked by Amazon SageMaker Studio upon access to the associated -// Domain, and when new kernel configurations are selected by the user. A user may -// have multiple Apps active simultaneously. +// automatically invoked by Amazon SageMaker upon access to the associated Domain, +// and when new kernel configurations are selected by the user. A user may have +// multiple Apps active simultaneously. func (c *Client) CreateApp(ctx context.Context, params *CreateAppInput, optFns ...func(*Options)) (*CreateAppOutput, error) { if params == nil { params = &CreateAppInput{} diff --git a/service/sagemaker/api_op_CreateCluster.go b/service/sagemaker/api_op_CreateCluster.go new file mode 100644 index 00000000000..293bbf90b5b --- /dev/null +++ b/service/sagemaker/api_op_CreateCluster.go @@ -0,0 +1,163 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a SageMaker HyperPod cluster. SageMaker HyperPod is a capability of +// SageMaker for creating and managing persistent clusters for developing large +// machine learning models, such as large language models (LLMs) and diffusion +// models. To learn more, see Amazon SageMaker HyperPod (https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod.html) +// in the Amazon SageMaker Developer Guide. +func (c *Client) CreateCluster(ctx context.Context, params *CreateClusterInput, optFns ...func(*Options)) (*CreateClusterOutput, error) { + if params == nil { + params = &CreateClusterInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateCluster", params, optFns, c.addOperationCreateClusterMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateClusterOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateClusterInput struct { + + // The name for the new SageMaker HyperPod cluster. + // + // This member is required. + ClusterName *string + + // The instance groups to be created in the SageMaker HyperPod cluster. + // + // This member is required. + InstanceGroups []types.ClusterInstanceGroupSpecification + + // Custom tags for managing the SageMaker HyperPod cluster as an Amazon Web + // Services resource. You can add tags to your cluster in the same way you add them + // in other Amazon Web Services services that support tagging. To learn more about + // tagging Amazon Web Services resources in general, see Tagging Amazon Web + // Services Resources User Guide (https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html) + // . + Tags []types.Tag + + // Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, + // hosted models, and compute resources have access to. You can control access to + // and from your resources by configuring a VPC. For more information, see Give + // SageMaker Access to Resources in your Amazon VPC (https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) + // . + VpcConfig *types.VpcConfig + + noSmithyDocumentSerde +} + +type CreateClusterOutput struct { + + // The Amazon Resource Name (ARN) of the cluster. + // + // This member is required. + ClusterArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateClusterMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpCreateCluster{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpCreateCluster{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateCluster"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpCreateClusterValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateCluster(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateCluster(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateCluster", + } +} diff --git a/service/sagemaker/api_op_CreateDomain.go b/service/sagemaker/api_op_CreateDomain.go index d86b99560e3..8825e66a0f5 100644 --- a/service/sagemaker/api_op_CreateDomain.go +++ b/service/sagemaker/api_op_CreateDomain.go @@ -12,35 +12,35 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a Domain used by Amazon SageMaker Studio. A domain consists of an -// associated Amazon Elastic File System (EFS) volume, a list of authorized users, -// and a variety of security, application, policy, and Amazon Virtual Private Cloud -// (VPC) configurations. Users within a domain can share notebook files and other -// artifacts with each other. EFS storage When a domain is created, an EFS volume -// is created for use by all of the users within the domain. Each user receives a -// private home directory within the EFS volume for notebooks, Git repositories, -// and data files. SageMaker uses the Amazon Web Services Key Management Service -// (Amazon Web Services KMS) to encrypt the EFS volume attached to the domain with -// an Amazon Web Services managed key by default. For more control, you can specify -// a customer managed key. For more information, see Protect Data at Rest Using -// Encryption (https://docs.aws.amazon.com/sagemaker/latest/dg/encryption-at-rest.html) -// . VPC configuration All SageMaker Studio traffic between the domain and the EFS -// volume is through the specified VPC and subnets. For other Studio traffic, you -// can specify the AppNetworkAccessType parameter. AppNetworkAccessType -// corresponds to the network access type that you choose when you onboard to -// Studio. The following options are available: +// Creates a Domain . A domain consists of an associated Amazon Elastic File System +// (EFS) volume, a list of authorized users, and a variety of security, +// application, policy, and Amazon Virtual Private Cloud (VPC) configurations. +// Users within a domain can share notebook files and other artifacts with each +// other. EFS storage When a domain is created, an EFS volume is created for use by +// all of the users within the domain. Each user receives a private home directory +// within the EFS volume for notebooks, Git repositories, and data files. SageMaker +// uses the Amazon Web Services Key Management Service (Amazon Web Services KMS) to +// encrypt the EFS volume attached to the domain with an Amazon Web Services +// managed key by default. For more control, you can specify a customer managed +// key. For more information, see Protect Data at Rest Using Encryption (https://docs.aws.amazon.com/sagemaker/latest/dg/encryption-at-rest.html) +// . VPC configuration All traffic between the domain and the EFS volume is through +// the specified VPC and subnets. For other traffic, you can specify the +// AppNetworkAccessType parameter. AppNetworkAccessType corresponds to the network +// access type that you choose when you onboard to the domain. The following +// options are available: // - PublicInternetOnly - Non-EFS traffic goes through a VPC managed by Amazon // SageMaker, which allows internet access. This is the default value. -// - VpcOnly - All Studio traffic is through the specified VPC and subnets. -// Internet access is disabled by default. To allow internet access, you must -// specify a NAT gateway. When internet access is disabled, you won't be able to -// run a Studio notebook or to train or host models unless your VPC has an +// - VpcOnly - All traffic is through the specified VPC and subnets. Internet +// access is disabled by default. To allow internet access, you must specify a NAT +// gateway. When internet access is disabled, you won't be able to run a Amazon +// SageMaker Studio notebook or to train or host models unless your VPC has an // interface endpoint to the SageMaker API and runtime or a NAT gateway and your // security groups allow outbound connections. // // NFS traffic over TCP on port 2049 needs to be allowed in both inbound and -// outbound rules in order to launch a SageMaker Studio app successfully. For more -// information, see Connect SageMaker Studio Notebooks to Resources in a VPC (https://docs.aws.amazon.com/sagemaker/latest/dg/studio-notebooks-and-internet-access.html) +// outbound rules in order to launch a Amazon SageMaker Studio app successfully. +// For more information, see Connect Amazon SageMaker Studio Notebooks to +// Resources in a VPC (https://docs.aws.amazon.com/sagemaker/latest/dg/studio-notebooks-and-internet-access.html) // . func (c *Client) CreateDomain(ctx context.Context, params *CreateDomainInput, optFns ...func(*Options)) (*CreateDomainOutput, error) { if params == nil { @@ -78,12 +78,12 @@ type CreateDomainInput struct { // This member is required. DomainName *string - // The VPC subnets that Studio uses for communication. + // The VPC subnets that the domain uses for communication. // // This member is required. SubnetIds []string - // The ID of the Amazon Virtual Private Cloud (VPC) that Studio uses for + // The ID of the Amazon Virtual Private Cloud (VPC) that the domain uses for // communication. // // This member is required. @@ -93,7 +93,7 @@ type CreateDomainInput struct { // PublicInternetOnly . // - PublicInternetOnly - Non-EFS traffic is through a VPC managed by Amazon // SageMaker, which allows direct internet access - // - VpcOnly - All Studio traffic is through the specified VPC and subnets + // - VpcOnly - All traffic is through the specified VPC and subnets AppNetworkAccessType types.AppNetworkAccessType // The entity that creates and manages the required security groups for inter-app diff --git a/service/sagemaker/api_op_CreateEndpointConfig.go b/service/sagemaker/api_op_CreateEndpointConfig.go index ab5a02f9ecb..5bc2b3d0c44 100644 --- a/service/sagemaker/api_op_CreateEndpointConfig.go +++ b/service/sagemaker/api_op_CreateEndpointConfig.go @@ -76,6 +76,17 @@ type CreateEndpointConfigInput struct { // Configuration to control how SageMaker captures inference data. DataCaptureConfig *types.DataCaptureConfig + // Sets whether all model containers deployed to the endpoint are isolated. If + // they are, no inbound or outbound network calls can be made to or from the model + // containers. + EnableNetworkIsolation *bool + + // The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume + // to perform actions on your behalf. For more information, see SageMaker Roles (https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html) + // . To be able to pass this role to Amazon SageMaker, the caller of this action + // must have the iam:PassRole permission. + ExecutionRoleArn *string + // A member of CreateEndpointConfig that enables explainers. ExplainerConfig *types.ExplainerConfig @@ -119,6 +130,13 @@ type CreateEndpointConfigInput struct { // . Tags []types.Tag + // Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, + // hosted models, and compute resources have access to. You can control access to + // and from your resources by configuring a VPC. For more information, see Give + // SageMaker Access to Resources in your Amazon VPC (https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) + // . + VpcConfig *types.VpcConfig + noSmithyDocumentSerde } diff --git a/service/sagemaker/api_op_CreateInferenceComponent.go b/service/sagemaker/api_op_CreateInferenceComponent.go new file mode 100644 index 00000000000..7c65e42cf7b --- /dev/null +++ b/service/sagemaker/api_op_CreateInferenceComponent.go @@ -0,0 +1,174 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates an inference component, which is a SageMaker hosting object that you +// can use to deploy a model to an endpoint. In the inference component settings, +// you specify the model, the endpoint, and how the model utilizes the resources +// that the endpoint hosts. You can optimize resource utilization by tailoring how +// the required CPU cores, accelerators, and memory are allocated. You can deploy +// multiple inference components to an endpoint, where each inference component +// contains one model and the resource utilization needs for that individual model. +// After you deploy an inference component, you can directly invoke the associated +// model when you use the InvokeEndpoint API action. +func (c *Client) CreateInferenceComponent(ctx context.Context, params *CreateInferenceComponentInput, optFns ...func(*Options)) (*CreateInferenceComponentOutput, error) { + if params == nil { + params = &CreateInferenceComponentInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateInferenceComponent", params, optFns, c.addOperationCreateInferenceComponentMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateInferenceComponentOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateInferenceComponentInput struct { + + // The name of an existing endpoint where you host the inference component. + // + // This member is required. + EndpointName *string + + // A unique name to assign to the inference component. + // + // This member is required. + InferenceComponentName *string + + // Runtime settings for a model that is deployed with an inference component. + // + // This member is required. + RuntimeConfig *types.InferenceComponentRuntimeConfig + + // Details about the resources to deploy with this inference component, including + // the model, container, and compute resources. + // + // This member is required. + Specification *types.InferenceComponentSpecification + + // The name of an existing production variant where you host the inference + // component. + // + // This member is required. + VariantName *string + + // A list of key-value pairs associated with the model. For more information, see + // Tagging Amazon Web Services resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) + // in the Amazon Web Services General Reference. + Tags []types.Tag + + noSmithyDocumentSerde +} + +type CreateInferenceComponentOutput struct { + + // The Amazon Resource Name (ARN) of the inference component. + // + // This member is required. + InferenceComponentArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateInferenceComponentMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpCreateInferenceComponent{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpCreateInferenceComponent{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateInferenceComponent"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpCreateInferenceComponentValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateInferenceComponent(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateInferenceComponent(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateInferenceComponent", + } +} diff --git a/service/sagemaker/api_op_CreateModel.go b/service/sagemaker/api_op_CreateModel.go index 4e30435802a..957740e992b 100644 --- a/service/sagemaker/api_op_CreateModel.go +++ b/service/sagemaker/api_op_CreateModel.go @@ -48,16 +48,6 @@ func (c *Client) CreateModel(ctx context.Context, params *CreateModelInput, optF type CreateModelInput struct { - // The Amazon Resource Name (ARN) of the IAM role that SageMaker can assume to - // access model artifacts and docker image for deployment on ML compute instances - // or for batch transform jobs. Deploying on ML compute instances is part of model - // hosting. For more information, see SageMaker Roles (https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html) - // . To be able to pass this role to SageMaker, the caller of this API must have - // the iam:PassRole permission. - // - // This member is required. - ExecutionRoleArn *string - // The name of the new model. // // This member is required. @@ -70,6 +60,14 @@ type CreateModelInput struct { // to or from the model container. EnableNetworkIsolation *bool + // The Amazon Resource Name (ARN) of the IAM role that SageMaker can assume to + // access model artifacts and docker image for deployment on ML compute instances + // or for batch transform jobs. Deploying on ML compute instances is part of model + // hosting. For more information, see SageMaker Roles (https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html) + // . To be able to pass this role to SageMaker, the caller of this API must have + // the iam:PassRole permission. + ExecutionRoleArn *string + // Specifies details of how containers in a multi-container endpoint are called. InferenceExecutionConfig *types.InferenceExecutionConfig diff --git a/service/sagemaker/api_op_CreatePresignedDomainUrl.go b/service/sagemaker/api_op_CreatePresignedDomainUrl.go index 18c465a786b..1db7ec65649 100644 --- a/service/sagemaker/api_op_CreatePresignedDomainUrl.go +++ b/service/sagemaker/api_op_CreatePresignedDomainUrl.go @@ -12,17 +12,17 @@ import ( ) // Creates a URL for a specified UserProfile in a Domain. When accessed in a web -// browser, the user will be automatically signed in to Amazon SageMaker Studio, -// and granted access to all of the Apps and files associated with the Domain's -// Amazon Elastic File System (EFS) volume. This operation can only be called when -// the authentication mode equals IAM. The IAM role or user passed to this API -// defines the permissions to access the app. Once the presigned URL is created, no +// browser, the user will be automatically signed in to the domain, and granted +// access to all of the Apps and files associated with the Domain's Amazon Elastic +// File System (EFS) volume. This operation can only be called when the +// authentication mode equals IAM. The IAM role or user passed to this API defines +// the permissions to access the app. Once the presigned URL is created, no // additional permission is required to access this URL. IAM authorization policies // for this API are also enforced for every HTTP request and WebSocket frame that // attempts to connect to the app. You can restrict access to this API and to the // URL that it returns to a list of IP addresses, Amazon VPCs or Amazon VPC -// Endpoints that you specify. For more information, see Connect to SageMaker -// Studio Through an Interface VPC Endpoint (https://docs.aws.amazon.com/sagemaker/latest/dg/studio-interface-endpoint.html) +// Endpoints that you specify. For more information, see Connect to Amazon +// SageMaker Studio Through an Interface VPC Endpoint (https://docs.aws.amazon.com/sagemaker/latest/dg/studio-interface-endpoint.html) // . The URL that you get from a call to CreatePresignedDomainUrl has a default // timeout of 5 minutes. You can configure this value using ExpiresInSeconds . If // you try to use the URL after the timeout limit expires, you are directed to the @@ -58,6 +58,20 @@ type CreatePresignedDomainUrlInput struct { // 300. ExpiresInSeconds *int32 + // The landing page that the user is directed to when accessing the presigned URL. + // Using this value, users can access Studio or Studio Classic, even if it is not + // the default experience for the domain. The supported values are: + // - studio::relative/path : Directs users to the relative path in Studio. + // - app:JupyterServer:relative/path : Directs users to the relative path in the + // Studio Classic application. + // - app:JupyterLab:relative/path : Directs users to the relative path in the + // JupyterLab application. + // - app:RStudioServerPro:relative/path : Directs users to the relative path in + // the RStudio application. + // - app:Canvas:relative/path : Directs users to the relative path in the Canvas + // application. + LandingUri *string + // The session expiration duration in seconds. This value defaults to 43200. SessionExpirationDurationInSeconds *int32 diff --git a/service/sagemaker/api_op_CreateStudioLifecycleConfig.go b/service/sagemaker/api_op_CreateStudioLifecycleConfig.go index 14defdabb2e..abe7f47d1f4 100644 --- a/service/sagemaker/api_op_CreateStudioLifecycleConfig.go +++ b/service/sagemaker/api_op_CreateStudioLifecycleConfig.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a new Studio Lifecycle Configuration. +// Creates a new Amazon SageMaker Studio Lifecycle Configuration. func (c *Client) CreateStudioLifecycleConfig(ctx context.Context, params *CreateStudioLifecycleConfigInput, optFns ...func(*Options)) (*CreateStudioLifecycleConfigOutput, error) { if params == nil { params = &CreateStudioLifecycleConfigInput{} @@ -35,13 +35,13 @@ type CreateStudioLifecycleConfigInput struct { // This member is required. StudioLifecycleConfigAppType types.StudioLifecycleConfigAppType - // The content of your Studio Lifecycle Configuration script. This content must be - // base64 encoded. + // The content of your Amazon SageMaker Studio Lifecycle Configuration script. + // This content must be base64 encoded. // // This member is required. StudioLifecycleConfigContent *string - // The name of the Studio Lifecycle Configuration to create. + // The name of the Amazon SageMaker Studio Lifecycle Configuration to create. // // This member is required. StudioLifecycleConfigName *string diff --git a/service/sagemaker/api_op_CreateTrainingJob.go b/service/sagemaker/api_op_CreateTrainingJob.go index a4b197f17f8..6d0076b51f9 100644 --- a/service/sagemaker/api_op_CreateTrainingJob.go +++ b/service/sagemaker/api_op_CreateTrainingJob.go @@ -187,6 +187,10 @@ type CreateTrainingJobInput struct { // job request and return an exception error. HyperParameters map[string]string + // Contains information about the infrastructure health check configuration for + // the training job. + InfraCheckConfig *types.InfraCheckConfig + // An array of Channel objects. Each channel is a named input source. // InputDataConfig describes the input data and its location. Algorithms can accept // input data from one or more channels. For example, an algorithm might have two diff --git a/service/sagemaker/api_op_CreateUserProfile.go b/service/sagemaker/api_op_CreateUserProfile.go index 68eeebfe919..e8cb5b94e7f 100644 --- a/service/sagemaker/api_op_CreateUserProfile.go +++ b/service/sagemaker/api_op_CreateUserProfile.go @@ -15,11 +15,10 @@ import ( // Creates a user profile. A user profile represents a single user within a // domain, and is the main way to reference a "person" for the purposes of sharing, // reporting, and other user-oriented features. This entity is created when a user -// onboards to Amazon SageMaker Studio. If an administrator invites a person by -// email or imports them from IAM Identity Center, a user profile is automatically -// created. A user profile is the primary holder of settings for an individual user -// and has a reference to the user's private Amazon Elastic File System (EFS) home -// directory. +// onboards to a domain. If an administrator invites a person by email or imports +// them from IAM Identity Center, a user profile is automatically created. A user +// profile is the primary holder of settings for an individual user and has a +// reference to the user's private Amazon Elastic File System (EFS) home directory. func (c *Client) CreateUserProfile(ctx context.Context, params *CreateUserProfileInput, optFns ...func(*Options)) (*CreateUserProfileOutput, error) { if params == nil { params = &CreateUserProfileInput{} diff --git a/service/sagemaker/api_op_DeleteCluster.go b/service/sagemaker/api_op_DeleteCluster.go new file mode 100644 index 00000000000..cfd0077a57f --- /dev/null +++ b/service/sagemaker/api_op_DeleteCluster.go @@ -0,0 +1,139 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Delete a SageMaker HyperPod cluster. +func (c *Client) DeleteCluster(ctx context.Context, params *DeleteClusterInput, optFns ...func(*Options)) (*DeleteClusterOutput, error) { + if params == nil { + params = &DeleteClusterInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteCluster", params, optFns, c.addOperationDeleteClusterMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteClusterOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteClusterInput struct { + + // The string name or the Amazon Resource Name (ARN) of the SageMaker HyperPod + // cluster to delete. + // + // This member is required. + ClusterName *string + + noSmithyDocumentSerde +} + +type DeleteClusterOutput struct { + + // The Amazon Resource Name (ARN) of the SageMaker HyperPod cluster to delete. + // + // This member is required. + ClusterArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteClusterMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteCluster{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteCluster{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteCluster"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteClusterValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteCluster(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteCluster(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteCluster", + } +} diff --git a/service/sagemaker/api_op_DeleteInferenceComponent.go b/service/sagemaker/api_op_DeleteInferenceComponent.go new file mode 100644 index 00000000000..893a44be391 --- /dev/null +++ b/service/sagemaker/api_op_DeleteInferenceComponent.go @@ -0,0 +1,132 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes an inference component. +func (c *Client) DeleteInferenceComponent(ctx context.Context, params *DeleteInferenceComponentInput, optFns ...func(*Options)) (*DeleteInferenceComponentOutput, error) { + if params == nil { + params = &DeleteInferenceComponentInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteInferenceComponent", params, optFns, c.addOperationDeleteInferenceComponentMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteInferenceComponentOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteInferenceComponentInput struct { + + // The name of the inference component to delete. + // + // This member is required. + InferenceComponentName *string + + noSmithyDocumentSerde +} + +type DeleteInferenceComponentOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteInferenceComponentMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteInferenceComponent{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteInferenceComponent{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteInferenceComponent"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteInferenceComponentValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteInferenceComponent(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteInferenceComponent(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteInferenceComponent", + } +} diff --git a/service/sagemaker/api_op_DeleteStudioLifecycleConfig.go b/service/sagemaker/api_op_DeleteStudioLifecycleConfig.go index ee22521899c..96c76414cc6 100644 --- a/service/sagemaker/api_op_DeleteStudioLifecycleConfig.go +++ b/service/sagemaker/api_op_DeleteStudioLifecycleConfig.go @@ -11,10 +11,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes the Studio Lifecycle Configuration. In order to delete the Lifecycle -// Configuration, there must be no running apps using the Lifecycle Configuration. -// You must also remove the Lifecycle Configuration from UserSettings in all -// Domains and UserProfiles. +// Deletes the Amazon SageMaker Studio Lifecycle Configuration. In order to delete +// the Lifecycle Configuration, there must be no running apps using the Lifecycle +// Configuration. You must also remove the Lifecycle Configuration from +// UserSettings in all Domains and UserProfiles. func (c *Client) DeleteStudioLifecycleConfig(ctx context.Context, params *DeleteStudioLifecycleConfigInput, optFns ...func(*Options)) (*DeleteStudioLifecycleConfigOutput, error) { if params == nil { params = &DeleteStudioLifecycleConfigInput{} @@ -32,7 +32,7 @@ func (c *Client) DeleteStudioLifecycleConfig(ctx context.Context, params *Delete type DeleteStudioLifecycleConfigInput struct { - // The name of the Studio Lifecycle Configuration to delete. + // The name of the Amazon SageMaker Studio Lifecycle Configuration to delete. // // This member is required. StudioLifecycleConfigName *string diff --git a/service/sagemaker/api_op_DeleteTags.go b/service/sagemaker/api_op_DeleteTags.go index d3de2739326..260923ff94b 100644 --- a/service/sagemaker/api_op_DeleteTags.go +++ b/service/sagemaker/api_op_DeleteTags.go @@ -15,9 +15,9 @@ import ( // tags, use the ListTags API. When you call this API to delete tags from a // hyperparameter tuning job, the deleted tags are not removed from training jobs // that the hyperparameter tuning job launched before you called this API. When you -// call this API to delete tags from a SageMaker Studio Domain or User Profile, the -// deleted tags are not removed from Apps that the SageMaker Studio Domain or User -// Profile launched before you called this API. +// call this API to delete tags from a SageMaker Domain or User Profile, the +// deleted tags are not removed from Apps that the SageMaker Domain or User Profile +// launched before you called this API. func (c *Client) DeleteTags(ctx context.Context, params *DeleteTagsInput, optFns ...func(*Options)) (*DeleteTagsOutput, error) { if params == nil { params = &DeleteTagsInput{} diff --git a/service/sagemaker/api_op_DescribeCluster.go b/service/sagemaker/api_op_DescribeCluster.go new file mode 100644 index 00000000000..abd473b2ac3 --- /dev/null +++ b/service/sagemaker/api_op_DescribeCluster.go @@ -0,0 +1,167 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Retrieves information of a SageMaker HyperPod cluster. +func (c *Client) DescribeCluster(ctx context.Context, params *DescribeClusterInput, optFns ...func(*Options)) (*DescribeClusterOutput, error) { + if params == nil { + params = &DescribeClusterInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeCluster", params, optFns, c.addOperationDescribeClusterMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeClusterOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeClusterInput struct { + + // The string name or the Amazon Resource Name (ARN) of the SageMaker HyperPod + // cluster. + // + // This member is required. + ClusterName *string + + noSmithyDocumentSerde +} + +type DescribeClusterOutput struct { + + // The Amazon Resource Name (ARN) of the SageMaker HyperPod cluster. + // + // This member is required. + ClusterArn *string + + // The status of the SageMaker HyperPod cluster. + // + // This member is required. + ClusterStatus types.ClusterStatus + + // The instance groups of the SageMaker HyperPod cluster. + // + // This member is required. + InstanceGroups []types.ClusterInstanceGroupDetails + + // The name of the SageMaker HyperPod cluster. + ClusterName *string + + // The time when the SageMaker Cluster is created. + CreationTime *time.Time + + // The failure message of the SageMaker HyperPod cluster. + FailureMessage *string + + // Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, + // hosted models, and compute resources have access to. You can control access to + // and from your resources by configuring a VPC. For more information, see Give + // SageMaker Access to Resources in your Amazon VPC (https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) + // . + VpcConfig *types.VpcConfig + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeClusterMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeCluster{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeCluster{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeCluster"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpDescribeClusterValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeCluster(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeCluster(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DescribeCluster", + } +} diff --git a/service/sagemaker/api_op_DescribeClusterNode.go b/service/sagemaker/api_op_DescribeClusterNode.go new file mode 100644 index 00000000000..b4e2269c2f8 --- /dev/null +++ b/service/sagemaker/api_op_DescribeClusterNode.go @@ -0,0 +1,146 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves information of an instance (also called a node interchangeably) of a +// SageMaker HyperPod cluster. +func (c *Client) DescribeClusterNode(ctx context.Context, params *DescribeClusterNodeInput, optFns ...func(*Options)) (*DescribeClusterNodeOutput, error) { + if params == nil { + params = &DescribeClusterNodeInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeClusterNode", params, optFns, c.addOperationDescribeClusterNodeMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeClusterNodeOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeClusterNodeInput struct { + + // The string name or the Amazon Resource Name (ARN) of the SageMaker HyperPod + // cluster in which the instance is. + // + // This member is required. + ClusterName *string + + // The ID of the instance. + // + // This member is required. + NodeId *string + + noSmithyDocumentSerde +} + +type DescribeClusterNodeOutput struct { + + // The details of the instance. + // + // This member is required. + NodeDetails *types.ClusterNodeDetails + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeClusterNodeMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeClusterNode{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeClusterNode{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeClusterNode"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpDescribeClusterNodeValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeClusterNode(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeClusterNode(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DescribeClusterNode", + } +} diff --git a/service/sagemaker/api_op_DescribeDomain.go b/service/sagemaker/api_op_DescribeDomain.go index 9aedca4cc47..3110fd6b4f2 100644 --- a/service/sagemaker/api_op_DescribeDomain.go +++ b/service/sagemaker/api_op_DescribeDomain.go @@ -45,7 +45,7 @@ type DescribeDomainOutput struct { // PublicInternetOnly . // - PublicInternetOnly - Non-EFS traffic is through a VPC managed by Amazon // SageMaker, which allows direct internet access - // - VpcOnly - All Studio traffic is through the specified VPC and subnets + // - VpcOnly - All traffic is through the specified VPC and subnets AppNetworkAccessType types.AppNetworkAccessType // The entity that creates and manages the required security groups for inter-app @@ -111,13 +111,13 @@ type DescribeDomainOutput struct { // The status. Status types.DomainStatus - // The VPC subnets that Studio uses for communication. + // The VPC subnets that the domain uses for communication. SubnetIds []string // The domain's URL. Url *string - // The ID of the Amazon Virtual Private Cloud (VPC) that Studio uses for + // The ID of the Amazon Virtual Private Cloud (VPC) that the domain uses for // communication. VpcId *string diff --git a/service/sagemaker/api_op_DescribeEndpointConfig.go b/service/sagemaker/api_op_DescribeEndpointConfig.go index 3ba02af495d..3ada16f73f5 100644 --- a/service/sagemaker/api_op_DescribeEndpointConfig.go +++ b/service/sagemaker/api_op_DescribeEndpointConfig.go @@ -71,6 +71,15 @@ type DescribeEndpointConfigOutput struct { // Configuration to control how SageMaker captures inference data. DataCaptureConfig *types.DataCaptureConfig + // Indicates whether all model containers deployed to the endpoint are isolated. + // If they are, no inbound or outbound network calls can be made to or from the + // model containers. + EnableNetworkIsolation *bool + + // The Amazon Resource Name (ARN) of the IAM role that you assigned to the + // endpoint configuration. + ExecutionRoleArn *string + // The configuration parameters for an explainer. ExplainerConfig *types.ExplainerConfig @@ -83,6 +92,13 @@ type DescribeEndpointConfigOutput struct { // model specified on ProductionVariants . ShadowProductionVariants []types.ProductionVariant + // Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, + // hosted models, and compute resources have access to. You can control access to + // and from your resources by configuring a VPC. For more information, see Give + // SageMaker Access to Resources in your Amazon VPC (https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) + // . + VpcConfig *types.VpcConfig + // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sagemaker/api_op_DescribeInferenceComponent.go b/service/sagemaker/api_op_DescribeInferenceComponent.go new file mode 100644 index 00000000000..5ca3259572b --- /dev/null +++ b/service/sagemaker/api_op_DescribeInferenceComponent.go @@ -0,0 +1,182 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Returns information about an inference component. +func (c *Client) DescribeInferenceComponent(ctx context.Context, params *DescribeInferenceComponentInput, optFns ...func(*Options)) (*DescribeInferenceComponentOutput, error) { + if params == nil { + params = &DescribeInferenceComponentInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeInferenceComponent", params, optFns, c.addOperationDescribeInferenceComponentMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeInferenceComponentOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeInferenceComponentInput struct { + + // The name of the inference component. + // + // This member is required. + InferenceComponentName *string + + noSmithyDocumentSerde +} + +type DescribeInferenceComponentOutput struct { + + // The time when the inference component was created. + // + // This member is required. + CreationTime *time.Time + + // The Amazon Resource Name (ARN) of the endpoint that hosts the inference + // component. + // + // This member is required. + EndpointArn *string + + // The name of the endpoint that hosts the inference component. + // + // This member is required. + EndpointName *string + + // The Amazon Resource Name (ARN) of the inference component. + // + // This member is required. + InferenceComponentArn *string + + // The name of the inference component. + // + // This member is required. + InferenceComponentName *string + + // The time when the inference component was last updated. + // + // This member is required. + LastModifiedTime *time.Time + + // If the inference component status is Failed , the reason for the failure. + FailureReason *string + + // The status of the inference component. + InferenceComponentStatus types.InferenceComponentStatus + + // Details about the runtime settings for the model that is deployed with the + // inference component. + RuntimeConfig *types.InferenceComponentRuntimeConfigSummary + + // Details about the resources that are deployed with this inference component. + Specification *types.InferenceComponentSpecificationSummary + + // The name of the production variant that hosts the inference component. + VariantName *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeInferenceComponentMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeInferenceComponent{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeInferenceComponent{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeInferenceComponent"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpDescribeInferenceComponentValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeInferenceComponent(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeInferenceComponent(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DescribeInferenceComponent", + } +} diff --git a/service/sagemaker/api_op_DescribeModel.go b/service/sagemaker/api_op_DescribeModel.go index c2bf5a03c81..65f888e1124 100644 --- a/service/sagemaker/api_op_DescribeModel.go +++ b/service/sagemaker/api_op_DescribeModel.go @@ -46,11 +46,6 @@ type DescribeModelOutput struct { // This member is required. CreationTime *time.Time - // The Amazon Resource Name (ARN) of the IAM role that you specified for the model. - // - // This member is required. - ExecutionRoleArn *string - // The Amazon Resource Name (ARN) of the model. // // This member is required. @@ -71,6 +66,9 @@ type DescribeModelOutput struct { // container. EnableNetworkIsolation *bool + // The Amazon Resource Name (ARN) of the IAM role that you specified for the model. + ExecutionRoleArn *string + // Specifies details of how containers in a multi-container endpoint are called. InferenceExecutionConfig *types.InferenceExecutionConfig diff --git a/service/sagemaker/api_op_DescribeSpace.go b/service/sagemaker/api_op_DescribeSpace.go index 88ba4c11cd8..dc05bc0836c 100644 --- a/service/sagemaker/api_op_DescribeSpace.go +++ b/service/sagemaker/api_op_DescribeSpace.go @@ -73,6 +73,15 @@ type DescribeSpaceOutput struct { // The status. Status types.SpaceStatus + // Returns the URL of the space. If the space is created with Amazon Web Services + // IAM Identity Center (Successor to Amazon Web Services Single Sign-On) + // authentication, users can navigate to the URL after appending the respective + // redirect parameter for the application type to be federated through Amazon Web + // Services IAM Identity Center. The following application types are supported: + // - Studio Classic: &redirect=JupyterServer + // - JupyterLab: &redirect=JupyterLab + Url *string + // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/sagemaker/api_op_DescribeStudioLifecycleConfig.go b/service/sagemaker/api_op_DescribeStudioLifecycleConfig.go index 0e80a1f6232..9e395581281 100644 --- a/service/sagemaker/api_op_DescribeStudioLifecycleConfig.go +++ b/service/sagemaker/api_op_DescribeStudioLifecycleConfig.go @@ -13,7 +13,7 @@ import ( "time" ) -// Describes the Studio Lifecycle Configuration. +// Describes the Amazon SageMaker Studio Lifecycle Configuration. func (c *Client) DescribeStudioLifecycleConfig(ctx context.Context, params *DescribeStudioLifecycleConfigInput, optFns ...func(*Options)) (*DescribeStudioLifecycleConfigOutput, error) { if params == nil { params = &DescribeStudioLifecycleConfigInput{} @@ -31,7 +31,7 @@ func (c *Client) DescribeStudioLifecycleConfig(ctx context.Context, params *Desc type DescribeStudioLifecycleConfigInput struct { - // The name of the Studio Lifecycle Configuration to describe. + // The name of the Amazon SageMaker Studio Lifecycle Configuration to describe. // // This member is required. StudioLifecycleConfigName *string @@ -41,11 +41,11 @@ type DescribeStudioLifecycleConfigInput struct { type DescribeStudioLifecycleConfigOutput struct { - // The creation time of the Studio Lifecycle Configuration. + // The creation time of the Amazon SageMaker Studio Lifecycle Configuration. CreationTime *time.Time - // This value is equivalent to CreationTime because Studio Lifecycle - // Configurations are immutable. + // This value is equivalent to CreationTime because Amazon SageMaker Studio + // Lifecycle Configurations are immutable. LastModifiedTime *time.Time // The App type that the Lifecycle Configuration is attached to. @@ -54,10 +54,11 @@ type DescribeStudioLifecycleConfigOutput struct { // The ARN of the Lifecycle Configuration to describe. StudioLifecycleConfigArn *string - // The content of your Studio Lifecycle Configuration script. + // The content of your Amazon SageMaker Studio Lifecycle Configuration script. StudioLifecycleConfigContent *string - // The name of the Studio Lifecycle Configuration that is described. + // The name of the Amazon SageMaker Studio Lifecycle Configuration that is + // described. StudioLifecycleConfigName *string // Metadata pertaining to the operation's result. diff --git a/service/sagemaker/api_op_DescribeTrainingJob.go b/service/sagemaker/api_op_DescribeTrainingJob.go index 0e9936153ad..1c418376c9d 100644 --- a/service/sagemaker/api_op_DescribeTrainingJob.go +++ b/service/sagemaker/api_op_DescribeTrainingJob.go @@ -211,6 +211,10 @@ type DescribeTrainingJobOutput struct { // Algorithm-specific parameters. HyperParameters map[string]string + // Contains information about the infrastructure health check configuration for + // the training job. + InfraCheckConfig *types.InfraCheckConfig + // An array of Channel objects that describes each data input channel. InputDataConfig []types.Channel diff --git a/service/sagemaker/api_op_ListClusterNodes.go b/service/sagemaker/api_op_ListClusterNodes.go new file mode 100644 index 00000000000..756a760aade --- /dev/null +++ b/service/sagemaker/api_op_ListClusterNodes.go @@ -0,0 +1,185 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Retrieves the list of instances (also called nodes interchangeably) in a +// SageMaker HyperPod cluster. +func (c *Client) ListClusterNodes(ctx context.Context, params *ListClusterNodesInput, optFns ...func(*Options)) (*ListClusterNodesOutput, error) { + if params == nil { + params = &ListClusterNodesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListClusterNodes", params, optFns, c.addOperationListClusterNodesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListClusterNodesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListClusterNodesInput struct { + + // The string name or the Amazon Resource Name (ARN) of the SageMaker HyperPod + // cluster in which you want to retrieve the list of nodes. + // + // This member is required. + ClusterName *string + + // A filter that returns nodes in a SageMaker HyperPod cluster created after the + // specified time. Timestamps are formatted according to the ISO 8601 standard. + // Acceptable formats include: + // - YYYY-MM-DDThh:mm:ss.sssTZD (UTC), for example, 2014-10-01T20:30:00.000Z + // - YYYY-MM-DDThh:mm:ss.sssTZD (with offset), for example, + // 2014-10-01T12:30:00.000-08:00 + // - YYYY-MM-DD , for example, 2014-10-01 + // - Unix time in seconds, for example, 1412195400 . This is also referred to as + // Unix Epoch time and represents the number of seconds since midnight, January 1, + // 1970 UTC. + // For more information about the timestamp format, see Timestamp (https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-types.html#parameter-type-timestamp) + // in the Amazon Web Services Command Line Interface User Guide. + CreationTimeAfter *time.Time + + // A filter that returns nodes in a SageMaker HyperPod cluster created before the + // specified time. The acceptable formats are the same as the timestamp formats for + // CreationTimeAfter . For more information about the timestamp format, see + // Timestamp (https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-types.html#parameter-type-timestamp) + // in the Amazon Web Services Command Line Interface User Guide. + CreationTimeBefore *time.Time + + // A filter that returns the instance groups whose name contain a specified string. + InstanceGroupNameContains *string + + // The maximum number of nodes to return in the response. + MaxResults *int32 + + // If the result of the previous ListClusterNodes request was truncated, the + // response includes a NextToken . To retrieve the next set of cluster nodes, use + // the token in the next request. + NextToken *string + + // The field by which to sort results. The default value is CREATION_TIME . + SortBy types.ClusterSortBy + + // The sort order for results. The default value is Ascending . + SortOrder types.SortOrder + + noSmithyDocumentSerde +} + +type ListClusterNodesOutput struct { + + // The summaries of listed instances in a SageMaker HyperPod cluster + // + // This member is required. + ClusterNodeSummaries []types.ClusterNodeSummary + + // The next token specified for listing instances in a SageMaker HyperPod cluster. + // + // This member is required. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListClusterNodesMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpListClusterNodes{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListClusterNodes{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListClusterNodes"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpListClusterNodesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListClusterNodes(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opListClusterNodes(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListClusterNodes", + } +} diff --git a/service/sagemaker/api_op_ListClusters.go b/service/sagemaker/api_op_ListClusters.go new file mode 100644 index 00000000000..77d8bb5e472 --- /dev/null +++ b/service/sagemaker/api_op_ListClusters.go @@ -0,0 +1,176 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Retrieves the list of SageMaker HyperPod clusters. +func (c *Client) ListClusters(ctx context.Context, params *ListClustersInput, optFns ...func(*Options)) (*ListClustersOutput, error) { + if params == nil { + params = &ListClustersInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListClusters", params, optFns, c.addOperationListClustersMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListClustersOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListClustersInput struct { + + // Set a start time for the time range during which you want to list SageMaker + // HyperPod clusters. Timestamps are formatted according to the ISO 8601 standard. + // Acceptable formats include: + // - YYYY-MM-DDThh:mm:ss.sssTZD (UTC), for example, 2014-10-01T20:30:00.000Z + // - YYYY-MM-DDThh:mm:ss.sssTZD (with offset), for example, + // 2014-10-01T12:30:00.000-08:00 + // - YYYY-MM-DD , for example, 2014-10-01 + // - Unix time in seconds, for example, 1412195400 . This is also referred to as + // Unix Epoch time and represents the number of seconds since midnight, January 1, + // 1970 UTC. + // For more information about the timestamp format, see Timestamp (https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-types.html#parameter-type-timestamp) + // in the Amazon Web Services Command Line Interface User Guide. + CreationTimeAfter *time.Time + + // Set an end time for the time range during which you want to list SageMaker + // HyperPod clusters. A filter that returns nodes in a SageMaker HyperPod cluster + // created before the specified time. The acceptable formats are the same as the + // timestamp formats for CreationTimeAfter . For more information about the + // timestamp format, see Timestamp (https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-types.html#parameter-type-timestamp) + // in the Amazon Web Services Command Line Interface User Guide. + CreationTimeBefore *time.Time + + // Set the maximum number of SageMaker HyperPod clusters to list. + MaxResults *int32 + + // Set the maximum number of instances to print in the list. + NameContains *string + + // Set the next token to retrieve the list of SageMaker HyperPod clusters. + NextToken *string + + // The field by which to sort results. The default value is CREATION_TIME . + SortBy types.ClusterSortBy + + // The sort order for results. The default value is Ascending . + SortOrder types.SortOrder + + noSmithyDocumentSerde +} + +type ListClustersOutput struct { + + // The summaries of listed SageMaker HyperPod clusters. + // + // This member is required. + ClusterSummaries []types.ClusterSummary + + // If the result of the previous ListClusters request was truncated, the response + // includes a NextToken . To retrieve the next set of clusters, use the token in + // the next request. + // + // This member is required. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListClustersMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpListClusters{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListClusters{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListClusters"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListClusters(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opListClusters(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListClusters", + } +} diff --git a/service/sagemaker/api_op_ListInferenceComponents.go b/service/sagemaker/api_op_ListInferenceComponents.go new file mode 100644 index 00000000000..0748e3a5977 --- /dev/null +++ b/service/sagemaker/api_op_ListInferenceComponents.go @@ -0,0 +1,280 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Lists the inference components in your account and their properties. +func (c *Client) ListInferenceComponents(ctx context.Context, params *ListInferenceComponentsInput, optFns ...func(*Options)) (*ListInferenceComponentsOutput, error) { + if params == nil { + params = &ListInferenceComponentsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListInferenceComponents", params, optFns, c.addOperationListInferenceComponentsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListInferenceComponentsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListInferenceComponentsInput struct { + + // Filters the results to only those inference components that were created after + // the specified time. + CreationTimeAfter *time.Time + + // Filters the results to only those inference components that were created before + // the specified time. + CreationTimeBefore *time.Time + + // An endpoint name to filter the listed inference components. The response + // includes only those inference components that are hosted at the specified + // endpoint. + EndpointNameEquals *string + + // Filters the results to only those inference components that were updated after + // the specified time. + LastModifiedTimeAfter *time.Time + + // Filters the results to only those inference components that were updated before + // the specified time. + LastModifiedTimeBefore *time.Time + + // The maximum number of inference components to return in the response. This + // value defaults to 10. + MaxResults *int32 + + // Filters the results to only those inference components with a name that + // contains the specified string. + NameContains *string + + // A token that you use to get the next set of results following a truncated + // response. If the response to the previous request was truncated, that response + // provides the value for this token. + NextToken *string + + // The field by which to sort the inference components in the response. The + // default is CreationTime . + SortBy types.InferenceComponentSortKey + + // The sort order for results. The default is Descending . + SortOrder types.OrderKey + + // Filters the results to only those inference components with the specified + // status. + StatusEquals types.InferenceComponentStatus + + // A production variant name to filter the listed inference components. The + // response includes only those inference components that are hosted at the + // specified variant. + VariantNameEquals *string + + noSmithyDocumentSerde +} + +type ListInferenceComponentsOutput struct { + + // A list of inference components and their properties that matches any of the + // filters you specified in the request. + // + // This member is required. + InferenceComponents []types.InferenceComponentSummary + + // The token to use in a subsequent request to get the next set of results + // following a truncated response. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListInferenceComponentsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpListInferenceComponents{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListInferenceComponents{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListInferenceComponents"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListInferenceComponents(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// ListInferenceComponentsAPIClient is a client that implements the +// ListInferenceComponents operation. +type ListInferenceComponentsAPIClient interface { + ListInferenceComponents(context.Context, *ListInferenceComponentsInput, ...func(*Options)) (*ListInferenceComponentsOutput, error) +} + +var _ ListInferenceComponentsAPIClient = (*Client)(nil) + +// ListInferenceComponentsPaginatorOptions is the paginator options for +// ListInferenceComponents +type ListInferenceComponentsPaginatorOptions struct { + // The maximum number of inference components to return in the response. This + // value defaults to 10. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListInferenceComponentsPaginator is a paginator for ListInferenceComponents +type ListInferenceComponentsPaginator struct { + options ListInferenceComponentsPaginatorOptions + client ListInferenceComponentsAPIClient + params *ListInferenceComponentsInput + nextToken *string + firstPage bool +} + +// NewListInferenceComponentsPaginator returns a new +// ListInferenceComponentsPaginator +func NewListInferenceComponentsPaginator(client ListInferenceComponentsAPIClient, params *ListInferenceComponentsInput, optFns ...func(*ListInferenceComponentsPaginatorOptions)) *ListInferenceComponentsPaginator { + if params == nil { + params = &ListInferenceComponentsInput{} + } + + options := ListInferenceComponentsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListInferenceComponentsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListInferenceComponentsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListInferenceComponents page. +func (p *ListInferenceComponentsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListInferenceComponentsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.ListInferenceComponents(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListInferenceComponents(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListInferenceComponents", + } +} diff --git a/service/sagemaker/api_op_ListStudioLifecycleConfigs.go b/service/sagemaker/api_op_ListStudioLifecycleConfigs.go index dcd409f1c41..4315abfb513 100644 --- a/service/sagemaker/api_op_ListStudioLifecycleConfigs.go +++ b/service/sagemaker/api_op_ListStudioLifecycleConfigs.go @@ -13,7 +13,8 @@ import ( "time" ) -// Lists the Studio Lifecycle Configurations in your Amazon Web Services Account. +// Lists the Amazon SageMaker Studio Lifecycle Configurations in your Amazon Web +// Services Account. func (c *Client) ListStudioLifecycleConfigs(ctx context.Context, params *ListStudioLifecycleConfigsInput, optFns ...func(*Options)) (*ListStudioLifecycleConfigsOutput, error) { if params == nil { params = &ListStudioLifecycleConfigsInput{} diff --git a/service/sagemaker/api_op_UpdateCluster.go b/service/sagemaker/api_op_UpdateCluster.go new file mode 100644 index 00000000000..b3ddb6e1af5 --- /dev/null +++ b/service/sagemaker/api_op_UpdateCluster.go @@ -0,0 +1,144 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Update a SageMaker HyperPod cluster. +func (c *Client) UpdateCluster(ctx context.Context, params *UpdateClusterInput, optFns ...func(*Options)) (*UpdateClusterOutput, error) { + if params == nil { + params = &UpdateClusterInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateCluster", params, optFns, c.addOperationUpdateClusterMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateClusterOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateClusterInput struct { + + // Specify the name of the SageMaker HyperPod cluster you want to update. + // + // This member is required. + ClusterName *string + + // Specify the instance groups to update. + // + // This member is required. + InstanceGroups []types.ClusterInstanceGroupSpecification + + noSmithyDocumentSerde +} + +type UpdateClusterOutput struct { + + // The Amazon Resource Name (ARN) of the updated SageMaker HyperPod cluster. + // + // This member is required. + ClusterArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateClusterMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateCluster{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateCluster{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateCluster"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateClusterValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateCluster(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateCluster(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "UpdateCluster", + } +} diff --git a/service/sagemaker/api_op_UpdateDomain.go b/service/sagemaker/api_op_UpdateDomain.go index 72af340fce1..a7b9d92a53c 100644 --- a/service/sagemaker/api_op_UpdateDomain.go +++ b/service/sagemaker/api_op_UpdateDomain.go @@ -35,6 +35,17 @@ type UpdateDomainInput struct { // This member is required. DomainId *string + // Specifies the VPC used for non-EFS traffic. + // - PublicInternetOnly - Non-EFS traffic is through a VPC managed by Amazon + // SageMaker, which allows direct internet access. + // - VpcOnly - All Studio traffic is through the specified VPC and subnets. + // This configuration can only be modified if there are no apps in the InService , + // Pending , or Deleting state. The configuration cannot be updated if + // DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn is already + // set or DomainSettings.RStudioServerProDomainSettings.DomainExecutionRoleArn is + // provided as part of the same request. + AppNetworkAccessType types.AppNetworkAccessType + // The entity that creates and manages the required security groups for inter-app // communication in VPCOnly mode. Required when CreateDomain.AppNetworkAccessType // is VPCOnly and @@ -52,6 +63,10 @@ type UpdateDomainInput struct { // A collection of DomainSettings configuration values to update. DomainSettingsForUpdate *types.DomainSettingsForUpdate + // The VPC subnets that Studio uses for communication. If removing subnets, ensure + // there are no apps in the InService , Pending , or Deleting state. + SubnetIds []string + noSmithyDocumentSerde } diff --git a/service/sagemaker/api_op_UpdateInferenceComponent.go b/service/sagemaker/api_op_UpdateInferenceComponent.go new file mode 100644 index 00000000000..01caf080607 --- /dev/null +++ b/service/sagemaker/api_op_UpdateInferenceComponent.go @@ -0,0 +1,146 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates an inference component. +func (c *Client) UpdateInferenceComponent(ctx context.Context, params *UpdateInferenceComponentInput, optFns ...func(*Options)) (*UpdateInferenceComponentOutput, error) { + if params == nil { + params = &UpdateInferenceComponentInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateInferenceComponent", params, optFns, c.addOperationUpdateInferenceComponentMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateInferenceComponentOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateInferenceComponentInput struct { + + // The name of the inference component. + // + // This member is required. + InferenceComponentName *string + + // Runtime settings for a model that is deployed with an inference component. + RuntimeConfig *types.InferenceComponentRuntimeConfig + + // Details about the resources to deploy with this inference component, including + // the model, container, and compute resources. + Specification *types.InferenceComponentSpecification + + noSmithyDocumentSerde +} + +type UpdateInferenceComponentOutput struct { + + // The Amazon Resource Name (ARN) of the inference component. + // + // This member is required. + InferenceComponentArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateInferenceComponentMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateInferenceComponent{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateInferenceComponent{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateInferenceComponent"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateInferenceComponentValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateInferenceComponent(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateInferenceComponent(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "UpdateInferenceComponent", + } +} diff --git a/service/sagemaker/api_op_UpdateInferenceComponentRuntimeConfig.go b/service/sagemaker/api_op_UpdateInferenceComponentRuntimeConfig.go new file mode 100644 index 00000000000..0a412169959 --- /dev/null +++ b/service/sagemaker/api_op_UpdateInferenceComponentRuntimeConfig.go @@ -0,0 +1,144 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Runtime settings for a model that is deployed with an inference component. +func (c *Client) UpdateInferenceComponentRuntimeConfig(ctx context.Context, params *UpdateInferenceComponentRuntimeConfigInput, optFns ...func(*Options)) (*UpdateInferenceComponentRuntimeConfigOutput, error) { + if params == nil { + params = &UpdateInferenceComponentRuntimeConfigInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateInferenceComponentRuntimeConfig", params, optFns, c.addOperationUpdateInferenceComponentRuntimeConfigMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateInferenceComponentRuntimeConfigOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateInferenceComponentRuntimeConfigInput struct { + + // Runtime settings for a model that is deployed with an inference component. + // + // This member is required. + DesiredRuntimeConfig *types.InferenceComponentRuntimeConfig + + // The name of the inference component to update. + // + // This member is required. + InferenceComponentName *string + + noSmithyDocumentSerde +} + +type UpdateInferenceComponentRuntimeConfigOutput struct { + + // The Amazon Resource Name (ARN) of the inference component. + // + // This member is required. + InferenceComponentArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateInferenceComponentRuntimeConfigMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateInferenceComponentRuntimeConfig{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateInferenceComponentRuntimeConfig{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateInferenceComponentRuntimeConfig"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateInferenceComponentRuntimeConfigValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateInferenceComponentRuntimeConfig(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateInferenceComponentRuntimeConfig(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "UpdateInferenceComponentRuntimeConfig", + } +} diff --git a/service/sagemaker/deserializers.go b/service/sagemaker/deserializers.go index 20f0a98423a..69df863e98b 100644 --- a/service/sagemaker/deserializers.go +++ b/service/sagemaker/deserializers.go @@ -1248,14 +1248,14 @@ func awsAwsjson11_deserializeOpErrorCreateAutoMLJobV2(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpCreateCodeRepository struct { +type awsAwsjson11_deserializeOpCreateCluster struct { } -func (*awsAwsjson11_deserializeOpCreateCodeRepository) ID() string { +func (*awsAwsjson11_deserializeOpCreateCluster) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateCodeRepository) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateCluster) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1269,9 +1269,9 @@ func (m *awsAwsjson11_deserializeOpCreateCodeRepository) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateCodeRepository(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateCluster(response, &metadata) } - output := &CreateCodeRepositoryOutput{} + output := &CreateClusterOutput{} out.Result = output var buff [1024]byte @@ -1291,7 +1291,7 @@ func (m *awsAwsjson11_deserializeOpCreateCodeRepository) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateCodeRepositoryOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateClusterOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1305,7 +1305,7 @@ func (m *awsAwsjson11_deserializeOpCreateCodeRepository) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateCodeRepository(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateCluster(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1346,6 +1346,12 @@ func awsAwsjson11_deserializeOpErrorCreateCodeRepository(response *smithyhttp.Re } switch { + case strings.EqualFold("ResourceInUse", errorCode): + return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) + + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -1356,14 +1362,14 @@ func awsAwsjson11_deserializeOpErrorCreateCodeRepository(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpCreateCompilationJob struct { +type awsAwsjson11_deserializeOpCreateCodeRepository struct { } -func (*awsAwsjson11_deserializeOpCreateCompilationJob) ID() string { +func (*awsAwsjson11_deserializeOpCreateCodeRepository) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateCompilationJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateCodeRepository) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1377,9 +1383,9 @@ func (m *awsAwsjson11_deserializeOpCreateCompilationJob) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateCompilationJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateCodeRepository(response, &metadata) } - output := &CreateCompilationJobOutput{} + output := &CreateCodeRepositoryOutput{} out.Result = output var buff [1024]byte @@ -1399,7 +1405,7 @@ func (m *awsAwsjson11_deserializeOpCreateCompilationJob) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateCompilationJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateCodeRepositoryOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1413,7 +1419,7 @@ func (m *awsAwsjson11_deserializeOpCreateCompilationJob) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateCompilationJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateCodeRepository(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1454,12 +1460,6 @@ func awsAwsjson11_deserializeOpErrorCreateCompilationJob(response *smithyhttp.Re } switch { - case strings.EqualFold("ResourceInUse", errorCode): - return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) - - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -1470,14 +1470,14 @@ func awsAwsjson11_deserializeOpErrorCreateCompilationJob(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpCreateContext struct { +type awsAwsjson11_deserializeOpCreateCompilationJob struct { } -func (*awsAwsjson11_deserializeOpCreateContext) ID() string { +func (*awsAwsjson11_deserializeOpCreateCompilationJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateContext) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateCompilationJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1491,9 +1491,9 @@ func (m *awsAwsjson11_deserializeOpCreateContext) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateContext(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateCompilationJob(response, &metadata) } - output := &CreateContextOutput{} + output := &CreateCompilationJobOutput{} out.Result = output var buff [1024]byte @@ -1513,7 +1513,7 @@ func (m *awsAwsjson11_deserializeOpCreateContext) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateContextOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateCompilationJobOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1527,7 +1527,7 @@ func (m *awsAwsjson11_deserializeOpCreateContext) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateContext(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateCompilationJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1568,6 +1568,9 @@ func awsAwsjson11_deserializeOpErrorCreateContext(response *smithyhttp.Response, } switch { + case strings.EqualFold("ResourceInUse", errorCode): + return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) + case strings.EqualFold("ResourceLimitExceeded", errorCode): return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) @@ -1581,14 +1584,14 @@ func awsAwsjson11_deserializeOpErrorCreateContext(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpCreateDataQualityJobDefinition struct { +type awsAwsjson11_deserializeOpCreateContext struct { } -func (*awsAwsjson11_deserializeOpCreateDataQualityJobDefinition) ID() string { +func (*awsAwsjson11_deserializeOpCreateContext) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateDataQualityJobDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateContext) HandleDeserialize(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,9 +1605,9 @@ func (m *awsAwsjson11_deserializeOpCreateDataQualityJobDefinition) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateDataQualityJobDefinition(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateContext(response, &metadata) } - output := &CreateDataQualityJobDefinitionOutput{} + output := &CreateContextOutput{} out.Result = output var buff [1024]byte @@ -1624,7 +1627,7 @@ func (m *awsAwsjson11_deserializeOpCreateDataQualityJobDefinition) HandleDeseria return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateDataQualityJobDefinitionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateContextOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1638,7 +1641,7 @@ func (m *awsAwsjson11_deserializeOpCreateDataQualityJobDefinition) HandleDeseria return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateDataQualityJobDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateContext(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1679,9 +1682,6 @@ func awsAwsjson11_deserializeOpErrorCreateDataQualityJobDefinition(response *smi } switch { - case strings.EqualFold("ResourceInUse", errorCode): - return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) - case strings.EqualFold("ResourceLimitExceeded", errorCode): return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) @@ -1695,14 +1695,14 @@ func awsAwsjson11_deserializeOpErrorCreateDataQualityJobDefinition(response *smi } } -type awsAwsjson11_deserializeOpCreateDeviceFleet struct { +type awsAwsjson11_deserializeOpCreateDataQualityJobDefinition struct { } -func (*awsAwsjson11_deserializeOpCreateDeviceFleet) ID() string { +func (*awsAwsjson11_deserializeOpCreateDataQualityJobDefinition) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateDeviceFleet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateDataQualityJobDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1716,21 +1716,43 @@ func (m *awsAwsjson11_deserializeOpCreateDeviceFleet) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateDeviceFleet(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateDataQualityJobDefinition(response, &metadata) } - output := &CreateDeviceFleetOutput{} + output := &CreateDataQualityJobDefinitionOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentCreateDataQualityJobDefinitionOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateDeviceFleet(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateDataQualityJobDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1787,14 +1809,14 @@ func awsAwsjson11_deserializeOpErrorCreateDeviceFleet(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpCreateDomain struct { +type awsAwsjson11_deserializeOpCreateDeviceFleet struct { } -func (*awsAwsjson11_deserializeOpCreateDomain) ID() string { +func (*awsAwsjson11_deserializeOpCreateDeviceFleet) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateDomain) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateDeviceFleet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1808,43 +1830,21 @@ func (m *awsAwsjson11_deserializeOpCreateDomain) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateDomain(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateDeviceFleet(response, &metadata) } - output := &CreateDomainOutput{} + output := &CreateDeviceFleetOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentCreateDomainOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateDomain(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateDeviceFleet(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1901,14 +1901,14 @@ func awsAwsjson11_deserializeOpErrorCreateDomain(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpCreateEdgeDeploymentPlan struct { +type awsAwsjson11_deserializeOpCreateDomain struct { } -func (*awsAwsjson11_deserializeOpCreateEdgeDeploymentPlan) ID() string { +func (*awsAwsjson11_deserializeOpCreateDomain) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateEdgeDeploymentPlan) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_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) @@ -1922,9 +1922,9 @@ func (m *awsAwsjson11_deserializeOpCreateEdgeDeploymentPlan) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateEdgeDeploymentPlan(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateDomain(response, &metadata) } - output := &CreateEdgeDeploymentPlanOutput{} + output := &CreateDomainOutput{} out.Result = output var buff [1024]byte @@ -1944,7 +1944,7 @@ func (m *awsAwsjson11_deserializeOpCreateEdgeDeploymentPlan) HandleDeserialize(c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateEdgeDeploymentPlanOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateDomainOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1958,7 +1958,7 @@ func (m *awsAwsjson11_deserializeOpCreateEdgeDeploymentPlan) HandleDeserialize(c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateEdgeDeploymentPlan(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_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)} @@ -1999,6 +1999,9 @@ func awsAwsjson11_deserializeOpErrorCreateEdgeDeploymentPlan(response *smithyhtt } switch { + case strings.EqualFold("ResourceInUse", errorCode): + return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) + case strings.EqualFold("ResourceLimitExceeded", errorCode): return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) @@ -2012,14 +2015,14 @@ func awsAwsjson11_deserializeOpErrorCreateEdgeDeploymentPlan(response *smithyhtt } } -type awsAwsjson11_deserializeOpCreateEdgeDeploymentStage struct { +type awsAwsjson11_deserializeOpCreateEdgeDeploymentPlan struct { } -func (*awsAwsjson11_deserializeOpCreateEdgeDeploymentStage) ID() string { +func (*awsAwsjson11_deserializeOpCreateEdgeDeploymentPlan) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateEdgeDeploymentStage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateEdgeDeploymentPlan) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2033,110 +2036,43 @@ func (m *awsAwsjson11_deserializeOpCreateEdgeDeploymentStage) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateEdgeDeploymentStage(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateEdgeDeploymentPlan(response, &metadata) } - output := &CreateEdgeDeploymentStageOutput{} + output := &CreateEdgeDeploymentPlanOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), - } - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorCreateEdgeDeploymentStage(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != 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) + body := io.TeeReader(response.Body, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - jsonCode, message, err := restjson.GetErrorInfo(decoder) - if err != nil { + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(headerCode) == 0 && len(jsonCode) != 0 { - errorCode = restjson.SanitizeErrorCode(jsonCode) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpCreateEdgePackagingJob struct { -} - -func (*awsAwsjson11_deserializeOpCreateEdgePackagingJob) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpCreateEdgePackagingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { return out, metadata, err } - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateEdgePackagingJob(response, &metadata) - } - output := &CreateEdgePackagingJobOutput{} - out.Result = output - - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + err = awsAwsjson11_deserializeOpDocumentCreateEdgeDeploymentPlanOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateEdgePackagingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateEdgeDeploymentPlan(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2190,14 +2126,14 @@ func awsAwsjson11_deserializeOpErrorCreateEdgePackagingJob(response *smithyhttp. } } -type awsAwsjson11_deserializeOpCreateEndpoint struct { +type awsAwsjson11_deserializeOpCreateEdgeDeploymentStage struct { } -func (*awsAwsjson11_deserializeOpCreateEndpoint) ID() string { +func (*awsAwsjson11_deserializeOpCreateEdgeDeploymentStage) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateEndpoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateEdgeDeploymentStage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2211,43 +2147,110 @@ func (m *awsAwsjson11_deserializeOpCreateEndpoint) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateEndpoint(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateEdgeDeploymentStage(response, &metadata) } - output := &CreateEndpointOutput{} + output := &CreateEdgeDeploymentStageOutput{} out.Result = output + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorCreateEdgeDeploymentStage(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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(response.Body, ringBuffer) + 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{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return out, metadata, err + return err } - err = awsAwsjson11_deserializeOpDocumentCreateEndpointOutput(&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(), + 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("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } + return genericError + + } +} + +type awsAwsjson11_deserializeOpCreateEdgePackagingJob struct { +} + +func (*awsAwsjson11_deserializeOpCreateEdgePackagingJob) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpCreateEdgePackagingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { return out, metadata, err } + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorCreateEdgePackagingJob(response, &metadata) + } + output := &CreateEdgePackagingJobOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateEndpoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateEdgePackagingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2301,14 +2304,14 @@ func awsAwsjson11_deserializeOpErrorCreateEndpoint(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpCreateEndpointConfig struct { +type awsAwsjson11_deserializeOpCreateEndpoint struct { } -func (*awsAwsjson11_deserializeOpCreateEndpointConfig) ID() string { +func (*awsAwsjson11_deserializeOpCreateEndpoint) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateEndpointConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateEndpoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2322,9 +2325,9 @@ func (m *awsAwsjson11_deserializeOpCreateEndpointConfig) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateEndpointConfig(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateEndpoint(response, &metadata) } - output := &CreateEndpointConfigOutput{} + output := &CreateEndpointOutput{} out.Result = output var buff [1024]byte @@ -2344,7 +2347,7 @@ func (m *awsAwsjson11_deserializeOpCreateEndpointConfig) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateEndpointConfigOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateEndpointOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2358,7 +2361,7 @@ func (m *awsAwsjson11_deserializeOpCreateEndpointConfig) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateEndpointConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateEndpoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2412,14 +2415,14 @@ func awsAwsjson11_deserializeOpErrorCreateEndpointConfig(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpCreateExperiment struct { +type awsAwsjson11_deserializeOpCreateEndpointConfig struct { } -func (*awsAwsjson11_deserializeOpCreateExperiment) ID() string { +func (*awsAwsjson11_deserializeOpCreateEndpointConfig) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateExperiment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateEndpointConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2433,9 +2436,9 @@ func (m *awsAwsjson11_deserializeOpCreateExperiment) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateExperiment(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateEndpointConfig(response, &metadata) } - output := &CreateExperimentOutput{} + output := &CreateEndpointConfigOutput{} out.Result = output var buff [1024]byte @@ -2455,7 +2458,7 @@ func (m *awsAwsjson11_deserializeOpCreateExperiment) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateExperimentOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateEndpointConfigOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2469,7 +2472,7 @@ func (m *awsAwsjson11_deserializeOpCreateExperiment) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateExperiment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateEndpointConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2523,14 +2526,14 @@ func awsAwsjson11_deserializeOpErrorCreateExperiment(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpCreateFeatureGroup struct { +type awsAwsjson11_deserializeOpCreateExperiment struct { } -func (*awsAwsjson11_deserializeOpCreateFeatureGroup) ID() string { +func (*awsAwsjson11_deserializeOpCreateExperiment) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateFeatureGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateExperiment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2544,9 +2547,9 @@ func (m *awsAwsjson11_deserializeOpCreateFeatureGroup) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateFeatureGroup(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateExperiment(response, &metadata) } - output := &CreateFeatureGroupOutput{} + output := &CreateExperimentOutput{} out.Result = output var buff [1024]byte @@ -2566,7 +2569,7 @@ func (m *awsAwsjson11_deserializeOpCreateFeatureGroup) HandleDeserialize(ctx con return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateFeatureGroupOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateExperimentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2580,7 +2583,7 @@ func (m *awsAwsjson11_deserializeOpCreateFeatureGroup) HandleDeserialize(ctx con return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateFeatureGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateExperiment(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2621,9 +2624,6 @@ func awsAwsjson11_deserializeOpErrorCreateFeatureGroup(response *smithyhttp.Resp } switch { - case strings.EqualFold("ResourceInUse", errorCode): - return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) - case strings.EqualFold("ResourceLimitExceeded", errorCode): return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) @@ -2637,14 +2637,14 @@ func awsAwsjson11_deserializeOpErrorCreateFeatureGroup(response *smithyhttp.Resp } } -type awsAwsjson11_deserializeOpCreateFlowDefinition struct { +type awsAwsjson11_deserializeOpCreateFeatureGroup struct { } -func (*awsAwsjson11_deserializeOpCreateFlowDefinition) ID() string { +func (*awsAwsjson11_deserializeOpCreateFeatureGroup) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateFlowDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateFeatureGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2658,9 +2658,9 @@ func (m *awsAwsjson11_deserializeOpCreateFlowDefinition) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateFlowDefinition(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateFeatureGroup(response, &metadata) } - output := &CreateFlowDefinitionOutput{} + output := &CreateFeatureGroupOutput{} out.Result = output var buff [1024]byte @@ -2680,7 +2680,7 @@ func (m *awsAwsjson11_deserializeOpCreateFlowDefinition) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateFlowDefinitionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateFeatureGroupOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2694,7 +2694,7 @@ func (m *awsAwsjson11_deserializeOpCreateFlowDefinition) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateFlowDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateFeatureGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2751,14 +2751,14 @@ func awsAwsjson11_deserializeOpErrorCreateFlowDefinition(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpCreateHub struct { +type awsAwsjson11_deserializeOpCreateFlowDefinition struct { } -func (*awsAwsjson11_deserializeOpCreateHub) ID() string { +func (*awsAwsjson11_deserializeOpCreateFlowDefinition) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateHub) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateFlowDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2772,9 +2772,9 @@ func (m *awsAwsjson11_deserializeOpCreateHub) HandleDeserialize(ctx context.Cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateHub(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateFlowDefinition(response, &metadata) } - output := &CreateHubOutput{} + output := &CreateFlowDefinitionOutput{} out.Result = output var buff [1024]byte @@ -2794,7 +2794,7 @@ func (m *awsAwsjson11_deserializeOpCreateHub) HandleDeserialize(ctx context.Cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateHubOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateFlowDefinitionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2808,7 +2808,7 @@ func (m *awsAwsjson11_deserializeOpCreateHub) HandleDeserialize(ctx context.Cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateHub(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateFlowDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2865,14 +2865,14 @@ func awsAwsjson11_deserializeOpErrorCreateHub(response *smithyhttp.Response, met } } -type awsAwsjson11_deserializeOpCreateHumanTaskUi struct { +type awsAwsjson11_deserializeOpCreateHub struct { } -func (*awsAwsjson11_deserializeOpCreateHumanTaskUi) ID() string { +func (*awsAwsjson11_deserializeOpCreateHub) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateHumanTaskUi) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateHub) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2886,9 +2886,9 @@ func (m *awsAwsjson11_deserializeOpCreateHumanTaskUi) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateHumanTaskUi(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateHub(response, &metadata) } - output := &CreateHumanTaskUiOutput{} + output := &CreateHubOutput{} out.Result = output var buff [1024]byte @@ -2908,7 +2908,7 @@ func (m *awsAwsjson11_deserializeOpCreateHumanTaskUi) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateHumanTaskUiOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateHubOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2922,7 +2922,7 @@ func (m *awsAwsjson11_deserializeOpCreateHumanTaskUi) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateHumanTaskUi(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateHub(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2979,14 +2979,14 @@ func awsAwsjson11_deserializeOpErrorCreateHumanTaskUi(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpCreateHyperParameterTuningJob struct { +type awsAwsjson11_deserializeOpCreateHumanTaskUi struct { } -func (*awsAwsjson11_deserializeOpCreateHyperParameterTuningJob) ID() string { +func (*awsAwsjson11_deserializeOpCreateHumanTaskUi) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateHyperParameterTuningJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateHumanTaskUi) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3000,9 +3000,9 @@ func (m *awsAwsjson11_deserializeOpCreateHyperParameterTuningJob) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateHyperParameterTuningJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateHumanTaskUi(response, &metadata) } - output := &CreateHyperParameterTuningJobOutput{} + output := &CreateHumanTaskUiOutput{} out.Result = output var buff [1024]byte @@ -3022,7 +3022,7 @@ func (m *awsAwsjson11_deserializeOpCreateHyperParameterTuningJob) HandleDeserial return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateHyperParameterTuningJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateHumanTaskUiOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3036,7 +3036,7 @@ func (m *awsAwsjson11_deserializeOpCreateHyperParameterTuningJob) HandleDeserial return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateHyperParameterTuningJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateHumanTaskUi(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3093,14 +3093,14 @@ func awsAwsjson11_deserializeOpErrorCreateHyperParameterTuningJob(response *smit } } -type awsAwsjson11_deserializeOpCreateImage struct { +type awsAwsjson11_deserializeOpCreateHyperParameterTuningJob struct { } -func (*awsAwsjson11_deserializeOpCreateImage) ID() string { +func (*awsAwsjson11_deserializeOpCreateHyperParameterTuningJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateImage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateHyperParameterTuningJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3114,9 +3114,9 @@ func (m *awsAwsjson11_deserializeOpCreateImage) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateImage(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateHyperParameterTuningJob(response, &metadata) } - output := &CreateImageOutput{} + output := &CreateHyperParameterTuningJobOutput{} out.Result = output var buff [1024]byte @@ -3136,7 +3136,7 @@ func (m *awsAwsjson11_deserializeOpCreateImage) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateImageOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateHyperParameterTuningJobOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3150,7 +3150,7 @@ func (m *awsAwsjson11_deserializeOpCreateImage) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateImage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateHyperParameterTuningJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3207,14 +3207,14 @@ func awsAwsjson11_deserializeOpErrorCreateImage(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpCreateImageVersion struct { +type awsAwsjson11_deserializeOpCreateImage struct { } -func (*awsAwsjson11_deserializeOpCreateImageVersion) ID() string { +func (*awsAwsjson11_deserializeOpCreateImage) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateImageVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateImage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3228,9 +3228,9 @@ func (m *awsAwsjson11_deserializeOpCreateImageVersion) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateImageVersion(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateImage(response, &metadata) } - output := &CreateImageVersionOutput{} + output := &CreateImageOutput{} out.Result = output var buff [1024]byte @@ -3250,7 +3250,7 @@ func (m *awsAwsjson11_deserializeOpCreateImageVersion) HandleDeserialize(ctx con return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateImageVersionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateImageOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3264,7 +3264,7 @@ func (m *awsAwsjson11_deserializeOpCreateImageVersion) HandleDeserialize(ctx con return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateImageVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateImage(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3311,9 +3311,6 @@ func awsAwsjson11_deserializeOpErrorCreateImageVersion(response *smithyhttp.Resp case strings.EqualFold("ResourceLimitExceeded", errorCode): return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -3324,14 +3321,14 @@ func awsAwsjson11_deserializeOpErrorCreateImageVersion(response *smithyhttp.Resp } } -type awsAwsjson11_deserializeOpCreateInferenceExperiment struct { +type awsAwsjson11_deserializeOpCreateImageVersion struct { } -func (*awsAwsjson11_deserializeOpCreateInferenceExperiment) ID() string { +func (*awsAwsjson11_deserializeOpCreateImageVersion) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateInferenceExperiment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateImageVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3345,9 +3342,9 @@ func (m *awsAwsjson11_deserializeOpCreateInferenceExperiment) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateInferenceExperiment(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateImageVersion(response, &metadata) } - output := &CreateInferenceExperimentOutput{} + output := &CreateImageVersionOutput{} out.Result = output var buff [1024]byte @@ -3367,7 +3364,7 @@ func (m *awsAwsjson11_deserializeOpCreateInferenceExperiment) HandleDeserialize( return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateInferenceExperimentOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateImageVersionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3381,7 +3378,7 @@ func (m *awsAwsjson11_deserializeOpCreateInferenceExperiment) HandleDeserialize( return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateInferenceExperiment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateImageVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3428,6 +3425,9 @@ func awsAwsjson11_deserializeOpErrorCreateInferenceExperiment(response *smithyht case strings.EqualFold("ResourceLimitExceeded", errorCode): return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -3438,14 +3438,14 @@ func awsAwsjson11_deserializeOpErrorCreateInferenceExperiment(response *smithyht } } -type awsAwsjson11_deserializeOpCreateInferenceRecommendationsJob struct { +type awsAwsjson11_deserializeOpCreateInferenceComponent struct { } -func (*awsAwsjson11_deserializeOpCreateInferenceRecommendationsJob) ID() string { +func (*awsAwsjson11_deserializeOpCreateInferenceComponent) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateInferenceRecommendationsJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateInferenceComponent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3459,9 +3459,9 @@ func (m *awsAwsjson11_deserializeOpCreateInferenceRecommendationsJob) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateInferenceRecommendationsJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateInferenceComponent(response, &metadata) } - output := &CreateInferenceRecommendationsJobOutput{} + output := &CreateInferenceComponentOutput{} out.Result = output var buff [1024]byte @@ -3481,7 +3481,7 @@ func (m *awsAwsjson11_deserializeOpCreateInferenceRecommendationsJob) HandleDese return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateInferenceRecommendationsJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateInferenceComponentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3495,7 +3495,232 @@ func (m *awsAwsjson11_deserializeOpCreateInferenceRecommendationsJob) HandleDese return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateInferenceRecommendationsJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateInferenceComponent(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpCreateInferenceExperiment struct { +} + +func (*awsAwsjson11_deserializeOpCreateInferenceExperiment) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpCreateInferenceExperiment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorCreateInferenceExperiment(response, &metadata) + } + output := &CreateInferenceExperimentOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentCreateInferenceExperimentOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorCreateInferenceExperiment(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("ResourceInUse", errorCode): + return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) + + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpCreateInferenceRecommendationsJob struct { +} + +func (*awsAwsjson11_deserializeOpCreateInferenceRecommendationsJob) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpCreateInferenceRecommendationsJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorCreateInferenceRecommendationsJob(response, &metadata) + } + output := &CreateInferenceRecommendationsJobOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentCreateInferenceRecommendationsJobOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorCreateInferenceRecommendationsJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7092,14 +7317,14 @@ func awsAwsjson11_deserializeOpErrorDeleteAssociation(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpDeleteCodeRepository struct { +type awsAwsjson11_deserializeOpDeleteCluster struct { } -func (*awsAwsjson11_deserializeOpDeleteCodeRepository) ID() string { +func (*awsAwsjson11_deserializeOpDeleteCluster) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeleteCodeRepository) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteCluster) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7113,21 +7338,135 @@ func (m *awsAwsjson11_deserializeOpDeleteCodeRepository) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteCodeRepository(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteCluster(response, &metadata) } - output := &DeleteCodeRepositoryOutput{} + output := &DeleteClusterOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentDeleteClusterOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDeleteCodeRepository(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteCluster(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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 awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpDeleteCodeRepository struct { +} + +func (*awsAwsjson11_deserializeOpDeleteCodeRepository) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpDeleteCodeRepository) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteCodeRepository(response, &metadata) + } + output := &DeleteCodeRepositoryOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorDeleteCodeRepository(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -8746,6 +9085,92 @@ func awsAwsjson11_deserializeOpErrorDeleteImageVersion(response *smithyhttp.Resp } } +type awsAwsjson11_deserializeOpDeleteInferenceComponent struct { +} + +func (*awsAwsjson11_deserializeOpDeleteInferenceComponent) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpDeleteInferenceComponent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteInferenceComponent(response, &metadata) + } + output := &DeleteInferenceComponentOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorDeleteInferenceComponent(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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 { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsAwsjson11_deserializeOpDeleteInferenceExperiment struct { } @@ -11715,14 +12140,14 @@ func awsAwsjson11_deserializeOpErrorDescribeAutoMLJobV2(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpDescribeCodeRepository struct { +type awsAwsjson11_deserializeOpDescribeCluster struct { } -func (*awsAwsjson11_deserializeOpDescribeCodeRepository) ID() string { +func (*awsAwsjson11_deserializeOpDescribeCluster) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeCodeRepository) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeCluster) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -11736,9 +12161,9 @@ func (m *awsAwsjson11_deserializeOpDescribeCodeRepository) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeCodeRepository(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeCluster(response, &metadata) } - output := &DescribeCodeRepositoryOutput{} + output := &DescribeClusterOutput{} out.Result = output var buff [1024]byte @@ -11758,7 +12183,7 @@ func (m *awsAwsjson11_deserializeOpDescribeCodeRepository) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeCodeRepositoryOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeClusterOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11772,7 +12197,7 @@ func (m *awsAwsjson11_deserializeOpDescribeCodeRepository) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeCodeRepository(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeCluster(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -11813,6 +12238,9 @@ func awsAwsjson11_deserializeOpErrorDescribeCodeRepository(response *smithyhttp. } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -11823,14 +12251,14 @@ func awsAwsjson11_deserializeOpErrorDescribeCodeRepository(response *smithyhttp. } } -type awsAwsjson11_deserializeOpDescribeCompilationJob struct { +type awsAwsjson11_deserializeOpDescribeClusterNode struct { } -func (*awsAwsjson11_deserializeOpDescribeCompilationJob) ID() string { +func (*awsAwsjson11_deserializeOpDescribeClusterNode) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeCompilationJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeClusterNode) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -11844,9 +12272,9 @@ func (m *awsAwsjson11_deserializeOpDescribeCompilationJob) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeCompilationJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeClusterNode(response, &metadata) } - output := &DescribeCompilationJobOutput{} + output := &DescribeClusterNodeOutput{} out.Result = output var buff [1024]byte @@ -11866,7 +12294,7 @@ func (m *awsAwsjson11_deserializeOpDescribeCompilationJob) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeCompilationJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeClusterNodeOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11880,7 +12308,7 @@ func (m *awsAwsjson11_deserializeOpDescribeCompilationJob) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeCompilationJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeClusterNode(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -11934,14 +12362,14 @@ func awsAwsjson11_deserializeOpErrorDescribeCompilationJob(response *smithyhttp. } } -type awsAwsjson11_deserializeOpDescribeContext struct { +type awsAwsjson11_deserializeOpDescribeCodeRepository struct { } -func (*awsAwsjson11_deserializeOpDescribeContext) ID() string { +func (*awsAwsjson11_deserializeOpDescribeCodeRepository) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeContext) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeCodeRepository) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -11955,9 +12383,9 @@ func (m *awsAwsjson11_deserializeOpDescribeContext) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeContext(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeCodeRepository(response, &metadata) } - output := &DescribeContextOutput{} + output := &DescribeCodeRepositoryOutput{} out.Result = output var buff [1024]byte @@ -11977,7 +12405,7 @@ func (m *awsAwsjson11_deserializeOpDescribeContext) HandleDeserialize(ctx contex return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeContextOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeCodeRepositoryOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11991,7 +12419,7 @@ func (m *awsAwsjson11_deserializeOpDescribeContext) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeContext(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeCodeRepository(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -12032,9 +12460,6 @@ func awsAwsjson11_deserializeOpErrorDescribeContext(response *smithyhttp.Respons } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -12045,14 +12470,14 @@ func awsAwsjson11_deserializeOpErrorDescribeContext(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpDescribeDataQualityJobDefinition struct { +type awsAwsjson11_deserializeOpDescribeCompilationJob struct { } -func (*awsAwsjson11_deserializeOpDescribeDataQualityJobDefinition) ID() string { +func (*awsAwsjson11_deserializeOpDescribeCompilationJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeDataQualityJobDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeCompilationJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -12066,9 +12491,9 @@ func (m *awsAwsjson11_deserializeOpDescribeDataQualityJobDefinition) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeDataQualityJobDefinition(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeCompilationJob(response, &metadata) } - output := &DescribeDataQualityJobDefinitionOutput{} + output := &DescribeCompilationJobOutput{} out.Result = output var buff [1024]byte @@ -12088,7 +12513,7 @@ func (m *awsAwsjson11_deserializeOpDescribeDataQualityJobDefinition) HandleDeser return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeDataQualityJobDefinitionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeCompilationJobOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12102,7 +12527,7 @@ func (m *awsAwsjson11_deserializeOpDescribeDataQualityJobDefinition) HandleDeser return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeDataQualityJobDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeCompilationJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -12156,14 +12581,14 @@ func awsAwsjson11_deserializeOpErrorDescribeDataQualityJobDefinition(response *s } } -type awsAwsjson11_deserializeOpDescribeDevice struct { +type awsAwsjson11_deserializeOpDescribeContext struct { } -func (*awsAwsjson11_deserializeOpDescribeDevice) ID() string { +func (*awsAwsjson11_deserializeOpDescribeContext) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeDevice) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeContext) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -12177,9 +12602,9 @@ func (m *awsAwsjson11_deserializeOpDescribeDevice) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeDevice(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeContext(response, &metadata) } - output := &DescribeDeviceOutput{} + output := &DescribeContextOutput{} out.Result = output var buff [1024]byte @@ -12199,7 +12624,7 @@ func (m *awsAwsjson11_deserializeOpDescribeDevice) HandleDeserialize(ctx context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeDeviceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeContextOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12213,7 +12638,7 @@ func (m *awsAwsjson11_deserializeOpDescribeDevice) HandleDeserialize(ctx context return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeDevice(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeContext(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -12267,14 +12692,14 @@ func awsAwsjson11_deserializeOpErrorDescribeDevice(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpDescribeDeviceFleet struct { +type awsAwsjson11_deserializeOpDescribeDataQualityJobDefinition struct { } -func (*awsAwsjson11_deserializeOpDescribeDeviceFleet) ID() string { +func (*awsAwsjson11_deserializeOpDescribeDataQualityJobDefinition) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeDeviceFleet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeDataQualityJobDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -12288,9 +12713,9 @@ func (m *awsAwsjson11_deserializeOpDescribeDeviceFleet) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeDeviceFleet(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeDataQualityJobDefinition(response, &metadata) } - output := &DescribeDeviceFleetOutput{} + output := &DescribeDataQualityJobDefinitionOutput{} out.Result = output var buff [1024]byte @@ -12310,7 +12735,7 @@ func (m *awsAwsjson11_deserializeOpDescribeDeviceFleet) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeDeviceFleetOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeDataQualityJobDefinitionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12324,7 +12749,7 @@ func (m *awsAwsjson11_deserializeOpDescribeDeviceFleet) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeDeviceFleet(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeDataQualityJobDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -12378,14 +12803,14 @@ func awsAwsjson11_deserializeOpErrorDescribeDeviceFleet(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpDescribeDomain struct { +type awsAwsjson11_deserializeOpDescribeDevice struct { } -func (*awsAwsjson11_deserializeOpDescribeDomain) ID() string { +func (*awsAwsjson11_deserializeOpDescribeDevice) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeDomain) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeDevice) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -12399,9 +12824,9 @@ func (m *awsAwsjson11_deserializeOpDescribeDomain) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeDomain(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeDevice(response, &metadata) } - output := &DescribeDomainOutput{} + output := &DescribeDeviceOutput{} out.Result = output var buff [1024]byte @@ -12421,7 +12846,7 @@ func (m *awsAwsjson11_deserializeOpDescribeDomain) HandleDeserialize(ctx context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeDomainOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeDeviceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12435,7 +12860,7 @@ func (m *awsAwsjson11_deserializeOpDescribeDomain) HandleDeserialize(ctx context return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeDomain(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeDevice(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -12489,14 +12914,14 @@ func awsAwsjson11_deserializeOpErrorDescribeDomain(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpDescribeEdgeDeploymentPlan struct { +type awsAwsjson11_deserializeOpDescribeDeviceFleet struct { } -func (*awsAwsjson11_deserializeOpDescribeEdgeDeploymentPlan) ID() string { +func (*awsAwsjson11_deserializeOpDescribeDeviceFleet) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeEdgeDeploymentPlan) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeDeviceFleet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -12510,9 +12935,9 @@ func (m *awsAwsjson11_deserializeOpDescribeEdgeDeploymentPlan) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeEdgeDeploymentPlan(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeDeviceFleet(response, &metadata) } - output := &DescribeEdgeDeploymentPlanOutput{} + output := &DescribeDeviceFleetOutput{} out.Result = output var buff [1024]byte @@ -12532,7 +12957,7 @@ func (m *awsAwsjson11_deserializeOpDescribeEdgeDeploymentPlan) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeEdgeDeploymentPlanOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeDeviceFleetOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12546,7 +12971,7 @@ func (m *awsAwsjson11_deserializeOpDescribeEdgeDeploymentPlan) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeEdgeDeploymentPlan(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeDeviceFleet(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -12600,14 +13025,14 @@ func awsAwsjson11_deserializeOpErrorDescribeEdgeDeploymentPlan(response *smithyh } } -type awsAwsjson11_deserializeOpDescribeEdgePackagingJob struct { +type awsAwsjson11_deserializeOpDescribeDomain struct { } -func (*awsAwsjson11_deserializeOpDescribeEdgePackagingJob) ID() string { +func (*awsAwsjson11_deserializeOpDescribeDomain) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeEdgePackagingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeDomain) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -12621,9 +13046,9 @@ func (m *awsAwsjson11_deserializeOpDescribeEdgePackagingJob) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeEdgePackagingJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeDomain(response, &metadata) } - output := &DescribeEdgePackagingJobOutput{} + output := &DescribeDomainOutput{} out.Result = output var buff [1024]byte @@ -12643,7 +13068,7 @@ func (m *awsAwsjson11_deserializeOpDescribeEdgePackagingJob) HandleDeserialize(c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeEdgePackagingJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeDomainOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12657,7 +13082,7 @@ func (m *awsAwsjson11_deserializeOpDescribeEdgePackagingJob) HandleDeserialize(c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeEdgePackagingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeDomain(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -12711,14 +13136,14 @@ func awsAwsjson11_deserializeOpErrorDescribeEdgePackagingJob(response *smithyhtt } } -type awsAwsjson11_deserializeOpDescribeEndpoint struct { +type awsAwsjson11_deserializeOpDescribeEdgeDeploymentPlan struct { } -func (*awsAwsjson11_deserializeOpDescribeEndpoint) ID() string { +func (*awsAwsjson11_deserializeOpDescribeEdgeDeploymentPlan) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeEndpoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeEdgeDeploymentPlan) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -12732,9 +13157,9 @@ func (m *awsAwsjson11_deserializeOpDescribeEndpoint) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeEndpoint(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeEdgeDeploymentPlan(response, &metadata) } - output := &DescribeEndpointOutput{} + output := &DescribeEdgeDeploymentPlanOutput{} out.Result = output var buff [1024]byte @@ -12754,7 +13179,7 @@ func (m *awsAwsjson11_deserializeOpDescribeEndpoint) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeEndpointOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeEdgeDeploymentPlanOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12768,7 +13193,7 @@ func (m *awsAwsjson11_deserializeOpDescribeEndpoint) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeEndpoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeEdgeDeploymentPlan(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -12809,6 +13234,9 @@ func awsAwsjson11_deserializeOpErrorDescribeEndpoint(response *smithyhttp.Respon } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -12819,14 +13247,14 @@ func awsAwsjson11_deserializeOpErrorDescribeEndpoint(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpDescribeEndpointConfig struct { +type awsAwsjson11_deserializeOpDescribeEdgePackagingJob struct { } -func (*awsAwsjson11_deserializeOpDescribeEndpointConfig) ID() string { +func (*awsAwsjson11_deserializeOpDescribeEdgePackagingJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeEndpointConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeEdgePackagingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -12840,9 +13268,9 @@ func (m *awsAwsjson11_deserializeOpDescribeEndpointConfig) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeEndpointConfig(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeEdgePackagingJob(response, &metadata) } - output := &DescribeEndpointConfigOutput{} + output := &DescribeEdgePackagingJobOutput{} out.Result = output var buff [1024]byte @@ -12862,7 +13290,7 @@ func (m *awsAwsjson11_deserializeOpDescribeEndpointConfig) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeEndpointConfigOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeEdgePackagingJobOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12876,7 +13304,7 @@ func (m *awsAwsjson11_deserializeOpDescribeEndpointConfig) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeEndpointConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeEdgePackagingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -12917,6 +13345,9 @@ func awsAwsjson11_deserializeOpErrorDescribeEndpointConfig(response *smithyhttp. } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -12927,14 +13358,14 @@ func awsAwsjson11_deserializeOpErrorDescribeEndpointConfig(response *smithyhttp. } } -type awsAwsjson11_deserializeOpDescribeExperiment struct { +type awsAwsjson11_deserializeOpDescribeEndpoint struct { } -func (*awsAwsjson11_deserializeOpDescribeExperiment) ID() string { +func (*awsAwsjson11_deserializeOpDescribeEndpoint) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeExperiment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeEndpoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -12948,9 +13379,9 @@ func (m *awsAwsjson11_deserializeOpDescribeExperiment) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeExperiment(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeEndpoint(response, &metadata) } - output := &DescribeExperimentOutput{} + output := &DescribeEndpointOutput{} out.Result = output var buff [1024]byte @@ -12970,7 +13401,7 @@ func (m *awsAwsjson11_deserializeOpDescribeExperiment) HandleDeserialize(ctx con return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeExperimentOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeEndpointOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12984,7 +13415,7 @@ func (m *awsAwsjson11_deserializeOpDescribeExperiment) HandleDeserialize(ctx con return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeExperiment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeEndpoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -13025,9 +13456,6 @@ func awsAwsjson11_deserializeOpErrorDescribeExperiment(response *smithyhttp.Resp } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -13038,14 +13466,14 @@ func awsAwsjson11_deserializeOpErrorDescribeExperiment(response *smithyhttp.Resp } } -type awsAwsjson11_deserializeOpDescribeFeatureGroup struct { +type awsAwsjson11_deserializeOpDescribeEndpointConfig struct { } -func (*awsAwsjson11_deserializeOpDescribeFeatureGroup) ID() string { +func (*awsAwsjson11_deserializeOpDescribeEndpointConfig) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeFeatureGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeEndpointConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13059,9 +13487,9 @@ func (m *awsAwsjson11_deserializeOpDescribeFeatureGroup) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeFeatureGroup(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeEndpointConfig(response, &metadata) } - output := &DescribeFeatureGroupOutput{} + output := &DescribeEndpointConfigOutput{} out.Result = output var buff [1024]byte @@ -13081,7 +13509,7 @@ func (m *awsAwsjson11_deserializeOpDescribeFeatureGroup) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeFeatureGroupOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeEndpointConfigOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13095,7 +13523,7 @@ func (m *awsAwsjson11_deserializeOpDescribeFeatureGroup) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeFeatureGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeEndpointConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -13136,9 +13564,6 @@ func awsAwsjson11_deserializeOpErrorDescribeFeatureGroup(response *smithyhttp.Re } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -13149,14 +13574,14 @@ func awsAwsjson11_deserializeOpErrorDescribeFeatureGroup(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpDescribeFeatureMetadata struct { +type awsAwsjson11_deserializeOpDescribeExperiment struct { } -func (*awsAwsjson11_deserializeOpDescribeFeatureMetadata) ID() string { +func (*awsAwsjson11_deserializeOpDescribeExperiment) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeFeatureMetadata) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeExperiment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13170,9 +13595,9 @@ func (m *awsAwsjson11_deserializeOpDescribeFeatureMetadata) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeFeatureMetadata(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeExperiment(response, &metadata) } - output := &DescribeFeatureMetadataOutput{} + output := &DescribeExperimentOutput{} out.Result = output var buff [1024]byte @@ -13192,7 +13617,7 @@ func (m *awsAwsjson11_deserializeOpDescribeFeatureMetadata) HandleDeserialize(ct return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeFeatureMetadataOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeExperimentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13206,7 +13631,7 @@ func (m *awsAwsjson11_deserializeOpDescribeFeatureMetadata) HandleDeserialize(ct return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeFeatureMetadata(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeExperiment(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -13260,14 +13685,14 @@ func awsAwsjson11_deserializeOpErrorDescribeFeatureMetadata(response *smithyhttp } } -type awsAwsjson11_deserializeOpDescribeFlowDefinition struct { +type awsAwsjson11_deserializeOpDescribeFeatureGroup struct { } -func (*awsAwsjson11_deserializeOpDescribeFlowDefinition) ID() string { +func (*awsAwsjson11_deserializeOpDescribeFeatureGroup) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeFlowDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeFeatureGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13281,9 +13706,9 @@ func (m *awsAwsjson11_deserializeOpDescribeFlowDefinition) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeFlowDefinition(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeFeatureGroup(response, &metadata) } - output := &DescribeFlowDefinitionOutput{} + output := &DescribeFeatureGroupOutput{} out.Result = output var buff [1024]byte @@ -13303,7 +13728,7 @@ func (m *awsAwsjson11_deserializeOpDescribeFlowDefinition) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeFlowDefinitionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeFeatureGroupOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13317,7 +13742,7 @@ func (m *awsAwsjson11_deserializeOpDescribeFlowDefinition) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeFlowDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeFeatureGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -13371,14 +13796,14 @@ func awsAwsjson11_deserializeOpErrorDescribeFlowDefinition(response *smithyhttp. } } -type awsAwsjson11_deserializeOpDescribeHub struct { +type awsAwsjson11_deserializeOpDescribeFeatureMetadata struct { } -func (*awsAwsjson11_deserializeOpDescribeHub) ID() string { +func (*awsAwsjson11_deserializeOpDescribeFeatureMetadata) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeHub) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeFeatureMetadata) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13392,9 +13817,9 @@ func (m *awsAwsjson11_deserializeOpDescribeHub) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeHub(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeFeatureMetadata(response, &metadata) } - output := &DescribeHubOutput{} + output := &DescribeFeatureMetadataOutput{} out.Result = output var buff [1024]byte @@ -13414,7 +13839,7 @@ func (m *awsAwsjson11_deserializeOpDescribeHub) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeHubOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeFeatureMetadataOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13428,7 +13853,7 @@ func (m *awsAwsjson11_deserializeOpDescribeHub) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeHub(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeFeatureMetadata(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -13482,14 +13907,14 @@ func awsAwsjson11_deserializeOpErrorDescribeHub(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpDescribeHubContent struct { +type awsAwsjson11_deserializeOpDescribeFlowDefinition struct { } -func (*awsAwsjson11_deserializeOpDescribeHubContent) ID() string { +func (*awsAwsjson11_deserializeOpDescribeFlowDefinition) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeHubContent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeFlowDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13503,9 +13928,9 @@ func (m *awsAwsjson11_deserializeOpDescribeHubContent) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeHubContent(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeFlowDefinition(response, &metadata) } - output := &DescribeHubContentOutput{} + output := &DescribeFlowDefinitionOutput{} out.Result = output var buff [1024]byte @@ -13525,7 +13950,7 @@ func (m *awsAwsjson11_deserializeOpDescribeHubContent) HandleDeserialize(ctx con return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeHubContentOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeFlowDefinitionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13539,7 +13964,7 @@ func (m *awsAwsjson11_deserializeOpDescribeHubContent) HandleDeserialize(ctx con return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeHubContent(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeFlowDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -13593,14 +14018,14 @@ func awsAwsjson11_deserializeOpErrorDescribeHubContent(response *smithyhttp.Resp } } -type awsAwsjson11_deserializeOpDescribeHumanTaskUi struct { +type awsAwsjson11_deserializeOpDescribeHub struct { } -func (*awsAwsjson11_deserializeOpDescribeHumanTaskUi) ID() string { +func (*awsAwsjson11_deserializeOpDescribeHub) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeHumanTaskUi) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeHub) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13614,9 +14039,9 @@ func (m *awsAwsjson11_deserializeOpDescribeHumanTaskUi) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeHumanTaskUi(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeHub(response, &metadata) } - output := &DescribeHumanTaskUiOutput{} + output := &DescribeHubOutput{} out.Result = output var buff [1024]byte @@ -13636,7 +14061,7 @@ func (m *awsAwsjson11_deserializeOpDescribeHumanTaskUi) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeHumanTaskUiOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeHubOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13650,7 +14075,7 @@ func (m *awsAwsjson11_deserializeOpDescribeHumanTaskUi) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeHumanTaskUi(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeHub(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -13704,14 +14129,14 @@ func awsAwsjson11_deserializeOpErrorDescribeHumanTaskUi(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpDescribeHyperParameterTuningJob struct { +type awsAwsjson11_deserializeOpDescribeHubContent struct { } -func (*awsAwsjson11_deserializeOpDescribeHyperParameterTuningJob) ID() string { +func (*awsAwsjson11_deserializeOpDescribeHubContent) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeHyperParameterTuningJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeHubContent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13725,9 +14150,9 @@ func (m *awsAwsjson11_deserializeOpDescribeHyperParameterTuningJob) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeHyperParameterTuningJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeHubContent(response, &metadata) } - output := &DescribeHyperParameterTuningJobOutput{} + output := &DescribeHubContentOutput{} out.Result = output var buff [1024]byte @@ -13747,7 +14172,7 @@ func (m *awsAwsjson11_deserializeOpDescribeHyperParameterTuningJob) HandleDeseri return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeHyperParameterTuningJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeHubContentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13761,7 +14186,7 @@ func (m *awsAwsjson11_deserializeOpDescribeHyperParameterTuningJob) HandleDeseri return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeHyperParameterTuningJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeHubContent(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -13815,14 +14240,14 @@ func awsAwsjson11_deserializeOpErrorDescribeHyperParameterTuningJob(response *sm } } -type awsAwsjson11_deserializeOpDescribeImage struct { +type awsAwsjson11_deserializeOpDescribeHumanTaskUi struct { } -func (*awsAwsjson11_deserializeOpDescribeImage) ID() string { +func (*awsAwsjson11_deserializeOpDescribeHumanTaskUi) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeImage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeHumanTaskUi) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13836,9 +14261,9 @@ func (m *awsAwsjson11_deserializeOpDescribeImage) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeImage(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeHumanTaskUi(response, &metadata) } - output := &DescribeImageOutput{} + output := &DescribeHumanTaskUiOutput{} out.Result = output var buff [1024]byte @@ -13858,7 +14283,7 @@ func (m *awsAwsjson11_deserializeOpDescribeImage) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeImageOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeHumanTaskUiOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13872,7 +14297,7 @@ func (m *awsAwsjson11_deserializeOpDescribeImage) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeImage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeHumanTaskUi(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -13926,14 +14351,14 @@ func awsAwsjson11_deserializeOpErrorDescribeImage(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpDescribeImageVersion struct { +type awsAwsjson11_deserializeOpDescribeHyperParameterTuningJob struct { } -func (*awsAwsjson11_deserializeOpDescribeImageVersion) ID() string { +func (*awsAwsjson11_deserializeOpDescribeHyperParameterTuningJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeImageVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeHyperParameterTuningJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13947,9 +14372,9 @@ func (m *awsAwsjson11_deserializeOpDescribeImageVersion) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeImageVersion(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeHyperParameterTuningJob(response, &metadata) } - output := &DescribeImageVersionOutput{} + output := &DescribeHyperParameterTuningJobOutput{} out.Result = output var buff [1024]byte @@ -13969,7 +14394,7 @@ func (m *awsAwsjson11_deserializeOpDescribeImageVersion) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeImageVersionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeHyperParameterTuningJobOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13983,7 +14408,7 @@ func (m *awsAwsjson11_deserializeOpDescribeImageVersion) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeImageVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeHyperParameterTuningJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -14037,14 +14462,14 @@ func awsAwsjson11_deserializeOpErrorDescribeImageVersion(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpDescribeInferenceExperiment struct { +type awsAwsjson11_deserializeOpDescribeImage struct { } -func (*awsAwsjson11_deserializeOpDescribeInferenceExperiment) ID() string { +func (*awsAwsjson11_deserializeOpDescribeImage) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeInferenceExperiment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeImage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -14058,9 +14483,9 @@ func (m *awsAwsjson11_deserializeOpDescribeInferenceExperiment) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeInferenceExperiment(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeImage(response, &metadata) } - output := &DescribeInferenceExperimentOutput{} + output := &DescribeImageOutput{} out.Result = output var buff [1024]byte @@ -14080,7 +14505,7 @@ func (m *awsAwsjson11_deserializeOpDescribeInferenceExperiment) HandleDeserializ return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeInferenceExperimentOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeImageOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14094,7 +14519,7 @@ func (m *awsAwsjson11_deserializeOpDescribeInferenceExperiment) HandleDeserializ return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeInferenceExperiment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeImage(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -14148,14 +14573,14 @@ func awsAwsjson11_deserializeOpErrorDescribeInferenceExperiment(response *smithy } } -type awsAwsjson11_deserializeOpDescribeInferenceRecommendationsJob struct { +type awsAwsjson11_deserializeOpDescribeImageVersion struct { } -func (*awsAwsjson11_deserializeOpDescribeInferenceRecommendationsJob) ID() string { +func (*awsAwsjson11_deserializeOpDescribeImageVersion) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeInferenceRecommendationsJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeImageVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -14169,9 +14594,9 @@ func (m *awsAwsjson11_deserializeOpDescribeInferenceRecommendationsJob) HandleDe } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeInferenceRecommendationsJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeImageVersion(response, &metadata) } - output := &DescribeInferenceRecommendationsJobOutput{} + output := &DescribeImageVersionOutput{} out.Result = output var buff [1024]byte @@ -14191,7 +14616,7 @@ func (m *awsAwsjson11_deserializeOpDescribeInferenceRecommendationsJob) HandleDe return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeInferenceRecommendationsJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeImageVersionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14205,7 +14630,7 @@ func (m *awsAwsjson11_deserializeOpDescribeInferenceRecommendationsJob) HandleDe return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeInferenceRecommendationsJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeImageVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -14259,14 +14684,14 @@ func awsAwsjson11_deserializeOpErrorDescribeInferenceRecommendationsJob(response } } -type awsAwsjson11_deserializeOpDescribeLabelingJob struct { +type awsAwsjson11_deserializeOpDescribeInferenceComponent struct { } -func (*awsAwsjson11_deserializeOpDescribeLabelingJob) ID() string { +func (*awsAwsjson11_deserializeOpDescribeInferenceComponent) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeLabelingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeInferenceComponent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -14280,9 +14705,9 @@ func (m *awsAwsjson11_deserializeOpDescribeLabelingJob) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeLabelingJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeInferenceComponent(response, &metadata) } - output := &DescribeLabelingJobOutput{} + output := &DescribeInferenceComponentOutput{} out.Result = output var buff [1024]byte @@ -14302,7 +14727,7 @@ func (m *awsAwsjson11_deserializeOpDescribeLabelingJob) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeLabelingJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeInferenceComponentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14316,7 +14741,7 @@ func (m *awsAwsjson11_deserializeOpDescribeLabelingJob) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeLabelingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeInferenceComponent(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -14357,9 +14782,6 @@ func awsAwsjson11_deserializeOpErrorDescribeLabelingJob(response *smithyhttp.Res } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -14370,14 +14792,14 @@ func awsAwsjson11_deserializeOpErrorDescribeLabelingJob(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpDescribeLineageGroup struct { +type awsAwsjson11_deserializeOpDescribeInferenceExperiment struct { } -func (*awsAwsjson11_deserializeOpDescribeLineageGroup) ID() string { +func (*awsAwsjson11_deserializeOpDescribeInferenceExperiment) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeLineageGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeInferenceExperiment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -14391,9 +14813,9 @@ func (m *awsAwsjson11_deserializeOpDescribeLineageGroup) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeLineageGroup(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeInferenceExperiment(response, &metadata) } - output := &DescribeLineageGroupOutput{} + output := &DescribeInferenceExperimentOutput{} out.Result = output var buff [1024]byte @@ -14413,7 +14835,7 @@ func (m *awsAwsjson11_deserializeOpDescribeLineageGroup) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeLineageGroupOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeInferenceExperimentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14427,7 +14849,7 @@ func (m *awsAwsjson11_deserializeOpDescribeLineageGroup) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeLineageGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeInferenceExperiment(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -14481,14 +14903,14 @@ func awsAwsjson11_deserializeOpErrorDescribeLineageGroup(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpDescribeModel struct { +type awsAwsjson11_deserializeOpDescribeInferenceRecommendationsJob struct { } -func (*awsAwsjson11_deserializeOpDescribeModel) ID() string { +func (*awsAwsjson11_deserializeOpDescribeInferenceRecommendationsJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeModel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeInferenceRecommendationsJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -14502,9 +14924,9 @@ func (m *awsAwsjson11_deserializeOpDescribeModel) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModel(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeInferenceRecommendationsJob(response, &metadata) } - output := &DescribeModelOutput{} + output := &DescribeInferenceRecommendationsJobOutput{} out.Result = output var buff [1024]byte @@ -14524,7 +14946,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModel) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeModelOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeInferenceRecommendationsJobOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14538,7 +14960,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModel) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeModel(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeInferenceRecommendationsJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -14579,6 +15001,9 @@ func awsAwsjson11_deserializeOpErrorDescribeModel(response *smithyhttp.Response, } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -14589,14 +15014,14 @@ func awsAwsjson11_deserializeOpErrorDescribeModel(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition struct { +type awsAwsjson11_deserializeOpDescribeLabelingJob struct { } -func (*awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition) ID() string { +func (*awsAwsjson11_deserializeOpDescribeLabelingJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeLabelingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -14610,9 +15035,9 @@ func (m *awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelBiasJobDefinition(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeLabelingJob(response, &metadata) } - output := &DescribeModelBiasJobDefinitionOutput{} + output := &DescribeLabelingJobOutput{} out.Result = output var buff [1024]byte @@ -14632,7 +15057,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition) HandleDeseria return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeModelBiasJobDefinitionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeLabelingJobOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14646,7 +15071,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition) HandleDeseria return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeModelBiasJobDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeLabelingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -14700,14 +15125,14 @@ func awsAwsjson11_deserializeOpErrorDescribeModelBiasJobDefinition(response *smi } } -type awsAwsjson11_deserializeOpDescribeModelCard struct { +type awsAwsjson11_deserializeOpDescribeLineageGroup struct { } -func (*awsAwsjson11_deserializeOpDescribeModelCard) ID() string { +func (*awsAwsjson11_deserializeOpDescribeLineageGroup) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeModelCard) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeLineageGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -14721,9 +15146,9 @@ func (m *awsAwsjson11_deserializeOpDescribeModelCard) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelCard(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeLineageGroup(response, &metadata) } - output := &DescribeModelCardOutput{} + output := &DescribeLineageGroupOutput{} out.Result = output var buff [1024]byte @@ -14743,7 +15168,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelCard) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeModelCardOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeLineageGroupOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14757,7 +15182,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelCard) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeModelCard(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeLineageGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -14811,14 +15236,14 @@ func awsAwsjson11_deserializeOpErrorDescribeModelCard(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpDescribeModelCardExportJob struct { +type awsAwsjson11_deserializeOpDescribeModel struct { } -func (*awsAwsjson11_deserializeOpDescribeModelCardExportJob) ID() string { +func (*awsAwsjson11_deserializeOpDescribeModel) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeModelCardExportJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeModel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -14832,9 +15257,9 @@ func (m *awsAwsjson11_deserializeOpDescribeModelCardExportJob) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelCardExportJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModel(response, &metadata) } - output := &DescribeModelCardExportJobOutput{} + output := &DescribeModelOutput{} out.Result = output var buff [1024]byte @@ -14854,7 +15279,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelCardExportJob) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeModelCardExportJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeModelOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14868,7 +15293,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelCardExportJob) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeModelCardExportJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeModel(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -14909,9 +15334,6 @@ func awsAwsjson11_deserializeOpErrorDescribeModelCardExportJob(response *smithyh } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -14922,14 +15344,14 @@ func awsAwsjson11_deserializeOpErrorDescribeModelCardExportJob(response *smithyh } } -type awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition struct { +type awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition struct { } -func (*awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition) ID() string { +func (*awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -14943,9 +15365,9 @@ func (m *awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition) Han } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelExplainabilityJobDefinition(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelBiasJobDefinition(response, &metadata) } - output := &DescribeModelExplainabilityJobDefinitionOutput{} + output := &DescribeModelBiasJobDefinitionOutput{} out.Result = output var buff [1024]byte @@ -14965,7 +15387,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition) Han return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeModelExplainabilityJobDefinitionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeModelBiasJobDefinitionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14979,7 +15401,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition) Han return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeModelExplainabilityJobDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeModelBiasJobDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15033,14 +15455,14 @@ func awsAwsjson11_deserializeOpErrorDescribeModelExplainabilityJobDefinition(res } } -type awsAwsjson11_deserializeOpDescribeModelPackage struct { +type awsAwsjson11_deserializeOpDescribeModelCard struct { } -func (*awsAwsjson11_deserializeOpDescribeModelPackage) ID() string { +func (*awsAwsjson11_deserializeOpDescribeModelCard) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeModelPackage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeModelCard) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -15054,9 +15476,9 @@ func (m *awsAwsjson11_deserializeOpDescribeModelPackage) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelPackage(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelCard(response, &metadata) } - output := &DescribeModelPackageOutput{} + output := &DescribeModelCardOutput{} out.Result = output var buff [1024]byte @@ -15076,7 +15498,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelPackage) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeModelPackageOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeModelCardOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15090,7 +15512,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelPackage) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeModelPackage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeModelCard(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15131,6 +15553,9 @@ func awsAwsjson11_deserializeOpErrorDescribeModelPackage(response *smithyhttp.Re } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -15141,14 +15566,14 @@ func awsAwsjson11_deserializeOpErrorDescribeModelPackage(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpDescribeModelPackageGroup struct { +type awsAwsjson11_deserializeOpDescribeModelCardExportJob struct { } -func (*awsAwsjson11_deserializeOpDescribeModelPackageGroup) ID() string { +func (*awsAwsjson11_deserializeOpDescribeModelCardExportJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeModelPackageGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeModelCardExportJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -15162,9 +15587,9 @@ func (m *awsAwsjson11_deserializeOpDescribeModelPackageGroup) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelPackageGroup(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelCardExportJob(response, &metadata) } - output := &DescribeModelPackageGroupOutput{} + output := &DescribeModelCardExportJobOutput{} out.Result = output var buff [1024]byte @@ -15184,7 +15609,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelPackageGroup) HandleDeserialize( return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeModelPackageGroupOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeModelCardExportJobOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15198,7 +15623,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelPackageGroup) HandleDeserialize( return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeModelPackageGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeModelCardExportJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15239,6 +15664,9 @@ func awsAwsjson11_deserializeOpErrorDescribeModelPackageGroup(response *smithyht } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -15249,14 +15677,14 @@ func awsAwsjson11_deserializeOpErrorDescribeModelPackageGroup(response *smithyht } } -type awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition struct { +type awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition struct { } -func (*awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition) ID() string { +func (*awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -15270,9 +15698,9 @@ func (m *awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelQualityJobDefinition(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelExplainabilityJobDefinition(response, &metadata) } - output := &DescribeModelQualityJobDefinitionOutput{} + output := &DescribeModelExplainabilityJobDefinitionOutput{} out.Result = output var buff [1024]byte @@ -15292,7 +15720,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition) HandleDese return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeModelQualityJobDefinitionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeModelExplainabilityJobDefinitionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15306,7 +15734,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition) HandleDese return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeModelQualityJobDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeModelExplainabilityJobDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15360,14 +15788,14 @@ func awsAwsjson11_deserializeOpErrorDescribeModelQualityJobDefinition(response * } } -type awsAwsjson11_deserializeOpDescribeMonitoringSchedule struct { +type awsAwsjson11_deserializeOpDescribeModelPackage struct { } -func (*awsAwsjson11_deserializeOpDescribeMonitoringSchedule) ID() string { +func (*awsAwsjson11_deserializeOpDescribeModelPackage) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeMonitoringSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeModelPackage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -15381,9 +15809,9 @@ func (m *awsAwsjson11_deserializeOpDescribeMonitoringSchedule) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeMonitoringSchedule(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelPackage(response, &metadata) } - output := &DescribeMonitoringScheduleOutput{} + output := &DescribeModelPackageOutput{} out.Result = output var buff [1024]byte @@ -15403,7 +15831,7 @@ func (m *awsAwsjson11_deserializeOpDescribeMonitoringSchedule) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeMonitoringScheduleOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeModelPackageOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15417,7 +15845,7 @@ func (m *awsAwsjson11_deserializeOpDescribeMonitoringSchedule) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeMonitoringSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeModelPackage(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15458,9 +15886,114 @@ func awsAwsjson11_deserializeOpErrorDescribeMonitoringSchedule(response *smithyh } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpDescribeModelPackageGroup struct { +} + +func (*awsAwsjson11_deserializeOpDescribeModelPackageGroup) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpDescribeModelPackageGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelPackageGroup(response, &metadata) + } + output := &DescribeModelPackageGroupOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentDescribeModelPackageGroupOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorDescribeModelPackageGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + errorCode := "UnknownError" + errorMessage := errorCode + + 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 { default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -15471,14 +16004,14 @@ func awsAwsjson11_deserializeOpErrorDescribeMonitoringSchedule(response *smithyh } } -type awsAwsjson11_deserializeOpDescribeNotebookInstance struct { +type awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition struct { } -func (*awsAwsjson11_deserializeOpDescribeNotebookInstance) ID() string { +func (*awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeNotebookInstance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -15492,9 +16025,9 @@ func (m *awsAwsjson11_deserializeOpDescribeNotebookInstance) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeNotebookInstance(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelQualityJobDefinition(response, &metadata) } - output := &DescribeNotebookInstanceOutput{} + output := &DescribeModelQualityJobDefinitionOutput{} out.Result = output var buff [1024]byte @@ -15514,7 +16047,7 @@ func (m *awsAwsjson11_deserializeOpDescribeNotebookInstance) HandleDeserialize(c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeModelQualityJobDefinitionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15528,7 +16061,7 @@ func (m *awsAwsjson11_deserializeOpDescribeNotebookInstance) HandleDeserialize(c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeNotebookInstance(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeModelQualityJobDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15569,114 +16102,9 @@ func awsAwsjson11_deserializeOpErrorDescribeNotebookInstance(response *smithyhtt } switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig struct { -} - -func (*awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeNotebookInstanceLifecycleConfig(response, &metadata) - } - output := &DescribeNotebookInstanceLifecycleConfigOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceLifecycleConfigOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorDescribeNotebookInstanceLifecycleConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - 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 - } + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - switch { default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -15687,14 +16115,14 @@ func awsAwsjson11_deserializeOpErrorDescribeNotebookInstanceLifecycleConfig(resp } } -type awsAwsjson11_deserializeOpDescribePipeline struct { +type awsAwsjson11_deserializeOpDescribeMonitoringSchedule struct { } -func (*awsAwsjson11_deserializeOpDescribePipeline) ID() string { +func (*awsAwsjson11_deserializeOpDescribeMonitoringSchedule) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribePipeline) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeMonitoringSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -15708,9 +16136,9 @@ func (m *awsAwsjson11_deserializeOpDescribePipeline) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribePipeline(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeMonitoringSchedule(response, &metadata) } - output := &DescribePipelineOutput{} + output := &DescribeMonitoringScheduleOutput{} out.Result = output var buff [1024]byte @@ -15730,7 +16158,7 @@ func (m *awsAwsjson11_deserializeOpDescribePipeline) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribePipelineOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeMonitoringScheduleOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15744,7 +16172,7 @@ func (m *awsAwsjson11_deserializeOpDescribePipeline) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribePipeline(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeMonitoringSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15798,14 +16226,14 @@ func awsAwsjson11_deserializeOpErrorDescribePipeline(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpDescribePipelineDefinitionForExecution struct { +type awsAwsjson11_deserializeOpDescribeNotebookInstance struct { } -func (*awsAwsjson11_deserializeOpDescribePipelineDefinitionForExecution) ID() string { +func (*awsAwsjson11_deserializeOpDescribeNotebookInstance) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribePipelineDefinitionForExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeNotebookInstance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -15819,9 +16247,9 @@ func (m *awsAwsjson11_deserializeOpDescribePipelineDefinitionForExecution) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribePipelineDefinitionForExecution(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeNotebookInstance(response, &metadata) } - output := &DescribePipelineDefinitionForExecutionOutput{} + output := &DescribeNotebookInstanceOutput{} out.Result = output var buff [1024]byte @@ -15841,7 +16269,7 @@ func (m *awsAwsjson11_deserializeOpDescribePipelineDefinitionForExecution) Handl return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribePipelineDefinitionForExecutionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15855,7 +16283,7 @@ func (m *awsAwsjson11_deserializeOpDescribePipelineDefinitionForExecution) Handl return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribePipelineDefinitionForExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeNotebookInstance(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15896,9 +16324,6 @@ func awsAwsjson11_deserializeOpErrorDescribePipelineDefinitionForExecution(respo } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -15909,14 +16334,14 @@ func awsAwsjson11_deserializeOpErrorDescribePipelineDefinitionForExecution(respo } } -type awsAwsjson11_deserializeOpDescribePipelineExecution struct { +type awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig struct { } -func (*awsAwsjson11_deserializeOpDescribePipelineExecution) ID() string { +func (*awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribePipelineExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -15930,9 +16355,9 @@ func (m *awsAwsjson11_deserializeOpDescribePipelineExecution) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribePipelineExecution(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeNotebookInstanceLifecycleConfig(response, &metadata) } - output := &DescribePipelineExecutionOutput{} + output := &DescribeNotebookInstanceLifecycleConfigOutput{} out.Result = output var buff [1024]byte @@ -15952,7 +16377,7 @@ func (m *awsAwsjson11_deserializeOpDescribePipelineExecution) HandleDeserialize( return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribePipelineExecutionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceLifecycleConfigOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15966,7 +16391,7 @@ func (m *awsAwsjson11_deserializeOpDescribePipelineExecution) HandleDeserialize( return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribePipelineExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeNotebookInstanceLifecycleConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -16007,9 +16432,6 @@ func awsAwsjson11_deserializeOpErrorDescribePipelineExecution(response *smithyht } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -16020,14 +16442,14 @@ func awsAwsjson11_deserializeOpErrorDescribePipelineExecution(response *smithyht } } -type awsAwsjson11_deserializeOpDescribeProcessingJob struct { +type awsAwsjson11_deserializeOpDescribePipeline struct { } -func (*awsAwsjson11_deserializeOpDescribeProcessingJob) ID() string { +func (*awsAwsjson11_deserializeOpDescribePipeline) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeProcessingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribePipeline) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -16041,9 +16463,9 @@ func (m *awsAwsjson11_deserializeOpDescribeProcessingJob) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeProcessingJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribePipeline(response, &metadata) } - output := &DescribeProcessingJobOutput{} + output := &DescribePipelineOutput{} out.Result = output var buff [1024]byte @@ -16063,7 +16485,7 @@ func (m *awsAwsjson11_deserializeOpDescribeProcessingJob) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeProcessingJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribePipelineOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16077,7 +16499,7 @@ func (m *awsAwsjson11_deserializeOpDescribeProcessingJob) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeProcessingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribePipeline(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -16131,14 +16553,14 @@ func awsAwsjson11_deserializeOpErrorDescribeProcessingJob(response *smithyhttp.R } } -type awsAwsjson11_deserializeOpDescribeProject struct { +type awsAwsjson11_deserializeOpDescribePipelineDefinitionForExecution struct { } -func (*awsAwsjson11_deserializeOpDescribeProject) ID() string { +func (*awsAwsjson11_deserializeOpDescribePipelineDefinitionForExecution) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeProject) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribePipelineDefinitionForExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -16152,9 +16574,9 @@ func (m *awsAwsjson11_deserializeOpDescribeProject) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeProject(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribePipelineDefinitionForExecution(response, &metadata) } - output := &DescribeProjectOutput{} + output := &DescribePipelineDefinitionForExecutionOutput{} out.Result = output var buff [1024]byte @@ -16174,7 +16596,7 @@ func (m *awsAwsjson11_deserializeOpDescribeProject) HandleDeserialize(ctx contex return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeProjectOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribePipelineDefinitionForExecutionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16188,7 +16610,7 @@ func (m *awsAwsjson11_deserializeOpDescribeProject) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeProject(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribePipelineDefinitionForExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -16229,6 +16651,9 @@ func awsAwsjson11_deserializeOpErrorDescribeProject(response *smithyhttp.Respons } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -16239,14 +16664,14 @@ func awsAwsjson11_deserializeOpErrorDescribeProject(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpDescribeSpace struct { +type awsAwsjson11_deserializeOpDescribePipelineExecution struct { } -func (*awsAwsjson11_deserializeOpDescribeSpace) ID() string { +func (*awsAwsjson11_deserializeOpDescribePipelineExecution) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeSpace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribePipelineExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -16260,9 +16685,9 @@ func (m *awsAwsjson11_deserializeOpDescribeSpace) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeSpace(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribePipelineExecution(response, &metadata) } - output := &DescribeSpaceOutput{} + output := &DescribePipelineExecutionOutput{} out.Result = output var buff [1024]byte @@ -16282,7 +16707,7 @@ func (m *awsAwsjson11_deserializeOpDescribeSpace) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeSpaceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribePipelineExecutionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16296,7 +16721,7 @@ func (m *awsAwsjson11_deserializeOpDescribeSpace) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeSpace(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribePipelineExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -16350,14 +16775,14 @@ func awsAwsjson11_deserializeOpErrorDescribeSpace(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpDescribeStudioLifecycleConfig struct { +type awsAwsjson11_deserializeOpDescribeProcessingJob struct { } -func (*awsAwsjson11_deserializeOpDescribeStudioLifecycleConfig) ID() string { +func (*awsAwsjson11_deserializeOpDescribeProcessingJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeStudioLifecycleConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeProcessingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -16371,9 +16796,9 @@ func (m *awsAwsjson11_deserializeOpDescribeStudioLifecycleConfig) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeStudioLifecycleConfig(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeProcessingJob(response, &metadata) } - output := &DescribeStudioLifecycleConfigOutput{} + output := &DescribeProcessingJobOutput{} out.Result = output var buff [1024]byte @@ -16393,7 +16818,7 @@ func (m *awsAwsjson11_deserializeOpDescribeStudioLifecycleConfig) HandleDeserial return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeStudioLifecycleConfigOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeProcessingJobOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16407,7 +16832,7 @@ func (m *awsAwsjson11_deserializeOpDescribeStudioLifecycleConfig) HandleDeserial return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeStudioLifecycleConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeProcessingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -16461,14 +16886,14 @@ func awsAwsjson11_deserializeOpErrorDescribeStudioLifecycleConfig(response *smit } } -type awsAwsjson11_deserializeOpDescribeSubscribedWorkteam struct { +type awsAwsjson11_deserializeOpDescribeProject struct { } -func (*awsAwsjson11_deserializeOpDescribeSubscribedWorkteam) ID() string { +func (*awsAwsjson11_deserializeOpDescribeProject) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeSubscribedWorkteam) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeProject) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -16482,9 +16907,9 @@ func (m *awsAwsjson11_deserializeOpDescribeSubscribedWorkteam) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeSubscribedWorkteam(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeProject(response, &metadata) } - output := &DescribeSubscribedWorkteamOutput{} + output := &DescribeProjectOutput{} out.Result = output var buff [1024]byte @@ -16504,7 +16929,7 @@ func (m *awsAwsjson11_deserializeOpDescribeSubscribedWorkteam) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeSubscribedWorkteamOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeProjectOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16518,7 +16943,7 @@ func (m *awsAwsjson11_deserializeOpDescribeSubscribedWorkteam) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeSubscribedWorkteam(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeProject(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -16569,14 +16994,14 @@ func awsAwsjson11_deserializeOpErrorDescribeSubscribedWorkteam(response *smithyh } } -type awsAwsjson11_deserializeOpDescribeTrainingJob struct { +type awsAwsjson11_deserializeOpDescribeSpace struct { } -func (*awsAwsjson11_deserializeOpDescribeTrainingJob) ID() string { +func (*awsAwsjson11_deserializeOpDescribeSpace) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeTrainingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeSpace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -16590,9 +17015,9 @@ func (m *awsAwsjson11_deserializeOpDescribeTrainingJob) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeTrainingJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeSpace(response, &metadata) } - output := &DescribeTrainingJobOutput{} + output := &DescribeSpaceOutput{} out.Result = output var buff [1024]byte @@ -16612,7 +17037,7 @@ func (m *awsAwsjson11_deserializeOpDescribeTrainingJob) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeTrainingJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeSpaceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16626,7 +17051,7 @@ func (m *awsAwsjson11_deserializeOpDescribeTrainingJob) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeTrainingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeSpace(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -16680,14 +17105,14 @@ func awsAwsjson11_deserializeOpErrorDescribeTrainingJob(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpDescribeTransformJob struct { +type awsAwsjson11_deserializeOpDescribeStudioLifecycleConfig struct { } -func (*awsAwsjson11_deserializeOpDescribeTransformJob) ID() string { +func (*awsAwsjson11_deserializeOpDescribeStudioLifecycleConfig) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeTransformJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeStudioLifecycleConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -16701,9 +17126,9 @@ func (m *awsAwsjson11_deserializeOpDescribeTransformJob) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeTransformJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeStudioLifecycleConfig(response, &metadata) } - output := &DescribeTransformJobOutput{} + output := &DescribeStudioLifecycleConfigOutput{} out.Result = output var buff [1024]byte @@ -16723,7 +17148,7 @@ func (m *awsAwsjson11_deserializeOpDescribeTransformJob) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeTransformJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeStudioLifecycleConfigOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16737,7 +17162,7 @@ func (m *awsAwsjson11_deserializeOpDescribeTransformJob) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeTransformJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeStudioLifecycleConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -16791,14 +17216,14 @@ func awsAwsjson11_deserializeOpErrorDescribeTransformJob(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpDescribeTrial struct { +type awsAwsjson11_deserializeOpDescribeSubscribedWorkteam struct { } -func (*awsAwsjson11_deserializeOpDescribeTrial) ID() string { +func (*awsAwsjson11_deserializeOpDescribeSubscribedWorkteam) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeTrial) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeSubscribedWorkteam) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -16812,9 +17237,9 @@ func (m *awsAwsjson11_deserializeOpDescribeTrial) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeTrial(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeSubscribedWorkteam(response, &metadata) } - output := &DescribeTrialOutput{} + output := &DescribeSubscribedWorkteamOutput{} out.Result = output var buff [1024]byte @@ -16834,7 +17259,7 @@ func (m *awsAwsjson11_deserializeOpDescribeTrial) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeTrialOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeSubscribedWorkteamOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16848,7 +17273,7 @@ func (m *awsAwsjson11_deserializeOpDescribeTrial) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeTrial(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeSubscribedWorkteam(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -16889,9 +17314,6 @@ func awsAwsjson11_deserializeOpErrorDescribeTrial(response *smithyhttp.Response, } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -16902,14 +17324,14 @@ func awsAwsjson11_deserializeOpErrorDescribeTrial(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpDescribeTrialComponent struct { +type awsAwsjson11_deserializeOpDescribeTrainingJob struct { } -func (*awsAwsjson11_deserializeOpDescribeTrialComponent) ID() string { +func (*awsAwsjson11_deserializeOpDescribeTrainingJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeTrialComponent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeTrainingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -16923,9 +17345,9 @@ func (m *awsAwsjson11_deserializeOpDescribeTrialComponent) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeTrialComponent(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeTrainingJob(response, &metadata) } - output := &DescribeTrialComponentOutput{} + output := &DescribeTrainingJobOutput{} out.Result = output var buff [1024]byte @@ -16945,7 +17367,7 @@ func (m *awsAwsjson11_deserializeOpDescribeTrialComponent) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeTrialComponentOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeTrainingJobOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16959,7 +17381,7 @@ func (m *awsAwsjson11_deserializeOpDescribeTrialComponent) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeTrialComponent(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeTrainingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -17013,14 +17435,14 @@ func awsAwsjson11_deserializeOpErrorDescribeTrialComponent(response *smithyhttp. } } -type awsAwsjson11_deserializeOpDescribeUserProfile struct { +type awsAwsjson11_deserializeOpDescribeTransformJob struct { } -func (*awsAwsjson11_deserializeOpDescribeUserProfile) ID() string { +func (*awsAwsjson11_deserializeOpDescribeTransformJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeUserProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeTransformJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -17034,9 +17456,9 @@ func (m *awsAwsjson11_deserializeOpDescribeUserProfile) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeUserProfile(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeTransformJob(response, &metadata) } - output := &DescribeUserProfileOutput{} + output := &DescribeTransformJobOutput{} out.Result = output var buff [1024]byte @@ -17056,7 +17478,7 @@ func (m *awsAwsjson11_deserializeOpDescribeUserProfile) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeUserProfileOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeTransformJobOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17070,7 +17492,7 @@ func (m *awsAwsjson11_deserializeOpDescribeUserProfile) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeUserProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeTransformJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -17124,14 +17546,14 @@ func awsAwsjson11_deserializeOpErrorDescribeUserProfile(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpDescribeWorkforce struct { +type awsAwsjson11_deserializeOpDescribeTrial struct { } -func (*awsAwsjson11_deserializeOpDescribeWorkforce) ID() string { +func (*awsAwsjson11_deserializeOpDescribeTrial) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeWorkforce) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeTrial) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -17145,9 +17567,9 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkforce) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeWorkforce(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeTrial(response, &metadata) } - output := &DescribeWorkforceOutput{} + output := &DescribeTrialOutput{} out.Result = output var buff [1024]byte @@ -17167,7 +17589,7 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkforce) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeWorkforceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeTrialOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17181,7 +17603,7 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkforce) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeWorkforce(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeTrial(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -17222,114 +17644,9 @@ func awsAwsjson11_deserializeOpErrorDescribeWorkforce(response *smithyhttp.Respo } switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDescribeWorkteam struct { -} - -func (*awsAwsjson11_deserializeOpDescribeWorkteam) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDescribeWorkteam) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeWorkteam(response, &metadata) - } - output := &DescribeWorkteamOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentDescribeWorkteamOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorDescribeWorkteam(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - 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 - } + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - switch { default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -17340,14 +17657,14 @@ func awsAwsjson11_deserializeOpErrorDescribeWorkteam(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpDisableSagemakerServicecatalogPortfolio struct { +type awsAwsjson11_deserializeOpDescribeTrialComponent struct { } -func (*awsAwsjson11_deserializeOpDisableSagemakerServicecatalogPortfolio) ID() string { +func (*awsAwsjson11_deserializeOpDescribeTrialComponent) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDisableSagemakerServicecatalogPortfolio) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeTrialComponent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -17361,9 +17678,9 @@ func (m *awsAwsjson11_deserializeOpDisableSagemakerServicecatalogPortfolio) Hand } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDisableSagemakerServicecatalogPortfolio(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeTrialComponent(response, &metadata) } - output := &DisableSagemakerServicecatalogPortfolioOutput{} + output := &DescribeTrialComponentOutput{} out.Result = output var buff [1024]byte @@ -17383,7 +17700,7 @@ func (m *awsAwsjson11_deserializeOpDisableSagemakerServicecatalogPortfolio) Hand return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDisableSagemakerServicecatalogPortfolioOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeTrialComponentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17397,7 +17714,7 @@ func (m *awsAwsjson11_deserializeOpDisableSagemakerServicecatalogPortfolio) Hand return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDisableSagemakerServicecatalogPortfolio(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeTrialComponent(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -17438,6 +17755,9 @@ func awsAwsjson11_deserializeOpErrorDisableSagemakerServicecatalogPortfolio(resp } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -17448,14 +17768,14 @@ func awsAwsjson11_deserializeOpErrorDisableSagemakerServicecatalogPortfolio(resp } } -type awsAwsjson11_deserializeOpDisassociateTrialComponent struct { +type awsAwsjson11_deserializeOpDescribeUserProfile struct { } -func (*awsAwsjson11_deserializeOpDisassociateTrialComponent) ID() string { +func (*awsAwsjson11_deserializeOpDescribeUserProfile) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDisassociateTrialComponent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeUserProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -17469,9 +17789,9 @@ func (m *awsAwsjson11_deserializeOpDisassociateTrialComponent) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDisassociateTrialComponent(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeUserProfile(response, &metadata) } - output := &DisassociateTrialComponentOutput{} + output := &DescribeUserProfileOutput{} out.Result = output var buff [1024]byte @@ -17491,7 +17811,7 @@ func (m *awsAwsjson11_deserializeOpDisassociateTrialComponent) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDisassociateTrialComponentOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeUserProfileOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17505,7 +17825,7 @@ func (m *awsAwsjson11_deserializeOpDisassociateTrialComponent) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDisassociateTrialComponent(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeUserProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -17559,14 +17879,14 @@ func awsAwsjson11_deserializeOpErrorDisassociateTrialComponent(response *smithyh } } -type awsAwsjson11_deserializeOpEnableSagemakerServicecatalogPortfolio struct { +type awsAwsjson11_deserializeOpDescribeWorkforce struct { } -func (*awsAwsjson11_deserializeOpEnableSagemakerServicecatalogPortfolio) ID() string { +func (*awsAwsjson11_deserializeOpDescribeWorkforce) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpEnableSagemakerServicecatalogPortfolio) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeWorkforce) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -17580,9 +17900,9 @@ func (m *awsAwsjson11_deserializeOpEnableSagemakerServicecatalogPortfolio) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorEnableSagemakerServicecatalogPortfolio(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeWorkforce(response, &metadata) } - output := &EnableSagemakerServicecatalogPortfolioOutput{} + output := &DescribeWorkforceOutput{} out.Result = output var buff [1024]byte @@ -17602,7 +17922,7 @@ func (m *awsAwsjson11_deserializeOpEnableSagemakerServicecatalogPortfolio) Handl return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentEnableSagemakerServicecatalogPortfolioOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeWorkforceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17616,7 +17936,7 @@ func (m *awsAwsjson11_deserializeOpEnableSagemakerServicecatalogPortfolio) Handl return out, metadata, err } -func awsAwsjson11_deserializeOpErrorEnableSagemakerServicecatalogPortfolio(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeWorkforce(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -17667,14 +17987,14 @@ func awsAwsjson11_deserializeOpErrorEnableSagemakerServicecatalogPortfolio(respo } } -type awsAwsjson11_deserializeOpGetDeviceFleetReport struct { +type awsAwsjson11_deserializeOpDescribeWorkteam struct { } -func (*awsAwsjson11_deserializeOpGetDeviceFleetReport) ID() string { +func (*awsAwsjson11_deserializeOpDescribeWorkteam) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetDeviceFleetReport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeWorkteam) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -17688,9 +18008,9 @@ func (m *awsAwsjson11_deserializeOpGetDeviceFleetReport) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetDeviceFleetReport(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeWorkteam(response, &metadata) } - output := &GetDeviceFleetReportOutput{} + output := &DescribeWorkteamOutput{} out.Result = output var buff [1024]byte @@ -17710,7 +18030,7 @@ func (m *awsAwsjson11_deserializeOpGetDeviceFleetReport) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentGetDeviceFleetReportOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeWorkteamOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17724,7 +18044,7 @@ func (m *awsAwsjson11_deserializeOpGetDeviceFleetReport) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorGetDeviceFleetReport(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeWorkteam(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -17775,14 +18095,14 @@ func awsAwsjson11_deserializeOpErrorGetDeviceFleetReport(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpGetLineageGroupPolicy struct { +type awsAwsjson11_deserializeOpDisableSagemakerServicecatalogPortfolio struct { } -func (*awsAwsjson11_deserializeOpGetLineageGroupPolicy) ID() string { +func (*awsAwsjson11_deserializeOpDisableSagemakerServicecatalogPortfolio) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetLineageGroupPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDisableSagemakerServicecatalogPortfolio) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -17796,9 +18116,9 @@ func (m *awsAwsjson11_deserializeOpGetLineageGroupPolicy) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetLineageGroupPolicy(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDisableSagemakerServicecatalogPortfolio(response, &metadata) } - output := &GetLineageGroupPolicyOutput{} + output := &DisableSagemakerServicecatalogPortfolioOutput{} out.Result = output var buff [1024]byte @@ -17818,7 +18138,7 @@ func (m *awsAwsjson11_deserializeOpGetLineageGroupPolicy) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentGetLineageGroupPolicyOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDisableSagemakerServicecatalogPortfolioOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17832,7 +18152,7 @@ func (m *awsAwsjson11_deserializeOpGetLineageGroupPolicy) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorGetLineageGroupPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDisableSagemakerServicecatalogPortfolio(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -17873,9 +18193,6 @@ func awsAwsjson11_deserializeOpErrorGetLineageGroupPolicy(response *smithyhttp.R } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -17886,14 +18203,14 @@ func awsAwsjson11_deserializeOpErrorGetLineageGroupPolicy(response *smithyhttp.R } } -type awsAwsjson11_deserializeOpGetModelPackageGroupPolicy struct { +type awsAwsjson11_deserializeOpDisassociateTrialComponent struct { } -func (*awsAwsjson11_deserializeOpGetModelPackageGroupPolicy) ID() string { +func (*awsAwsjson11_deserializeOpDisassociateTrialComponent) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetModelPackageGroupPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDisassociateTrialComponent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -17907,9 +18224,9 @@ func (m *awsAwsjson11_deserializeOpGetModelPackageGroupPolicy) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetModelPackageGroupPolicy(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDisassociateTrialComponent(response, &metadata) } - output := &GetModelPackageGroupPolicyOutput{} + output := &DisassociateTrialComponentOutput{} out.Result = output var buff [1024]byte @@ -17929,7 +18246,7 @@ func (m *awsAwsjson11_deserializeOpGetModelPackageGroupPolicy) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentGetModelPackageGroupPolicyOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDisassociateTrialComponentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17943,7 +18260,7 @@ func (m *awsAwsjson11_deserializeOpGetModelPackageGroupPolicy) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorGetModelPackageGroupPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDisassociateTrialComponent(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -17984,6 +18301,9 @@ func awsAwsjson11_deserializeOpErrorGetModelPackageGroupPolicy(response *smithyh } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -17994,14 +18314,14 @@ func awsAwsjson11_deserializeOpErrorGetModelPackageGroupPolicy(response *smithyh } } -type awsAwsjson11_deserializeOpGetSagemakerServicecatalogPortfolioStatus struct { +type awsAwsjson11_deserializeOpEnableSagemakerServicecatalogPortfolio struct { } -func (*awsAwsjson11_deserializeOpGetSagemakerServicecatalogPortfolioStatus) ID() string { +func (*awsAwsjson11_deserializeOpEnableSagemakerServicecatalogPortfolio) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetSagemakerServicecatalogPortfolioStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpEnableSagemakerServicecatalogPortfolio) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -18015,9 +18335,9 @@ func (m *awsAwsjson11_deserializeOpGetSagemakerServicecatalogPortfolioStatus) Ha } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetSagemakerServicecatalogPortfolioStatus(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorEnableSagemakerServicecatalogPortfolio(response, &metadata) } - output := &GetSagemakerServicecatalogPortfolioStatusOutput{} + output := &EnableSagemakerServicecatalogPortfolioOutput{} out.Result = output var buff [1024]byte @@ -18037,7 +18357,7 @@ func (m *awsAwsjson11_deserializeOpGetSagemakerServicecatalogPortfolioStatus) Ha return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentGetSagemakerServicecatalogPortfolioStatusOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentEnableSagemakerServicecatalogPortfolioOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18051,7 +18371,7 @@ func (m *awsAwsjson11_deserializeOpGetSagemakerServicecatalogPortfolioStatus) Ha return out, metadata, err } -func awsAwsjson11_deserializeOpErrorGetSagemakerServicecatalogPortfolioStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorEnableSagemakerServicecatalogPortfolio(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -18102,14 +18422,14 @@ func awsAwsjson11_deserializeOpErrorGetSagemakerServicecatalogPortfolioStatus(re } } -type awsAwsjson11_deserializeOpGetScalingConfigurationRecommendation struct { +type awsAwsjson11_deserializeOpGetDeviceFleetReport struct { } -func (*awsAwsjson11_deserializeOpGetScalingConfigurationRecommendation) ID() string { +func (*awsAwsjson11_deserializeOpGetDeviceFleetReport) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetScalingConfigurationRecommendation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetDeviceFleetReport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -18123,9 +18443,9 @@ func (m *awsAwsjson11_deserializeOpGetScalingConfigurationRecommendation) Handle } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetScalingConfigurationRecommendation(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetDeviceFleetReport(response, &metadata) } - output := &GetScalingConfigurationRecommendationOutput{} + output := &GetDeviceFleetReportOutput{} out.Result = output var buff [1024]byte @@ -18145,7 +18465,7 @@ func (m *awsAwsjson11_deserializeOpGetScalingConfigurationRecommendation) Handle return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentGetScalingConfigurationRecommendationOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetDeviceFleetReportOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18159,7 +18479,7 @@ func (m *awsAwsjson11_deserializeOpGetScalingConfigurationRecommendation) Handle return out, metadata, err } -func awsAwsjson11_deserializeOpErrorGetScalingConfigurationRecommendation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetDeviceFleetReport(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -18200,9 +18520,6 @@ func awsAwsjson11_deserializeOpErrorGetScalingConfigurationRecommendation(respon } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -18213,14 +18530,14 @@ func awsAwsjson11_deserializeOpErrorGetScalingConfigurationRecommendation(respon } } -type awsAwsjson11_deserializeOpGetSearchSuggestions struct { +type awsAwsjson11_deserializeOpGetLineageGroupPolicy struct { } -func (*awsAwsjson11_deserializeOpGetSearchSuggestions) ID() string { +func (*awsAwsjson11_deserializeOpGetLineageGroupPolicy) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetSearchSuggestions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetLineageGroupPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -18234,9 +18551,9 @@ func (m *awsAwsjson11_deserializeOpGetSearchSuggestions) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetSearchSuggestions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetLineageGroupPolicy(response, &metadata) } - output := &GetSearchSuggestionsOutput{} + output := &GetLineageGroupPolicyOutput{} out.Result = output var buff [1024]byte @@ -18256,7 +18573,7 @@ func (m *awsAwsjson11_deserializeOpGetSearchSuggestions) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentGetSearchSuggestionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetLineageGroupPolicyOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18270,7 +18587,7 @@ func (m *awsAwsjson11_deserializeOpGetSearchSuggestions) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorGetSearchSuggestions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetLineageGroupPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -18311,6 +18628,9 @@ func awsAwsjson11_deserializeOpErrorGetSearchSuggestions(response *smithyhttp.Re } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -18321,14 +18641,14 @@ func awsAwsjson11_deserializeOpErrorGetSearchSuggestions(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpImportHubContent struct { +type awsAwsjson11_deserializeOpGetModelPackageGroupPolicy struct { } -func (*awsAwsjson11_deserializeOpImportHubContent) ID() string { +func (*awsAwsjson11_deserializeOpGetModelPackageGroupPolicy) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpImportHubContent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetModelPackageGroupPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -18342,9 +18662,9 @@ func (m *awsAwsjson11_deserializeOpImportHubContent) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorImportHubContent(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetModelPackageGroupPolicy(response, &metadata) } - output := &ImportHubContentOutput{} + output := &GetModelPackageGroupPolicyOutput{} out.Result = output var buff [1024]byte @@ -18364,7 +18684,7 @@ func (m *awsAwsjson11_deserializeOpImportHubContent) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentImportHubContentOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetModelPackageGroupPolicyOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18378,7 +18698,7 @@ func (m *awsAwsjson11_deserializeOpImportHubContent) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorImportHubContent(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetModelPackageGroupPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -18419,15 +18739,6 @@ func awsAwsjson11_deserializeOpErrorImportHubContent(response *smithyhttp.Respon } switch { - case strings.EqualFold("ResourceInUse", errorCode): - return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) - - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) - - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -18438,14 +18749,14 @@ func awsAwsjson11_deserializeOpErrorImportHubContent(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpListActions struct { +type awsAwsjson11_deserializeOpGetSagemakerServicecatalogPortfolioStatus struct { } -func (*awsAwsjson11_deserializeOpListActions) ID() string { +func (*awsAwsjson11_deserializeOpGetSagemakerServicecatalogPortfolioStatus) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListActions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetSagemakerServicecatalogPortfolioStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -18459,9 +18770,9 @@ func (m *awsAwsjson11_deserializeOpListActions) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListActions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetSagemakerServicecatalogPortfolioStatus(response, &metadata) } - output := &ListActionsOutput{} + output := &GetSagemakerServicecatalogPortfolioStatusOutput{} out.Result = output var buff [1024]byte @@ -18481,7 +18792,7 @@ func (m *awsAwsjson11_deserializeOpListActions) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListActionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetSagemakerServicecatalogPortfolioStatusOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18495,7 +18806,7 @@ func (m *awsAwsjson11_deserializeOpListActions) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListActions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetSagemakerServicecatalogPortfolioStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -18536,9 +18847,6 @@ func awsAwsjson11_deserializeOpErrorListActions(response *smithyhttp.Response, m } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -18549,14 +18857,14 @@ func awsAwsjson11_deserializeOpErrorListActions(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpListAlgorithms struct { +type awsAwsjson11_deserializeOpGetScalingConfigurationRecommendation struct { } -func (*awsAwsjson11_deserializeOpListAlgorithms) ID() string { +func (*awsAwsjson11_deserializeOpGetScalingConfigurationRecommendation) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListAlgorithms) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetScalingConfigurationRecommendation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -18570,9 +18878,9 @@ func (m *awsAwsjson11_deserializeOpListAlgorithms) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListAlgorithms(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetScalingConfigurationRecommendation(response, &metadata) } - output := &ListAlgorithmsOutput{} + output := &GetScalingConfigurationRecommendationOutput{} out.Result = output var buff [1024]byte @@ -18592,7 +18900,7 @@ func (m *awsAwsjson11_deserializeOpListAlgorithms) HandleDeserialize(ctx context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListAlgorithmsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetScalingConfigurationRecommendationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18606,7 +18914,7 @@ func (m *awsAwsjson11_deserializeOpListAlgorithms) HandleDeserialize(ctx context return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListAlgorithms(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetScalingConfigurationRecommendation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -18647,6 +18955,9 @@ func awsAwsjson11_deserializeOpErrorListAlgorithms(response *smithyhttp.Response } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -18657,14 +18968,14 @@ func awsAwsjson11_deserializeOpErrorListAlgorithms(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpListAliases struct { +type awsAwsjson11_deserializeOpGetSearchSuggestions struct { } -func (*awsAwsjson11_deserializeOpListAliases) ID() string { +func (*awsAwsjson11_deserializeOpGetSearchSuggestions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListAliases) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetSearchSuggestions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -18678,9 +18989,9 @@ func (m *awsAwsjson11_deserializeOpListAliases) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListAliases(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetSearchSuggestions(response, &metadata) } - output := &ListAliasesOutput{} + output := &GetSearchSuggestionsOutput{} out.Result = output var buff [1024]byte @@ -18700,7 +19011,7 @@ func (m *awsAwsjson11_deserializeOpListAliases) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListAliasesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetSearchSuggestionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18714,7 +19025,7 @@ func (m *awsAwsjson11_deserializeOpListAliases) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListAliases(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetSearchSuggestions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -18755,9 +19066,6 @@ func awsAwsjson11_deserializeOpErrorListAliases(response *smithyhttp.Response, m } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -18768,14 +19076,14 @@ func awsAwsjson11_deserializeOpErrorListAliases(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpListAppImageConfigs struct { +type awsAwsjson11_deserializeOpImportHubContent struct { } -func (*awsAwsjson11_deserializeOpListAppImageConfigs) ID() string { +func (*awsAwsjson11_deserializeOpImportHubContent) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListAppImageConfigs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpImportHubContent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -18789,9 +19097,9 @@ func (m *awsAwsjson11_deserializeOpListAppImageConfigs) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListAppImageConfigs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorImportHubContent(response, &metadata) } - output := &ListAppImageConfigsOutput{} + output := &ImportHubContentOutput{} out.Result = output var buff [1024]byte @@ -18811,7 +19119,7 @@ func (m *awsAwsjson11_deserializeOpListAppImageConfigs) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListAppImageConfigsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentImportHubContentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18825,7 +19133,7 @@ func (m *awsAwsjson11_deserializeOpListAppImageConfigs) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListAppImageConfigs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorImportHubContent(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -18866,6 +19174,15 @@ func awsAwsjson11_deserializeOpErrorListAppImageConfigs(response *smithyhttp.Res } switch { + case strings.EqualFold("ResourceInUse", errorCode): + return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) + + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -18876,14 +19193,14 @@ func awsAwsjson11_deserializeOpErrorListAppImageConfigs(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpListApps struct { +type awsAwsjson11_deserializeOpListActions struct { } -func (*awsAwsjson11_deserializeOpListApps) ID() string { +func (*awsAwsjson11_deserializeOpListActions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListApps) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListActions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -18897,9 +19214,9 @@ func (m *awsAwsjson11_deserializeOpListApps) HandleDeserialize(ctx context.Conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListApps(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListActions(response, &metadata) } - output := &ListAppsOutput{} + output := &ListActionsOutput{} out.Result = output var buff [1024]byte @@ -18919,7 +19236,7 @@ func (m *awsAwsjson11_deserializeOpListApps) HandleDeserialize(ctx context.Conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListAppsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListActionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18933,7 +19250,7 @@ func (m *awsAwsjson11_deserializeOpListApps) HandleDeserialize(ctx context.Conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListApps(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListActions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -18974,6 +19291,9 @@ func awsAwsjson11_deserializeOpErrorListApps(response *smithyhttp.Response, meta } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -18984,14 +19304,14 @@ func awsAwsjson11_deserializeOpErrorListApps(response *smithyhttp.Response, meta } } -type awsAwsjson11_deserializeOpListArtifacts struct { +type awsAwsjson11_deserializeOpListAlgorithms struct { } -func (*awsAwsjson11_deserializeOpListArtifacts) ID() string { +func (*awsAwsjson11_deserializeOpListAlgorithms) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListArtifacts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListAlgorithms) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -19005,9 +19325,9 @@ func (m *awsAwsjson11_deserializeOpListArtifacts) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListArtifacts(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListAlgorithms(response, &metadata) } - output := &ListArtifactsOutput{} + output := &ListAlgorithmsOutput{} out.Result = output var buff [1024]byte @@ -19027,7 +19347,7 @@ func (m *awsAwsjson11_deserializeOpListArtifacts) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListArtifactsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListAlgorithmsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19041,7 +19361,7 @@ func (m *awsAwsjson11_deserializeOpListArtifacts) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListArtifacts(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListAlgorithms(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -19082,9 +19402,6 @@ func awsAwsjson11_deserializeOpErrorListArtifacts(response *smithyhttp.Response, } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -19095,14 +19412,14 @@ func awsAwsjson11_deserializeOpErrorListArtifacts(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpListAssociations struct { +type awsAwsjson11_deserializeOpListAliases struct { } -func (*awsAwsjson11_deserializeOpListAssociations) ID() string { +func (*awsAwsjson11_deserializeOpListAliases) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListAliases) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -19116,9 +19433,9 @@ func (m *awsAwsjson11_deserializeOpListAssociations) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListAssociations(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListAliases(response, &metadata) } - output := &ListAssociationsOutput{} + output := &ListAliasesOutput{} out.Result = output var buff [1024]byte @@ -19138,7 +19455,7 @@ func (m *awsAwsjson11_deserializeOpListAssociations) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListAssociationsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListAliasesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19152,7 +19469,7 @@ func (m *awsAwsjson11_deserializeOpListAssociations) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListAliases(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -19206,14 +19523,14 @@ func awsAwsjson11_deserializeOpErrorListAssociations(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpListAutoMLJobs struct { +type awsAwsjson11_deserializeOpListAppImageConfigs struct { } -func (*awsAwsjson11_deserializeOpListAutoMLJobs) ID() string { +func (*awsAwsjson11_deserializeOpListAppImageConfigs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListAutoMLJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListAppImageConfigs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -19227,9 +19544,9 @@ func (m *awsAwsjson11_deserializeOpListAutoMLJobs) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListAutoMLJobs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListAppImageConfigs(response, &metadata) } - output := &ListAutoMLJobsOutput{} + output := &ListAppImageConfigsOutput{} out.Result = output var buff [1024]byte @@ -19249,7 +19566,7 @@ func (m *awsAwsjson11_deserializeOpListAutoMLJobs) HandleDeserialize(ctx context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListAutoMLJobsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListAppImageConfigsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19263,7 +19580,7 @@ func (m *awsAwsjson11_deserializeOpListAutoMLJobs) HandleDeserialize(ctx context return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListAutoMLJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListAppImageConfigs(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -19314,14 +19631,14 @@ func awsAwsjson11_deserializeOpErrorListAutoMLJobs(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpListCandidatesForAutoMLJob struct { +type awsAwsjson11_deserializeOpListApps struct { } -func (*awsAwsjson11_deserializeOpListCandidatesForAutoMLJob) ID() string { +func (*awsAwsjson11_deserializeOpListApps) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListCandidatesForAutoMLJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListApps) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -19335,9 +19652,9 @@ func (m *awsAwsjson11_deserializeOpListCandidatesForAutoMLJob) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListCandidatesForAutoMLJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListApps(response, &metadata) } - output := &ListCandidatesForAutoMLJobOutput{} + output := &ListAppsOutput{} out.Result = output var buff [1024]byte @@ -19357,7 +19674,7 @@ func (m *awsAwsjson11_deserializeOpListCandidatesForAutoMLJob) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListCandidatesForAutoMLJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListAppsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19371,7 +19688,7 @@ func (m *awsAwsjson11_deserializeOpListCandidatesForAutoMLJob) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListCandidatesForAutoMLJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListApps(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -19412,9 +19729,6 @@ func awsAwsjson11_deserializeOpErrorListCandidatesForAutoMLJob(response *smithyh } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -19425,14 +19739,14 @@ func awsAwsjson11_deserializeOpErrorListCandidatesForAutoMLJob(response *smithyh } } -type awsAwsjson11_deserializeOpListCodeRepositories struct { +type awsAwsjson11_deserializeOpListArtifacts struct { } -func (*awsAwsjson11_deserializeOpListCodeRepositories) ID() string { +func (*awsAwsjson11_deserializeOpListArtifacts) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListCodeRepositories) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListArtifacts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -19446,9 +19760,9 @@ func (m *awsAwsjson11_deserializeOpListCodeRepositories) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListCodeRepositories(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListArtifacts(response, &metadata) } - output := &ListCodeRepositoriesOutput{} + output := &ListArtifactsOutput{} out.Result = output var buff [1024]byte @@ -19468,7 +19782,7 @@ func (m *awsAwsjson11_deserializeOpListCodeRepositories) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListCodeRepositoriesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListArtifactsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19482,7 +19796,7 @@ func (m *awsAwsjson11_deserializeOpListCodeRepositories) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListCodeRepositories(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListArtifacts(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -19523,6 +19837,9 @@ func awsAwsjson11_deserializeOpErrorListCodeRepositories(response *smithyhttp.Re } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -19533,14 +19850,14 @@ func awsAwsjson11_deserializeOpErrorListCodeRepositories(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpListCompilationJobs struct { +type awsAwsjson11_deserializeOpListAssociations struct { } -func (*awsAwsjson11_deserializeOpListCompilationJobs) ID() string { +func (*awsAwsjson11_deserializeOpListAssociations) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListCompilationJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -19554,9 +19871,9 @@ func (m *awsAwsjson11_deserializeOpListCompilationJobs) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListCompilationJobs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListAssociations(response, &metadata) } - output := &ListCompilationJobsOutput{} + output := &ListAssociationsOutput{} out.Result = output var buff [1024]byte @@ -19576,7 +19893,7 @@ func (m *awsAwsjson11_deserializeOpListCompilationJobs) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListCompilationJobsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListAssociationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19590,7 +19907,7 @@ func (m *awsAwsjson11_deserializeOpListCompilationJobs) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListCompilationJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -19631,6 +19948,9 @@ func awsAwsjson11_deserializeOpErrorListCompilationJobs(response *smithyhttp.Res } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -19641,14 +19961,14 @@ func awsAwsjson11_deserializeOpErrorListCompilationJobs(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpListContexts struct { +type awsAwsjson11_deserializeOpListAutoMLJobs struct { } -func (*awsAwsjson11_deserializeOpListContexts) ID() string { +func (*awsAwsjson11_deserializeOpListAutoMLJobs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListContexts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListAutoMLJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -19662,9 +19982,9 @@ func (m *awsAwsjson11_deserializeOpListContexts) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListContexts(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListAutoMLJobs(response, &metadata) } - output := &ListContextsOutput{} + output := &ListAutoMLJobsOutput{} out.Result = output var buff [1024]byte @@ -19684,7 +20004,7 @@ func (m *awsAwsjson11_deserializeOpListContexts) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListContextsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListAutoMLJobsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19698,7 +20018,115 @@ func (m *awsAwsjson11_deserializeOpListContexts) HandleDeserialize(ctx context.C return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListContexts(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListAutoMLJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + 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 { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpListCandidatesForAutoMLJob struct { +} + +func (*awsAwsjson11_deserializeOpListCandidatesForAutoMLJob) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpListCandidatesForAutoMLJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorListCandidatesForAutoMLJob(response, &metadata) + } + output := &ListCandidatesForAutoMLJobOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentListCandidatesForAutoMLJobOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorListCandidatesForAutoMLJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -19752,14 +20180,14 @@ func awsAwsjson11_deserializeOpErrorListContexts(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpListDataQualityJobDefinitions struct { +type awsAwsjson11_deserializeOpListClusterNodes struct { } -func (*awsAwsjson11_deserializeOpListDataQualityJobDefinitions) ID() string { +func (*awsAwsjson11_deserializeOpListClusterNodes) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListDataQualityJobDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListClusterNodes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -19773,9 +20201,9 @@ func (m *awsAwsjson11_deserializeOpListDataQualityJobDefinitions) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListDataQualityJobDefinitions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListClusterNodes(response, &metadata) } - output := &ListDataQualityJobDefinitionsOutput{} + output := &ListClusterNodesOutput{} out.Result = output var buff [1024]byte @@ -19795,7 +20223,7 @@ func (m *awsAwsjson11_deserializeOpListDataQualityJobDefinitions) HandleDeserial return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListDataQualityJobDefinitionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListClusterNodesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19809,7 +20237,7 @@ func (m *awsAwsjson11_deserializeOpListDataQualityJobDefinitions) HandleDeserial return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListDataQualityJobDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListClusterNodes(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -19850,6 +20278,9 @@ func awsAwsjson11_deserializeOpErrorListDataQualityJobDefinitions(response *smit } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -19860,14 +20291,14 @@ func awsAwsjson11_deserializeOpErrorListDataQualityJobDefinitions(response *smit } } -type awsAwsjson11_deserializeOpListDeviceFleets struct { +type awsAwsjson11_deserializeOpListClusters struct { } -func (*awsAwsjson11_deserializeOpListDeviceFleets) ID() string { +func (*awsAwsjson11_deserializeOpListClusters) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListDeviceFleets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListClusters) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -19881,9 +20312,9 @@ func (m *awsAwsjson11_deserializeOpListDeviceFleets) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListDeviceFleets(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListClusters(response, &metadata) } - output := &ListDeviceFleetsOutput{} + output := &ListClustersOutput{} out.Result = output var buff [1024]byte @@ -19903,7 +20334,7 @@ func (m *awsAwsjson11_deserializeOpListDeviceFleets) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListDeviceFleetsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListClustersOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19917,7 +20348,7 @@ func (m *awsAwsjson11_deserializeOpListDeviceFleets) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListDeviceFleets(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListClusters(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -19968,14 +20399,14 @@ func awsAwsjson11_deserializeOpErrorListDeviceFleets(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpListDevices struct { +type awsAwsjson11_deserializeOpListCodeRepositories struct { } -func (*awsAwsjson11_deserializeOpListDevices) ID() string { +func (*awsAwsjson11_deserializeOpListCodeRepositories) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListDevices) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListCodeRepositories) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -19989,9 +20420,9 @@ func (m *awsAwsjson11_deserializeOpListDevices) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListDevices(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListCodeRepositories(response, &metadata) } - output := &ListDevicesOutput{} + output := &ListCodeRepositoriesOutput{} out.Result = output var buff [1024]byte @@ -20011,7 +20442,7 @@ func (m *awsAwsjson11_deserializeOpListDevices) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListDevicesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListCodeRepositoriesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20025,7 +20456,7 @@ func (m *awsAwsjson11_deserializeOpListDevices) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListDevices(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListCodeRepositories(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -20076,14 +20507,14 @@ func awsAwsjson11_deserializeOpErrorListDevices(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpListDomains struct { +type awsAwsjson11_deserializeOpListCompilationJobs struct { } -func (*awsAwsjson11_deserializeOpListDomains) ID() string { +func (*awsAwsjson11_deserializeOpListCompilationJobs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListDomains) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListCompilationJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -20097,9 +20528,9 @@ func (m *awsAwsjson11_deserializeOpListDomains) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListDomains(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListCompilationJobs(response, &metadata) } - output := &ListDomainsOutput{} + output := &ListCompilationJobsOutput{} out.Result = output var buff [1024]byte @@ -20119,7 +20550,7 @@ func (m *awsAwsjson11_deserializeOpListDomains) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListDomainsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListCompilationJobsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20133,7 +20564,7 @@ func (m *awsAwsjson11_deserializeOpListDomains) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListDomains(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListCompilationJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -20184,14 +20615,14 @@ func awsAwsjson11_deserializeOpErrorListDomains(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpListEdgeDeploymentPlans struct { +type awsAwsjson11_deserializeOpListContexts struct { } -func (*awsAwsjson11_deserializeOpListEdgeDeploymentPlans) ID() string { +func (*awsAwsjson11_deserializeOpListContexts) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListEdgeDeploymentPlans) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListContexts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -20205,9 +20636,9 @@ func (m *awsAwsjson11_deserializeOpListEdgeDeploymentPlans) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListEdgeDeploymentPlans(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListContexts(response, &metadata) } - output := &ListEdgeDeploymentPlansOutput{} + output := &ListContextsOutput{} out.Result = output var buff [1024]byte @@ -20227,7 +20658,7 @@ func (m *awsAwsjson11_deserializeOpListEdgeDeploymentPlans) HandleDeserialize(ct return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListEdgeDeploymentPlansOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListContextsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20241,7 +20672,7 @@ func (m *awsAwsjson11_deserializeOpListEdgeDeploymentPlans) HandleDeserialize(ct return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListEdgeDeploymentPlans(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListContexts(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -20282,6 +20713,9 @@ func awsAwsjson11_deserializeOpErrorListEdgeDeploymentPlans(response *smithyhttp } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -20292,14 +20726,14 @@ func awsAwsjson11_deserializeOpErrorListEdgeDeploymentPlans(response *smithyhttp } } -type awsAwsjson11_deserializeOpListEdgePackagingJobs struct { +type awsAwsjson11_deserializeOpListDataQualityJobDefinitions struct { } -func (*awsAwsjson11_deserializeOpListEdgePackagingJobs) ID() string { +func (*awsAwsjson11_deserializeOpListDataQualityJobDefinitions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListEdgePackagingJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListDataQualityJobDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -20313,9 +20747,9 @@ func (m *awsAwsjson11_deserializeOpListEdgePackagingJobs) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListEdgePackagingJobs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListDataQualityJobDefinitions(response, &metadata) } - output := &ListEdgePackagingJobsOutput{} + output := &ListDataQualityJobDefinitionsOutput{} out.Result = output var buff [1024]byte @@ -20335,7 +20769,7 @@ func (m *awsAwsjson11_deserializeOpListEdgePackagingJobs) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListEdgePackagingJobsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListDataQualityJobDefinitionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20349,7 +20783,7 @@ func (m *awsAwsjson11_deserializeOpListEdgePackagingJobs) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListEdgePackagingJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListDataQualityJobDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -20400,14 +20834,14 @@ func awsAwsjson11_deserializeOpErrorListEdgePackagingJobs(response *smithyhttp.R } } -type awsAwsjson11_deserializeOpListEndpointConfigs struct { +type awsAwsjson11_deserializeOpListDeviceFleets struct { } -func (*awsAwsjson11_deserializeOpListEndpointConfigs) ID() string { +func (*awsAwsjson11_deserializeOpListDeviceFleets) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListEndpointConfigs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListDeviceFleets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -20421,9 +20855,9 @@ func (m *awsAwsjson11_deserializeOpListEndpointConfigs) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListEndpointConfigs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListDeviceFleets(response, &metadata) } - output := &ListEndpointConfigsOutput{} + output := &ListDeviceFleetsOutput{} out.Result = output var buff [1024]byte @@ -20443,7 +20877,7 @@ func (m *awsAwsjson11_deserializeOpListEndpointConfigs) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListEndpointConfigsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListDeviceFleetsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20457,7 +20891,7 @@ func (m *awsAwsjson11_deserializeOpListEndpointConfigs) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListEndpointConfigs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListDeviceFleets(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -20508,14 +20942,14 @@ func awsAwsjson11_deserializeOpErrorListEndpointConfigs(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpListEndpoints struct { +type awsAwsjson11_deserializeOpListDevices struct { } -func (*awsAwsjson11_deserializeOpListEndpoints) ID() string { +func (*awsAwsjson11_deserializeOpListDevices) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListEndpoints) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListDevices) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -20529,9 +20963,9 @@ func (m *awsAwsjson11_deserializeOpListEndpoints) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListEndpoints(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListDevices(response, &metadata) } - output := &ListEndpointsOutput{} + output := &ListDevicesOutput{} out.Result = output var buff [1024]byte @@ -20551,7 +20985,7 @@ func (m *awsAwsjson11_deserializeOpListEndpoints) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListEndpointsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListDevicesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20565,7 +20999,7 @@ func (m *awsAwsjson11_deserializeOpListEndpoints) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListEndpoints(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListDevices(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -20616,14 +21050,14 @@ func awsAwsjson11_deserializeOpErrorListEndpoints(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpListExperiments struct { +type awsAwsjson11_deserializeOpListDomains struct { } -func (*awsAwsjson11_deserializeOpListExperiments) ID() string { +func (*awsAwsjson11_deserializeOpListDomains) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListExperiments) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListDomains) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -20637,9 +21071,9 @@ func (m *awsAwsjson11_deserializeOpListExperiments) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListExperiments(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListDomains(response, &metadata) } - output := &ListExperimentsOutput{} + output := &ListDomainsOutput{} out.Result = output var buff [1024]byte @@ -20659,7 +21093,7 @@ func (m *awsAwsjson11_deserializeOpListExperiments) HandleDeserialize(ctx contex return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListExperimentsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListDomainsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20673,7 +21107,7 @@ func (m *awsAwsjson11_deserializeOpListExperiments) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListExperiments(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListDomains(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -20724,14 +21158,14 @@ func awsAwsjson11_deserializeOpErrorListExperiments(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpListFeatureGroups struct { +type awsAwsjson11_deserializeOpListEdgeDeploymentPlans struct { } -func (*awsAwsjson11_deserializeOpListFeatureGroups) ID() string { +func (*awsAwsjson11_deserializeOpListEdgeDeploymentPlans) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListFeatureGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListEdgeDeploymentPlans) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -20745,9 +21179,9 @@ func (m *awsAwsjson11_deserializeOpListFeatureGroups) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListFeatureGroups(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListEdgeDeploymentPlans(response, &metadata) } - output := &ListFeatureGroupsOutput{} + output := &ListEdgeDeploymentPlansOutput{} out.Result = output var buff [1024]byte @@ -20767,7 +21201,7 @@ func (m *awsAwsjson11_deserializeOpListFeatureGroups) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListFeatureGroupsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListEdgeDeploymentPlansOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20781,7 +21215,7 @@ func (m *awsAwsjson11_deserializeOpListFeatureGroups) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListFeatureGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListEdgeDeploymentPlans(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -20832,14 +21266,14 @@ func awsAwsjson11_deserializeOpErrorListFeatureGroups(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpListFlowDefinitions struct { +type awsAwsjson11_deserializeOpListEdgePackagingJobs struct { } -func (*awsAwsjson11_deserializeOpListFlowDefinitions) ID() string { +func (*awsAwsjson11_deserializeOpListEdgePackagingJobs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListFlowDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListEdgePackagingJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -20853,9 +21287,9 @@ func (m *awsAwsjson11_deserializeOpListFlowDefinitions) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListFlowDefinitions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListEdgePackagingJobs(response, &metadata) } - output := &ListFlowDefinitionsOutput{} + output := &ListEdgePackagingJobsOutput{} out.Result = output var buff [1024]byte @@ -20875,7 +21309,7 @@ func (m *awsAwsjson11_deserializeOpListFlowDefinitions) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListFlowDefinitionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListEdgePackagingJobsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20889,7 +21323,7 @@ func (m *awsAwsjson11_deserializeOpListFlowDefinitions) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListFlowDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListEdgePackagingJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -20940,14 +21374,14 @@ func awsAwsjson11_deserializeOpErrorListFlowDefinitions(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpListHubContents struct { +type awsAwsjson11_deserializeOpListEndpointConfigs struct { } -func (*awsAwsjson11_deserializeOpListHubContents) ID() string { +func (*awsAwsjson11_deserializeOpListEndpointConfigs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListHubContents) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListEndpointConfigs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -20961,9 +21395,9 @@ func (m *awsAwsjson11_deserializeOpListHubContents) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListHubContents(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListEndpointConfigs(response, &metadata) } - output := &ListHubContentsOutput{} + output := &ListEndpointConfigsOutput{} out.Result = output var buff [1024]byte @@ -20983,7 +21417,7 @@ func (m *awsAwsjson11_deserializeOpListHubContents) HandleDeserialize(ctx contex return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListHubContentsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListEndpointConfigsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20997,7 +21431,7 @@ func (m *awsAwsjson11_deserializeOpListHubContents) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListHubContents(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListEndpointConfigs(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -21038,9 +21472,6 @@ func awsAwsjson11_deserializeOpErrorListHubContents(response *smithyhttp.Respons } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -21051,14 +21482,14 @@ func awsAwsjson11_deserializeOpErrorListHubContents(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpListHubContentVersions struct { +type awsAwsjson11_deserializeOpListEndpoints struct { } -func (*awsAwsjson11_deserializeOpListHubContentVersions) ID() string { +func (*awsAwsjson11_deserializeOpListEndpoints) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListHubContentVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListEndpoints) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -21072,9 +21503,9 @@ func (m *awsAwsjson11_deserializeOpListHubContentVersions) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListHubContentVersions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListEndpoints(response, &metadata) } - output := &ListHubContentVersionsOutput{} + output := &ListEndpointsOutput{} out.Result = output var buff [1024]byte @@ -21094,7 +21525,7 @@ func (m *awsAwsjson11_deserializeOpListHubContentVersions) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListHubContentVersionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListEndpointsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21108,7 +21539,7 @@ func (m *awsAwsjson11_deserializeOpListHubContentVersions) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListHubContentVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListEndpoints(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -21149,9 +21580,6 @@ func awsAwsjson11_deserializeOpErrorListHubContentVersions(response *smithyhttp. } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -21162,14 +21590,14 @@ func awsAwsjson11_deserializeOpErrorListHubContentVersions(response *smithyhttp. } } -type awsAwsjson11_deserializeOpListHubs struct { +type awsAwsjson11_deserializeOpListExperiments struct { } -func (*awsAwsjson11_deserializeOpListHubs) ID() string { +func (*awsAwsjson11_deserializeOpListExperiments) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListHubs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListExperiments) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -21183,9 +21611,9 @@ func (m *awsAwsjson11_deserializeOpListHubs) HandleDeserialize(ctx context.Conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListHubs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListExperiments(response, &metadata) } - output := &ListHubsOutput{} + output := &ListExperimentsOutput{} out.Result = output var buff [1024]byte @@ -21205,7 +21633,7 @@ func (m *awsAwsjson11_deserializeOpListHubs) HandleDeserialize(ctx context.Conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListHubsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListExperimentsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21219,7 +21647,7 @@ func (m *awsAwsjson11_deserializeOpListHubs) HandleDeserialize(ctx context.Conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListHubs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListExperiments(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -21270,14 +21698,14 @@ func awsAwsjson11_deserializeOpErrorListHubs(response *smithyhttp.Response, meta } } -type awsAwsjson11_deserializeOpListHumanTaskUis struct { +type awsAwsjson11_deserializeOpListFeatureGroups struct { } -func (*awsAwsjson11_deserializeOpListHumanTaskUis) ID() string { +func (*awsAwsjson11_deserializeOpListFeatureGroups) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListHumanTaskUis) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListFeatureGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -21291,9 +21719,9 @@ func (m *awsAwsjson11_deserializeOpListHumanTaskUis) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListHumanTaskUis(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListFeatureGroups(response, &metadata) } - output := &ListHumanTaskUisOutput{} + output := &ListFeatureGroupsOutput{} out.Result = output var buff [1024]byte @@ -21313,7 +21741,7 @@ func (m *awsAwsjson11_deserializeOpListHumanTaskUis) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListHumanTaskUisOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListFeatureGroupsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21327,7 +21755,7 @@ func (m *awsAwsjson11_deserializeOpListHumanTaskUis) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListHumanTaskUis(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListFeatureGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -21378,14 +21806,14 @@ func awsAwsjson11_deserializeOpErrorListHumanTaskUis(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpListHyperParameterTuningJobs struct { +type awsAwsjson11_deserializeOpListFlowDefinitions struct { } -func (*awsAwsjson11_deserializeOpListHyperParameterTuningJobs) ID() string { +func (*awsAwsjson11_deserializeOpListFlowDefinitions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListHyperParameterTuningJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListFlowDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -21399,9 +21827,9 @@ func (m *awsAwsjson11_deserializeOpListHyperParameterTuningJobs) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListHyperParameterTuningJobs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListFlowDefinitions(response, &metadata) } - output := &ListHyperParameterTuningJobsOutput{} + output := &ListFlowDefinitionsOutput{} out.Result = output var buff [1024]byte @@ -21421,7 +21849,7 @@ func (m *awsAwsjson11_deserializeOpListHyperParameterTuningJobs) HandleDeseriali return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListHyperParameterTuningJobsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListFlowDefinitionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21435,7 +21863,7 @@ func (m *awsAwsjson11_deserializeOpListHyperParameterTuningJobs) HandleDeseriali return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListHyperParameterTuningJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListFlowDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -21486,14 +21914,14 @@ func awsAwsjson11_deserializeOpErrorListHyperParameterTuningJobs(response *smith } } -type awsAwsjson11_deserializeOpListImages struct { +type awsAwsjson11_deserializeOpListHubContents struct { } -func (*awsAwsjson11_deserializeOpListImages) ID() string { +func (*awsAwsjson11_deserializeOpListHubContents) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListImages) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListHubContents) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -21507,9 +21935,9 @@ func (m *awsAwsjson11_deserializeOpListImages) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListImages(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListHubContents(response, &metadata) } - output := &ListImagesOutput{} + output := &ListHubContentsOutput{} out.Result = output var buff [1024]byte @@ -21529,7 +21957,7 @@ func (m *awsAwsjson11_deserializeOpListImages) HandleDeserialize(ctx context.Con return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListImagesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListHubContentsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21543,7 +21971,7 @@ func (m *awsAwsjson11_deserializeOpListImages) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListImages(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListHubContents(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -21584,6 +22012,9 @@ func awsAwsjson11_deserializeOpErrorListImages(response *smithyhttp.Response, me } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -21594,14 +22025,14 @@ func awsAwsjson11_deserializeOpErrorListImages(response *smithyhttp.Response, me } } -type awsAwsjson11_deserializeOpListImageVersions struct { +type awsAwsjson11_deserializeOpListHubContentVersions struct { } -func (*awsAwsjson11_deserializeOpListImageVersions) ID() string { +func (*awsAwsjson11_deserializeOpListHubContentVersions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListImageVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListHubContentVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -21615,9 +22046,9 @@ func (m *awsAwsjson11_deserializeOpListImageVersions) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListImageVersions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListHubContentVersions(response, &metadata) } - output := &ListImageVersionsOutput{} + output := &ListHubContentVersionsOutput{} out.Result = output var buff [1024]byte @@ -21637,7 +22068,7 @@ func (m *awsAwsjson11_deserializeOpListImageVersions) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListImageVersionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListHubContentVersionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21651,7 +22082,7 @@ func (m *awsAwsjson11_deserializeOpListImageVersions) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListImageVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListHubContentVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -21705,14 +22136,14 @@ func awsAwsjson11_deserializeOpErrorListImageVersions(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpListInferenceExperiments struct { +type awsAwsjson11_deserializeOpListHubs struct { } -func (*awsAwsjson11_deserializeOpListInferenceExperiments) ID() string { +func (*awsAwsjson11_deserializeOpListHubs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListInferenceExperiments) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListHubs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -21726,9 +22157,9 @@ func (m *awsAwsjson11_deserializeOpListInferenceExperiments) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListInferenceExperiments(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListHubs(response, &metadata) } - output := &ListInferenceExperimentsOutput{} + output := &ListHubsOutput{} out.Result = output var buff [1024]byte @@ -21748,7 +22179,7 @@ func (m *awsAwsjson11_deserializeOpListInferenceExperiments) HandleDeserialize(c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListInferenceExperimentsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListHubsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21762,7 +22193,7 @@ func (m *awsAwsjson11_deserializeOpListInferenceExperiments) HandleDeserialize(c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListInferenceExperiments(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListHubs(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -21813,14 +22244,14 @@ func awsAwsjson11_deserializeOpErrorListInferenceExperiments(response *smithyhtt } } -type awsAwsjson11_deserializeOpListInferenceRecommendationsJobs struct { +type awsAwsjson11_deserializeOpListHumanTaskUis struct { } -func (*awsAwsjson11_deserializeOpListInferenceRecommendationsJobs) ID() string { +func (*awsAwsjson11_deserializeOpListHumanTaskUis) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListInferenceRecommendationsJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListHumanTaskUis) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -21834,9 +22265,9 @@ func (m *awsAwsjson11_deserializeOpListInferenceRecommendationsJobs) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListInferenceRecommendationsJobs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListHumanTaskUis(response, &metadata) } - output := &ListInferenceRecommendationsJobsOutput{} + output := &ListHumanTaskUisOutput{} out.Result = output var buff [1024]byte @@ -21856,7 +22287,7 @@ func (m *awsAwsjson11_deserializeOpListInferenceRecommendationsJobs) HandleDeser return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListInferenceRecommendationsJobsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListHumanTaskUisOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21870,7 +22301,7 @@ func (m *awsAwsjson11_deserializeOpListInferenceRecommendationsJobs) HandleDeser return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListInferenceRecommendationsJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListHumanTaskUis(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -21921,14 +22352,14 @@ func awsAwsjson11_deserializeOpErrorListInferenceRecommendationsJobs(response *s } } -type awsAwsjson11_deserializeOpListInferenceRecommendationsJobSteps struct { +type awsAwsjson11_deserializeOpListHyperParameterTuningJobs struct { } -func (*awsAwsjson11_deserializeOpListInferenceRecommendationsJobSteps) ID() string { +func (*awsAwsjson11_deserializeOpListHyperParameterTuningJobs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListInferenceRecommendationsJobSteps) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListHyperParameterTuningJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -21942,9 +22373,9 @@ func (m *awsAwsjson11_deserializeOpListInferenceRecommendationsJobSteps) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListInferenceRecommendationsJobSteps(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListHyperParameterTuningJobs(response, &metadata) } - output := &ListInferenceRecommendationsJobStepsOutput{} + output := &ListHyperParameterTuningJobsOutput{} out.Result = output var buff [1024]byte @@ -21964,7 +22395,7 @@ func (m *awsAwsjson11_deserializeOpListInferenceRecommendationsJobSteps) HandleD return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListInferenceRecommendationsJobStepsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListHyperParameterTuningJobsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21978,7 +22409,7 @@ func (m *awsAwsjson11_deserializeOpListInferenceRecommendationsJobSteps) HandleD return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListInferenceRecommendationsJobSteps(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListHyperParameterTuningJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -22019,9 +22450,6 @@ func awsAwsjson11_deserializeOpErrorListInferenceRecommendationsJobSteps(respons } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -22032,14 +22460,14 @@ func awsAwsjson11_deserializeOpErrorListInferenceRecommendationsJobSteps(respons } } -type awsAwsjson11_deserializeOpListLabelingJobs struct { +type awsAwsjson11_deserializeOpListImages struct { } -func (*awsAwsjson11_deserializeOpListLabelingJobs) ID() string { +func (*awsAwsjson11_deserializeOpListImages) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListLabelingJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListImages) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -22053,9 +22481,9 @@ func (m *awsAwsjson11_deserializeOpListLabelingJobs) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListLabelingJobs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListImages(response, &metadata) } - output := &ListLabelingJobsOutput{} + output := &ListImagesOutput{} out.Result = output var buff [1024]byte @@ -22075,7 +22503,7 @@ func (m *awsAwsjson11_deserializeOpListLabelingJobs) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListLabelingJobsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListImagesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22089,7 +22517,7 @@ func (m *awsAwsjson11_deserializeOpListLabelingJobs) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListLabelingJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListImages(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -22140,14 +22568,14 @@ func awsAwsjson11_deserializeOpErrorListLabelingJobs(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpListLabelingJobsForWorkteam struct { +type awsAwsjson11_deserializeOpListImageVersions struct { } -func (*awsAwsjson11_deserializeOpListLabelingJobsForWorkteam) ID() string { +func (*awsAwsjson11_deserializeOpListImageVersions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListLabelingJobsForWorkteam) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListImageVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -22161,9 +22589,9 @@ func (m *awsAwsjson11_deserializeOpListLabelingJobsForWorkteam) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListLabelingJobsForWorkteam(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListImageVersions(response, &metadata) } - output := &ListLabelingJobsForWorkteamOutput{} + output := &ListImageVersionsOutput{} out.Result = output var buff [1024]byte @@ -22183,7 +22611,7 @@ func (m *awsAwsjson11_deserializeOpListLabelingJobsForWorkteam) HandleDeserializ return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListLabelingJobsForWorkteamOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListImageVersionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22197,7 +22625,7 @@ func (m *awsAwsjson11_deserializeOpListLabelingJobsForWorkteam) HandleDeserializ return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListLabelingJobsForWorkteam(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListImageVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -22251,14 +22679,14 @@ func awsAwsjson11_deserializeOpErrorListLabelingJobsForWorkteam(response *smithy } } -type awsAwsjson11_deserializeOpListLineageGroups struct { +type awsAwsjson11_deserializeOpListInferenceComponents struct { } -func (*awsAwsjson11_deserializeOpListLineageGroups) ID() string { +func (*awsAwsjson11_deserializeOpListInferenceComponents) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListLineageGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListInferenceComponents) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -22272,9 +22700,9 @@ func (m *awsAwsjson11_deserializeOpListLineageGroups) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListLineageGroups(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListInferenceComponents(response, &metadata) } - output := &ListLineageGroupsOutput{} + output := &ListInferenceComponentsOutput{} out.Result = output var buff [1024]byte @@ -22294,7 +22722,7 @@ func (m *awsAwsjson11_deserializeOpListLineageGroups) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListLineageGroupsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListInferenceComponentsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22308,7 +22736,7 @@ func (m *awsAwsjson11_deserializeOpListLineageGroups) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListLineageGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListInferenceComponents(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -22359,14 +22787,14 @@ func awsAwsjson11_deserializeOpErrorListLineageGroups(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpListModelBiasJobDefinitions struct { +type awsAwsjson11_deserializeOpListInferenceExperiments struct { } -func (*awsAwsjson11_deserializeOpListModelBiasJobDefinitions) ID() string { +func (*awsAwsjson11_deserializeOpListInferenceExperiments) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModelBiasJobDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListInferenceExperiments) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -22380,9 +22808,9 @@ func (m *awsAwsjson11_deserializeOpListModelBiasJobDefinitions) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModelBiasJobDefinitions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListInferenceExperiments(response, &metadata) } - output := &ListModelBiasJobDefinitionsOutput{} + output := &ListInferenceExperimentsOutput{} out.Result = output var buff [1024]byte @@ -22402,7 +22830,7 @@ func (m *awsAwsjson11_deserializeOpListModelBiasJobDefinitions) HandleDeserializ return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelBiasJobDefinitionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListInferenceExperimentsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22416,7 +22844,7 @@ func (m *awsAwsjson11_deserializeOpListModelBiasJobDefinitions) HandleDeserializ return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModelBiasJobDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListInferenceExperiments(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -22467,14 +22895,14 @@ func awsAwsjson11_deserializeOpErrorListModelBiasJobDefinitions(response *smithy } } -type awsAwsjson11_deserializeOpListModelCardExportJobs struct { +type awsAwsjson11_deserializeOpListInferenceRecommendationsJobs struct { } -func (*awsAwsjson11_deserializeOpListModelCardExportJobs) ID() string { +func (*awsAwsjson11_deserializeOpListInferenceRecommendationsJobs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModelCardExportJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListInferenceRecommendationsJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -22488,9 +22916,9 @@ func (m *awsAwsjson11_deserializeOpListModelCardExportJobs) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModelCardExportJobs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListInferenceRecommendationsJobs(response, &metadata) } - output := &ListModelCardExportJobsOutput{} + output := &ListInferenceRecommendationsJobsOutput{} out.Result = output var buff [1024]byte @@ -22510,7 +22938,7 @@ func (m *awsAwsjson11_deserializeOpListModelCardExportJobs) HandleDeserialize(ct return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelCardExportJobsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListInferenceRecommendationsJobsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22524,7 +22952,7 @@ func (m *awsAwsjson11_deserializeOpListModelCardExportJobs) HandleDeserialize(ct return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModelCardExportJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListInferenceRecommendationsJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -22575,14 +23003,14 @@ func awsAwsjson11_deserializeOpErrorListModelCardExportJobs(response *smithyhttp } } -type awsAwsjson11_deserializeOpListModelCards struct { +type awsAwsjson11_deserializeOpListInferenceRecommendationsJobSteps struct { } -func (*awsAwsjson11_deserializeOpListModelCards) ID() string { +func (*awsAwsjson11_deserializeOpListInferenceRecommendationsJobSteps) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModelCards) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListInferenceRecommendationsJobSteps) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -22596,9 +23024,9 @@ func (m *awsAwsjson11_deserializeOpListModelCards) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModelCards(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListInferenceRecommendationsJobSteps(response, &metadata) } - output := &ListModelCardsOutput{} + output := &ListInferenceRecommendationsJobStepsOutput{} out.Result = output var buff [1024]byte @@ -22618,7 +23046,7 @@ func (m *awsAwsjson11_deserializeOpListModelCards) HandleDeserialize(ctx context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelCardsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListInferenceRecommendationsJobStepsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22632,7 +23060,7 @@ func (m *awsAwsjson11_deserializeOpListModelCards) HandleDeserialize(ctx context return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModelCards(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListInferenceRecommendationsJobSteps(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -22673,6 +23101,9 @@ func awsAwsjson11_deserializeOpErrorListModelCards(response *smithyhttp.Response } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -22683,14 +23114,14 @@ func awsAwsjson11_deserializeOpErrorListModelCards(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpListModelCardVersions struct { +type awsAwsjson11_deserializeOpListLabelingJobs struct { } -func (*awsAwsjson11_deserializeOpListModelCardVersions) ID() string { +func (*awsAwsjson11_deserializeOpListLabelingJobs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModelCardVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListLabelingJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -22704,9 +23135,9 @@ func (m *awsAwsjson11_deserializeOpListModelCardVersions) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModelCardVersions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListLabelingJobs(response, &metadata) } - output := &ListModelCardVersionsOutput{} + output := &ListLabelingJobsOutput{} out.Result = output var buff [1024]byte @@ -22726,7 +23157,7 @@ func (m *awsAwsjson11_deserializeOpListModelCardVersions) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelCardVersionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListLabelingJobsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22740,7 +23171,115 @@ func (m *awsAwsjson11_deserializeOpListModelCardVersions) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModelCardVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListLabelingJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + 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 { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpListLabelingJobsForWorkteam struct { +} + +func (*awsAwsjson11_deserializeOpListLabelingJobsForWorkteam) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpListLabelingJobsForWorkteam) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorListLabelingJobsForWorkteam(response, &metadata) + } + output := &ListLabelingJobsForWorkteamOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentListLabelingJobsForWorkteamOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorListLabelingJobsForWorkteam(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -22794,14 +23333,14 @@ func awsAwsjson11_deserializeOpErrorListModelCardVersions(response *smithyhttp.R } } -type awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions struct { +type awsAwsjson11_deserializeOpListLineageGroups struct { } -func (*awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions) ID() string { +func (*awsAwsjson11_deserializeOpListLineageGroups) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListLineageGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -22815,9 +23354,9 @@ func (m *awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions) Handle } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModelExplainabilityJobDefinitions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListLineageGroups(response, &metadata) } - output := &ListModelExplainabilityJobDefinitionsOutput{} + output := &ListLineageGroupsOutput{} out.Result = output var buff [1024]byte @@ -22837,7 +23376,7 @@ func (m *awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions) Handle return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelExplainabilityJobDefinitionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListLineageGroupsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22851,7 +23390,7 @@ func (m *awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions) Handle return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModelExplainabilityJobDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListLineageGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -22902,14 +23441,14 @@ func awsAwsjson11_deserializeOpErrorListModelExplainabilityJobDefinitions(respon } } -type awsAwsjson11_deserializeOpListModelMetadata struct { +type awsAwsjson11_deserializeOpListModelBiasJobDefinitions struct { } -func (*awsAwsjson11_deserializeOpListModelMetadata) ID() string { +func (*awsAwsjson11_deserializeOpListModelBiasJobDefinitions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModelMetadata) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModelBiasJobDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -22923,9 +23462,9 @@ func (m *awsAwsjson11_deserializeOpListModelMetadata) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModelMetadata(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModelBiasJobDefinitions(response, &metadata) } - output := &ListModelMetadataOutput{} + output := &ListModelBiasJobDefinitionsOutput{} out.Result = output var buff [1024]byte @@ -22945,7 +23484,7 @@ func (m *awsAwsjson11_deserializeOpListModelMetadata) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelMetadataOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelBiasJobDefinitionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22959,7 +23498,7 @@ func (m *awsAwsjson11_deserializeOpListModelMetadata) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModelMetadata(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModelBiasJobDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -23010,14 +23549,14 @@ func awsAwsjson11_deserializeOpErrorListModelMetadata(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpListModelPackageGroups struct { +type awsAwsjson11_deserializeOpListModelCardExportJobs struct { } -func (*awsAwsjson11_deserializeOpListModelPackageGroups) ID() string { +func (*awsAwsjson11_deserializeOpListModelCardExportJobs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModelPackageGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModelCardExportJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -23031,9 +23570,9 @@ func (m *awsAwsjson11_deserializeOpListModelPackageGroups) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModelPackageGroups(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModelCardExportJobs(response, &metadata) } - output := &ListModelPackageGroupsOutput{} + output := &ListModelCardExportJobsOutput{} out.Result = output var buff [1024]byte @@ -23053,7 +23592,7 @@ func (m *awsAwsjson11_deserializeOpListModelPackageGroups) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelPackageGroupsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelCardExportJobsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23067,7 +23606,7 @@ func (m *awsAwsjson11_deserializeOpListModelPackageGroups) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModelPackageGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModelCardExportJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -23118,14 +23657,14 @@ func awsAwsjson11_deserializeOpErrorListModelPackageGroups(response *smithyhttp. } } -type awsAwsjson11_deserializeOpListModelPackages struct { +type awsAwsjson11_deserializeOpListModelCards struct { } -func (*awsAwsjson11_deserializeOpListModelPackages) ID() string { +func (*awsAwsjson11_deserializeOpListModelCards) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModelPackages) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModelCards) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -23139,9 +23678,9 @@ func (m *awsAwsjson11_deserializeOpListModelPackages) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModelPackages(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModelCards(response, &metadata) } - output := &ListModelPackagesOutput{} + output := &ListModelCardsOutput{} out.Result = output var buff [1024]byte @@ -23161,7 +23700,7 @@ func (m *awsAwsjson11_deserializeOpListModelPackages) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelPackagesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelCardsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23175,7 +23714,7 @@ func (m *awsAwsjson11_deserializeOpListModelPackages) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModelPackages(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModelCards(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -23226,14 +23765,14 @@ func awsAwsjson11_deserializeOpErrorListModelPackages(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpListModelQualityJobDefinitions struct { +type awsAwsjson11_deserializeOpListModelCardVersions struct { } -func (*awsAwsjson11_deserializeOpListModelQualityJobDefinitions) ID() string { +func (*awsAwsjson11_deserializeOpListModelCardVersions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModelQualityJobDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModelCardVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -23247,9 +23786,9 @@ func (m *awsAwsjson11_deserializeOpListModelQualityJobDefinitions) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModelQualityJobDefinitions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModelCardVersions(response, &metadata) } - output := &ListModelQualityJobDefinitionsOutput{} + output := &ListModelCardVersionsOutput{} out.Result = output var buff [1024]byte @@ -23269,7 +23808,7 @@ func (m *awsAwsjson11_deserializeOpListModelQualityJobDefinitions) HandleDeseria return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelQualityJobDefinitionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelCardVersionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23283,7 +23822,7 @@ func (m *awsAwsjson11_deserializeOpListModelQualityJobDefinitions) HandleDeseria return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModelQualityJobDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModelCardVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -23324,6 +23863,9 @@ func awsAwsjson11_deserializeOpErrorListModelQualityJobDefinitions(response *smi } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -23334,14 +23876,14 @@ func awsAwsjson11_deserializeOpErrorListModelQualityJobDefinitions(response *smi } } -type awsAwsjson11_deserializeOpListModels struct { +type awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions struct { } -func (*awsAwsjson11_deserializeOpListModels) ID() string { +func (*awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModels) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -23355,9 +23897,9 @@ func (m *awsAwsjson11_deserializeOpListModels) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModels(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModelExplainabilityJobDefinitions(response, &metadata) } - output := &ListModelsOutput{} + output := &ListModelExplainabilityJobDefinitionsOutput{} out.Result = output var buff [1024]byte @@ -23377,7 +23919,7 @@ func (m *awsAwsjson11_deserializeOpListModels) HandleDeserialize(ctx context.Con return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelExplainabilityJobDefinitionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23391,7 +23933,7 @@ func (m *awsAwsjson11_deserializeOpListModels) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModels(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModelExplainabilityJobDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -23442,14 +23984,14 @@ func awsAwsjson11_deserializeOpErrorListModels(response *smithyhttp.Response, me } } -type awsAwsjson11_deserializeOpListMonitoringAlertHistory struct { +type awsAwsjson11_deserializeOpListModelMetadata struct { } -func (*awsAwsjson11_deserializeOpListMonitoringAlertHistory) ID() string { +func (*awsAwsjson11_deserializeOpListModelMetadata) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListMonitoringAlertHistory) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModelMetadata) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -23463,9 +24005,9 @@ func (m *awsAwsjson11_deserializeOpListMonitoringAlertHistory) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListMonitoringAlertHistory(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModelMetadata(response, &metadata) } - output := &ListMonitoringAlertHistoryOutput{} + output := &ListModelMetadataOutput{} out.Result = output var buff [1024]byte @@ -23485,7 +24027,7 @@ func (m *awsAwsjson11_deserializeOpListMonitoringAlertHistory) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListMonitoringAlertHistoryOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelMetadataOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23499,7 +24041,7 @@ func (m *awsAwsjson11_deserializeOpListMonitoringAlertHistory) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListMonitoringAlertHistory(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModelMetadata(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -23540,9 +24082,6 @@ func awsAwsjson11_deserializeOpErrorListMonitoringAlertHistory(response *smithyh } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -23553,14 +24092,14 @@ func awsAwsjson11_deserializeOpErrorListMonitoringAlertHistory(response *smithyh } } -type awsAwsjson11_deserializeOpListMonitoringAlerts struct { +type awsAwsjson11_deserializeOpListModelPackageGroups struct { } -func (*awsAwsjson11_deserializeOpListMonitoringAlerts) ID() string { +func (*awsAwsjson11_deserializeOpListModelPackageGroups) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListMonitoringAlerts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModelPackageGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -23574,9 +24113,9 @@ func (m *awsAwsjson11_deserializeOpListMonitoringAlerts) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListMonitoringAlerts(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModelPackageGroups(response, &metadata) } - output := &ListMonitoringAlertsOutput{} + output := &ListModelPackageGroupsOutput{} out.Result = output var buff [1024]byte @@ -23596,7 +24135,7 @@ func (m *awsAwsjson11_deserializeOpListMonitoringAlerts) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListMonitoringAlertsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelPackageGroupsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23610,7 +24149,7 @@ func (m *awsAwsjson11_deserializeOpListMonitoringAlerts) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListMonitoringAlerts(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModelPackageGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -23651,9 +24190,6 @@ func awsAwsjson11_deserializeOpErrorListMonitoringAlerts(response *smithyhttp.Re } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -23664,14 +24200,14 @@ func awsAwsjson11_deserializeOpErrorListMonitoringAlerts(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpListMonitoringExecutions struct { +type awsAwsjson11_deserializeOpListModelPackages struct { } -func (*awsAwsjson11_deserializeOpListMonitoringExecutions) ID() string { +func (*awsAwsjson11_deserializeOpListModelPackages) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListMonitoringExecutions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModelPackages) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -23685,9 +24221,9 @@ func (m *awsAwsjson11_deserializeOpListMonitoringExecutions) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListMonitoringExecutions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModelPackages(response, &metadata) } - output := &ListMonitoringExecutionsOutput{} + output := &ListModelPackagesOutput{} out.Result = output var buff [1024]byte @@ -23707,7 +24243,7 @@ func (m *awsAwsjson11_deserializeOpListMonitoringExecutions) HandleDeserialize(c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListMonitoringExecutionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelPackagesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23721,7 +24257,7 @@ func (m *awsAwsjson11_deserializeOpListMonitoringExecutions) HandleDeserialize(c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListMonitoringExecutions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModelPackages(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -23772,14 +24308,14 @@ func awsAwsjson11_deserializeOpErrorListMonitoringExecutions(response *smithyhtt } } -type awsAwsjson11_deserializeOpListMonitoringSchedules struct { +type awsAwsjson11_deserializeOpListModelQualityJobDefinitions struct { } -func (*awsAwsjson11_deserializeOpListMonitoringSchedules) ID() string { +func (*awsAwsjson11_deserializeOpListModelQualityJobDefinitions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListMonitoringSchedules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModelQualityJobDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -23793,9 +24329,9 @@ func (m *awsAwsjson11_deserializeOpListMonitoringSchedules) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListMonitoringSchedules(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModelQualityJobDefinitions(response, &metadata) } - output := &ListMonitoringSchedulesOutput{} + output := &ListModelQualityJobDefinitionsOutput{} out.Result = output var buff [1024]byte @@ -23815,7 +24351,7 @@ func (m *awsAwsjson11_deserializeOpListMonitoringSchedules) HandleDeserialize(ct return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListMonitoringSchedulesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelQualityJobDefinitionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23829,7 +24365,7 @@ func (m *awsAwsjson11_deserializeOpListMonitoringSchedules) HandleDeserialize(ct return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListMonitoringSchedules(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModelQualityJobDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -23880,122 +24416,14 @@ func awsAwsjson11_deserializeOpErrorListMonitoringSchedules(response *smithyhttp } } -type awsAwsjson11_deserializeOpListNotebookInstanceLifecycleConfigs struct { -} - -func (*awsAwsjson11_deserializeOpListNotebookInstanceLifecycleConfigs) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpListNotebookInstanceLifecycleConfigs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListNotebookInstanceLifecycleConfigs(response, &metadata) - } - output := &ListNotebookInstanceLifecycleConfigsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentListNotebookInstanceLifecycleConfigsOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorListNotebookInstanceLifecycleConfigs(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - 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 { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpListNotebookInstances struct { +type awsAwsjson11_deserializeOpListModels struct { } -func (*awsAwsjson11_deserializeOpListNotebookInstances) ID() string { +func (*awsAwsjson11_deserializeOpListModels) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListNotebookInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModels) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -24009,9 +24437,9 @@ func (m *awsAwsjson11_deserializeOpListNotebookInstances) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListNotebookInstances(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModels(response, &metadata) } - output := &ListNotebookInstancesOutput{} + output := &ListModelsOutput{} out.Result = output var buff [1024]byte @@ -24031,7 +24459,7 @@ func (m *awsAwsjson11_deserializeOpListNotebookInstances) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListNotebookInstancesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24045,7 +24473,7 @@ func (m *awsAwsjson11_deserializeOpListNotebookInstances) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListNotebookInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModels(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -24096,14 +24524,14 @@ func awsAwsjson11_deserializeOpErrorListNotebookInstances(response *smithyhttp.R } } -type awsAwsjson11_deserializeOpListPipelineExecutions struct { +type awsAwsjson11_deserializeOpListMonitoringAlertHistory struct { } -func (*awsAwsjson11_deserializeOpListPipelineExecutions) ID() string { +func (*awsAwsjson11_deserializeOpListMonitoringAlertHistory) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListPipelineExecutions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListMonitoringAlertHistory) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -24117,9 +24545,9 @@ func (m *awsAwsjson11_deserializeOpListPipelineExecutions) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListPipelineExecutions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListMonitoringAlertHistory(response, &metadata) } - output := &ListPipelineExecutionsOutput{} + output := &ListMonitoringAlertHistoryOutput{} out.Result = output var buff [1024]byte @@ -24139,7 +24567,7 @@ func (m *awsAwsjson11_deserializeOpListPipelineExecutions) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListPipelineExecutionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListMonitoringAlertHistoryOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24153,7 +24581,7 @@ func (m *awsAwsjson11_deserializeOpListPipelineExecutions) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListPipelineExecutions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListMonitoringAlertHistory(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -24207,14 +24635,14 @@ func awsAwsjson11_deserializeOpErrorListPipelineExecutions(response *smithyhttp. } } -type awsAwsjson11_deserializeOpListPipelineExecutionSteps struct { +type awsAwsjson11_deserializeOpListMonitoringAlerts struct { } -func (*awsAwsjson11_deserializeOpListPipelineExecutionSteps) ID() string { +func (*awsAwsjson11_deserializeOpListMonitoringAlerts) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListPipelineExecutionSteps) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListMonitoringAlerts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -24228,9 +24656,9 @@ func (m *awsAwsjson11_deserializeOpListPipelineExecutionSteps) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListPipelineExecutionSteps(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListMonitoringAlerts(response, &metadata) } - output := &ListPipelineExecutionStepsOutput{} + output := &ListMonitoringAlertsOutput{} out.Result = output var buff [1024]byte @@ -24250,7 +24678,7 @@ func (m *awsAwsjson11_deserializeOpListPipelineExecutionSteps) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListPipelineExecutionStepsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListMonitoringAlertsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24264,7 +24692,7 @@ func (m *awsAwsjson11_deserializeOpListPipelineExecutionSteps) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListPipelineExecutionSteps(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListMonitoringAlerts(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -24318,14 +24746,14 @@ func awsAwsjson11_deserializeOpErrorListPipelineExecutionSteps(response *smithyh } } -type awsAwsjson11_deserializeOpListPipelineParametersForExecution struct { +type awsAwsjson11_deserializeOpListMonitoringExecutions struct { } -func (*awsAwsjson11_deserializeOpListPipelineParametersForExecution) ID() string { +func (*awsAwsjson11_deserializeOpListMonitoringExecutions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListPipelineParametersForExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListMonitoringExecutions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -24339,9 +24767,9 @@ func (m *awsAwsjson11_deserializeOpListPipelineParametersForExecution) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListPipelineParametersForExecution(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListMonitoringExecutions(response, &metadata) } - output := &ListPipelineParametersForExecutionOutput{} + output := &ListMonitoringExecutionsOutput{} out.Result = output var buff [1024]byte @@ -24361,7 +24789,7 @@ func (m *awsAwsjson11_deserializeOpListPipelineParametersForExecution) HandleDes return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListPipelineParametersForExecutionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListMonitoringExecutionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24375,7 +24803,7 @@ func (m *awsAwsjson11_deserializeOpListPipelineParametersForExecution) HandleDes return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListPipelineParametersForExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListMonitoringExecutions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -24416,9 +24844,6 @@ func awsAwsjson11_deserializeOpErrorListPipelineParametersForExecution(response } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -24429,14 +24854,14 @@ func awsAwsjson11_deserializeOpErrorListPipelineParametersForExecution(response } } -type awsAwsjson11_deserializeOpListPipelines struct { +type awsAwsjson11_deserializeOpListMonitoringSchedules struct { } -func (*awsAwsjson11_deserializeOpListPipelines) ID() string { +func (*awsAwsjson11_deserializeOpListMonitoringSchedules) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListPipelines) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListMonitoringSchedules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -24450,9 +24875,9 @@ func (m *awsAwsjson11_deserializeOpListPipelines) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListPipelines(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListMonitoringSchedules(response, &metadata) } - output := &ListPipelinesOutput{} + output := &ListMonitoringSchedulesOutput{} out.Result = output var buff [1024]byte @@ -24472,7 +24897,7 @@ func (m *awsAwsjson11_deserializeOpListPipelines) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListPipelinesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListMonitoringSchedulesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24486,7 +24911,7 @@ func (m *awsAwsjson11_deserializeOpListPipelines) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListPipelines(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListMonitoringSchedules(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -24537,14 +24962,14 @@ func awsAwsjson11_deserializeOpErrorListPipelines(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpListProcessingJobs struct { +type awsAwsjson11_deserializeOpListNotebookInstanceLifecycleConfigs struct { } -func (*awsAwsjson11_deserializeOpListProcessingJobs) ID() string { +func (*awsAwsjson11_deserializeOpListNotebookInstanceLifecycleConfigs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListProcessingJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListNotebookInstanceLifecycleConfigs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -24558,9 +24983,9 @@ func (m *awsAwsjson11_deserializeOpListProcessingJobs) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListProcessingJobs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListNotebookInstanceLifecycleConfigs(response, &metadata) } - output := &ListProcessingJobsOutput{} + output := &ListNotebookInstanceLifecycleConfigsOutput{} out.Result = output var buff [1024]byte @@ -24580,7 +25005,7 @@ func (m *awsAwsjson11_deserializeOpListProcessingJobs) HandleDeserialize(ctx con return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListProcessingJobsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListNotebookInstanceLifecycleConfigsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24594,7 +25019,7 @@ func (m *awsAwsjson11_deserializeOpListProcessingJobs) HandleDeserialize(ctx con return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListProcessingJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListNotebookInstanceLifecycleConfigs(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -24645,14 +25070,14 @@ func awsAwsjson11_deserializeOpErrorListProcessingJobs(response *smithyhttp.Resp } } -type awsAwsjson11_deserializeOpListProjects struct { +type awsAwsjson11_deserializeOpListNotebookInstances struct { } -func (*awsAwsjson11_deserializeOpListProjects) ID() string { +func (*awsAwsjson11_deserializeOpListNotebookInstances) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListProjects) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListNotebookInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -24666,9 +25091,9 @@ func (m *awsAwsjson11_deserializeOpListProjects) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListProjects(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListNotebookInstances(response, &metadata) } - output := &ListProjectsOutput{} + output := &ListNotebookInstancesOutput{} out.Result = output var buff [1024]byte @@ -24688,7 +25113,7 @@ func (m *awsAwsjson11_deserializeOpListProjects) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListProjectsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListNotebookInstancesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24702,7 +25127,7 @@ func (m *awsAwsjson11_deserializeOpListProjects) HandleDeserialize(ctx context.C return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListProjects(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListNotebookInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -24753,14 +25178,14 @@ func awsAwsjson11_deserializeOpErrorListProjects(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpListResourceCatalogs struct { +type awsAwsjson11_deserializeOpListPipelineExecutions struct { } -func (*awsAwsjson11_deserializeOpListResourceCatalogs) ID() string { +func (*awsAwsjson11_deserializeOpListPipelineExecutions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListResourceCatalogs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListPipelineExecutions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -24774,9 +25199,9 @@ func (m *awsAwsjson11_deserializeOpListResourceCatalogs) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListResourceCatalogs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListPipelineExecutions(response, &metadata) } - output := &ListResourceCatalogsOutput{} + output := &ListPipelineExecutionsOutput{} out.Result = output var buff [1024]byte @@ -24796,7 +25221,7 @@ func (m *awsAwsjson11_deserializeOpListResourceCatalogs) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListResourceCatalogsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListPipelineExecutionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24810,7 +25235,7 @@ func (m *awsAwsjson11_deserializeOpListResourceCatalogs) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListResourceCatalogs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListPipelineExecutions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -24851,6 +25276,9 @@ func awsAwsjson11_deserializeOpErrorListResourceCatalogs(response *smithyhttp.Re } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -24861,14 +25289,14 @@ func awsAwsjson11_deserializeOpErrorListResourceCatalogs(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpListSpaces struct { +type awsAwsjson11_deserializeOpListPipelineExecutionSteps struct { } -func (*awsAwsjson11_deserializeOpListSpaces) ID() string { +func (*awsAwsjson11_deserializeOpListPipelineExecutionSteps) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListSpaces) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListPipelineExecutionSteps) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -24882,9 +25310,9 @@ func (m *awsAwsjson11_deserializeOpListSpaces) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListSpaces(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListPipelineExecutionSteps(response, &metadata) } - output := &ListSpacesOutput{} + output := &ListPipelineExecutionStepsOutput{} out.Result = output var buff [1024]byte @@ -24904,7 +25332,7 @@ func (m *awsAwsjson11_deserializeOpListSpaces) HandleDeserialize(ctx context.Con return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListSpacesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListPipelineExecutionStepsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24918,7 +25346,7 @@ func (m *awsAwsjson11_deserializeOpListSpaces) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListSpaces(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListPipelineExecutionSteps(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -24959,6 +25387,9 @@ func awsAwsjson11_deserializeOpErrorListSpaces(response *smithyhttp.Response, me } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -24969,14 +25400,14 @@ func awsAwsjson11_deserializeOpErrorListSpaces(response *smithyhttp.Response, me } } -type awsAwsjson11_deserializeOpListStageDevices struct { +type awsAwsjson11_deserializeOpListPipelineParametersForExecution struct { } -func (*awsAwsjson11_deserializeOpListStageDevices) ID() string { +func (*awsAwsjson11_deserializeOpListPipelineParametersForExecution) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListStageDevices) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListPipelineParametersForExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -24990,9 +25421,9 @@ func (m *awsAwsjson11_deserializeOpListStageDevices) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListStageDevices(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListPipelineParametersForExecution(response, &metadata) } - output := &ListStageDevicesOutput{} + output := &ListPipelineParametersForExecutionOutput{} out.Result = output var buff [1024]byte @@ -25012,7 +25443,7 @@ func (m *awsAwsjson11_deserializeOpListStageDevices) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListStageDevicesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListPipelineParametersForExecutionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25026,7 +25457,7 @@ func (m *awsAwsjson11_deserializeOpListStageDevices) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListStageDevices(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListPipelineParametersForExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -25067,6 +25498,9 @@ func awsAwsjson11_deserializeOpErrorListStageDevices(response *smithyhttp.Respon } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -25077,14 +25511,14 @@ func awsAwsjson11_deserializeOpErrorListStageDevices(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpListStudioLifecycleConfigs struct { +type awsAwsjson11_deserializeOpListPipelines struct { } -func (*awsAwsjson11_deserializeOpListStudioLifecycleConfigs) ID() string { +func (*awsAwsjson11_deserializeOpListPipelines) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListStudioLifecycleConfigs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListPipelines) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -25098,9 +25532,9 @@ func (m *awsAwsjson11_deserializeOpListStudioLifecycleConfigs) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListStudioLifecycleConfigs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListPipelines(response, &metadata) } - output := &ListStudioLifecycleConfigsOutput{} + output := &ListPipelinesOutput{} out.Result = output var buff [1024]byte @@ -25120,7 +25554,7 @@ func (m *awsAwsjson11_deserializeOpListStudioLifecycleConfigs) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListStudioLifecycleConfigsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListPipelinesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25134,7 +25568,7 @@ func (m *awsAwsjson11_deserializeOpListStudioLifecycleConfigs) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListStudioLifecycleConfigs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListPipelines(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -25175,9 +25609,6 @@ func awsAwsjson11_deserializeOpErrorListStudioLifecycleConfigs(response *smithyh } switch { - case strings.EqualFold("ResourceInUse", errorCode): - return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -25188,14 +25619,14 @@ func awsAwsjson11_deserializeOpErrorListStudioLifecycleConfigs(response *smithyh } } -type awsAwsjson11_deserializeOpListSubscribedWorkteams struct { +type awsAwsjson11_deserializeOpListProcessingJobs struct { } -func (*awsAwsjson11_deserializeOpListSubscribedWorkteams) ID() string { +func (*awsAwsjson11_deserializeOpListProcessingJobs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListSubscribedWorkteams) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListProcessingJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -25209,9 +25640,9 @@ func (m *awsAwsjson11_deserializeOpListSubscribedWorkteams) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListSubscribedWorkteams(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListProcessingJobs(response, &metadata) } - output := &ListSubscribedWorkteamsOutput{} + output := &ListProcessingJobsOutput{} out.Result = output var buff [1024]byte @@ -25231,7 +25662,7 @@ func (m *awsAwsjson11_deserializeOpListSubscribedWorkteams) HandleDeserialize(ct return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListSubscribedWorkteamsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListProcessingJobsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25245,7 +25676,7 @@ func (m *awsAwsjson11_deserializeOpListSubscribedWorkteams) HandleDeserialize(ct return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListSubscribedWorkteams(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListProcessingJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -25296,14 +25727,14 @@ func awsAwsjson11_deserializeOpErrorListSubscribedWorkteams(response *smithyhttp } } -type awsAwsjson11_deserializeOpListTags struct { +type awsAwsjson11_deserializeOpListProjects struct { } -func (*awsAwsjson11_deserializeOpListTags) ID() string { +func (*awsAwsjson11_deserializeOpListProjects) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListTags) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListProjects) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -25317,9 +25748,9 @@ func (m *awsAwsjson11_deserializeOpListTags) HandleDeserialize(ctx context.Conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListTags(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListProjects(response, &metadata) } - output := &ListTagsOutput{} + output := &ListProjectsOutput{} out.Result = output var buff [1024]byte @@ -25339,7 +25770,7 @@ func (m *awsAwsjson11_deserializeOpListTags) HandleDeserialize(ctx context.Conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListTagsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListProjectsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25353,7 +25784,7 @@ func (m *awsAwsjson11_deserializeOpListTags) HandleDeserialize(ctx context.Conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListTags(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_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)} @@ -25404,14 +25835,14 @@ func awsAwsjson11_deserializeOpErrorListTags(response *smithyhttp.Response, meta } } -type awsAwsjson11_deserializeOpListTrainingJobs struct { +type awsAwsjson11_deserializeOpListResourceCatalogs struct { } -func (*awsAwsjson11_deserializeOpListTrainingJobs) ID() string { +func (*awsAwsjson11_deserializeOpListResourceCatalogs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListTrainingJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListResourceCatalogs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -25425,9 +25856,9 @@ func (m *awsAwsjson11_deserializeOpListTrainingJobs) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListTrainingJobs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListResourceCatalogs(response, &metadata) } - output := &ListTrainingJobsOutput{} + output := &ListResourceCatalogsOutput{} out.Result = output var buff [1024]byte @@ -25447,7 +25878,7 @@ func (m *awsAwsjson11_deserializeOpListTrainingJobs) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListTrainingJobsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListResourceCatalogsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25461,7 +25892,7 @@ func (m *awsAwsjson11_deserializeOpListTrainingJobs) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListTrainingJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListResourceCatalogs(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -25512,14 +25943,14 @@ func awsAwsjson11_deserializeOpErrorListTrainingJobs(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpListTrainingJobsForHyperParameterTuningJob struct { +type awsAwsjson11_deserializeOpListSpaces struct { } -func (*awsAwsjson11_deserializeOpListTrainingJobsForHyperParameterTuningJob) ID() string { +func (*awsAwsjson11_deserializeOpListSpaces) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListTrainingJobsForHyperParameterTuningJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListSpaces) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -25533,9 +25964,9 @@ func (m *awsAwsjson11_deserializeOpListTrainingJobsForHyperParameterTuningJob) H } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListTrainingJobsForHyperParameterTuningJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListSpaces(response, &metadata) } - output := &ListTrainingJobsForHyperParameterTuningJobOutput{} + output := &ListSpacesOutput{} out.Result = output var buff [1024]byte @@ -25555,7 +25986,7 @@ func (m *awsAwsjson11_deserializeOpListTrainingJobsForHyperParameterTuningJob) H return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListTrainingJobsForHyperParameterTuningJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListSpacesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25569,7 +26000,7 @@ func (m *awsAwsjson11_deserializeOpListTrainingJobsForHyperParameterTuningJob) H return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListTrainingJobsForHyperParameterTuningJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListSpaces(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -25610,9 +26041,6 @@ func awsAwsjson11_deserializeOpErrorListTrainingJobsForHyperParameterTuningJob(r } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -25623,14 +26051,14 @@ func awsAwsjson11_deserializeOpErrorListTrainingJobsForHyperParameterTuningJob(r } } -type awsAwsjson11_deserializeOpListTransformJobs struct { +type awsAwsjson11_deserializeOpListStageDevices struct { } -func (*awsAwsjson11_deserializeOpListTransformJobs) ID() string { +func (*awsAwsjson11_deserializeOpListStageDevices) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListTransformJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListStageDevices) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -25644,9 +26072,9 @@ func (m *awsAwsjson11_deserializeOpListTransformJobs) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListTransformJobs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListStageDevices(response, &metadata) } - output := &ListTransformJobsOutput{} + output := &ListStageDevicesOutput{} out.Result = output var buff [1024]byte @@ -25666,7 +26094,7 @@ func (m *awsAwsjson11_deserializeOpListTransformJobs) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListTransformJobsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListStageDevicesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25680,7 +26108,7 @@ func (m *awsAwsjson11_deserializeOpListTransformJobs) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListTransformJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListStageDevices(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -25731,14 +26159,14 @@ func awsAwsjson11_deserializeOpErrorListTransformJobs(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpListTrialComponents struct { +type awsAwsjson11_deserializeOpListStudioLifecycleConfigs struct { } -func (*awsAwsjson11_deserializeOpListTrialComponents) ID() string { +func (*awsAwsjson11_deserializeOpListStudioLifecycleConfigs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListTrialComponents) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListStudioLifecycleConfigs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -25752,9 +26180,9 @@ func (m *awsAwsjson11_deserializeOpListTrialComponents) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListTrialComponents(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListStudioLifecycleConfigs(response, &metadata) } - output := &ListTrialComponentsOutput{} + output := &ListStudioLifecycleConfigsOutput{} out.Result = output var buff [1024]byte @@ -25774,7 +26202,7 @@ func (m *awsAwsjson11_deserializeOpListTrialComponents) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListTrialComponentsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListStudioLifecycleConfigsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25788,7 +26216,7 @@ func (m *awsAwsjson11_deserializeOpListTrialComponents) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListTrialComponents(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListStudioLifecycleConfigs(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -25829,8 +26257,8 @@ func awsAwsjson11_deserializeOpErrorListTrialComponents(response *smithyhttp.Res } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + case strings.EqualFold("ResourceInUse", errorCode): + return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -25842,14 +26270,14 @@ func awsAwsjson11_deserializeOpErrorListTrialComponents(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpListTrials struct { +type awsAwsjson11_deserializeOpListSubscribedWorkteams struct { } -func (*awsAwsjson11_deserializeOpListTrials) ID() string { +func (*awsAwsjson11_deserializeOpListSubscribedWorkteams) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListTrials) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListSubscribedWorkteams) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -25863,9 +26291,9 @@ func (m *awsAwsjson11_deserializeOpListTrials) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListTrials(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListSubscribedWorkteams(response, &metadata) } - output := &ListTrialsOutput{} + output := &ListSubscribedWorkteamsOutput{} out.Result = output var buff [1024]byte @@ -25885,7 +26313,7 @@ func (m *awsAwsjson11_deserializeOpListTrials) HandleDeserialize(ctx context.Con return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListTrialsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListSubscribedWorkteamsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25899,7 +26327,7 @@ func (m *awsAwsjson11_deserializeOpListTrials) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListTrials(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListSubscribedWorkteams(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -25940,9 +26368,6 @@ func awsAwsjson11_deserializeOpErrorListTrials(response *smithyhttp.Response, me } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -25953,14 +26378,14 @@ func awsAwsjson11_deserializeOpErrorListTrials(response *smithyhttp.Response, me } } -type awsAwsjson11_deserializeOpListUserProfiles struct { +type awsAwsjson11_deserializeOpListTags struct { } -func (*awsAwsjson11_deserializeOpListUserProfiles) ID() string { +func (*awsAwsjson11_deserializeOpListTags) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListUserProfiles) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListTags) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -25974,9 +26399,9 @@ func (m *awsAwsjson11_deserializeOpListUserProfiles) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListUserProfiles(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListTags(response, &metadata) } - output := &ListUserProfilesOutput{} + output := &ListTagsOutput{} out.Result = output var buff [1024]byte @@ -25996,7 +26421,7 @@ func (m *awsAwsjson11_deserializeOpListUserProfiles) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListUserProfilesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListTagsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26010,7 +26435,7 @@ func (m *awsAwsjson11_deserializeOpListUserProfiles) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListUserProfiles(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListTags(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -26061,14 +26486,14 @@ func awsAwsjson11_deserializeOpErrorListUserProfiles(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpListWorkforces struct { +type awsAwsjson11_deserializeOpListTrainingJobs struct { } -func (*awsAwsjson11_deserializeOpListWorkforces) ID() string { +func (*awsAwsjson11_deserializeOpListTrainingJobs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListWorkforces) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListTrainingJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -26082,9 +26507,9 @@ func (m *awsAwsjson11_deserializeOpListWorkforces) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListWorkforces(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListTrainingJobs(response, &metadata) } - output := &ListWorkforcesOutput{} + output := &ListTrainingJobsOutput{} out.Result = output var buff [1024]byte @@ -26104,7 +26529,7 @@ func (m *awsAwsjson11_deserializeOpListWorkforces) HandleDeserialize(ctx context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListWorkforcesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListTrainingJobsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26118,7 +26543,7 @@ func (m *awsAwsjson11_deserializeOpListWorkforces) HandleDeserialize(ctx context return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListWorkforces(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListTrainingJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -26169,14 +26594,14 @@ func awsAwsjson11_deserializeOpErrorListWorkforces(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpListWorkteams struct { +type awsAwsjson11_deserializeOpListTrainingJobsForHyperParameterTuningJob struct { } -func (*awsAwsjson11_deserializeOpListWorkteams) ID() string { +func (*awsAwsjson11_deserializeOpListTrainingJobsForHyperParameterTuningJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListWorkteams) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListTrainingJobsForHyperParameterTuningJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -26190,9 +26615,9 @@ func (m *awsAwsjson11_deserializeOpListWorkteams) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListWorkteams(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListTrainingJobsForHyperParameterTuningJob(response, &metadata) } - output := &ListWorkteamsOutput{} + output := &ListTrainingJobsForHyperParameterTuningJobOutput{} out.Result = output var buff [1024]byte @@ -26212,7 +26637,7 @@ func (m *awsAwsjson11_deserializeOpListWorkteams) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListWorkteamsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListTrainingJobsForHyperParameterTuningJobOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26226,7 +26651,7 @@ func (m *awsAwsjson11_deserializeOpListWorkteams) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListWorkteams(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListTrainingJobsForHyperParameterTuningJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -26267,6 +26692,9 @@ func awsAwsjson11_deserializeOpErrorListWorkteams(response *smithyhttp.Response, } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -26277,14 +26705,14 @@ func awsAwsjson11_deserializeOpErrorListWorkteams(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpPutModelPackageGroupPolicy struct { +type awsAwsjson11_deserializeOpListTransformJobs struct { } -func (*awsAwsjson11_deserializeOpPutModelPackageGroupPolicy) ID() string { +func (*awsAwsjson11_deserializeOpListTransformJobs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpPutModelPackageGroupPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListTransformJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -26298,9 +26726,9 @@ func (m *awsAwsjson11_deserializeOpPutModelPackageGroupPolicy) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorPutModelPackageGroupPolicy(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListTransformJobs(response, &metadata) } - output := &PutModelPackageGroupPolicyOutput{} + output := &ListTransformJobsOutput{} out.Result = output var buff [1024]byte @@ -26320,7 +26748,7 @@ func (m *awsAwsjson11_deserializeOpPutModelPackageGroupPolicy) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentPutModelPackageGroupPolicyOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListTransformJobsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26334,7 +26762,7 @@ func (m *awsAwsjson11_deserializeOpPutModelPackageGroupPolicy) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorPutModelPackageGroupPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListTransformJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -26385,14 +26813,14 @@ func awsAwsjson11_deserializeOpErrorPutModelPackageGroupPolicy(response *smithyh } } -type awsAwsjson11_deserializeOpQueryLineage struct { +type awsAwsjson11_deserializeOpListTrialComponents struct { } -func (*awsAwsjson11_deserializeOpQueryLineage) ID() string { +func (*awsAwsjson11_deserializeOpListTrialComponents) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpQueryLineage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListTrialComponents) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -26406,9 +26834,9 @@ func (m *awsAwsjson11_deserializeOpQueryLineage) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorQueryLineage(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListTrialComponents(response, &metadata) } - output := &QueryLineageOutput{} + output := &ListTrialComponentsOutput{} out.Result = output var buff [1024]byte @@ -26428,7 +26856,7 @@ func (m *awsAwsjson11_deserializeOpQueryLineage) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentQueryLineageOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListTrialComponentsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26442,7 +26870,7 @@ func (m *awsAwsjson11_deserializeOpQueryLineage) HandleDeserialize(ctx context.C return out, metadata, err } -func awsAwsjson11_deserializeOpErrorQueryLineage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListTrialComponents(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -26496,14 +26924,14 @@ func awsAwsjson11_deserializeOpErrorQueryLineage(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpRegisterDevices struct { +type awsAwsjson11_deserializeOpListTrials struct { } -func (*awsAwsjson11_deserializeOpRegisterDevices) ID() string { +func (*awsAwsjson11_deserializeOpListTrials) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpRegisterDevices) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListTrials) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -26517,21 +26945,43 @@ func (m *awsAwsjson11_deserializeOpRegisterDevices) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorRegisterDevices(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListTrials(response, &metadata) } - output := &RegisterDevicesOutput{} + output := &ListTrialsOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentListTrialsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorRegisterDevices(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListTrials(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -26572,8 +27022,8 @@ func awsAwsjson11_deserializeOpErrorRegisterDevices(response *smithyhttp.Respons } switch { - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -26585,14 +27035,14 @@ func awsAwsjson11_deserializeOpErrorRegisterDevices(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpRenderUiTemplate struct { +type awsAwsjson11_deserializeOpListUserProfiles struct { } -func (*awsAwsjson11_deserializeOpRenderUiTemplate) ID() string { +func (*awsAwsjson11_deserializeOpListUserProfiles) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpRenderUiTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListUserProfiles) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -26606,9 +27056,9 @@ func (m *awsAwsjson11_deserializeOpRenderUiTemplate) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorRenderUiTemplate(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListUserProfiles(response, &metadata) } - output := &RenderUiTemplateOutput{} + output := &ListUserProfilesOutput{} out.Result = output var buff [1024]byte @@ -26628,7 +27078,7 @@ func (m *awsAwsjson11_deserializeOpRenderUiTemplate) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentRenderUiTemplateOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListUserProfilesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26642,7 +27092,7 @@ func (m *awsAwsjson11_deserializeOpRenderUiTemplate) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorRenderUiTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListUserProfiles(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -26683,9 +27133,6 @@ func awsAwsjson11_deserializeOpErrorRenderUiTemplate(response *smithyhttp.Respon } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -26696,14 +27143,14 @@ func awsAwsjson11_deserializeOpErrorRenderUiTemplate(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpRetryPipelineExecution struct { +type awsAwsjson11_deserializeOpListWorkforces struct { } -func (*awsAwsjson11_deserializeOpRetryPipelineExecution) ID() string { +func (*awsAwsjson11_deserializeOpListWorkforces) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpRetryPipelineExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListWorkforces) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -26717,9 +27164,9 @@ func (m *awsAwsjson11_deserializeOpRetryPipelineExecution) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorRetryPipelineExecution(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListWorkforces(response, &metadata) } - output := &RetryPipelineExecutionOutput{} + output := &ListWorkforcesOutput{} out.Result = output var buff [1024]byte @@ -26739,7 +27186,7 @@ func (m *awsAwsjson11_deserializeOpRetryPipelineExecution) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentRetryPipelineExecutionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListWorkforcesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26753,7 +27200,7 @@ func (m *awsAwsjson11_deserializeOpRetryPipelineExecution) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorRetryPipelineExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListWorkforces(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -26794,15 +27241,6 @@ func awsAwsjson11_deserializeOpErrorRetryPipelineExecution(response *smithyhttp. } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) - - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -26813,14 +27251,14 @@ func awsAwsjson11_deserializeOpErrorRetryPipelineExecution(response *smithyhttp. } } -type awsAwsjson11_deserializeOpSearch struct { +type awsAwsjson11_deserializeOpListWorkteams struct { } -func (*awsAwsjson11_deserializeOpSearch) ID() string { +func (*awsAwsjson11_deserializeOpListWorkteams) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpSearch) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListWorkteams) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -26834,9 +27272,9 @@ func (m *awsAwsjson11_deserializeOpSearch) HandleDeserialize(ctx context.Context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorSearch(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListWorkteams(response, &metadata) } - output := &SearchOutput{} + output := &ListWorkteamsOutput{} out.Result = output var buff [1024]byte @@ -26856,7 +27294,7 @@ func (m *awsAwsjson11_deserializeOpSearch) HandleDeserialize(ctx context.Context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentSearchOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListWorkteamsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26870,7 +27308,7 @@ func (m *awsAwsjson11_deserializeOpSearch) HandleDeserialize(ctx context.Context return out, metadata, err } -func awsAwsjson11_deserializeOpErrorSearch(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListWorkteams(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -26921,14 +27359,14 @@ func awsAwsjson11_deserializeOpErrorSearch(response *smithyhttp.Response, metada } } -type awsAwsjson11_deserializeOpSendPipelineExecutionStepFailure struct { +type awsAwsjson11_deserializeOpPutModelPackageGroupPolicy struct { } -func (*awsAwsjson11_deserializeOpSendPipelineExecutionStepFailure) ID() string { +func (*awsAwsjson11_deserializeOpPutModelPackageGroupPolicy) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpSendPipelineExecutionStepFailure) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpPutModelPackageGroupPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -26942,9 +27380,9 @@ func (m *awsAwsjson11_deserializeOpSendPipelineExecutionStepFailure) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepFailure(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorPutModelPackageGroupPolicy(response, &metadata) } - output := &SendPipelineExecutionStepFailureOutput{} + output := &PutModelPackageGroupPolicyOutput{} out.Result = output var buff [1024]byte @@ -26964,7 +27402,7 @@ func (m *awsAwsjson11_deserializeOpSendPipelineExecutionStepFailure) HandleDeser return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentSendPipelineExecutionStepFailureOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentPutModelPackageGroupPolicyOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26978,7 +27416,7 @@ func (m *awsAwsjson11_deserializeOpSendPipelineExecutionStepFailure) HandleDeser return out, metadata, err } -func awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepFailure(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorPutModelPackageGroupPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -27019,12 +27457,6 @@ func awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepFailure(response *s } switch { - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) - - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -27035,14 +27467,14 @@ func awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepFailure(response *s } } -type awsAwsjson11_deserializeOpSendPipelineExecutionStepSuccess struct { +type awsAwsjson11_deserializeOpQueryLineage struct { } -func (*awsAwsjson11_deserializeOpSendPipelineExecutionStepSuccess) ID() string { +func (*awsAwsjson11_deserializeOpQueryLineage) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpSendPipelineExecutionStepSuccess) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpQueryLineage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -27056,9 +27488,9 @@ func (m *awsAwsjson11_deserializeOpSendPipelineExecutionStepSuccess) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepSuccess(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorQueryLineage(response, &metadata) } - output := &SendPipelineExecutionStepSuccessOutput{} + output := &QueryLineageOutput{} out.Result = output var buff [1024]byte @@ -27078,7 +27510,7 @@ func (m *awsAwsjson11_deserializeOpSendPipelineExecutionStepSuccess) HandleDeser return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentSendPipelineExecutionStepSuccessOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentQueryLineageOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -27092,7 +27524,7 @@ func (m *awsAwsjson11_deserializeOpSendPipelineExecutionStepSuccess) HandleDeser return out, metadata, err } -func awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepSuccess(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorQueryLineage(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -27133,9 +27565,6 @@ func awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepSuccess(response *s } switch { - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) - case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -27149,14 +27578,14 @@ func awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepSuccess(response *s } } -type awsAwsjson11_deserializeOpStartEdgeDeploymentStage struct { +type awsAwsjson11_deserializeOpRegisterDevices struct { } -func (*awsAwsjson11_deserializeOpStartEdgeDeploymentStage) ID() string { +func (*awsAwsjson11_deserializeOpRegisterDevices) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStartEdgeDeploymentStage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpRegisterDevices) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -27170,9 +27599,9 @@ func (m *awsAwsjson11_deserializeOpStartEdgeDeploymentStage) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStartEdgeDeploymentStage(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorRegisterDevices(response, &metadata) } - output := &StartEdgeDeploymentStageOutput{} + output := &RegisterDevicesOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -27184,7 +27613,7 @@ func (m *awsAwsjson11_deserializeOpStartEdgeDeploymentStage) HandleDeserialize(c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStartEdgeDeploymentStage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorRegisterDevices(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -27225,6 +27654,9 @@ func awsAwsjson11_deserializeOpErrorStartEdgeDeploymentStage(response *smithyhtt } switch { + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -27235,14 +27667,14 @@ func awsAwsjson11_deserializeOpErrorStartEdgeDeploymentStage(response *smithyhtt } } -type awsAwsjson11_deserializeOpStartInferenceExperiment struct { +type awsAwsjson11_deserializeOpRenderUiTemplate struct { } -func (*awsAwsjson11_deserializeOpStartInferenceExperiment) ID() string { +func (*awsAwsjson11_deserializeOpRenderUiTemplate) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStartInferenceExperiment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpRenderUiTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -27256,9 +27688,9 @@ func (m *awsAwsjson11_deserializeOpStartInferenceExperiment) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStartInferenceExperiment(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorRenderUiTemplate(response, &metadata) } - output := &StartInferenceExperimentOutput{} + output := &RenderUiTemplateOutput{} out.Result = output var buff [1024]byte @@ -27278,7 +27710,7 @@ func (m *awsAwsjson11_deserializeOpStartInferenceExperiment) HandleDeserialize(c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentStartInferenceExperimentOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentRenderUiTemplateOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -27292,7 +27724,118 @@ func (m *awsAwsjson11_deserializeOpStartInferenceExperiment) HandleDeserialize(c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStartInferenceExperiment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorRenderUiTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + 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("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpRetryPipelineExecution struct { +} + +func (*awsAwsjson11_deserializeOpRetryPipelineExecution) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpRetryPipelineExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorRetryPipelineExecution(response, &metadata) + } + output := &RetryPipelineExecutionOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentRetryPipelineExecutionOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorRetryPipelineExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -27336,6 +27879,9 @@ func awsAwsjson11_deserializeOpErrorStartInferenceExperiment(response *smithyhtt case strings.EqualFold("ConflictException", errorCode): return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -27349,14 +27895,14 @@ func awsAwsjson11_deserializeOpErrorStartInferenceExperiment(response *smithyhtt } } -type awsAwsjson11_deserializeOpStartMonitoringSchedule struct { +type awsAwsjson11_deserializeOpSearch struct { } -func (*awsAwsjson11_deserializeOpStartMonitoringSchedule) ID() string { +func (*awsAwsjson11_deserializeOpSearch) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStartMonitoringSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpSearch) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -27370,21 +27916,43 @@ func (m *awsAwsjson11_deserializeOpStartMonitoringSchedule) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStartMonitoringSchedule(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorSearch(response, &metadata) } - output := &StartMonitoringScheduleOutput{} + output := &SearchOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentSearchOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStartMonitoringSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorSearch(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -27425,9 +27993,6 @@ func awsAwsjson11_deserializeOpErrorStartMonitoringSchedule(response *smithyhttp } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -27438,14 +28003,14 @@ func awsAwsjson11_deserializeOpErrorStartMonitoringSchedule(response *smithyhttp } } -type awsAwsjson11_deserializeOpStartNotebookInstance struct { +type awsAwsjson11_deserializeOpSendPipelineExecutionStepFailure struct { } -func (*awsAwsjson11_deserializeOpStartNotebookInstance) ID() string { +func (*awsAwsjson11_deserializeOpSendPipelineExecutionStepFailure) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStartNotebookInstance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpSendPipelineExecutionStepFailure) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -27459,21 +28024,43 @@ func (m *awsAwsjson11_deserializeOpStartNotebookInstance) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStartNotebookInstance(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepFailure(response, &metadata) } - output := &StartNotebookInstanceOutput{} + output := &SendPipelineExecutionStepFailureOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentSendPipelineExecutionStepFailureOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStartNotebookInstance(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepFailure(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -27517,6 +28104,9 @@ func awsAwsjson11_deserializeOpErrorStartNotebookInstance(response *smithyhttp.R case strings.EqualFold("ResourceLimitExceeded", errorCode): return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -27527,14 +28117,14 @@ func awsAwsjson11_deserializeOpErrorStartNotebookInstance(response *smithyhttp.R } } -type awsAwsjson11_deserializeOpStartPipelineExecution struct { +type awsAwsjson11_deserializeOpSendPipelineExecutionStepSuccess struct { } -func (*awsAwsjson11_deserializeOpStartPipelineExecution) ID() string { +func (*awsAwsjson11_deserializeOpSendPipelineExecutionStepSuccess) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStartPipelineExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpSendPipelineExecutionStepSuccess) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -27548,9 +28138,9 @@ func (m *awsAwsjson11_deserializeOpStartPipelineExecution) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStartPipelineExecution(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepSuccess(response, &metadata) } - output := &StartPipelineExecutionOutput{} + output := &SendPipelineExecutionStepSuccessOutput{} out.Result = output var buff [1024]byte @@ -27570,7 +28160,7 @@ func (m *awsAwsjson11_deserializeOpStartPipelineExecution) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentStartPipelineExecutionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentSendPipelineExecutionStepSuccessOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -27584,7 +28174,7 @@ func (m *awsAwsjson11_deserializeOpStartPipelineExecution) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStartPipelineExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepSuccess(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -27641,14 +28231,14 @@ func awsAwsjson11_deserializeOpErrorStartPipelineExecution(response *smithyhttp. } } -type awsAwsjson11_deserializeOpStopAutoMLJob struct { +type awsAwsjson11_deserializeOpStartEdgeDeploymentStage struct { } -func (*awsAwsjson11_deserializeOpStopAutoMLJob) ID() string { +func (*awsAwsjson11_deserializeOpStartEdgeDeploymentStage) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopAutoMLJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStartEdgeDeploymentStage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -27662,9 +28252,9 @@ func (m *awsAwsjson11_deserializeOpStopAutoMLJob) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopAutoMLJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStartEdgeDeploymentStage(response, &metadata) } - output := &StopAutoMLJobOutput{} + output := &StartEdgeDeploymentStageOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -27676,7 +28266,7 @@ func (m *awsAwsjson11_deserializeOpStopAutoMLJob) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopAutoMLJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStartEdgeDeploymentStage(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -27717,9 +28307,6 @@ func awsAwsjson11_deserializeOpErrorStopAutoMLJob(response *smithyhttp.Response, } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -27730,14 +28317,14 @@ func awsAwsjson11_deserializeOpErrorStopAutoMLJob(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpStopCompilationJob struct { +type awsAwsjson11_deserializeOpStartInferenceExperiment struct { } -func (*awsAwsjson11_deserializeOpStopCompilationJob) ID() string { +func (*awsAwsjson11_deserializeOpStartInferenceExperiment) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopCompilationJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStartInferenceExperiment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -27751,21 +28338,43 @@ func (m *awsAwsjson11_deserializeOpStopCompilationJob) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopCompilationJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStartInferenceExperiment(response, &metadata) } - output := &StopCompilationJobOutput{} + output := &StartInferenceExperimentOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentStartInferenceExperimentOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopCompilationJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStartInferenceExperiment(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -27806,6 +28415,9 @@ func awsAwsjson11_deserializeOpErrorStopCompilationJob(response *smithyhttp.Resp } switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -27819,14 +28431,14 @@ func awsAwsjson11_deserializeOpErrorStopCompilationJob(response *smithyhttp.Resp } } -type awsAwsjson11_deserializeOpStopEdgeDeploymentStage struct { +type awsAwsjson11_deserializeOpStartMonitoringSchedule struct { } -func (*awsAwsjson11_deserializeOpStopEdgeDeploymentStage) ID() string { +func (*awsAwsjson11_deserializeOpStartMonitoringSchedule) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopEdgeDeploymentStage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStartMonitoringSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -27840,9 +28452,9 @@ func (m *awsAwsjson11_deserializeOpStopEdgeDeploymentStage) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopEdgeDeploymentStage(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStartMonitoringSchedule(response, &metadata) } - output := &StopEdgeDeploymentStageOutput{} + output := &StartMonitoringScheduleOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -27854,7 +28466,7 @@ func (m *awsAwsjson11_deserializeOpStopEdgeDeploymentStage) HandleDeserialize(ct return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopEdgeDeploymentStage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStartMonitoringSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -27895,6 +28507,9 @@ func awsAwsjson11_deserializeOpErrorStopEdgeDeploymentStage(response *smithyhttp } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -27905,14 +28520,14 @@ func awsAwsjson11_deserializeOpErrorStopEdgeDeploymentStage(response *smithyhttp } } -type awsAwsjson11_deserializeOpStopEdgePackagingJob struct { +type awsAwsjson11_deserializeOpStartNotebookInstance struct { } -func (*awsAwsjson11_deserializeOpStopEdgePackagingJob) ID() string { +func (*awsAwsjson11_deserializeOpStartNotebookInstance) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopEdgePackagingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStartNotebookInstance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -27926,9 +28541,9 @@ func (m *awsAwsjson11_deserializeOpStopEdgePackagingJob) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopEdgePackagingJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStartNotebookInstance(response, &metadata) } - output := &StopEdgePackagingJobOutput{} + output := &StartNotebookInstanceOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -27940,7 +28555,7 @@ func (m *awsAwsjson11_deserializeOpStopEdgePackagingJob) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopEdgePackagingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStartNotebookInstance(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -27981,6 +28596,9 @@ func awsAwsjson11_deserializeOpErrorStopEdgePackagingJob(response *smithyhttp.Re } switch { + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -27991,14 +28609,14 @@ func awsAwsjson11_deserializeOpErrorStopEdgePackagingJob(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpStopHyperParameterTuningJob struct { +type awsAwsjson11_deserializeOpStartPipelineExecution struct { } -func (*awsAwsjson11_deserializeOpStopHyperParameterTuningJob) ID() string { +func (*awsAwsjson11_deserializeOpStartPipelineExecution) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopHyperParameterTuningJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStartPipelineExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28012,21 +28630,43 @@ func (m *awsAwsjson11_deserializeOpStopHyperParameterTuningJob) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopHyperParameterTuningJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStartPipelineExecution(response, &metadata) } - output := &StopHyperParameterTuningJobOutput{} + output := &StartPipelineExecutionOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentStartPipelineExecutionOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopHyperParameterTuningJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStartPipelineExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28067,6 +28707,9 @@ func awsAwsjson11_deserializeOpErrorStopHyperParameterTuningJob(response *smithy } switch { + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -28080,14 +28723,14 @@ func awsAwsjson11_deserializeOpErrorStopHyperParameterTuningJob(response *smithy } } -type awsAwsjson11_deserializeOpStopInferenceExperiment struct { +type awsAwsjson11_deserializeOpStopAutoMLJob struct { } -func (*awsAwsjson11_deserializeOpStopInferenceExperiment) ID() string { +func (*awsAwsjson11_deserializeOpStopAutoMLJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopInferenceExperiment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopAutoMLJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28101,43 +28744,21 @@ func (m *awsAwsjson11_deserializeOpStopInferenceExperiment) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopInferenceExperiment(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopAutoMLJob(response, &metadata) } - output := &StopInferenceExperimentOutput{} + output := &StopAutoMLJobOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentStopInferenceExperimentOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopInferenceExperiment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopAutoMLJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28178,9 +28799,6 @@ func awsAwsjson11_deserializeOpErrorStopInferenceExperiment(response *smithyhttp } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -28194,14 +28812,14 @@ func awsAwsjson11_deserializeOpErrorStopInferenceExperiment(response *smithyhttp } } -type awsAwsjson11_deserializeOpStopInferenceRecommendationsJob struct { +type awsAwsjson11_deserializeOpStopCompilationJob struct { } -func (*awsAwsjson11_deserializeOpStopInferenceRecommendationsJob) ID() string { +func (*awsAwsjson11_deserializeOpStopCompilationJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopInferenceRecommendationsJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopCompilationJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28215,9 +28833,9 @@ func (m *awsAwsjson11_deserializeOpStopInferenceRecommendationsJob) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopInferenceRecommendationsJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopCompilationJob(response, &metadata) } - output := &StopInferenceRecommendationsJobOutput{} + output := &StopCompilationJobOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -28229,7 +28847,7 @@ func (m *awsAwsjson11_deserializeOpStopInferenceRecommendationsJob) HandleDeseri return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopInferenceRecommendationsJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopCompilationJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28283,14 +28901,14 @@ func awsAwsjson11_deserializeOpErrorStopInferenceRecommendationsJob(response *sm } } -type awsAwsjson11_deserializeOpStopLabelingJob struct { +type awsAwsjson11_deserializeOpStopEdgeDeploymentStage struct { } -func (*awsAwsjson11_deserializeOpStopLabelingJob) ID() string { +func (*awsAwsjson11_deserializeOpStopEdgeDeploymentStage) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopLabelingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopEdgeDeploymentStage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28304,9 +28922,9 @@ func (m *awsAwsjson11_deserializeOpStopLabelingJob) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopLabelingJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopEdgeDeploymentStage(response, &metadata) } - output := &StopLabelingJobOutput{} + output := &StopEdgeDeploymentStageOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -28318,7 +28936,7 @@ func (m *awsAwsjson11_deserializeOpStopLabelingJob) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopLabelingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopEdgeDeploymentStage(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28359,9 +28977,6 @@ func awsAwsjson11_deserializeOpErrorStopLabelingJob(response *smithyhttp.Respons } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -28372,14 +28987,14 @@ func awsAwsjson11_deserializeOpErrorStopLabelingJob(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpStopMonitoringSchedule struct { +type awsAwsjson11_deserializeOpStopEdgePackagingJob struct { } -func (*awsAwsjson11_deserializeOpStopMonitoringSchedule) ID() string { +func (*awsAwsjson11_deserializeOpStopEdgePackagingJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopMonitoringSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopEdgePackagingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28393,9 +29008,9 @@ func (m *awsAwsjson11_deserializeOpStopMonitoringSchedule) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopMonitoringSchedule(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopEdgePackagingJob(response, &metadata) } - output := &StopMonitoringScheduleOutput{} + output := &StopEdgePackagingJobOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -28407,7 +29022,7 @@ func (m *awsAwsjson11_deserializeOpStopMonitoringSchedule) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopMonitoringSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopEdgePackagingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28448,9 +29063,6 @@ func awsAwsjson11_deserializeOpErrorStopMonitoringSchedule(response *smithyhttp. } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -28461,14 +29073,14 @@ func awsAwsjson11_deserializeOpErrorStopMonitoringSchedule(response *smithyhttp. } } -type awsAwsjson11_deserializeOpStopNotebookInstance struct { +type awsAwsjson11_deserializeOpStopHyperParameterTuningJob struct { } -func (*awsAwsjson11_deserializeOpStopNotebookInstance) ID() string { +func (*awsAwsjson11_deserializeOpStopHyperParameterTuningJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopNotebookInstance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopHyperParameterTuningJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28482,9 +29094,9 @@ func (m *awsAwsjson11_deserializeOpStopNotebookInstance) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopNotebookInstance(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopHyperParameterTuningJob(response, &metadata) } - output := &StopNotebookInstanceOutput{} + output := &StopHyperParameterTuningJobOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -28496,7 +29108,7 @@ func (m *awsAwsjson11_deserializeOpStopNotebookInstance) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopNotebookInstance(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopHyperParameterTuningJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28537,6 +29149,9 @@ func awsAwsjson11_deserializeOpErrorStopNotebookInstance(response *smithyhttp.Re } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -28547,14 +29162,14 @@ func awsAwsjson11_deserializeOpErrorStopNotebookInstance(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpStopPipelineExecution struct { +type awsAwsjson11_deserializeOpStopInferenceExperiment struct { } -func (*awsAwsjson11_deserializeOpStopPipelineExecution) ID() string { +func (*awsAwsjson11_deserializeOpStopInferenceExperiment) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopPipelineExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopInferenceExperiment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28568,9 +29183,9 @@ func (m *awsAwsjson11_deserializeOpStopPipelineExecution) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopPipelineExecution(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopInferenceExperiment(response, &metadata) } - output := &StopPipelineExecutionOutput{} + output := &StopInferenceExperimentOutput{} out.Result = output var buff [1024]byte @@ -28590,7 +29205,7 @@ func (m *awsAwsjson11_deserializeOpStopPipelineExecution) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentStopPipelineExecutionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentStopInferenceExperimentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -28604,7 +29219,7 @@ func (m *awsAwsjson11_deserializeOpStopPipelineExecution) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopPipelineExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopInferenceExperiment(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28645,6 +29260,9 @@ func awsAwsjson11_deserializeOpErrorStopPipelineExecution(response *smithyhttp.R } switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -28658,14 +29276,14 @@ func awsAwsjson11_deserializeOpErrorStopPipelineExecution(response *smithyhttp.R } } -type awsAwsjson11_deserializeOpStopProcessingJob struct { +type awsAwsjson11_deserializeOpStopInferenceRecommendationsJob struct { } -func (*awsAwsjson11_deserializeOpStopProcessingJob) ID() string { +func (*awsAwsjson11_deserializeOpStopInferenceRecommendationsJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopProcessingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopInferenceRecommendationsJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28679,9 +29297,9 @@ func (m *awsAwsjson11_deserializeOpStopProcessingJob) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopProcessingJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopInferenceRecommendationsJob(response, &metadata) } - output := &StopProcessingJobOutput{} + output := &StopInferenceRecommendationsJobOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -28693,7 +29311,7 @@ func (m *awsAwsjson11_deserializeOpStopProcessingJob) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopProcessingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopInferenceRecommendationsJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28747,14 +29365,14 @@ func awsAwsjson11_deserializeOpErrorStopProcessingJob(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpStopTrainingJob struct { +type awsAwsjson11_deserializeOpStopLabelingJob struct { } -func (*awsAwsjson11_deserializeOpStopTrainingJob) ID() string { +func (*awsAwsjson11_deserializeOpStopLabelingJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopTrainingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopLabelingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28768,9 +29386,9 @@ func (m *awsAwsjson11_deserializeOpStopTrainingJob) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopTrainingJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopLabelingJob(response, &metadata) } - output := &StopTrainingJobOutput{} + output := &StopLabelingJobOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -28782,7 +29400,7 @@ func (m *awsAwsjson11_deserializeOpStopTrainingJob) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopTrainingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopLabelingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28836,14 +29454,14 @@ func awsAwsjson11_deserializeOpErrorStopTrainingJob(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpStopTransformJob struct { +type awsAwsjson11_deserializeOpStopMonitoringSchedule struct { } -func (*awsAwsjson11_deserializeOpStopTransformJob) ID() string { +func (*awsAwsjson11_deserializeOpStopMonitoringSchedule) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopTransformJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopMonitoringSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28857,9 +29475,9 @@ func (m *awsAwsjson11_deserializeOpStopTransformJob) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopTransformJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopMonitoringSchedule(response, &metadata) } - output := &StopTransformJobOutput{} + output := &StopMonitoringScheduleOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -28871,7 +29489,7 @@ func (m *awsAwsjson11_deserializeOpStopTransformJob) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopTransformJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopMonitoringSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -28925,14 +29543,14 @@ func awsAwsjson11_deserializeOpErrorStopTransformJob(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpUpdateAction struct { +type awsAwsjson11_deserializeOpStopNotebookInstance struct { } -func (*awsAwsjson11_deserializeOpUpdateAction) ID() string { +func (*awsAwsjson11_deserializeOpStopNotebookInstance) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateAction) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopNotebookInstance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -28946,43 +29564,21 @@ func (m *awsAwsjson11_deserializeOpUpdateAction) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateAction(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopNotebookInstance(response, &metadata) } - output := &UpdateActionOutput{} + output := &StopNotebookInstanceOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentUpdateActionOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateAction(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopNotebookInstance(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -29023,12 +29619,6 @@ func awsAwsjson11_deserializeOpErrorUpdateAction(response *smithyhttp.Response, } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -29039,14 +29629,14 @@ func awsAwsjson11_deserializeOpErrorUpdateAction(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpUpdateAppImageConfig struct { +type awsAwsjson11_deserializeOpStopPipelineExecution struct { } -func (*awsAwsjson11_deserializeOpUpdateAppImageConfig) ID() string { +func (*awsAwsjson11_deserializeOpStopPipelineExecution) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateAppImageConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopPipelineExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -29060,9 +29650,9 @@ func (m *awsAwsjson11_deserializeOpUpdateAppImageConfig) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateAppImageConfig(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopPipelineExecution(response, &metadata) } - output := &UpdateAppImageConfigOutput{} + output := &StopPipelineExecutionOutput{} out.Result = output var buff [1024]byte @@ -29082,7 +29672,7 @@ func (m *awsAwsjson11_deserializeOpUpdateAppImageConfig) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateAppImageConfigOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentStopPipelineExecutionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29096,7 +29686,7 @@ func (m *awsAwsjson11_deserializeOpUpdateAppImageConfig) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateAppImageConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopPipelineExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -29150,14 +29740,14 @@ func awsAwsjson11_deserializeOpErrorUpdateAppImageConfig(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpUpdateArtifact struct { +type awsAwsjson11_deserializeOpStopProcessingJob struct { } -func (*awsAwsjson11_deserializeOpUpdateArtifact) ID() string { +func (*awsAwsjson11_deserializeOpStopProcessingJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateArtifact) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopProcessingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -29171,43 +29761,21 @@ func (m *awsAwsjson11_deserializeOpUpdateArtifact) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateArtifact(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopProcessingJob(response, &metadata) } - output := &UpdateArtifactOutput{} + output := &StopProcessingJobOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentUpdateArtifactOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateArtifact(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopProcessingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -29248,9 +29816,6 @@ func awsAwsjson11_deserializeOpErrorUpdateArtifact(response *smithyhttp.Response } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -29264,14 +29829,14 @@ func awsAwsjson11_deserializeOpErrorUpdateArtifact(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpUpdateCodeRepository struct { +type awsAwsjson11_deserializeOpStopTrainingJob struct { } -func (*awsAwsjson11_deserializeOpUpdateCodeRepository) ID() string { +func (*awsAwsjson11_deserializeOpStopTrainingJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateCodeRepository) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopTrainingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -29285,43 +29850,21 @@ func (m *awsAwsjson11_deserializeOpUpdateCodeRepository) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateCodeRepository(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopTrainingJob(response, &metadata) } - output := &UpdateCodeRepositoryOutput{} + output := &StopTrainingJobOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentUpdateCodeRepositoryOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateCodeRepository(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopTrainingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -29362,6 +29905,9 @@ func awsAwsjson11_deserializeOpErrorUpdateCodeRepository(response *smithyhttp.Re } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -29372,14 +29918,14 @@ func awsAwsjson11_deserializeOpErrorUpdateCodeRepository(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpUpdateContext struct { +type awsAwsjson11_deserializeOpStopTransformJob struct { } -func (*awsAwsjson11_deserializeOpUpdateContext) ID() string { +func (*awsAwsjson11_deserializeOpStopTransformJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateContext) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopTransformJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -29393,43 +29939,21 @@ func (m *awsAwsjson11_deserializeOpUpdateContext) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateContext(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopTransformJob(response, &metadata) } - output := &UpdateContextOutput{} + output := &StopTransformJobOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentUpdateContextOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateContext(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopTransformJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -29470,9 +29994,6 @@ func awsAwsjson11_deserializeOpErrorUpdateContext(response *smithyhttp.Response, } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -29486,14 +30007,14 @@ func awsAwsjson11_deserializeOpErrorUpdateContext(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpUpdateDeviceFleet struct { +type awsAwsjson11_deserializeOpUpdateAction struct { } -func (*awsAwsjson11_deserializeOpUpdateDeviceFleet) ID() string { +func (*awsAwsjson11_deserializeOpUpdateAction) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateDeviceFleet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateAction) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -29507,110 +30028,43 @@ func (m *awsAwsjson11_deserializeOpUpdateDeviceFleet) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateDeviceFleet(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateAction(response, &metadata) } - output := &UpdateDeviceFleetOutput{} + output := &UpdateActionOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), - } - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorUpdateDeviceFleet(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - 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) + body := io.TeeReader(response.Body, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - jsonCode, message, err := restjson.GetErrorInfo(decoder) - if err != nil { + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(headerCode) == 0 && len(jsonCode) != 0 { - errorCode = restjson.SanitizeErrorCode(jsonCode) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("ResourceInUse", errorCode): - return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpUpdateDevices struct { -} - -func (*awsAwsjson11_deserializeOpUpdateDevices) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpUpdateDevices) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { return out, metadata, err } - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateDevices(response, &metadata) - } - output := &UpdateDevicesOutput{} - out.Result = output - - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + err = awsAwsjson11_deserializeOpDocumentUpdateActionOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateDevices(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateAction(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -29651,6 +30105,12 @@ func awsAwsjson11_deserializeOpErrorUpdateDevices(response *smithyhttp.Response, } switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -29661,14 +30121,14 @@ func awsAwsjson11_deserializeOpErrorUpdateDevices(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpUpdateDomain struct { +type awsAwsjson11_deserializeOpUpdateAppImageConfig struct { } -func (*awsAwsjson11_deserializeOpUpdateDomain) ID() string { +func (*awsAwsjson11_deserializeOpUpdateAppImageConfig) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateDomain) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateAppImageConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -29682,9 +30142,9 @@ func (m *awsAwsjson11_deserializeOpUpdateDomain) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateDomain(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateAppImageConfig(response, &metadata) } - output := &UpdateDomainOutput{} + output := &UpdateAppImageConfigOutput{} out.Result = output var buff [1024]byte @@ -29704,7 +30164,7 @@ func (m *awsAwsjson11_deserializeOpUpdateDomain) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateDomainOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateAppImageConfigOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29718,7 +30178,7 @@ func (m *awsAwsjson11_deserializeOpUpdateDomain) HandleDeserialize(ctx context.C return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateDomain(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateAppImageConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -29759,12 +30219,6 @@ func awsAwsjson11_deserializeOpErrorUpdateDomain(response *smithyhttp.Response, } switch { - case strings.EqualFold("ResourceInUse", errorCode): - return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) - - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) - case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -29778,14 +30232,14 @@ func awsAwsjson11_deserializeOpErrorUpdateDomain(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpUpdateEndpoint struct { +type awsAwsjson11_deserializeOpUpdateArtifact struct { } -func (*awsAwsjson11_deserializeOpUpdateEndpoint) ID() string { +func (*awsAwsjson11_deserializeOpUpdateArtifact) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateEndpoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateArtifact) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -29799,9 +30253,9 @@ func (m *awsAwsjson11_deserializeOpUpdateEndpoint) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateEndpoint(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateArtifact(response, &metadata) } - output := &UpdateEndpointOutput{} + output := &UpdateArtifactOutput{} out.Result = output var buff [1024]byte @@ -29821,7 +30275,7 @@ func (m *awsAwsjson11_deserializeOpUpdateEndpoint) HandleDeserialize(ctx context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateEndpointOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateArtifactOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29835,7 +30289,7 @@ func (m *awsAwsjson11_deserializeOpUpdateEndpoint) HandleDeserialize(ctx context return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateEndpoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateArtifact(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -29876,8 +30330,11 @@ func awsAwsjson11_deserializeOpErrorUpdateEndpoint(response *smithyhttp.Response } switch { - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -29889,14 +30346,14 @@ func awsAwsjson11_deserializeOpErrorUpdateEndpoint(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpUpdateEndpointWeightsAndCapacities struct { +type awsAwsjson11_deserializeOpUpdateCluster struct { } -func (*awsAwsjson11_deserializeOpUpdateEndpointWeightsAndCapacities) ID() string { +func (*awsAwsjson11_deserializeOpUpdateCluster) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateEndpointWeightsAndCapacities) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateCluster) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -29910,9 +30367,9 @@ func (m *awsAwsjson11_deserializeOpUpdateEndpointWeightsAndCapacities) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateEndpointWeightsAndCapacities(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateCluster(response, &metadata) } - output := &UpdateEndpointWeightsAndCapacitiesOutput{} + output := &UpdateClusterOutput{} out.Result = output var buff [1024]byte @@ -29932,7 +30389,7 @@ func (m *awsAwsjson11_deserializeOpUpdateEndpointWeightsAndCapacities) HandleDes return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateEndpointWeightsAndCapacitiesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateClusterOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29946,7 +30403,7 @@ func (m *awsAwsjson11_deserializeOpUpdateEndpointWeightsAndCapacities) HandleDes return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateEndpointWeightsAndCapacities(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateCluster(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -29987,9 +30444,15 @@ func awsAwsjson11_deserializeOpErrorUpdateEndpointWeightsAndCapacities(response } switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("ResourceLimitExceeded", errorCode): return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -30000,14 +30463,14 @@ func awsAwsjson11_deserializeOpErrorUpdateEndpointWeightsAndCapacities(response } } -type awsAwsjson11_deserializeOpUpdateExperiment struct { +type awsAwsjson11_deserializeOpUpdateCodeRepository struct { } -func (*awsAwsjson11_deserializeOpUpdateExperiment) ID() string { +func (*awsAwsjson11_deserializeOpUpdateCodeRepository) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateExperiment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateCodeRepository) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -30021,9 +30484,9 @@ func (m *awsAwsjson11_deserializeOpUpdateExperiment) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateExperiment(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateCodeRepository(response, &metadata) } - output := &UpdateExperimentOutput{} + output := &UpdateCodeRepositoryOutput{} out.Result = output var buff [1024]byte @@ -30043,7 +30506,7 @@ func (m *awsAwsjson11_deserializeOpUpdateExperiment) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateExperimentOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateCodeRepositoryOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30057,7 +30520,7 @@ func (m *awsAwsjson11_deserializeOpUpdateExperiment) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateExperiment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateCodeRepository(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -30098,12 +30561,6 @@ func awsAwsjson11_deserializeOpErrorUpdateExperiment(response *smithyhttp.Respon } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -30114,14 +30571,14 @@ func awsAwsjson11_deserializeOpErrorUpdateExperiment(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpUpdateFeatureGroup struct { +type awsAwsjson11_deserializeOpUpdateContext struct { } -func (*awsAwsjson11_deserializeOpUpdateFeatureGroup) ID() string { +func (*awsAwsjson11_deserializeOpUpdateContext) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateFeatureGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateContext) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -30135,9 +30592,9 @@ func (m *awsAwsjson11_deserializeOpUpdateFeatureGroup) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateFeatureGroup(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateContext(response, &metadata) } - output := &UpdateFeatureGroupOutput{} + output := &UpdateContextOutput{} out.Result = output var buff [1024]byte @@ -30157,7 +30614,7 @@ func (m *awsAwsjson11_deserializeOpUpdateFeatureGroup) HandleDeserialize(ctx con return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateFeatureGroupOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateContextOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30171,7 +30628,7 @@ func (m *awsAwsjson11_deserializeOpUpdateFeatureGroup) HandleDeserialize(ctx con return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateFeatureGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateContext(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -30212,6 +30669,9 @@ func awsAwsjson11_deserializeOpErrorUpdateFeatureGroup(response *smithyhttp.Resp } switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -30225,14 +30685,14 @@ func awsAwsjson11_deserializeOpErrorUpdateFeatureGroup(response *smithyhttp.Resp } } -type awsAwsjson11_deserializeOpUpdateFeatureMetadata struct { +type awsAwsjson11_deserializeOpUpdateDeviceFleet struct { } -func (*awsAwsjson11_deserializeOpUpdateFeatureMetadata) ID() string { +func (*awsAwsjson11_deserializeOpUpdateDeviceFleet) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateFeatureMetadata) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateDeviceFleet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -30246,9 +30706,9 @@ func (m *awsAwsjson11_deserializeOpUpdateFeatureMetadata) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateFeatureMetadata(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateDeviceFleet(response, &metadata) } - output := &UpdateFeatureMetadataOutput{} + output := &UpdateDeviceFleetOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -30260,7 +30720,7 @@ func (m *awsAwsjson11_deserializeOpUpdateFeatureMetadata) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateFeatureMetadata(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateDeviceFleet(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -30301,8 +30761,8 @@ func awsAwsjson11_deserializeOpErrorUpdateFeatureMetadata(response *smithyhttp.R } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + case strings.EqualFold("ResourceInUse", errorCode): + return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -30314,14 +30774,14 @@ func awsAwsjson11_deserializeOpErrorUpdateFeatureMetadata(response *smithyhttp.R } } -type awsAwsjson11_deserializeOpUpdateHub struct { +type awsAwsjson11_deserializeOpUpdateDevices struct { } -func (*awsAwsjson11_deserializeOpUpdateHub) ID() string { +func (*awsAwsjson11_deserializeOpUpdateDevices) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateHub) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateDevices) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -30335,43 +30795,21 @@ func (m *awsAwsjson11_deserializeOpUpdateHub) HandleDeserialize(ctx context.Cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateHub(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateDevices(response, &metadata) } - output := &UpdateHubOutput{} + output := &UpdateDevicesOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentUpdateHubOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateHub(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateDevices(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -30412,9 +30850,6 @@ func awsAwsjson11_deserializeOpErrorUpdateHub(response *smithyhttp.Response, met } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -30425,14 +30860,14 @@ func awsAwsjson11_deserializeOpErrorUpdateHub(response *smithyhttp.Response, met } } -type awsAwsjson11_deserializeOpUpdateImage struct { +type awsAwsjson11_deserializeOpUpdateDomain struct { } -func (*awsAwsjson11_deserializeOpUpdateImage) ID() string { +func (*awsAwsjson11_deserializeOpUpdateDomain) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateImage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateDomain) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -30446,9 +30881,9 @@ func (m *awsAwsjson11_deserializeOpUpdateImage) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateImage(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateDomain(response, &metadata) } - output := &UpdateImageOutput{} + output := &UpdateDomainOutput{} out.Result = output var buff [1024]byte @@ -30468,7 +30903,7 @@ func (m *awsAwsjson11_deserializeOpUpdateImage) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateImageOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateDomainOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30482,7 +30917,7 @@ func (m *awsAwsjson11_deserializeOpUpdateImage) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateImage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_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)} @@ -30526,6 +30961,9 @@ func awsAwsjson11_deserializeOpErrorUpdateImage(response *smithyhttp.Response, m case strings.EqualFold("ResourceInUse", errorCode): return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -30539,14 +30977,14 @@ func awsAwsjson11_deserializeOpErrorUpdateImage(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpUpdateImageVersion struct { +type awsAwsjson11_deserializeOpUpdateEndpoint struct { } -func (*awsAwsjson11_deserializeOpUpdateImageVersion) ID() string { +func (*awsAwsjson11_deserializeOpUpdateEndpoint) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateImageVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateEndpoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -30560,9 +30998,9 @@ func (m *awsAwsjson11_deserializeOpUpdateImageVersion) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateImageVersion(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateEndpoint(response, &metadata) } - output := &UpdateImageVersionOutput{} + output := &UpdateEndpointOutput{} out.Result = output var buff [1024]byte @@ -30582,7 +31020,7 @@ func (m *awsAwsjson11_deserializeOpUpdateImageVersion) HandleDeserialize(ctx con return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateImageVersionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateEndpointOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30596,7 +31034,7 @@ func (m *awsAwsjson11_deserializeOpUpdateImageVersion) HandleDeserialize(ctx con return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateImageVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateEndpoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -30637,11 +31075,8 @@ func awsAwsjson11_deserializeOpErrorUpdateImageVersion(response *smithyhttp.Resp } switch { - case strings.EqualFold("ResourceInUse", errorCode): - return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) - - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -30653,14 +31088,14 @@ func awsAwsjson11_deserializeOpErrorUpdateImageVersion(response *smithyhttp.Resp } } -type awsAwsjson11_deserializeOpUpdateInferenceExperiment struct { +type awsAwsjson11_deserializeOpUpdateEndpointWeightsAndCapacities struct { } -func (*awsAwsjson11_deserializeOpUpdateInferenceExperiment) ID() string { +func (*awsAwsjson11_deserializeOpUpdateEndpointWeightsAndCapacities) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateInferenceExperiment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateEndpointWeightsAndCapacities) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -30674,9 +31109,9 @@ func (m *awsAwsjson11_deserializeOpUpdateInferenceExperiment) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateInferenceExperiment(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateEndpointWeightsAndCapacities(response, &metadata) } - output := &UpdateInferenceExperimentOutput{} + output := &UpdateEndpointWeightsAndCapacitiesOutput{} out.Result = output var buff [1024]byte @@ -30696,7 +31131,7 @@ func (m *awsAwsjson11_deserializeOpUpdateInferenceExperiment) HandleDeserialize( return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateInferenceExperimentOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateEndpointWeightsAndCapacitiesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30710,7 +31145,7 @@ func (m *awsAwsjson11_deserializeOpUpdateInferenceExperiment) HandleDeserialize( return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateInferenceExperiment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateEndpointWeightsAndCapacities(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -30751,11 +31186,8 @@ func awsAwsjson11_deserializeOpErrorUpdateInferenceExperiment(response *smithyht } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -30767,14 +31199,14 @@ func awsAwsjson11_deserializeOpErrorUpdateInferenceExperiment(response *smithyht } } -type awsAwsjson11_deserializeOpUpdateModelCard struct { +type awsAwsjson11_deserializeOpUpdateExperiment struct { } -func (*awsAwsjson11_deserializeOpUpdateModelCard) ID() string { +func (*awsAwsjson11_deserializeOpUpdateExperiment) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateModelCard) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateExperiment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -30788,9 +31220,9 @@ func (m *awsAwsjson11_deserializeOpUpdateModelCard) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateModelCard(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateExperiment(response, &metadata) } - output := &UpdateModelCardOutput{} + output := &UpdateExperimentOutput{} out.Result = output var buff [1024]byte @@ -30810,7 +31242,7 @@ func (m *awsAwsjson11_deserializeOpUpdateModelCard) HandleDeserialize(ctx contex return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateModelCardOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateExperimentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30824,7 +31256,7 @@ func (m *awsAwsjson11_deserializeOpUpdateModelCard) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateModelCard(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateExperiment(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -30868,9 +31300,6 @@ func awsAwsjson11_deserializeOpErrorUpdateModelCard(response *smithyhttp.Respons case strings.EqualFold("ConflictException", errorCode): return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) - case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -30884,122 +31313,14 @@ func awsAwsjson11_deserializeOpErrorUpdateModelCard(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpUpdateModelPackage struct { -} - -func (*awsAwsjson11_deserializeOpUpdateModelPackage) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpUpdateModelPackage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateModelPackage(response, &metadata) - } - output := &UpdateModelPackageOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentUpdateModelPackageOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorUpdateModelPackage(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - 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 { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpUpdateMonitoringAlert struct { +type awsAwsjson11_deserializeOpUpdateFeatureGroup struct { } -func (*awsAwsjson11_deserializeOpUpdateMonitoringAlert) ID() string { +func (*awsAwsjson11_deserializeOpUpdateFeatureGroup) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateMonitoringAlert) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateFeatureGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -31013,9 +31334,9 @@ func (m *awsAwsjson11_deserializeOpUpdateMonitoringAlert) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateMonitoringAlert(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateFeatureGroup(response, &metadata) } - output := &UpdateMonitoringAlertOutput{} + output := &UpdateFeatureGroupOutput{} out.Result = output var buff [1024]byte @@ -31035,7 +31356,7 @@ func (m *awsAwsjson11_deserializeOpUpdateMonitoringAlert) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateMonitoringAlertOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateFeatureGroupOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31049,7 +31370,7 @@ func (m *awsAwsjson11_deserializeOpUpdateMonitoringAlert) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateMonitoringAlert(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateFeatureGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -31090,9 +31411,6 @@ func awsAwsjson11_deserializeOpErrorUpdateMonitoringAlert(response *smithyhttp.R } switch { - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) - case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -31106,14 +31424,14 @@ func awsAwsjson11_deserializeOpErrorUpdateMonitoringAlert(response *smithyhttp.R } } -type awsAwsjson11_deserializeOpUpdateMonitoringSchedule struct { +type awsAwsjson11_deserializeOpUpdateFeatureMetadata struct { } -func (*awsAwsjson11_deserializeOpUpdateMonitoringSchedule) ID() string { +func (*awsAwsjson11_deserializeOpUpdateFeatureMetadata) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateMonitoringSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateFeatureMetadata) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -31127,43 +31445,21 @@ func (m *awsAwsjson11_deserializeOpUpdateMonitoringSchedule) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateMonitoringSchedule(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateFeatureMetadata(response, &metadata) } - output := &UpdateMonitoringScheduleOutput{} + output := &UpdateFeatureMetadataOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsAwsjson11_deserializeOpDocumentUpdateMonitoringScheduleOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateMonitoringSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateFeatureMetadata(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -31204,9 +31500,6 @@ func awsAwsjson11_deserializeOpErrorUpdateMonitoringSchedule(response *smithyhtt } switch { - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) - case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -31220,14 +31513,14 @@ func awsAwsjson11_deserializeOpErrorUpdateMonitoringSchedule(response *smithyhtt } } -type awsAwsjson11_deserializeOpUpdateNotebookInstance struct { +type awsAwsjson11_deserializeOpUpdateHub struct { } -func (*awsAwsjson11_deserializeOpUpdateNotebookInstance) ID() string { +func (*awsAwsjson11_deserializeOpUpdateHub) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateNotebookInstance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateHub) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -31241,9 +31534,9 @@ func (m *awsAwsjson11_deserializeOpUpdateNotebookInstance) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateNotebookInstance(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateHub(response, &metadata) } - output := &UpdateNotebookInstanceOutput{} + output := &UpdateHubOutput{} out.Result = output var buff [1024]byte @@ -31263,7 +31556,7 @@ func (m *awsAwsjson11_deserializeOpUpdateNotebookInstance) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateNotebookInstanceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateHubOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31277,7 +31570,7 @@ func (m *awsAwsjson11_deserializeOpUpdateNotebookInstance) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateNotebookInstance(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateHub(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -31318,8 +31611,8 @@ func awsAwsjson11_deserializeOpErrorUpdateNotebookInstance(response *smithyhttp. } switch { - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -31331,14 +31624,14 @@ func awsAwsjson11_deserializeOpErrorUpdateNotebookInstance(response *smithyhttp. } } -type awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig struct { +type awsAwsjson11_deserializeOpUpdateImage struct { } -func (*awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig) ID() string { +func (*awsAwsjson11_deserializeOpUpdateImage) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateImage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -31352,9 +31645,9 @@ func (m *awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig) Handle } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateNotebookInstanceLifecycleConfig(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateImage(response, &metadata) } - output := &UpdateNotebookInstanceLifecycleConfigOutput{} + output := &UpdateImageOutput{} out.Result = output var buff [1024]byte @@ -31374,7 +31667,7 @@ func (m *awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig) Handle return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateNotebookInstanceLifecycleConfigOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateImageOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31388,7 +31681,7 @@ func (m *awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig) Handle return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateNotebookInstanceLifecycleConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateImage(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -31429,8 +31722,11 @@ func awsAwsjson11_deserializeOpErrorUpdateNotebookInstanceLifecycleConfig(respon } switch { - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ResourceInUse", errorCode): + return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) + + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -31442,14 +31738,14 @@ func awsAwsjson11_deserializeOpErrorUpdateNotebookInstanceLifecycleConfig(respon } } -type awsAwsjson11_deserializeOpUpdatePipeline struct { +type awsAwsjson11_deserializeOpUpdateImageVersion struct { } -func (*awsAwsjson11_deserializeOpUpdatePipeline) ID() string { +func (*awsAwsjson11_deserializeOpUpdateImageVersion) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdatePipeline) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateImageVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -31463,9 +31759,9 @@ func (m *awsAwsjson11_deserializeOpUpdatePipeline) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdatePipeline(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateImageVersion(response, &metadata) } - output := &UpdatePipelineOutput{} + output := &UpdateImageVersionOutput{} out.Result = output var buff [1024]byte @@ -31485,7 +31781,7 @@ func (m *awsAwsjson11_deserializeOpUpdatePipeline) HandleDeserialize(ctx context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdatePipelineOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateImageVersionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31499,7 +31795,7 @@ func (m *awsAwsjson11_deserializeOpUpdatePipeline) HandleDeserialize(ctx context return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdatePipeline(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateImageVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -31540,6 +31836,9 @@ func awsAwsjson11_deserializeOpErrorUpdatePipeline(response *smithyhttp.Response } switch { + case strings.EqualFold("ResourceInUse", errorCode): + return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -31553,14 +31852,14 @@ func awsAwsjson11_deserializeOpErrorUpdatePipeline(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpUpdatePipelineExecution struct { +type awsAwsjson11_deserializeOpUpdateInferenceComponent struct { } -func (*awsAwsjson11_deserializeOpUpdatePipelineExecution) ID() string { +func (*awsAwsjson11_deserializeOpUpdateInferenceComponent) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdatePipelineExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateInferenceComponent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -31574,9 +31873,9 @@ func (m *awsAwsjson11_deserializeOpUpdatePipelineExecution) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdatePipelineExecution(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateInferenceComponent(response, &metadata) } - output := &UpdatePipelineExecutionOutput{} + output := &UpdateInferenceComponentOutput{} out.Result = output var buff [1024]byte @@ -31596,7 +31895,7 @@ func (m *awsAwsjson11_deserializeOpUpdatePipelineExecution) HandleDeserialize(ct return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdatePipelineExecutionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateInferenceComponentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31610,7 +31909,7 @@ func (m *awsAwsjson11_deserializeOpUpdatePipelineExecution) HandleDeserialize(ct return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdatePipelineExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateInferenceComponent(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -31651,8 +31950,8 @@ func awsAwsjson11_deserializeOpErrorUpdatePipelineExecution(response *smithyhttp } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -31664,14 +31963,14 @@ func awsAwsjson11_deserializeOpErrorUpdatePipelineExecution(response *smithyhttp } } -type awsAwsjson11_deserializeOpUpdateProject struct { +type awsAwsjson11_deserializeOpUpdateInferenceComponentRuntimeConfig struct { } -func (*awsAwsjson11_deserializeOpUpdateProject) ID() string { +func (*awsAwsjson11_deserializeOpUpdateInferenceComponentRuntimeConfig) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateProject) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateInferenceComponentRuntimeConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -31685,9 +31984,9 @@ func (m *awsAwsjson11_deserializeOpUpdateProject) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateProject(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateInferenceComponentRuntimeConfig(response, &metadata) } - output := &UpdateProjectOutput{} + output := &UpdateInferenceComponentRuntimeConfigOutput{} out.Result = output var buff [1024]byte @@ -31707,7 +32006,7 @@ func (m *awsAwsjson11_deserializeOpUpdateProject) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateProjectOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateInferenceComponentRuntimeConfigOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31721,7 +32020,7 @@ func (m *awsAwsjson11_deserializeOpUpdateProject) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateProject(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateInferenceComponentRuntimeConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -31762,6 +32061,9 @@ func awsAwsjson11_deserializeOpErrorUpdateProject(response *smithyhttp.Response, } switch { + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -31772,14 +32074,14 @@ func awsAwsjson11_deserializeOpErrorUpdateProject(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpUpdateSpace struct { +type awsAwsjson11_deserializeOpUpdateInferenceExperiment struct { } -func (*awsAwsjson11_deserializeOpUpdateSpace) ID() string { +func (*awsAwsjson11_deserializeOpUpdateInferenceExperiment) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateSpace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateInferenceExperiment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -31793,9 +32095,9 @@ func (m *awsAwsjson11_deserializeOpUpdateSpace) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateSpace(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateInferenceExperiment(response, &metadata) } - output := &UpdateSpaceOutput{} + output := &UpdateInferenceExperimentOutput{} out.Result = output var buff [1024]byte @@ -31815,7 +32117,7 @@ func (m *awsAwsjson11_deserializeOpUpdateSpace) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateSpaceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateInferenceExperimentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31829,7 +32131,7 @@ func (m *awsAwsjson11_deserializeOpUpdateSpace) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateSpace(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateInferenceExperiment(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -31870,11 +32172,8 @@ func awsAwsjson11_deserializeOpErrorUpdateSpace(response *smithyhttp.Response, m } switch { - case strings.EqualFold("ResourceInUse", errorCode): - return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) - - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -31889,14 +32188,14 @@ func awsAwsjson11_deserializeOpErrorUpdateSpace(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpUpdateTrainingJob struct { +type awsAwsjson11_deserializeOpUpdateModelCard struct { } -func (*awsAwsjson11_deserializeOpUpdateTrainingJob) ID() string { +func (*awsAwsjson11_deserializeOpUpdateModelCard) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateTrainingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateModelCard) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -31910,9 +32209,9 @@ func (m *awsAwsjson11_deserializeOpUpdateTrainingJob) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateTrainingJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateModelCard(response, &metadata) } - output := &UpdateTrainingJobOutput{} + output := &UpdateModelCardOutput{} out.Result = output var buff [1024]byte @@ -31932,7 +32231,7 @@ func (m *awsAwsjson11_deserializeOpUpdateTrainingJob) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateTrainingJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateModelCardOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31946,7 +32245,7 @@ func (m *awsAwsjson11_deserializeOpUpdateTrainingJob) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateTrainingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateModelCard(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -31987,6 +32286,12 @@ func awsAwsjson11_deserializeOpErrorUpdateTrainingJob(response *smithyhttp.Respo } switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -32000,14 +32305,14 @@ func awsAwsjson11_deserializeOpErrorUpdateTrainingJob(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpUpdateTrial struct { +type awsAwsjson11_deserializeOpUpdateModelPackage struct { } -func (*awsAwsjson11_deserializeOpUpdateTrial) ID() string { +func (*awsAwsjson11_deserializeOpUpdateModelPackage) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateTrial) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateModelPackage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -32021,9 +32326,9 @@ func (m *awsAwsjson11_deserializeOpUpdateTrial) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateTrial(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateModelPackage(response, &metadata) } - output := &UpdateTrialOutput{} + output := &UpdateModelPackageOutput{} out.Result = output var buff [1024]byte @@ -32043,7 +32348,7 @@ func (m *awsAwsjson11_deserializeOpUpdateTrial) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateTrialOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateModelPackageOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32057,7 +32362,7 @@ func (m *awsAwsjson11_deserializeOpUpdateTrial) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateTrial(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateModelPackage(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -32098,8 +32403,116 @@ func awsAwsjson11_deserializeOpErrorUpdateTrial(response *smithyhttp.Response, m } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateMonitoringAlert struct { +} + +func (*awsAwsjson11_deserializeOpUpdateMonitoringAlert) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateMonitoringAlert) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateMonitoringAlert(response, &metadata) + } + output := &UpdateMonitoringAlertOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateMonitoringAlertOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateMonitoringAlert(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -32114,14 +32527,14 @@ func awsAwsjson11_deserializeOpErrorUpdateTrial(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpUpdateTrialComponent struct { +type awsAwsjson11_deserializeOpUpdateMonitoringSchedule struct { } -func (*awsAwsjson11_deserializeOpUpdateTrialComponent) ID() string { +func (*awsAwsjson11_deserializeOpUpdateMonitoringSchedule) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateTrialComponent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateMonitoringSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -32135,9 +32548,9 @@ func (m *awsAwsjson11_deserializeOpUpdateTrialComponent) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateTrialComponent(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateMonitoringSchedule(response, &metadata) } - output := &UpdateTrialComponentOutput{} + output := &UpdateMonitoringScheduleOutput{} out.Result = output var buff [1024]byte @@ -32157,7 +32570,7 @@ func (m *awsAwsjson11_deserializeOpUpdateTrialComponent) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateTrialComponentOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateMonitoringScheduleOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32171,7 +32584,7 @@ func (m *awsAwsjson11_deserializeOpUpdateTrialComponent) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateTrialComponent(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateMonitoringSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -32212,8 +32625,8 @@ func awsAwsjson11_deserializeOpErrorUpdateTrialComponent(response *smithyhttp.Re } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -32228,14 +32641,14 @@ func awsAwsjson11_deserializeOpErrorUpdateTrialComponent(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpUpdateUserProfile struct { +type awsAwsjson11_deserializeOpUpdateNotebookInstance struct { } -func (*awsAwsjson11_deserializeOpUpdateUserProfile) ID() string { +func (*awsAwsjson11_deserializeOpUpdateNotebookInstance) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateUserProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateNotebookInstance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -32249,9 +32662,9 @@ func (m *awsAwsjson11_deserializeOpUpdateUserProfile) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateUserProfile(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateNotebookInstance(response, &metadata) } - output := &UpdateUserProfileOutput{} + output := &UpdateNotebookInstanceOutput{} out.Result = output var buff [1024]byte @@ -32271,7 +32684,7 @@ func (m *awsAwsjson11_deserializeOpUpdateUserProfile) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateUserProfileOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateNotebookInstanceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32285,7 +32698,1015 @@ func (m *awsAwsjson11_deserializeOpUpdateUserProfile) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateUserProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateNotebookInstance(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + 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("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig struct { +} + +func (*awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateNotebookInstanceLifecycleConfig(response, &metadata) + } + output := &UpdateNotebookInstanceLifecycleConfigOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateNotebookInstanceLifecycleConfigOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateNotebookInstanceLifecycleConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + 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("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdatePipeline struct { +} + +func (*awsAwsjson11_deserializeOpUpdatePipeline) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdatePipeline) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorUpdatePipeline(response, &metadata) + } + output := &UpdatePipelineOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdatePipelineOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdatePipeline(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + 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("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdatePipelineExecution struct { +} + +func (*awsAwsjson11_deserializeOpUpdatePipelineExecution) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdatePipelineExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorUpdatePipelineExecution(response, &metadata) + } + output := &UpdatePipelineExecutionOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdatePipelineExecutionOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdatePipelineExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + 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("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateProject struct { +} + +func (*awsAwsjson11_deserializeOpUpdateProject) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateProject) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateProject(response, &metadata) + } + output := &UpdateProjectOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateProjectOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateProject(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + 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 { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateSpace struct { +} + +func (*awsAwsjson11_deserializeOpUpdateSpace) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateSpace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateSpace(response, &metadata) + } + output := &UpdateSpaceOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateSpaceOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateSpace(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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("ResourceInUse", errorCode): + return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) + + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateTrainingJob struct { +} + +func (*awsAwsjson11_deserializeOpUpdateTrainingJob) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateTrainingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateTrainingJob(response, &metadata) + } + output := &UpdateTrainingJobOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateTrainingJobOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateTrainingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + 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("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateTrial struct { +} + +func (*awsAwsjson11_deserializeOpUpdateTrial) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateTrial) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateTrial(response, &metadata) + } + output := &UpdateTrialOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateTrialOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateTrial(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + 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 awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateTrialComponent struct { +} + +func (*awsAwsjson11_deserializeOpUpdateTrialComponent) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateTrialComponent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateTrialComponent(response, &metadata) + } + output := &UpdateTrialComponentOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateTrialComponentOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateTrialComponent(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + 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 awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateUserProfile struct { +} + +func (*awsAwsjson11_deserializeOpUpdateUserProfile) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateUserProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateUserProfile(response, &metadata) + } + output := &UpdateUserProfileOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateUserProfileOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateUserProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -37122,26 +38543,511 @@ func awsAwsjson11_deserializeDocumentBestObjectiveNotImproving(v **types.BestObj return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BestObjectiveNotImproving + var sv *types.BestObjectiveNotImproving + if *v == nil { + sv = &types.BestObjectiveNotImproving{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "MaxNumberOfTrainingJobsNotImproving": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected MaxNumberOfTrainingJobsNotImproving to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaxNumberOfTrainingJobsNotImproving = ptr.Int32(int32(i64)) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentBias(v **types.Bias, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.Bias + if *v == nil { + sv = &types.Bias{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "PostTrainingReport": + if err := awsAwsjson11_deserializeDocumentMetricsSource(&sv.PostTrainingReport, value); err != nil { + return err + } + + case "PreTrainingReport": + if err := awsAwsjson11_deserializeDocumentMetricsSource(&sv.PreTrainingReport, value); err != nil { + return err + } + + case "Report": + if err := awsAwsjson11_deserializeDocumentMetricsSource(&sv.Report, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentBlueGreenUpdatePolicy(v **types.BlueGreenUpdatePolicy, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.BlueGreenUpdatePolicy + if *v == nil { + sv = &types.BlueGreenUpdatePolicy{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "MaximumExecutionTimeoutInSeconds": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected MaximumExecutionTimeoutInSeconds to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaximumExecutionTimeoutInSeconds = ptr.Int32(int32(i64)) + } + + case "TerminationWaitInSeconds": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected TerminationWaitInSeconds to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.TerminationWaitInSeconds = ptr.Int32(int32(i64)) + } + + case "TrafficRoutingConfiguration": + if err := awsAwsjson11_deserializeDocumentTrafficRoutingConfig(&sv.TrafficRoutingConfiguration, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentCacheHitResult(v **types.CacheHitResult, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.CacheHitResult + if *v == nil { + sv = &types.CacheHitResult{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "SourcePipelineExecutionArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PipelineExecutionArn to be of type string, got %T instead", value) + } + sv.SourcePipelineExecutionArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentCallbackStepMetadata(v **types.CallbackStepMetadata, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.CallbackStepMetadata + if *v == nil { + sv = &types.CallbackStepMetadata{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CallbackToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CallbackToken to be of type string, got %T instead", value) + } + sv.CallbackToken = ptr.String(jtv) + } + + case "OutputParameters": + if err := awsAwsjson11_deserializeDocumentOutputParameterList(&sv.OutputParameters, value); err != nil { + return err + } + + case "SqsQueueUrl": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String256 to be of type string, got %T instead", value) + } + sv.SqsQueueUrl = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentCandidateArtifactLocations(v **types.CandidateArtifactLocations, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.CandidateArtifactLocations + if *v == nil { + sv = &types.CandidateArtifactLocations{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "BacktestResults": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BacktestResultsLocation to be of type string, got %T instead", value) + } + sv.BacktestResults = ptr.String(jtv) + } + + case "Explainability": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExplainabilityLocation to be of type string, got %T instead", value) + } + sv.Explainability = ptr.String(jtv) + } + + case "ModelInsights": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ModelInsightsLocation to be of type string, got %T instead", value) + } + sv.ModelInsights = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentCandidateGenerationConfig(v **types.CandidateGenerationConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.CandidateGenerationConfig + if *v == nil { + sv = &types.CandidateGenerationConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AlgorithmsConfig": + if err := awsAwsjson11_deserializeDocumentAutoMLAlgorithmsConfig(&sv.AlgorithmsConfig, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentCandidateProperties(v **types.CandidateProperties, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.CandidateProperties + if *v == nil { + sv = &types.CandidateProperties{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CandidateArtifactLocations": + if err := awsAwsjson11_deserializeDocumentCandidateArtifactLocations(&sv.CandidateArtifactLocations, value); err != nil { + return err + } + + case "CandidateMetrics": + if err := awsAwsjson11_deserializeDocumentMetricDataList(&sv.CandidateMetrics, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentCandidateSteps(v *[]types.AutoMLCandidateStep, 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.AutoMLCandidateStep + if *v == nil { + cv = []types.AutoMLCandidateStep{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AutoMLCandidateStep + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAutoMLCandidateStep(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentCanvasAppSettings(v **types.CanvasAppSettings, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.CanvasAppSettings + if *v == nil { + sv = &types.CanvasAppSettings{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DirectDeploySettings": + if err := awsAwsjson11_deserializeDocumentDirectDeploySettings(&sv.DirectDeploySettings, value); err != nil { + return err + } + + case "IdentityProviderOAuthSettings": + if err := awsAwsjson11_deserializeDocumentIdentityProviderOAuthSettings(&sv.IdentityProviderOAuthSettings, value); err != nil { + return err + } + + case "KendraSettings": + if err := awsAwsjson11_deserializeDocumentKendraSettings(&sv.KendraSettings, value); err != nil { + return err + } + + case "ModelRegisterSettings": + if err := awsAwsjson11_deserializeDocumentModelRegisterSettings(&sv.ModelRegisterSettings, value); err != nil { + return err + } + + case "TimeSeriesForecastingSettings": + if err := awsAwsjson11_deserializeDocumentTimeSeriesForecastingSettings(&sv.TimeSeriesForecastingSettings, value); err != nil { + return err + } + + case "WorkspaceSettings": + if err := awsAwsjson11_deserializeDocumentWorkspaceSettings(&sv.WorkspaceSettings, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentCapacitySize(v **types.CapacitySize, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.CapacitySize if *v == nil { - sv = &types.BestObjectiveNotImproving{} + sv = &types.CapacitySize{} } else { sv = *v } for key, value := range shape { switch key { - case "MaxNumberOfTrainingJobsNotImproving": + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CapacitySizeType to be of type string, got %T instead", value) + } + sv.Type = types.CapacitySizeType(jtv) + } + + case "Value": if value != nil { jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected MaxNumberOfTrainingJobsNotImproving to be json.Number, got %T instead", value) + return fmt.Errorf("expected CapacitySizeValue to be json.Number, got %T instead", value) } i64, err := jtv.Int64() if err != nil { return err } - sv.MaxNumberOfTrainingJobsNotImproving = ptr.Int32(int32(i64)) + sv.Value = ptr.Int32(int32(i64)) } default: @@ -37153,7 +39059,7 @@ func awsAwsjson11_deserializeDocumentBestObjectiveNotImproving(v **types.BestObj return nil } -func awsAwsjson11_deserializeDocumentBias(v **types.Bias, value interface{}) error { +func awsAwsjson11_deserializeDocumentCaptureContentTypeHeader(v **types.CaptureContentTypeHeader, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37166,27 +39072,22 @@ func awsAwsjson11_deserializeDocumentBias(v **types.Bias, value interface{}) err return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Bias + var sv *types.CaptureContentTypeHeader if *v == nil { - sv = &types.Bias{} + sv = &types.CaptureContentTypeHeader{} } else { sv = *v } for key, value := range shape { switch key { - case "PostTrainingReport": - if err := awsAwsjson11_deserializeDocumentMetricsSource(&sv.PostTrainingReport, value); err != nil { - return err - } - - case "PreTrainingReport": - if err := awsAwsjson11_deserializeDocumentMetricsSource(&sv.PreTrainingReport, value); err != nil { + case "CsvContentTypes": + if err := awsAwsjson11_deserializeDocumentCsvContentTypes(&sv.CsvContentTypes, value); err != nil { return err } - case "Report": - if err := awsAwsjson11_deserializeDocumentMetricsSource(&sv.Report, value); err != nil { + case "JsonContentTypes": + if err := awsAwsjson11_deserializeDocumentJsonContentTypes(&sv.JsonContentTypes, value); err != nil { return err } @@ -37199,7 +39100,7 @@ func awsAwsjson11_deserializeDocumentBias(v **types.Bias, value interface{}) err return nil } -func awsAwsjson11_deserializeDocumentBlueGreenUpdatePolicy(v **types.BlueGreenUpdatePolicy, value interface{}) error { +func awsAwsjson11_deserializeDocumentCaptureOption(v **types.CaptureOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37212,44 +39113,22 @@ func awsAwsjson11_deserializeDocumentBlueGreenUpdatePolicy(v **types.BlueGreenUp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BlueGreenUpdatePolicy + var sv *types.CaptureOption if *v == nil { - sv = &types.BlueGreenUpdatePolicy{} + sv = &types.CaptureOption{} } else { sv = *v } for key, value := range shape { switch key { - case "MaximumExecutionTimeoutInSeconds": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected MaximumExecutionTimeoutInSeconds to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.MaximumExecutionTimeoutInSeconds = ptr.Int32(int32(i64)) - } - - case "TerminationWaitInSeconds": + case "CaptureMode": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TerminationWaitInSeconds to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected CaptureMode to be of type string, got %T instead", value) } - sv.TerminationWaitInSeconds = ptr.Int32(int32(i64)) - } - - case "TrafficRoutingConfiguration": - if err := awsAwsjson11_deserializeDocumentTrafficRoutingConfig(&sv.TrafficRoutingConfiguration, value); err != nil { - return err + sv.CaptureMode = types.CaptureMode(jtv) } default: @@ -37261,7 +39140,7 @@ func awsAwsjson11_deserializeDocumentBlueGreenUpdatePolicy(v **types.BlueGreenUp return nil } -func awsAwsjson11_deserializeDocumentCacheHitResult(v **types.CacheHitResult, value interface{}) error { +func awsAwsjson11_deserializeDocumentCaptureOptionList(v *[]types.CaptureOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37269,39 +39148,33 @@ func awsAwsjson11_deserializeDocumentCacheHitResult(v **types.CacheHitResult, va 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.CacheHitResult + var cv []types.CaptureOption if *v == nil { - sv = &types.CacheHitResult{} + cv = []types.CaptureOption{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "SourcePipelineExecutionArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected PipelineExecutionArn to be of type string, got %T instead", value) - } - sv.SourcePipelineExecutionArn = ptr.String(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.CaptureOption + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCaptureOption(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeDocumentCallbackStepMetadata(v **types.CallbackStepMetadata, value interface{}) error { +func awsAwsjson11_deserializeDocumentCategoricalParameter(v **types.CategoricalParameter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37314,38 +39187,29 @@ func awsAwsjson11_deserializeDocumentCallbackStepMetadata(v **types.CallbackStep return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CallbackStepMetadata + var sv *types.CategoricalParameter if *v == nil { - sv = &types.CallbackStepMetadata{} + sv = &types.CategoricalParameter{} } else { sv = *v } for key, value := range shape { switch key { - case "CallbackToken": + case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected CallbackToken to be of type string, got %T instead", value) + return fmt.Errorf("expected String64 to be of type string, got %T instead", value) } - sv.CallbackToken = ptr.String(jtv) + sv.Name = ptr.String(jtv) } - case "OutputParameters": - if err := awsAwsjson11_deserializeDocumentOutputParameterList(&sv.OutputParameters, value); err != nil { + case "Value": + if err := awsAwsjson11_deserializeDocumentCategoricalParameterRangeValues(&sv.Value, value); err != nil { return err } - case "SqsQueueUrl": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String256 to be of type string, got %T instead", value) - } - sv.SqsQueueUrl = ptr.String(jtv) - } - default: _, _ = key, value @@ -37355,7 +39219,7 @@ func awsAwsjson11_deserializeDocumentCallbackStepMetadata(v **types.CallbackStep return nil } -func awsAwsjson11_deserializeDocumentCandidateArtifactLocations(v **types.CandidateArtifactLocations, value interface{}) error { +func awsAwsjson11_deserializeDocumentCategoricalParameterRange(v **types.CategoricalParameterRange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37368,40 +39232,27 @@ func awsAwsjson11_deserializeDocumentCandidateArtifactLocations(v **types.Candid return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CandidateArtifactLocations + var sv *types.CategoricalParameterRange if *v == nil { - sv = &types.CandidateArtifactLocations{} + sv = &types.CategoricalParameterRange{} } else { sv = *v } for key, value := range shape { switch key { - case "BacktestResults": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BacktestResultsLocation to be of type string, got %T instead", value) - } - sv.BacktestResults = ptr.String(jtv) - } - - case "Explainability": + case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ExplainabilityLocation to be of type string, got %T instead", value) + return fmt.Errorf("expected ParameterKey to be of type string, got %T instead", value) } - sv.Explainability = ptr.String(jtv) + sv.Name = ptr.String(jtv) } - case "ModelInsights": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ModelInsightsLocation to be of type string, got %T instead", value) - } - sv.ModelInsights = ptr.String(jtv) + case "Values": + if err := awsAwsjson11_deserializeDocumentParameterValues(&sv.Values, value); err != nil { + return err } default: @@ -37413,7 +39264,41 @@ func awsAwsjson11_deserializeDocumentCandidateArtifactLocations(v **types.Candid return nil } -func awsAwsjson11_deserializeDocumentCandidateGenerationConfig(v **types.CandidateGenerationConfig, value interface{}) error { +func awsAwsjson11_deserializeDocumentCategoricalParameterRanges(v *[]types.CategoricalParameterRange, 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.CategoricalParameterRange + if *v == nil { + cv = []types.CategoricalParameterRange{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.CategoricalParameterRange + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCategoricalParameterRange(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentCategoricalParameterRangeSpecification(v **types.CategoricalParameterRangeSpecification, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37426,17 +39311,17 @@ func awsAwsjson11_deserializeDocumentCandidateGenerationConfig(v **types.Candida return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CandidateGenerationConfig + var sv *types.CategoricalParameterRangeSpecification if *v == nil { - sv = &types.CandidateGenerationConfig{} + sv = &types.CategoricalParameterRangeSpecification{} } else { sv = *v } for key, value := range shape { switch key { - case "AlgorithmsConfig": - if err := awsAwsjson11_deserializeDocumentAutoMLAlgorithmsConfig(&sv.AlgorithmsConfig, value); err != nil { + case "Values": + if err := awsAwsjson11_deserializeDocumentParameterValues(&sv.Values, value); err != nil { return err } @@ -37449,7 +39334,7 @@ func awsAwsjson11_deserializeDocumentCandidateGenerationConfig(v **types.Candida return nil } -func awsAwsjson11_deserializeDocumentCandidateProperties(v **types.CandidateProperties, value interface{}) error { +func awsAwsjson11_deserializeDocumentCategoricalParameterRangeValues(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37457,40 +39342,35 @@ func awsAwsjson11_deserializeDocumentCandidateProperties(v **types.CandidateProp 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.CandidateProperties + var cv []string if *v == nil { - sv = &types.CandidateProperties{} + cv = []string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "CandidateArtifactLocations": - if err := awsAwsjson11_deserializeDocumentCandidateArtifactLocations(&sv.CandidateArtifactLocations, value); err != nil { - return err - } - - case "CandidateMetrics": - if err := awsAwsjson11_deserializeDocumentMetricDataList(&sv.CandidateMetrics, 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 String128 to be of type string, got %T instead", value) } - - default: - _, _ = key, value - + col = jtv } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeDocumentCandidateSteps(v *[]types.AutoMLCandidateStep, value interface{}) error { +func awsAwsjson11_deserializeDocumentCategoricalParameters(v *[]types.CategoricalParameter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37503,17 +39383,17 @@ func awsAwsjson11_deserializeDocumentCandidateSteps(v *[]types.AutoMLCandidateSt return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.AutoMLCandidateStep + var cv []types.CategoricalParameter if *v == nil { - cv = []types.AutoMLCandidateStep{} + cv = []types.CategoricalParameter{} } else { cv = *v } for _, value := range shape { - var col types.AutoMLCandidateStep + var col types.CategoricalParameter destAddr := &col - if err := awsAwsjson11_deserializeDocumentAutoMLCandidateStep(&destAddr, value); err != nil { + if err := awsAwsjson11_deserializeDocumentCategoricalParameter(&destAddr, value); err != nil { return err } col = *destAddr @@ -37524,7 +39404,7 @@ func awsAwsjson11_deserializeDocumentCandidateSteps(v *[]types.AutoMLCandidateSt return nil } -func awsAwsjson11_deserializeDocumentCanvasAppSettings(v **types.CanvasAppSettings, value interface{}) error { +func awsAwsjson11_deserializeDocumentChannel(v **types.Channel, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37537,42 +39417,67 @@ func awsAwsjson11_deserializeDocumentCanvasAppSettings(v **types.CanvasAppSettin return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CanvasAppSettings + var sv *types.Channel if *v == nil { - sv = &types.CanvasAppSettings{} + sv = &types.Channel{} } else { sv = *v } for key, value := range shape { switch key { - case "DirectDeploySettings": - if err := awsAwsjson11_deserializeDocumentDirectDeploySettings(&sv.DirectDeploySettings, value); err != nil { - return err + case "ChannelName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ChannelName to be of type string, got %T instead", value) + } + sv.ChannelName = ptr.String(jtv) } - case "IdentityProviderOAuthSettings": - if err := awsAwsjson11_deserializeDocumentIdentityProviderOAuthSettings(&sv.IdentityProviderOAuthSettings, value); err != nil { - return err + case "CompressionType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CompressionType to be of type string, got %T instead", value) + } + sv.CompressionType = types.CompressionType(jtv) } - case "KendraSettings": - if err := awsAwsjson11_deserializeDocumentKendraSettings(&sv.KendraSettings, value); err != nil { - return err + case "ContentType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ContentType to be of type string, got %T instead", value) + } + sv.ContentType = ptr.String(jtv) } - case "ModelRegisterSettings": - if err := awsAwsjson11_deserializeDocumentModelRegisterSettings(&sv.ModelRegisterSettings, value); err != nil { + case "DataSource": + if err := awsAwsjson11_deserializeDocumentDataSource(&sv.DataSource, value); err != nil { return err } - case "TimeSeriesForecastingSettings": - if err := awsAwsjson11_deserializeDocumentTimeSeriesForecastingSettings(&sv.TimeSeriesForecastingSettings, value); err != nil { - return err + case "InputMode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TrainingInputMode to be of type string, got %T instead", value) + } + sv.InputMode = types.TrainingInputMode(jtv) } - case "WorkspaceSettings": - if err := awsAwsjson11_deserializeDocumentWorkspaceSettings(&sv.WorkspaceSettings, value); err != nil { + case "RecordWrapperType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RecordWrapper to be of type string, got %T instead", value) + } + sv.RecordWrapperType = types.RecordWrapper(jtv) + } + + case "ShuffleConfig": + if err := awsAwsjson11_deserializeDocumentShuffleConfig(&sv.ShuffleConfig, value); err != nil { return err } @@ -37585,7 +39490,7 @@ func awsAwsjson11_deserializeDocumentCanvasAppSettings(v **types.CanvasAppSettin return nil } -func awsAwsjson11_deserializeDocumentCapacitySize(v **types.CapacitySize, value interface{}) error { +func awsAwsjson11_deserializeDocumentChannelSpecification(v **types.ChannelSpecification, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37598,35 +39503,55 @@ func awsAwsjson11_deserializeDocumentCapacitySize(v **types.CapacitySize, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CapacitySize + var sv *types.ChannelSpecification if *v == nil { - sv = &types.CapacitySize{} + sv = &types.ChannelSpecification{} } else { sv = *v } for key, value := range shape { switch key { - case "Type": + case "Description": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected CapacitySizeType to be of type string, got %T instead", value) + return fmt.Errorf("expected EntityDescription to be of type string, got %T instead", value) } - sv.Type = types.CapacitySizeType(jtv) + sv.Description = ptr.String(jtv) } - case "Value": + case "IsRequired": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected CapacitySizeValue to be json.Number, got %T instead", value) + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - i64, err := jtv.Int64() - if err != nil { - return err + sv.IsRequired = ptr.Bool(jtv) + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ChannelName to be of type string, got %T instead", value) } - sv.Value = ptr.Int32(int32(i64)) + sv.Name = ptr.String(jtv) + } + + case "SupportedCompressionTypes": + if err := awsAwsjson11_deserializeDocumentCompressionTypes(&sv.SupportedCompressionTypes, value); err != nil { + return err + } + + case "SupportedContentTypes": + if err := awsAwsjson11_deserializeDocumentContentTypes(&sv.SupportedContentTypes, value); err != nil { + return err + } + + case "SupportedInputModes": + if err := awsAwsjson11_deserializeDocumentInputModes(&sv.SupportedInputModes, value); err != nil { + return err } default: @@ -37638,7 +39563,7 @@ func awsAwsjson11_deserializeDocumentCapacitySize(v **types.CapacitySize, value return nil } -func awsAwsjson11_deserializeDocumentCaptureContentTypeHeader(v **types.CaptureContentTypeHeader, value interface{}) error { +func awsAwsjson11_deserializeDocumentChannelSpecifications(v *[]types.ChannelSpecification, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37646,40 +39571,33 @@ func awsAwsjson11_deserializeDocumentCaptureContentTypeHeader(v **types.CaptureC 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.CaptureContentTypeHeader + var cv []types.ChannelSpecification if *v == nil { - sv = &types.CaptureContentTypeHeader{} + cv = []types.ChannelSpecification{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "CsvContentTypes": - if err := awsAwsjson11_deserializeDocumentCsvContentTypes(&sv.CsvContentTypes, value); err != nil { - return err - } - - case "JsonContentTypes": - if err := awsAwsjson11_deserializeDocumentJsonContentTypes(&sv.JsonContentTypes, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.ChannelSpecification + destAddr := &col + if err := awsAwsjson11_deserializeDocumentChannelSpecification(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeDocumentCaptureOption(v **types.CaptureOption, value interface{}) error { +func awsAwsjson11_deserializeDocumentCheckpointConfig(v **types.CheckpointConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37692,22 +39610,31 @@ func awsAwsjson11_deserializeDocumentCaptureOption(v **types.CaptureOption, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CaptureOption + var sv *types.CheckpointConfig if *v == nil { - sv = &types.CaptureOption{} + sv = &types.CheckpointConfig{} } else { sv = *v } for key, value := range shape { switch key { - case "CaptureMode": + case "LocalPath": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected CaptureMode to be of type string, got %T instead", value) + return fmt.Errorf("expected DirectoryPath to be of type string, got %T instead", value) } - sv.CaptureMode = types.CaptureMode(jtv) + sv.LocalPath = ptr.String(jtv) + } + + case "S3Uri": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) + } + sv.S3Uri = ptr.String(jtv) } default: @@ -37719,7 +39646,7 @@ func awsAwsjson11_deserializeDocumentCaptureOption(v **types.CaptureOption, valu return nil } -func awsAwsjson11_deserializeDocumentCaptureOptionList(v *[]types.CaptureOption, value interface{}) error { +func awsAwsjson11_deserializeDocumentCidrs(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37732,20 +39659,22 @@ func awsAwsjson11_deserializeDocumentCaptureOptionList(v *[]types.CaptureOption, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.CaptureOption + var cv []string if *v == nil { - cv = []types.CaptureOption{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col types.CaptureOption - destAddr := &col - if err := awsAwsjson11_deserializeDocumentCaptureOption(&destAddr, value); err != nil { - return err + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Cidr to be of type string, got %T instead", value) + } + col = jtv } - col = *destAddr cv = append(cv, col) } @@ -37753,7 +39682,7 @@ func awsAwsjson11_deserializeDocumentCaptureOptionList(v *[]types.CaptureOption, return nil } -func awsAwsjson11_deserializeDocumentCategoricalParameter(v **types.CategoricalParameter, value interface{}) error { +func awsAwsjson11_deserializeDocumentClarifyCheckStepMetadata(v **types.ClarifyCheckStepMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37766,72 +39695,85 @@ func awsAwsjson11_deserializeDocumentCategoricalParameter(v **types.CategoricalP return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CategoricalParameter + var sv *types.ClarifyCheckStepMetadata if *v == nil { - sv = &types.CategoricalParameter{} + sv = &types.ClarifyCheckStepMetadata{} } else { sv = *v } for key, value := range shape { switch key { - case "Name": + case "BaselineUsedForDriftCheckConstraints": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String64 to be of type string, got %T instead", value) + return fmt.Errorf("expected String1024 to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.BaselineUsedForDriftCheckConstraints = ptr.String(jtv) } - case "Value": - if err := awsAwsjson11_deserializeDocumentCategoricalParameterRangeValues(&sv.Value, value); err != nil { - return err + case "CalculatedBaselineConstraints": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String1024 to be of type string, got %T instead", value) + } + sv.CalculatedBaselineConstraints = ptr.String(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} + case "CheckJobArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String256 to be of type string, got %T instead", value) + } + sv.CheckJobArn = ptr.String(jtv) + } -func awsAwsjson11_deserializeDocumentCategoricalParameterRange(v **types.CategoricalParameterRange, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "CheckType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String256 to be of type string, got %T instead", value) + } + sv.CheckType = ptr.String(jtv) + } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "ModelPackageGroupName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String256 to be of type string, got %T instead", value) + } + sv.ModelPackageGroupName = ptr.String(jtv) + } - var sv *types.CategoricalParameterRange - if *v == nil { - sv = &types.CategoricalParameterRange{} - } else { - sv = *v - } + case "RegisterNewBaseline": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.RegisterNewBaseline = ptr.Bool(jtv) + } - for key, value := range shape { - switch key { - case "Name": + case "SkipCheck": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected ParameterKey to be of type string, got %T instead", value) + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.SkipCheck = ptr.Bool(jtv) } - case "Values": - if err := awsAwsjson11_deserializeDocumentParameterValues(&sv.Values, value); err != nil { - return err + case "ViolationReport": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String1024 to be of type string, got %T instead", value) + } + sv.ViolationReport = ptr.String(jtv) } default: @@ -37843,41 +39785,7 @@ func awsAwsjson11_deserializeDocumentCategoricalParameterRange(v **types.Categor return nil } -func awsAwsjson11_deserializeDocumentCategoricalParameterRanges(v *[]types.CategoricalParameterRange, 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.CategoricalParameterRange - if *v == nil { - cv = []types.CategoricalParameterRange{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.CategoricalParameterRange - destAddr := &col - if err := awsAwsjson11_deserializeDocumentCategoricalParameterRange(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentCategoricalParameterRangeSpecification(v **types.CategoricalParameterRangeSpecification, value interface{}) error { +func awsAwsjson11_deserializeDocumentClarifyExplainerConfig(v **types.ClarifyExplainerConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37890,17 +39798,31 @@ func awsAwsjson11_deserializeDocumentCategoricalParameterRangeSpecification(v ** return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CategoricalParameterRangeSpecification + var sv *types.ClarifyExplainerConfig if *v == nil { - sv = &types.CategoricalParameterRangeSpecification{} + sv = &types.ClarifyExplainerConfig{} } else { sv = *v } for key, value := range shape { switch key { - case "Values": - if err := awsAwsjson11_deserializeDocumentParameterValues(&sv.Values, value); err != nil { + case "EnableExplanations": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ClarifyEnableExplanations to be of type string, got %T instead", value) + } + sv.EnableExplanations = ptr.String(jtv) + } + + case "InferenceConfig": + if err := awsAwsjson11_deserializeDocumentClarifyInferenceConfig(&sv.InferenceConfig, value); err != nil { + return err + } + + case "ShapConfig": + if err := awsAwsjson11_deserializeDocumentClarifyShapConfig(&sv.ShapConfig, value); err != nil { return err } @@ -37913,7 +39835,7 @@ func awsAwsjson11_deserializeDocumentCategoricalParameterRangeSpecification(v ** return nil } -func awsAwsjson11_deserializeDocumentCategoricalParameterRangeValues(v *[]string, value interface{}) error { +func awsAwsjson11_deserializeDocumentClarifyFeatureHeaders(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37938,7 +39860,7 @@ func awsAwsjson11_deserializeDocumentCategoricalParameterRangeValues(v *[]string if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String128 to be of type string, got %T instead", value) + return fmt.Errorf("expected ClarifyHeader to be of type string, got %T instead", value) } col = jtv } @@ -37949,7 +39871,7 @@ func awsAwsjson11_deserializeDocumentCategoricalParameterRangeValues(v *[]string return nil } -func awsAwsjson11_deserializeDocumentCategoricalParameters(v *[]types.CategoricalParameter, value interface{}) error { +func awsAwsjson11_deserializeDocumentClarifyFeatureTypes(v *[]types.ClarifyFeatureType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37962,20 +39884,22 @@ func awsAwsjson11_deserializeDocumentCategoricalParameters(v *[]types.Categorica return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.CategoricalParameter + var cv []types.ClarifyFeatureType if *v == nil { - cv = []types.CategoricalParameter{} + cv = []types.ClarifyFeatureType{} } else { cv = *v } for _, value := range shape { - var col types.CategoricalParameter - destAddr := &col - if err := awsAwsjson11_deserializeDocumentCategoricalParameter(&destAddr, value); err != nil { - return err + var col types.ClarifyFeatureType + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ClarifyFeatureType to be of type string, got %T instead", value) + } + col = types.ClarifyFeatureType(jtv) } - col = *destAddr cv = append(cv, col) } @@ -37983,7 +39907,7 @@ func awsAwsjson11_deserializeDocumentCategoricalParameters(v *[]types.Categorica return nil } -func awsAwsjson11_deserializeDocumentChannel(v **types.Channel, value interface{}) error { +func awsAwsjson11_deserializeDocumentClarifyInferenceConfig(v **types.ClarifyInferenceConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37996,141 +39920,116 @@ func awsAwsjson11_deserializeDocumentChannel(v **types.Channel, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Channel + var sv *types.ClarifyInferenceConfig if *v == nil { - sv = &types.Channel{} + sv = &types.ClarifyInferenceConfig{} } else { sv = *v } for key, value := range shape { switch key { - case "ChannelName": + case "ContentTemplate": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ChannelName to be of type string, got %T instead", value) + return fmt.Errorf("expected ClarifyContentTemplate to be of type string, got %T instead", value) } - sv.ChannelName = ptr.String(jtv) + sv.ContentTemplate = ptr.String(jtv) } - case "CompressionType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CompressionType to be of type string, got %T instead", value) - } - sv.CompressionType = types.CompressionType(jtv) + case "FeatureHeaders": + if err := awsAwsjson11_deserializeDocumentClarifyFeatureHeaders(&sv.FeatureHeaders, value); err != nil { + return err } - case "ContentType": + case "FeaturesAttribute": 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 ClarifyFeaturesAttribute to be of type string, got %T instead", value) } - sv.ContentType = ptr.String(jtv) + sv.FeaturesAttribute = ptr.String(jtv) } - case "DataSource": - if err := awsAwsjson11_deserializeDocumentDataSource(&sv.DataSource, value); err != nil { + case "FeatureTypes": + if err := awsAwsjson11_deserializeDocumentClarifyFeatureTypes(&sv.FeatureTypes, value); err != nil { return err } - case "InputMode": + case "LabelAttribute": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TrainingInputMode to be of type string, got %T instead", value) + return fmt.Errorf("expected ClarifyLabelAttribute to be of type string, got %T instead", value) } - sv.InputMode = types.TrainingInputMode(jtv) + sv.LabelAttribute = ptr.String(jtv) } - case "RecordWrapperType": + case "LabelHeaders": + if err := awsAwsjson11_deserializeDocumentClarifyLabelHeaders(&sv.LabelHeaders, value); err != nil { + return err + } + + case "LabelIndex": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected RecordWrapper to be of type string, got %T instead", value) + return fmt.Errorf("expected ClarifyLabelIndex to be json.Number, got %T instead", value) } - sv.RecordWrapperType = types.RecordWrapper(jtv) - } - - case "ShuffleConfig": - if err := awsAwsjson11_deserializeDocumentShuffleConfig(&sv.ShuffleConfig, value); err != nil { - return err + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.LabelIndex = ptr.Int32(int32(i64)) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentChannelSpecification(v **types.ChannelSpecification, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ChannelSpecification - if *v == nil { - sv = &types.ChannelSpecification{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Description": + case "MaxPayloadInMB": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected EntityDescription to be of type string, got %T instead", value) + return fmt.Errorf("expected ClarifyMaxPayloadInMB to be json.Number, got %T instead", value) } - sv.Description = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaxPayloadInMB = ptr.Int32(int32(i64)) } - case "IsRequired": + case "MaxRecordCount": if value != nil { - jtv, ok := value.(bool) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + return fmt.Errorf("expected ClarifyMaxRecordCount to be json.Number, got %T instead", value) } - sv.IsRequired = ptr.Bool(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaxRecordCount = ptr.Int32(int32(i64)) } - case "Name": + case "ProbabilityAttribute": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ChannelName to be of type string, got %T instead", value) + return fmt.Errorf("expected ClarifyProbabilityAttribute to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) - } - - case "SupportedCompressionTypes": - if err := awsAwsjson11_deserializeDocumentCompressionTypes(&sv.SupportedCompressionTypes, value); err != nil { - return err - } - - case "SupportedContentTypes": - if err := awsAwsjson11_deserializeDocumentContentTypes(&sv.SupportedContentTypes, value); err != nil { - return err + sv.ProbabilityAttribute = ptr.String(jtv) } - case "SupportedInputModes": - if err := awsAwsjson11_deserializeDocumentInputModes(&sv.SupportedInputModes, value); err != nil { - return err + case "ProbabilityIndex": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ClarifyProbabilityIndex to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ProbabilityIndex = ptr.Int32(int32(i64)) } default: @@ -38142,7 +40041,7 @@ func awsAwsjson11_deserializeDocumentChannelSpecification(v **types.ChannelSpeci return nil } -func awsAwsjson11_deserializeDocumentChannelSpecifications(v *[]types.ChannelSpecification, value interface{}) error { +func awsAwsjson11_deserializeDocumentClarifyLabelHeaders(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38155,20 +40054,22 @@ func awsAwsjson11_deserializeDocumentChannelSpecifications(v *[]types.ChannelSpe return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ChannelSpecification + var cv []string if *v == nil { - cv = []types.ChannelSpecification{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col types.ChannelSpecification - destAddr := &col - if err := awsAwsjson11_deserializeDocumentChannelSpecification(&destAddr, value); err != nil { - return err + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ClarifyHeader to be of type string, got %T instead", value) + } + col = jtv } - col = *destAddr cv = append(cv, col) } @@ -38176,7 +40077,7 @@ func awsAwsjson11_deserializeDocumentChannelSpecifications(v *[]types.ChannelSpe return nil } -func awsAwsjson11_deserializeDocumentCheckpointConfig(v **types.CheckpointConfig, value interface{}) error { +func awsAwsjson11_deserializeDocumentClarifyShapBaselineConfig(v **types.ClarifyShapBaselineConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38189,31 +40090,40 @@ func awsAwsjson11_deserializeDocumentCheckpointConfig(v **types.CheckpointConfig return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CheckpointConfig + var sv *types.ClarifyShapBaselineConfig if *v == nil { - sv = &types.CheckpointConfig{} + sv = &types.ClarifyShapBaselineConfig{} } else { sv = *v } for key, value := range shape { switch key { - case "LocalPath": + case "MimeType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DirectoryPath to be of type string, got %T instead", value) + return fmt.Errorf("expected ClarifyMimeType to be of type string, got %T instead", value) } - sv.LocalPath = ptr.String(jtv) + sv.MimeType = ptr.String(jtv) } - case "S3Uri": + case "ShapBaseline": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) + return fmt.Errorf("expected ClarifyShapBaseline to be of type string, got %T instead", value) } - sv.S3Uri = ptr.String(jtv) + sv.ShapBaseline = ptr.String(jtv) + } + + case "ShapBaselineUri": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Url to be of type string, got %T instead", value) + } + sv.ShapBaselineUri = ptr.String(jtv) } default: @@ -38225,7 +40135,7 @@ func awsAwsjson11_deserializeDocumentCheckpointConfig(v **types.CheckpointConfig return nil } -func awsAwsjson11_deserializeDocumentCidrs(v *[]string, value interface{}) error { +func awsAwsjson11_deserializeDocumentClarifyShapConfig(v **types.ClarifyShapConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38233,35 +40143,75 @@ func awsAwsjson11_deserializeDocumentCidrs(v *[]string, value interface{}) error 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.ClarifyShapConfig if *v == nil { - cv = []string{} + sv = &types.ClarifyShapConfig{} } 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 Cidr to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "NumberOfSamples": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ClarifyShapNumberOfSamples to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.NumberOfSamples = ptr.Int32(int32(i64)) } - col = jtv - } - cv = append(cv, col) + case "Seed": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ClarifyShapSeed to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Seed = ptr.Int32(int32(i64)) + } + + case "ShapBaselineConfig": + if err := awsAwsjson11_deserializeDocumentClarifyShapBaselineConfig(&sv.ShapBaselineConfig, value); err != nil { + return err + } + + case "TextConfig": + if err := awsAwsjson11_deserializeDocumentClarifyTextConfig(&sv.TextConfig, value); err != nil { + return err + } + + case "UseLogit": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected ClarifyShapUseLogit to be of type *bool, got %T instead", value) + } + sv.UseLogit = ptr.Bool(jtv) + } + + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsAwsjson11_deserializeDocumentClarifyCheckStepMetadata(v **types.ClarifyCheckStepMetadata, value interface{}) error { +func awsAwsjson11_deserializeDocumentClarifyTextConfig(v **types.ClarifyTextConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38274,85 +40224,133 @@ func awsAwsjson11_deserializeDocumentClarifyCheckStepMetadata(v **types.ClarifyC return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ClarifyCheckStepMetadata + var sv *types.ClarifyTextConfig if *v == nil { - sv = &types.ClarifyCheckStepMetadata{} + sv = &types.ClarifyTextConfig{} } else { sv = *v } for key, value := range shape { switch key { - case "BaselineUsedForDriftCheckConstraints": + case "Granularity": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String1024 to be of type string, got %T instead", value) + return fmt.Errorf("expected ClarifyTextGranularity to be of type string, got %T instead", value) } - sv.BaselineUsedForDriftCheckConstraints = ptr.String(jtv) + sv.Granularity = types.ClarifyTextGranularity(jtv) } - case "CalculatedBaselineConstraints": + case "Language": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String1024 to be of type string, got %T instead", value) + return fmt.Errorf("expected ClarifyTextLanguage to be of type string, got %T instead", value) } - sv.CalculatedBaselineConstraints = ptr.String(jtv) + sv.Language = types.ClarifyTextLanguage(jtv) } - case "CheckJobArn": + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentClusterInstanceGroupDetails(v **types.ClusterInstanceGroupDetails, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ClusterInstanceGroupDetails + if *v == nil { + sv = &types.ClusterInstanceGroupDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CurrentCount": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected String256 to be of type string, got %T instead", value) + return fmt.Errorf("expected ClusterNonNegativeInstanceCount to be json.Number, got %T instead", value) } - sv.CheckJobArn = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.CurrentCount = ptr.Int32(int32(i64)) } - case "CheckType": + case "ExecutionRole": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String256 to be of type string, got %T instead", value) + return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.CheckType = ptr.String(jtv) + sv.ExecutionRole = ptr.String(jtv) } - case "ModelPackageGroupName": + case "InstanceGroupName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String256 to be of type string, got %T instead", value) + return fmt.Errorf("expected ClusterInstanceGroupName to be of type string, got %T instead", value) } - sv.ModelPackageGroupName = ptr.String(jtv) + sv.InstanceGroupName = ptr.String(jtv) } - case "RegisterNewBaseline": + case "InstanceType": 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 ClusterInstanceType to be of type string, got %T instead", value) } - sv.RegisterNewBaseline = ptr.Bool(jtv) + sv.InstanceType = types.ClusterInstanceType(jtv) } - case "SkipCheck": + case "LifeCycleConfig": + if err := awsAwsjson11_deserializeDocumentClusterLifeCycleConfig(&sv.LifeCycleConfig, value); err != nil { + return err + } + + case "TargetCount": if value != nil { - jtv, ok := value.(bool) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + return fmt.Errorf("expected ClusterInstanceCount to be json.Number, got %T instead", value) } - sv.SkipCheck = ptr.Bool(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.TargetCount = ptr.Int32(int32(i64)) } - case "ViolationReport": + case "ThreadsPerCore": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected String1024 to be of type string, got %T instead", value) + return fmt.Errorf("expected ClusterThreadsPerCore to be json.Number, got %T instead", value) } - sv.ViolationReport = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ThreadsPerCore = ptr.Int32(int32(i64)) } default: @@ -38364,7 +40362,7 @@ func awsAwsjson11_deserializeDocumentClarifyCheckStepMetadata(v **types.ClarifyC return nil } -func awsAwsjson11_deserializeDocumentClarifyExplainerConfig(v **types.ClarifyExplainerConfig, value interface{}) error { +func awsAwsjson11_deserializeDocumentClusterInstanceGroupDetailsList(v *[]types.ClusterInstanceGroupDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38372,49 +40370,33 @@ func awsAwsjson11_deserializeDocumentClarifyExplainerConfig(v **types.ClarifyExp 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.ClarifyExplainerConfig + var cv []types.ClusterInstanceGroupDetails if *v == nil { - sv = &types.ClarifyExplainerConfig{} + cv = []types.ClusterInstanceGroupDetails{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "EnableExplanations": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ClarifyEnableExplanations to be of type string, got %T instead", value) - } - sv.EnableExplanations = ptr.String(jtv) - } - - case "InferenceConfig": - if err := awsAwsjson11_deserializeDocumentClarifyInferenceConfig(&sv.InferenceConfig, value); err != nil { - return err - } - - case "ShapConfig": - if err := awsAwsjson11_deserializeDocumentClarifyShapConfig(&sv.ShapConfig, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.ClusterInstanceGroupDetails + destAddr := &col + if err := awsAwsjson11_deserializeDocumentClusterInstanceGroupDetails(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeDocumentClarifyFeatureHeaders(v *[]string, value interface{}) error { +func awsAwsjson11_deserializeDocumentClusterInstanceStatusDetails(v **types.ClusterInstanceStatusDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38422,35 +40404,48 @@ func awsAwsjson11_deserializeDocumentClarifyFeatureHeaders(v *[]string, value in return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var sv *types.ClusterInstanceStatusDetails if *v == nil { - cv = []string{} + sv = &types.ClusterInstanceStatusDetails{} } 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 ClarifyHeader to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String 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 ClusterInstanceStatus to be of type string, got %T instead", value) + } + sv.Status = types.ClusterInstanceStatus(jtv) } - col = jtv - } - cv = append(cv, col) + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsAwsjson11_deserializeDocumentClarifyFeatureTypes(v *[]types.ClarifyFeatureType, value interface{}) error { +func awsAwsjson11_deserializeDocumentClusterLifeCycleConfig(v **types.ClusterLifeCycleConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38458,35 +40453,48 @@ func awsAwsjson11_deserializeDocumentClarifyFeatureTypes(v *[]types.ClarifyFeatu 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.ClarifyFeatureType + var sv *types.ClusterLifeCycleConfig if *v == nil { - cv = []types.ClarifyFeatureType{} + sv = &types.ClusterLifeCycleConfig{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.ClarifyFeatureType - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ClarifyFeatureType to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "OnCreate": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ClusterLifeCycleConfigFileName to be of type string, got %T instead", value) + } + sv.OnCreate = ptr.String(jtv) + } + + case "SourceS3Uri": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) + } + sv.SourceS3Uri = ptr.String(jtv) } - col = types.ClarifyFeatureType(jtv) - } - cv = append(cv, col) + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsAwsjson11_deserializeDocumentClarifyInferenceConfig(v **types.ClarifyInferenceConfig, value interface{}) error { +func awsAwsjson11_deserializeDocumentClusterNodeDetails(v **types.ClusterNodeDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38499,116 +40507,79 @@ func awsAwsjson11_deserializeDocumentClarifyInferenceConfig(v **types.ClarifyInf return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ClarifyInferenceConfig + var sv *types.ClusterNodeDetails if *v == nil { - sv = &types.ClarifyInferenceConfig{} + sv = &types.ClusterNodeDetails{} } else { sv = *v } for key, value := range shape { switch key { - case "ContentTemplate": + case "InstanceGroupName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ClarifyContentTemplate to be of type string, got %T instead", value) + return fmt.Errorf("expected ClusterInstanceGroupName to be of type string, got %T instead", value) } - sv.ContentTemplate = ptr.String(jtv) - } - - case "FeatureHeaders": - if err := awsAwsjson11_deserializeDocumentClarifyFeatureHeaders(&sv.FeatureHeaders, value); err != nil { - return err + sv.InstanceGroupName = ptr.String(jtv) } - case "FeaturesAttribute": + case "InstanceId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ClarifyFeaturesAttribute to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FeaturesAttribute = ptr.String(jtv) + sv.InstanceId = ptr.String(jtv) } - case "FeatureTypes": - if err := awsAwsjson11_deserializeDocumentClarifyFeatureTypes(&sv.FeatureTypes, value); err != nil { + case "InstanceStatus": + if err := awsAwsjson11_deserializeDocumentClusterInstanceStatusDetails(&sv.InstanceStatus, value); err != nil { return err } - case "LabelAttribute": + case "InstanceType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ClarifyLabelAttribute to be of type string, got %T instead", value) + return fmt.Errorf("expected ClusterInstanceType to be of type string, got %T instead", value) } - sv.LabelAttribute = ptr.String(jtv) - } - - case "LabelHeaders": - if err := awsAwsjson11_deserializeDocumentClarifyLabelHeaders(&sv.LabelHeaders, value); err != nil { - return err + sv.InstanceType = types.ClusterInstanceType(jtv) } - case "LabelIndex": + case "LaunchTime": if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected ClarifyLabelIndex to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.LabelIndex = ptr.Int32(int32(i64)) - } + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LaunchTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - case "MaxPayloadInMB": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected ClarifyMaxPayloadInMB to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.MaxPayloadInMB = ptr.Int32(int32(i64)) - } + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - case "MaxRecordCount": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected ClarifyMaxRecordCount to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err } - sv.MaxRecordCount = ptr.Int32(int32(i64)) } - case "ProbabilityAttribute": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ClarifyProbabilityAttribute to be of type string, got %T instead", value) - } - sv.ProbabilityAttribute = ptr.String(jtv) + case "LifeCycleConfig": + if err := awsAwsjson11_deserializeDocumentClusterLifeCycleConfig(&sv.LifeCycleConfig, value); err != nil { + return err } - case "ProbabilityIndex": + case "ThreadsPerCore": if value != nil { jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected ClarifyProbabilityIndex to be json.Number, got %T instead", value) + return fmt.Errorf("expected ClusterThreadsPerCore to be json.Number, got %T instead", value) } i64, err := jtv.Int64() if err != nil { return err } - sv.ProbabilityIndex = ptr.Int32(int32(i64)) + sv.ThreadsPerCore = ptr.Int32(int32(i64)) } default: @@ -38620,7 +40591,7 @@ func awsAwsjson11_deserializeDocumentClarifyInferenceConfig(v **types.ClarifyInf return nil } -func awsAwsjson11_deserializeDocumentClarifyLabelHeaders(v *[]string, value interface{}) error { +func awsAwsjson11_deserializeDocumentClusterNodeSummaries(v *[]types.ClusterNodeSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38633,22 +40604,20 @@ func awsAwsjson11_deserializeDocumentClarifyLabelHeaders(v *[]string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var cv []types.ClusterNodeSummary if *v == nil { - cv = []string{} + cv = []types.ClusterNodeSummary{} } else { cv = *v } for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ClarifyHeader to be of type string, got %T instead", value) - } - col = jtv + var col types.ClusterNodeSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentClusterNodeSummary(&destAddr, value); err != nil { + return err } + col = *destAddr cv = append(cv, col) } @@ -38656,7 +40625,7 @@ func awsAwsjson11_deserializeDocumentClarifyLabelHeaders(v *[]string, value inte return nil } -func awsAwsjson11_deserializeDocumentClarifyShapBaselineConfig(v **types.ClarifyShapBaselineConfig, value interface{}) error { +func awsAwsjson11_deserializeDocumentClusterNodeSummary(v **types.ClusterNodeSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38669,40 +40638,61 @@ func awsAwsjson11_deserializeDocumentClarifyShapBaselineConfig(v **types.Clarify return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ClarifyShapBaselineConfig + var sv *types.ClusterNodeSummary if *v == nil { - sv = &types.ClarifyShapBaselineConfig{} + sv = &types.ClusterNodeSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "MimeType": + case "InstanceGroupName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ClarifyMimeType to be of type string, got %T instead", value) + return fmt.Errorf("expected ClusterInstanceGroupName to be of type string, got %T instead", value) } - sv.MimeType = ptr.String(jtv) + sv.InstanceGroupName = ptr.String(jtv) } - case "ShapBaseline": + case "InstanceId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ClarifyShapBaseline to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ShapBaseline = ptr.String(jtv) + sv.InstanceId = ptr.String(jtv) } - case "ShapBaselineUri": + case "InstanceStatus": + if err := awsAwsjson11_deserializeDocumentClusterInstanceStatusDetails(&sv.InstanceStatus, value); err != nil { + return err + } + + case "InstanceType": 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 ClusterInstanceType to be of type string, got %T instead", value) + } + sv.InstanceType = types.ClusterInstanceType(jtv) + } + + case "LaunchTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LaunchTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.ShapBaselineUri = ptr.String(jtv) } default: @@ -38714,7 +40704,7 @@ func awsAwsjson11_deserializeDocumentClarifyShapBaselineConfig(v **types.Clarify return nil } -func awsAwsjson11_deserializeDocumentClarifyShapConfig(v **types.ClarifyShapConfig, value interface{}) error { +func awsAwsjson11_deserializeDocumentClusterSummaries(v *[]types.ClusterSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38722,75 +40712,33 @@ func awsAwsjson11_deserializeDocumentClarifyShapConfig(v **types.ClarifyShapConf 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.ClarifyShapConfig + var cv []types.ClusterSummary if *v == nil { - sv = &types.ClarifyShapConfig{} + cv = []types.ClusterSummary{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "NumberOfSamples": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected ClarifyShapNumberOfSamples to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.NumberOfSamples = ptr.Int32(int32(i64)) - } - - case "Seed": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected ClarifyShapSeed to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.Seed = ptr.Int32(int32(i64)) - } - - case "ShapBaselineConfig": - if err := awsAwsjson11_deserializeDocumentClarifyShapBaselineConfig(&sv.ShapBaselineConfig, value); err != nil { - return err - } - - case "TextConfig": - if err := awsAwsjson11_deserializeDocumentClarifyTextConfig(&sv.TextConfig, value); err != nil { - return err - } - - case "UseLogit": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected ClarifyShapUseLogit to be of type *bool, got %T instead", value) - } - sv.UseLogit = ptr.Bool(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.ClusterSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentClusterSummary(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeDocumentClarifyTextConfig(v **types.ClarifyTextConfig, value interface{}) error { +func awsAwsjson11_deserializeDocumentClusterSummary(v **types.ClusterSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38803,31 +40751,56 @@ func awsAwsjson11_deserializeDocumentClarifyTextConfig(v **types.ClarifyTextConf return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ClarifyTextConfig + var sv *types.ClusterSummary if *v == nil { - sv = &types.ClarifyTextConfig{} + sv = &types.ClusterSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "Granularity": + case "ClusterArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ClarifyTextGranularity to be of type string, got %T instead", value) + return fmt.Errorf("expected ClusterArn to be of type string, got %T instead", value) } - sv.Granularity = types.ClarifyTextGranularity(jtv) + sv.ClusterArn = ptr.String(jtv) } - case "Language": + case "ClusterName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ClarifyTextLanguage to be of type string, got %T instead", value) + return fmt.Errorf("expected ClusterName to be of type string, got %T instead", value) + } + sv.ClusterName = ptr.String(jtv) + } + + case "ClusterStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ClusterStatus to be of type string, got %T instead", value) + } + sv.ClusterStatus = types.ClusterStatus(jtv) + } + + case "CreationTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.Language = types.ClarifyTextLanguage(jtv) } default: @@ -49830,61 +51803,395 @@ func awsAwsjson11_deserializeDocumentImage(v **types.Image, value interface{}) e } } - case "Description": + case "Description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ImageDescription 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 ImageDisplayName to be of type string, got %T instead", value) + } + sv.DisplayName = ptr.String(jtv) + } + + case "FailureReason": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) + } + sv.FailureReason = ptr.String(jtv) + } + + case "ImageArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ImageArn to be of type string, got %T instead", value) + } + sv.ImageArn = ptr.String(jtv) + } + + case "ImageName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ImageName to be of type string, got %T instead", value) + } + sv.ImageName = ptr.String(jtv) + } + + case "ImageStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ImageStatus to be of type string, got %T instead", value) + } + sv.ImageStatus = types.ImageStatus(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) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentImageClassificationJobConfig(v **types.ImageClassificationJobConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ImageClassificationJobConfig + if *v == nil { + sv = &types.ImageClassificationJobConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CompletionCriteria": + if err := awsAwsjson11_deserializeDocumentAutoMLJobCompletionCriteria(&sv.CompletionCriteria, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentImageConfig(v **types.ImageConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ImageConfig + if *v == nil { + sv = &types.ImageConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "RepositoryAccessMode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RepositoryAccessMode to be of type string, got %T instead", value) + } + sv.RepositoryAccessMode = types.RepositoryAccessMode(jtv) + } + + case "RepositoryAuthConfig": + if err := awsAwsjson11_deserializeDocumentRepositoryAuthConfig(&sv.RepositoryAuthConfig, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentImages(v *[]types.Image, 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.Image + if *v == nil { + cv = []types.Image{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Image + destAddr := &col + if err := awsAwsjson11_deserializeDocumentImage(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentImageVersion(v **types.ImageVersion, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ImageVersion + if *v == nil { + sv = &types.ImageVersion{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CreationTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "FailureReason": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ImageDescription to be of type string, got %T instead", value) + return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) } - sv.Description = ptr.String(jtv) + sv.FailureReason = ptr.String(jtv) } - case "DisplayName": + case "ImageArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ImageDisplayName to be of type string, got %T instead", value) + return fmt.Errorf("expected ImageArn to be of type string, got %T instead", value) } - sv.DisplayName = ptr.String(jtv) + sv.ImageArn = ptr.String(jtv) } - case "FailureReason": + case "ImageVersionArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) + return fmt.Errorf("expected ImageVersionArn to be of type string, got %T instead", value) } - sv.FailureReason = ptr.String(jtv) + sv.ImageVersionArn = ptr.String(jtv) } - case "ImageArn": + case "ImageVersionStatus": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ImageArn to be of type string, got %T instead", value) + return fmt.Errorf("expected ImageVersionStatus to be of type string, got %T instead", value) } - sv.ImageArn = ptr.String(jtv) + sv.ImageVersionStatus = types.ImageVersionStatus(jtv) } - case "ImageName": + case "LastModifiedTime": if value != nil { - jtv, ok := value.(string) + 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 "Version": + if value != nil { + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected ImageName to be of type string, got %T instead", value) + return fmt.Errorf("expected ImageVersionNumber to be json.Number, got %T instead", value) } - sv.ImageName = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Version = ptr.Int32(int32(i64)) } - case "ImageStatus": + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentImageVersions(v *[]types.ImageVersion, 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.ImageVersion + if *v == nil { + cv = []types.ImageVersion{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ImageVersion + destAddr := &col + if err := awsAwsjson11_deserializeDocumentImageVersion(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentInferenceComponentComputeResourceRequirements(v **types.InferenceComponentComputeResourceRequirements, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.InferenceComponentComputeResourceRequirements + if *v == nil { + sv = &types.InferenceComponentComputeResourceRequirements{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "MaxMemoryRequiredInMb": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected ImageStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected MemoryInMb to be json.Number, got %T instead", value) } - sv.ImageStatus = types.ImageStatus(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaxMemoryRequiredInMb = ptr.Int32(int32(i64)) } - case "LastModifiedTime": + case "MinMemoryRequiredInMb": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected MemoryInMb to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MinMemoryRequiredInMb = ptr.Int32(int32(i64)) + } + + case "NumberOfAcceleratorDevicesRequired": if value != nil { switch jtv := value.(type) { case json.Number: @@ -49892,10 +52199,62 @@ func awsAwsjson11_deserializeDocumentImage(v **types.Image, value interface{}) e if err != nil { return err } - sv.LastModifiedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.NumberOfAcceleratorDevicesRequired = ptr.Float32(float32(f64)) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.NumberOfAcceleratorDevicesRequired = ptr.Float32(float32(f64)) default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + return fmt.Errorf("expected NumberOfAcceleratorDevices to be a JSON Number, got %T instead", value) + + } + } + + case "NumberOfCpuCoresRequired": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.NumberOfCpuCoresRequired = ptr.Float32(float32(f64)) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.NumberOfCpuCoresRequired = ptr.Float32(float32(f64)) + + default: + return fmt.Errorf("expected NumberOfCpuCores to be a JSON Number, got %T instead", value) } } @@ -49909,7 +52268,7 @@ func awsAwsjson11_deserializeDocumentImage(v **types.Image, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentImageClassificationJobConfig(v **types.ImageClassificationJobConfig, value interface{}) error { +func awsAwsjson11_deserializeDocumentInferenceComponentContainerSpecificationSummary(v **types.InferenceComponentContainerSpecificationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -49922,17 +52281,31 @@ func awsAwsjson11_deserializeDocumentImageClassificationJobConfig(v **types.Imag return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ImageClassificationJobConfig + var sv *types.InferenceComponentContainerSpecificationSummary if *v == nil { - sv = &types.ImageClassificationJobConfig{} + sv = &types.InferenceComponentContainerSpecificationSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "CompletionCriteria": - if err := awsAwsjson11_deserializeDocumentAutoMLJobCompletionCriteria(&sv.CompletionCriteria, value); err != nil { + case "ArtifactUrl": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Url to be of type string, got %T instead", value) + } + sv.ArtifactUrl = ptr.String(jtv) + } + + case "DeployedImage": + if err := awsAwsjson11_deserializeDocumentDeployedImage(&sv.DeployedImage, value); err != nil { + return err + } + + case "Environment": + if err := awsAwsjson11_deserializeDocumentEnvironmentMap(&sv.Environment, value); err != nil { return err } @@ -49945,7 +52318,7 @@ func awsAwsjson11_deserializeDocumentImageClassificationJobConfig(v **types.Imag return nil } -func awsAwsjson11_deserializeDocumentImageConfig(v **types.ImageConfig, value interface{}) error { +func awsAwsjson11_deserializeDocumentInferenceComponentRuntimeConfigSummary(v **types.InferenceComponentRuntimeConfigSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -49958,26 +52331,93 @@ func awsAwsjson11_deserializeDocumentImageConfig(v **types.ImageConfig, value in return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ImageConfig + var sv *types.InferenceComponentRuntimeConfigSummary if *v == nil { - sv = &types.ImageConfig{} + sv = &types.InferenceComponentRuntimeConfigSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "RepositoryAccessMode": + case "CurrentCopyCount": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected InferenceComponentCopyCount to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.CurrentCopyCount = ptr.Int32(int32(i64)) + } + + case "DesiredCopyCount": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected InferenceComponentCopyCount to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.DesiredCopyCount = ptr.Int32(int32(i64)) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentInferenceComponentSpecificationSummary(v **types.InferenceComponentSpecificationSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.InferenceComponentSpecificationSummary + if *v == nil { + sv = &types.InferenceComponentSpecificationSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ComputeResourceRequirements": + if err := awsAwsjson11_deserializeDocumentInferenceComponentComputeResourceRequirements(&sv.ComputeResourceRequirements, value); err != nil { + return err + } + + case "Container": + if err := awsAwsjson11_deserializeDocumentInferenceComponentContainerSpecificationSummary(&sv.Container, value); err != nil { + return err + } + + case "ModelName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected RepositoryAccessMode to be of type string, got %T instead", value) + return fmt.Errorf("expected ModelName to be of type string, got %T instead", value) } - sv.RepositoryAccessMode = types.RepositoryAccessMode(jtv) + sv.ModelName = ptr.String(jtv) } - case "RepositoryAuthConfig": - if err := awsAwsjson11_deserializeDocumentRepositoryAuthConfig(&sv.RepositoryAuthConfig, value); err != nil { + case "StartupParameters": + if err := awsAwsjson11_deserializeDocumentInferenceComponentStartupParameters(&sv.StartupParameters, value); err != nil { return err } @@ -49990,7 +52430,7 @@ func awsAwsjson11_deserializeDocumentImageConfig(v **types.ImageConfig, value in return nil } -func awsAwsjson11_deserializeDocumentImages(v *[]types.Image, value interface{}) error { +func awsAwsjson11_deserializeDocumentInferenceComponentStartupParameters(v **types.InferenceComponentStartupParameters, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -49998,33 +52438,56 @@ func awsAwsjson11_deserializeDocumentImages(v *[]types.Image, value interface{}) return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.Image + var sv *types.InferenceComponentStartupParameters if *v == nil { - cv = []types.Image{} + sv = &types.InferenceComponentStartupParameters{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.Image - destAddr := &col - if err := awsAwsjson11_deserializeDocumentImage(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "ContainerStartupHealthCheckTimeoutInSeconds": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ProductionVariantContainerStartupHealthCheckTimeoutInSeconds to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ContainerStartupHealthCheckTimeoutInSeconds = ptr.Int32(int32(i64)) + } + case "ModelDataDownloadTimeoutInSeconds": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ProductionVariantModelDataDownloadTimeoutInSeconds to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ModelDataDownloadTimeoutInSeconds = ptr.Int32(int32(i64)) + } + + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsAwsjson11_deserializeDocumentImageVersion(v **types.ImageVersion, value interface{}) error { +func awsAwsjson11_deserializeDocumentInferenceComponentSummary(v **types.InferenceComponentSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -50037,9 +52500,9 @@ func awsAwsjson11_deserializeDocumentImageVersion(v **types.ImageVersion, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ImageVersion + var sv *types.InferenceComponentSummary if *v == nil { - sv = &types.ImageVersion{} + sv = &types.InferenceComponentSummary{} } else { sv = *v } @@ -50062,40 +52525,49 @@ func awsAwsjson11_deserializeDocumentImageVersion(v **types.ImageVersion, value } } - case "FailureReason": + case "EndpointArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) + return fmt.Errorf("expected EndpointArn to be of type string, got %T instead", value) } - sv.FailureReason = ptr.String(jtv) + sv.EndpointArn = ptr.String(jtv) } - case "ImageArn": + case "EndpointName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ImageArn to be of type string, got %T instead", value) + return fmt.Errorf("expected EndpointName to be of type string, got %T instead", value) } - sv.ImageArn = ptr.String(jtv) + sv.EndpointName = ptr.String(jtv) } - case "ImageVersionArn": + case "InferenceComponentArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ImageVersionArn to be of type string, got %T instead", value) + return fmt.Errorf("expected InferenceComponentArn to be of type string, got %T instead", value) } - sv.ImageVersionArn = ptr.String(jtv) + sv.InferenceComponentArn = ptr.String(jtv) } - case "ImageVersionStatus": + case "InferenceComponentName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ImageVersionStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected InferenceComponentName to be of type string, got %T instead", value) } - sv.ImageVersionStatus = types.ImageVersionStatus(jtv) + sv.InferenceComponentName = ptr.String(jtv) + } + + case "InferenceComponentStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected InferenceComponentStatus to be of type string, got %T instead", value) + } + sv.InferenceComponentStatus = types.InferenceComponentStatus(jtv) } case "LastModifiedTime": @@ -50114,17 +52586,13 @@ func awsAwsjson11_deserializeDocumentImageVersion(v **types.ImageVersion, value } } - case "Version": + case "VariantName": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ImageVersionNumber to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected VariantName to be of type string, got %T instead", value) } - sv.Version = ptr.Int32(int32(i64)) + sv.VariantName = ptr.String(jtv) } default: @@ -50136,7 +52604,7 @@ func awsAwsjson11_deserializeDocumentImageVersion(v **types.ImageVersion, value return nil } -func awsAwsjson11_deserializeDocumentImageVersions(v *[]types.ImageVersion, value interface{}) error { +func awsAwsjson11_deserializeDocumentInferenceComponentSummaryList(v *[]types.InferenceComponentSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -50149,17 +52617,17 @@ func awsAwsjson11_deserializeDocumentImageVersions(v *[]types.ImageVersion, valu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ImageVersion + var cv []types.InferenceComponentSummary if *v == nil { - cv = []types.ImageVersion{} + cv = []types.InferenceComponentSummary{} } else { cv = *v } for _, value := range shape { - var col types.ImageVersion + var col types.InferenceComponentSummary destAddr := &col - if err := awsAwsjson11_deserializeDocumentImageVersion(&destAddr, value); err != nil { + if err := awsAwsjson11_deserializeDocumentInferenceComponentSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -51033,6 +53501,46 @@ func awsAwsjson11_deserializeDocumentInferenceSpecification(v **types.InferenceS return nil } +func awsAwsjson11_deserializeDocumentInfraCheckConfig(v **types.InfraCheckConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.InfraCheckConfig + if *v == nil { + sv = &types.InfraCheckConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "EnableInfraCheck": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected EnableInfraCheck to be of type *bool, got %T instead", value) + } + sv.EnableInfraCheck = ptr.Bool(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentInputConfig(v **types.InputConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -61285,6 +63793,16 @@ func awsAwsjson11_deserializeDocumentPendingProductionVariantSummary(v **types.P sv.InstanceType = types.ProductionVariantInstanceType(jtv) } + case "ManagedInstanceScaling": + if err := awsAwsjson11_deserializeDocumentProductionVariantManagedInstanceScaling(&sv.ManagedInstanceScaling, value); err != nil { + return err + } + + case "RoutingConfig": + if err := awsAwsjson11_deserializeDocumentProductionVariantRoutingConfig(&sv.RoutingConfig, value); err != nil { + return err + } + case "VariantName": if value != nil { jtv, ok := value.(string) @@ -63528,6 +66046,11 @@ func awsAwsjson11_deserializeDocumentProductionVariant(v **types.ProductionVaria sv.InstanceType = types.ProductionVariantInstanceType(jtv) } + case "ManagedInstanceScaling": + if err := awsAwsjson11_deserializeDocumentProductionVariantManagedInstanceScaling(&sv.ManagedInstanceScaling, value); err != nil { + return err + } + case "ModelDataDownloadTimeoutInSeconds": if value != nil { jtv, ok := value.(json.Number) @@ -63550,6 +66073,11 @@ func awsAwsjson11_deserializeDocumentProductionVariant(v **types.ProductionVaria sv.ModelName = ptr.String(jtv) } + case "RoutingConfig": + if err := awsAwsjson11_deserializeDocumentProductionVariantRoutingConfig(&sv.RoutingConfig, value); err != nil { + return err + } + case "ServerlessConfig": if err := awsAwsjson11_deserializeDocumentProductionVariantServerlessConfig(&sv.ServerlessConfig, value); err != nil { return err @@ -63669,6 +66197,112 @@ func awsAwsjson11_deserializeDocumentProductionVariantList(v *[]types.Production return nil } +func awsAwsjson11_deserializeDocumentProductionVariantManagedInstanceScaling(v **types.ProductionVariantManagedInstanceScaling, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ProductionVariantManagedInstanceScaling + if *v == nil { + sv = &types.ProductionVariantManagedInstanceScaling{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "MaxInstanceCount": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ManagedInstanceScalingMaxInstanceCount to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaxInstanceCount = ptr.Int32(int32(i64)) + } + + case "MinInstanceCount": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ManagedInstanceScalingMinInstanceCount to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MinInstanceCount = ptr.Int32(int32(i64)) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ManagedInstanceScalingStatus to be of type string, got %T instead", value) + } + sv.Status = types.ManagedInstanceScalingStatus(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentProductionVariantRoutingConfig(v **types.ProductionVariantRoutingConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ProductionVariantRoutingConfig + if *v == nil { + sv = &types.ProductionVariantRoutingConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "RoutingStrategy": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RoutingStrategy to be of type string, got %T instead", value) + } + sv.RoutingStrategy = types.RoutingStrategy(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentProductionVariantServerlessConfig(v **types.ProductionVariantServerlessConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -63969,6 +66603,16 @@ func awsAwsjson11_deserializeDocumentProductionVariantSummary(v **types.Producti } } + case "ManagedInstanceScaling": + if err := awsAwsjson11_deserializeDocumentProductionVariantManagedInstanceScaling(&sv.ManagedInstanceScaling, value); err != nil { + return err + } + + case "RoutingConfig": + if err := awsAwsjson11_deserializeDocumentProductionVariantRoutingConfig(&sv.RoutingConfig, value); err != nil { + return err + } + case "VariantName": if value != nil { jtv, ok := value.(string) @@ -66814,6 +69458,15 @@ func awsAwsjson11_deserializeDocumentResourceSpec(v **types.ResourceSpec, value sv.SageMakerImageArn = ptr.String(jtv) } + case "SageMakerImageVersionAlias": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ImageVersionAlias to be of type string, got %T instead", value) + } + sv.SageMakerImageVersionAlias = ptr.String(jtv) + } + case "SageMakerImageVersionArn": if value != nil { jtv, ok := value.(string) @@ -69684,6 +72337,42 @@ func awsAwsjson11_deserializeDocumentTextClassificationJobConfig(v **types.TextC return nil } +func awsAwsjson11_deserializeDocumentTextGenerationHyperParameters(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 TextGenerationHyperParameterValue to be of type string, got %T instead", value) + } + parsedVal = jtv + } + mv[key] = parsedVal + + } + *v = mv + return nil +} + func awsAwsjson11_deserializeDocumentTextGenerationJobConfig(v **types.TextGenerationJobConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -69720,6 +72409,11 @@ func awsAwsjson11_deserializeDocumentTextGenerationJobConfig(v **types.TextGener return err } + case "TextGenerationHyperParameters": + if err := awsAwsjson11_deserializeDocumentTextGenerationHyperParameters(&sv.TextGenerationHyperParameters, value); err != nil { + return err + } + default: _, _ = key, value @@ -73968,6 +76662,15 @@ func awsAwsjson11_deserializeDocumentUserSettings(v **types.UserSettings, value return err } + case "DefaultLandingUri": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LandingUri to be of type string, got %T instead", value) + } + sv.DefaultLandingUri = ptr.String(jtv) + } + case "ExecutionRole": if value != nil { jtv, ok := value.(string) @@ -74007,6 +76710,15 @@ func awsAwsjson11_deserializeDocumentUserSettings(v **types.UserSettings, value return err } + case "StudioWebPortal": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected StudioWebPortal to be of type string, got %T instead", value) + } + sv.StudioWebPortal = types.StudioWebPortal(jtv) + } + case "TensorBoardAppSettings": if err := awsAwsjson11_deserializeDocumentTensorBoardAppSettings(&sv.TensorBoardAppSettings, value); err != nil { return err @@ -75250,6 +77962,46 @@ func awsAwsjson11_deserializeOpDocumentCreateAutoMLJobV2Output(v **CreateAutoMLJ return nil } +func awsAwsjson11_deserializeOpDocumentCreateClusterOutput(v **CreateClusterOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateClusterOutput + if *v == nil { + sv = &CreateClusterOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ClusterArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ClusterArn to be of type string, got %T instead", value) + } + sv.ClusterArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentCreateCodeRepositoryOutput(v **CreateCodeRepositoryOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -75899,6 +78651,46 @@ func awsAwsjson11_deserializeOpDocumentCreateImageVersionOutput(v **CreateImageV return nil } +func awsAwsjson11_deserializeOpDocumentCreateInferenceComponentOutput(v **CreateInferenceComponentOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateInferenceComponentOutput + if *v == nil { + sv = &CreateInferenceComponentOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "InferenceComponentArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected InferenceComponentArn to be of type string, got %T instead", value) + } + sv.InferenceComponentArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentCreateInferenceExperimentOutput(v **CreateInferenceExperimentOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -77157,6 +79949,46 @@ func awsAwsjson11_deserializeOpDocumentDeleteAssociationOutput(v **DeleteAssocia return nil } +func awsAwsjson11_deserializeOpDocumentDeleteClusterOutput(v **DeleteClusterOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DeleteClusterOutput + if *v == nil { + sv = &DeleteClusterOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ClusterArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ClusterArn to be of type string, got %T instead", value) + } + sv.ClusterArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentDeleteContextOutput(v **DeleteContextOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -78655,6 +81487,135 @@ func awsAwsjson11_deserializeOpDocumentDescribeAutoMLJobV2Output(v **DescribeAut return nil } +func awsAwsjson11_deserializeOpDocumentDescribeClusterNodeOutput(v **DescribeClusterNodeOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DescribeClusterNodeOutput + if *v == nil { + sv = &DescribeClusterNodeOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "NodeDetails": + if err := awsAwsjson11_deserializeDocumentClusterNodeDetails(&sv.NodeDetails, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentDescribeClusterOutput(v **DescribeClusterOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DescribeClusterOutput + if *v == nil { + sv = &DescribeClusterOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ClusterArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ClusterArn to be of type string, got %T instead", value) + } + sv.ClusterArn = ptr.String(jtv) + } + + case "ClusterName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ClusterName to be of type string, got %T instead", value) + } + sv.ClusterName = ptr.String(jtv) + } + + case "ClusterStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ClusterStatus to be of type string, got %T instead", value) + } + sv.ClusterStatus = types.ClusterStatus(jtv) + } + + case "CreationTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "FailureMessage": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.FailureMessage = ptr.String(jtv) + } + + case "InstanceGroups": + if err := awsAwsjson11_deserializeDocumentClusterInstanceGroupDetailsList(&sv.InstanceGroups, value); err != nil { + return err + } + + case "VpcConfig": + if err := awsAwsjson11_deserializeDocumentVpcConfig(&sv.VpcConfig, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentDescribeCodeRepositoryOutput(v **DescribeCodeRepositoryOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -80023,6 +82984,15 @@ func awsAwsjson11_deserializeOpDocumentDescribeEndpointConfigOutput(v **Describe return err } + case "EnableNetworkIsolation": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.EnableNetworkIsolation = ptr.Bool(jtv) + } + case "EndpointConfigArn": if value != nil { jtv, ok := value.(string) @@ -80041,6 +83011,15 @@ func awsAwsjson11_deserializeOpDocumentDescribeEndpointConfigOutput(v **Describe sv.EndpointConfigName = ptr.String(jtv) } + case "ExecutionRoleArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) + } + sv.ExecutionRoleArn = ptr.String(jtv) + } + case "ExplainerConfig": if err := awsAwsjson11_deserializeDocumentExplainerConfig(&sv.ExplainerConfig, value); err != nil { return err @@ -80065,6 +83044,11 @@ func awsAwsjson11_deserializeOpDocumentDescribeEndpointConfigOutput(v **Describe return err } + case "VpcConfig": + if err := awsAwsjson11_deserializeDocumentVpcConfig(&sv.VpcConfig, value); err != nil { + return err + } + default: _, _ = key, value @@ -81607,6 +84591,142 @@ func awsAwsjson11_deserializeOpDocumentDescribeImageVersionOutput(v **DescribeIm return nil } +func awsAwsjson11_deserializeOpDocumentDescribeInferenceComponentOutput(v **DescribeInferenceComponentOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DescribeInferenceComponentOutput + if *v == nil { + sv = &DescribeInferenceComponentOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CreationTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "EndpointArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EndpointArn to be of type string, got %T instead", value) + } + sv.EndpointArn = ptr.String(jtv) + } + + case "EndpointName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EndpointName to be of type string, got %T instead", value) + } + sv.EndpointName = ptr.String(jtv) + } + + case "FailureReason": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) + } + sv.FailureReason = ptr.String(jtv) + } + + case "InferenceComponentArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected InferenceComponentArn to be of type string, got %T instead", value) + } + sv.InferenceComponentArn = ptr.String(jtv) + } + + case "InferenceComponentName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected InferenceComponentName to be of type string, got %T instead", value) + } + sv.InferenceComponentName = ptr.String(jtv) + } + + case "InferenceComponentStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected InferenceComponentStatus to be of type string, got %T instead", value) + } + sv.InferenceComponentStatus = types.InferenceComponentStatus(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 "RuntimeConfig": + if err := awsAwsjson11_deserializeDocumentInferenceComponentRuntimeConfigSummary(&sv.RuntimeConfig, value); err != nil { + return err + } + + case "Specification": + if err := awsAwsjson11_deserializeDocumentInferenceComponentSpecificationSummary(&sv.Specification, value); err != nil { + return err + } + + case "VariantName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VariantName to be of type string, got %T instead", value) + } + sv.VariantName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentDescribeInferenceExperimentOutput(v **DescribeInferenceExperimentOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -84519,6 +87639,15 @@ func awsAwsjson11_deserializeOpDocumentDescribeSpaceOutput(v **DescribeSpaceOutp sv.Status = types.SpaceStatus(jtv) } + case "Url": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String1024 to be of type string, got %T instead", value) + } + sv.Url = ptr.String(jtv) + } + default: _, _ = key, value @@ -84804,6 +87933,11 @@ func awsAwsjson11_deserializeOpDocumentDescribeTrainingJobOutput(v **DescribeTra return err } + case "InfraCheckConfig": + if err := awsAwsjson11_deserializeDocumentInfraCheckConfig(&sv.InfraCheckConfig, value); err != nil { + return err + } + case "InputDataConfig": if err := awsAwsjson11_deserializeDocumentInputDataConfig(&sv.InputDataConfig, value); err != nil { return err @@ -86650,6 +89784,96 @@ func awsAwsjson11_deserializeOpDocumentListCandidatesForAutoMLJobOutput(v **List return nil } +func awsAwsjson11_deserializeOpDocumentListClusterNodesOutput(v **ListClusterNodesOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListClusterNodesOutput + if *v == nil { + sv = &ListClusterNodesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ClusterNodeSummaries": + if err := awsAwsjson11_deserializeDocumentClusterNodeSummaries(&sv.ClusterNodeSummaries, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentListClustersOutput(v **ListClustersOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListClustersOutput + if *v == nil { + sv = &ListClustersOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ClusterSummaries": + if err := awsAwsjson11_deserializeDocumentClusterSummaries(&sv.ClusterSummaries, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentListCodeRepositoriesOutput(v **ListCodeRepositoriesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -87595,6 +90819,51 @@ func awsAwsjson11_deserializeOpDocumentListImageVersionsOutput(v **ListImageVers return nil } +func awsAwsjson11_deserializeOpDocumentListInferenceComponentsOutput(v **ListInferenceComponentsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListInferenceComponentsOutput + if *v == nil { + sv = &ListInferenceComponentsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "InferenceComponents": + if err := awsAwsjson11_deserializeDocumentInferenceComponentSummaryList(&sv.InferenceComponents, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentListInferenceExperimentsOutput(v **ListInferenceExperimentsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -90065,6 +93334,46 @@ func awsAwsjson11_deserializeOpDocumentUpdateArtifactOutput(v **UpdateArtifactOu return nil } +func awsAwsjson11_deserializeOpDocumentUpdateClusterOutput(v **UpdateClusterOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateClusterOutput + if *v == nil { + sv = &UpdateClusterOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ClusterArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ClusterArn to be of type string, got %T instead", value) + } + sv.ClusterArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentUpdateCodeRepositoryOutput(v **UpdateCodeRepositoryOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -90465,6 +93774,86 @@ func awsAwsjson11_deserializeOpDocumentUpdateImageVersionOutput(v **UpdateImageV return nil } +func awsAwsjson11_deserializeOpDocumentUpdateInferenceComponentOutput(v **UpdateInferenceComponentOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateInferenceComponentOutput + if *v == nil { + sv = &UpdateInferenceComponentOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "InferenceComponentArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected InferenceComponentArn to be of type string, got %T instead", value) + } + sv.InferenceComponentArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentUpdateInferenceComponentRuntimeConfigOutput(v **UpdateInferenceComponentRuntimeConfigOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateInferenceComponentRuntimeConfigOutput + if *v == nil { + sv = &UpdateInferenceComponentRuntimeConfigOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "InferenceComponentArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected InferenceComponentArn to be of type string, got %T instead", value) + } + sv.InferenceComponentArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentUpdateInferenceExperimentOutput(v **UpdateInferenceExperimentOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/sagemaker/generated.json b/service/sagemaker/generated.json index ebd88889416..bffdde800aa 100644 --- a/service/sagemaker/generated.json +++ b/service/sagemaker/generated.json @@ -21,6 +21,7 @@ "api_op_CreateArtifact.go", "api_op_CreateAutoMLJob.go", "api_op_CreateAutoMLJobV2.go", + "api_op_CreateCluster.go", "api_op_CreateCodeRepository.go", "api_op_CreateCompilationJob.go", "api_op_CreateContext.go", @@ -40,6 +41,7 @@ "api_op_CreateHyperParameterTuningJob.go", "api_op_CreateImage.go", "api_op_CreateImageVersion.go", + "api_op_CreateInferenceComponent.go", "api_op_CreateInferenceExperiment.go", "api_op_CreateInferenceRecommendationsJob.go", "api_op_CreateLabelingJob.go", @@ -74,6 +76,7 @@ "api_op_DeleteAppImageConfig.go", "api_op_DeleteArtifact.go", "api_op_DeleteAssociation.go", + "api_op_DeleteCluster.go", "api_op_DeleteCodeRepository.go", "api_op_DeleteContext.go", "api_op_DeleteDataQualityJobDefinition.go", @@ -91,6 +94,7 @@ "api_op_DeleteHumanTaskUi.go", "api_op_DeleteImage.go", "api_op_DeleteImageVersion.go", + "api_op_DeleteInferenceComponent.go", "api_op_DeleteInferenceExperiment.go", "api_op_DeleteModel.go", "api_op_DeleteModelBiasJobDefinition.go", @@ -121,6 +125,8 @@ "api_op_DescribeArtifact.go", "api_op_DescribeAutoMLJob.go", "api_op_DescribeAutoMLJobV2.go", + "api_op_DescribeCluster.go", + "api_op_DescribeClusterNode.go", "api_op_DescribeCodeRepository.go", "api_op_DescribeCompilationJob.go", "api_op_DescribeContext.go", @@ -142,6 +148,7 @@ "api_op_DescribeHyperParameterTuningJob.go", "api_op_DescribeImage.go", "api_op_DescribeImageVersion.go", + "api_op_DescribeInferenceComponent.go", "api_op_DescribeInferenceExperiment.go", "api_op_DescribeInferenceRecommendationsJob.go", "api_op_DescribeLabelingJob.go", @@ -191,6 +198,8 @@ "api_op_ListAssociations.go", "api_op_ListAutoMLJobs.go", "api_op_ListCandidatesForAutoMLJob.go", + "api_op_ListClusterNodes.go", + "api_op_ListClusters.go", "api_op_ListCodeRepositories.go", "api_op_ListCompilationJobs.go", "api_op_ListContexts.go", @@ -212,6 +221,7 @@ "api_op_ListHyperParameterTuningJobs.go", "api_op_ListImageVersions.go", "api_op_ListImages.go", + "api_op_ListInferenceComponents.go", "api_op_ListInferenceExperiments.go", "api_op_ListInferenceRecommendationsJobSteps.go", "api_op_ListInferenceRecommendationsJobs.go", @@ -284,6 +294,7 @@ "api_op_UpdateAction.go", "api_op_UpdateAppImageConfig.go", "api_op_UpdateArtifact.go", + "api_op_UpdateCluster.go", "api_op_UpdateCodeRepository.go", "api_op_UpdateContext.go", "api_op_UpdateDeviceFleet.go", @@ -297,6 +308,8 @@ "api_op_UpdateHub.go", "api_op_UpdateImage.go", "api_op_UpdateImageVersion.go", + "api_op_UpdateInferenceComponent.go", + "api_op_UpdateInferenceComponentRuntimeConfig.go", "api_op_UpdateInferenceExperiment.go", "api_op_UpdateModelCard.go", "api_op_UpdateModelPackage.go", diff --git a/service/sagemaker/go.mod b/service/sagemaker/go.mod index b7bce8b1703..ba339e4f82a 100644 --- a/service/sagemaker/go.mod +++ b/service/sagemaker/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/sagemaker/go.sum b/service/sagemaker/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/sagemaker/go.sum +++ b/service/sagemaker/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/sagemaker/serializers.go b/service/sagemaker/serializers.go index 8574afb9049..50a22bae210 100644 --- a/service/sagemaker/serializers.go +++ b/service/sagemaker/serializers.go @@ -622,6 +622,61 @@ func (m *awsAwsjson11_serializeOpCreateAutoMLJobV2) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpCreateCluster struct { +} + +func (*awsAwsjson11_serializeOpCreateCluster) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpCreateCluster) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateClusterInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateCluster") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentCreateClusterInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson11_serializeOpCreateCodeRepository struct { } @@ -1667,14 +1722,14 @@ func (m *awsAwsjson11_serializeOpCreateImageVersion) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpCreateInferenceExperiment struct { +type awsAwsjson11_serializeOpCreateInferenceComponent struct { } -func (*awsAwsjson11_serializeOpCreateInferenceExperiment) ID() string { +func (*awsAwsjson11_serializeOpCreateInferenceComponent) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpCreateInferenceExperiment) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpCreateInferenceComponent) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1682,7 +1737,7 @@ func (m *awsAwsjson11_serializeOpCreateInferenceExperiment) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateInferenceExperimentInput) + input, ok := in.Parameters.(*CreateInferenceComponentInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1703,10 +1758,10 @@ func (m *awsAwsjson11_serializeOpCreateInferenceExperiment) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateInferenceExperiment") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateInferenceComponent") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateInferenceExperimentInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentCreateInferenceComponentInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1722,124 +1777,14 @@ func (m *awsAwsjson11_serializeOpCreateInferenceExperiment) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpCreateInferenceRecommendationsJob struct { -} - -func (*awsAwsjson11_serializeOpCreateInferenceRecommendationsJob) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpCreateInferenceRecommendationsJob) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateInferenceRecommendationsJobInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateInferenceRecommendationsJob") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateInferenceRecommendationsJobInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpCreateLabelingJob struct { -} - -func (*awsAwsjson11_serializeOpCreateLabelingJob) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson11_serializeOpCreateLabelingJob) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, -) { - request, ok := in.Request.(*smithyhttp.Request) - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} - } - - input, ok := in.Parameters.(*CreateLabelingJobInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateLabelingJob") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateLabelingJobInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson11_serializeOpCreateModel struct { +type awsAwsjson11_serializeOpCreateInferenceExperiment struct { } -func (*awsAwsjson11_serializeOpCreateModel) ID() string { +func (*awsAwsjson11_serializeOpCreateInferenceExperiment) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpCreateModel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpCreateInferenceExperiment) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1847,7 +1792,7 @@ func (m *awsAwsjson11_serializeOpCreateModel) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateModelInput) + input, ok := in.Parameters.(*CreateInferenceExperimentInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1868,10 +1813,10 @@ func (m *awsAwsjson11_serializeOpCreateModel) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateModel") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateInferenceExperiment") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateModelInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentCreateInferenceExperimentInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1887,14 +1832,14 @@ func (m *awsAwsjson11_serializeOpCreateModel) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpCreateModelBiasJobDefinition struct { +type awsAwsjson11_serializeOpCreateInferenceRecommendationsJob struct { } -func (*awsAwsjson11_serializeOpCreateModelBiasJobDefinition) ID() string { +func (*awsAwsjson11_serializeOpCreateInferenceRecommendationsJob) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpCreateModelBiasJobDefinition) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpCreateInferenceRecommendationsJob) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1902,7 +1847,7 @@ func (m *awsAwsjson11_serializeOpCreateModelBiasJobDefinition) HandleSerialize(c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateModelBiasJobDefinitionInput) + input, ok := in.Parameters.(*CreateInferenceRecommendationsJobInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1923,10 +1868,10 @@ func (m *awsAwsjson11_serializeOpCreateModelBiasJobDefinition) HandleSerialize(c return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateModelBiasJobDefinition") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateInferenceRecommendationsJob") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateModelBiasJobDefinitionInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentCreateInferenceRecommendationsJobInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1942,14 +1887,14 @@ func (m *awsAwsjson11_serializeOpCreateModelBiasJobDefinition) HandleSerialize(c return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpCreateModelCard struct { +type awsAwsjson11_serializeOpCreateLabelingJob struct { } -func (*awsAwsjson11_serializeOpCreateModelCard) ID() string { +func (*awsAwsjson11_serializeOpCreateLabelingJob) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpCreateModelCard) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpCreateLabelingJob) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1957,7 +1902,7 @@ func (m *awsAwsjson11_serializeOpCreateModelCard) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateModelCardInput) + input, ok := in.Parameters.(*CreateLabelingJobInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1978,10 +1923,10 @@ func (m *awsAwsjson11_serializeOpCreateModelCard) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateModelCard") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateLabelingJob") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateModelCardInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentCreateLabelingJobInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1997,14 +1942,14 @@ func (m *awsAwsjson11_serializeOpCreateModelCard) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpCreateModelCardExportJob struct { +type awsAwsjson11_serializeOpCreateModel struct { } -func (*awsAwsjson11_serializeOpCreateModelCardExportJob) ID() string { +func (*awsAwsjson11_serializeOpCreateModel) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpCreateModelCardExportJob) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpCreateModel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -2012,7 +1957,7 @@ func (m *awsAwsjson11_serializeOpCreateModelCardExportJob) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateModelCardExportJobInput) + input, ok := in.Parameters.(*CreateModelInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -2033,10 +1978,10 @@ func (m *awsAwsjson11_serializeOpCreateModelCardExportJob) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateModelCardExportJob") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateModel") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateModelCardExportJobInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentCreateModelInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2052,14 +1997,14 @@ func (m *awsAwsjson11_serializeOpCreateModelCardExportJob) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpCreateModelExplainabilityJobDefinition struct { +type awsAwsjson11_serializeOpCreateModelBiasJobDefinition struct { } -func (*awsAwsjson11_serializeOpCreateModelExplainabilityJobDefinition) ID() string { +func (*awsAwsjson11_serializeOpCreateModelBiasJobDefinition) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpCreateModelExplainabilityJobDefinition) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpCreateModelBiasJobDefinition) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -2067,7 +2012,7 @@ func (m *awsAwsjson11_serializeOpCreateModelExplainabilityJobDefinition) HandleS return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateModelExplainabilityJobDefinitionInput) + input, ok := in.Parameters.(*CreateModelBiasJobDefinitionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -2088,10 +2033,10 @@ func (m *awsAwsjson11_serializeOpCreateModelExplainabilityJobDefinition) HandleS return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateModelExplainabilityJobDefinition") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateModelBiasJobDefinition") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateModelExplainabilityJobDefinitionInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentCreateModelBiasJobDefinitionInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2107,14 +2052,14 @@ func (m *awsAwsjson11_serializeOpCreateModelExplainabilityJobDefinition) HandleS return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpCreateModelPackage struct { +type awsAwsjson11_serializeOpCreateModelCard struct { } -func (*awsAwsjson11_serializeOpCreateModelPackage) ID() string { +func (*awsAwsjson11_serializeOpCreateModelCard) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpCreateModelPackage) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpCreateModelCard) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -2122,7 +2067,7 @@ func (m *awsAwsjson11_serializeOpCreateModelPackage) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateModelPackageInput) + input, ok := in.Parameters.(*CreateModelCardInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -2143,10 +2088,10 @@ func (m *awsAwsjson11_serializeOpCreateModelPackage) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateModelPackage") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateModelCard") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateModelPackageInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentCreateModelCardInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2162,14 +2107,14 @@ func (m *awsAwsjson11_serializeOpCreateModelPackage) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpCreateModelPackageGroup struct { +type awsAwsjson11_serializeOpCreateModelCardExportJob struct { } -func (*awsAwsjson11_serializeOpCreateModelPackageGroup) ID() string { +func (*awsAwsjson11_serializeOpCreateModelCardExportJob) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpCreateModelPackageGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpCreateModelCardExportJob) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -2177,7 +2122,7 @@ func (m *awsAwsjson11_serializeOpCreateModelPackageGroup) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateModelPackageGroupInput) + input, ok := in.Parameters.(*CreateModelCardExportJobInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -2198,10 +2143,10 @@ func (m *awsAwsjson11_serializeOpCreateModelPackageGroup) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateModelPackageGroup") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateModelCardExportJob") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateModelPackageGroupInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentCreateModelCardExportJobInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2217,14 +2162,14 @@ func (m *awsAwsjson11_serializeOpCreateModelPackageGroup) HandleSerialize(ctx co return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpCreateModelQualityJobDefinition struct { +type awsAwsjson11_serializeOpCreateModelExplainabilityJobDefinition struct { } -func (*awsAwsjson11_serializeOpCreateModelQualityJobDefinition) ID() string { +func (*awsAwsjson11_serializeOpCreateModelExplainabilityJobDefinition) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpCreateModelQualityJobDefinition) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpCreateModelExplainabilityJobDefinition) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -2232,7 +2177,172 @@ func (m *awsAwsjson11_serializeOpCreateModelQualityJobDefinition) HandleSerializ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateModelQualityJobDefinitionInput) + input, ok := in.Parameters.(*CreateModelExplainabilityJobDefinitionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateModelExplainabilityJobDefinition") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentCreateModelExplainabilityJobDefinitionInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsAwsjson11_serializeOpCreateModelPackage struct { +} + +func (*awsAwsjson11_serializeOpCreateModelPackage) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpCreateModelPackage) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateModelPackageInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateModelPackage") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentCreateModelPackageInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsAwsjson11_serializeOpCreateModelPackageGroup struct { +} + +func (*awsAwsjson11_serializeOpCreateModelPackageGroup) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpCreateModelPackageGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateModelPackageGroupInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.CreateModelPackageGroup") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentCreateModelPackageGroupInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsAwsjson11_serializeOpCreateModelQualityJobDefinition struct { +} + +func (*awsAwsjson11_serializeOpCreateModelQualityJobDefinition) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpCreateModelQualityJobDefinition) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateModelQualityJobDefinitionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -3537,6 +3647,61 @@ func (m *awsAwsjson11_serializeOpDeleteAssociation) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpDeleteCluster struct { +} + +func (*awsAwsjson11_serializeOpDeleteCluster) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpDeleteCluster) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteClusterInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteCluster") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDeleteClusterInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson11_serializeOpDeleteCodeRepository struct { } @@ -4472,6 +4637,61 @@ func (m *awsAwsjson11_serializeOpDeleteImageVersion) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpDeleteInferenceComponent struct { +} + +func (*awsAwsjson11_serializeOpDeleteInferenceComponent) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpDeleteInferenceComponent) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteInferenceComponentInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteInferenceComponent") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDeleteInferenceComponentInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson11_serializeOpDeleteInferenceExperiment struct { } @@ -6122,6 +6342,116 @@ func (m *awsAwsjson11_serializeOpDescribeAutoMLJobV2) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpDescribeCluster struct { +} + +func (*awsAwsjson11_serializeOpDescribeCluster) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpDescribeCluster) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeClusterInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeCluster") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDescribeClusterInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsAwsjson11_serializeOpDescribeClusterNode struct { +} + +func (*awsAwsjson11_serializeOpDescribeClusterNode) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpDescribeClusterNode) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeClusterNodeInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeClusterNode") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDescribeClusterNodeInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson11_serializeOpDescribeCodeRepository struct { } @@ -7277,6 +7607,61 @@ func (m *awsAwsjson11_serializeOpDescribeImageVersion) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpDescribeInferenceComponent struct { +} + +func (*awsAwsjson11_serializeOpDescribeInferenceComponent) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpDescribeInferenceComponent) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeInferenceComponentInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DescribeInferenceComponent") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDescribeInferenceComponentInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson11_serializeOpDescribeInferenceExperiment struct { } @@ -9972,6 +10357,116 @@ func (m *awsAwsjson11_serializeOpListCandidatesForAutoMLJob) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpListClusterNodes struct { +} + +func (*awsAwsjson11_serializeOpListClusterNodes) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpListClusterNodes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListClusterNodesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListClusterNodes") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentListClusterNodesInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsAwsjson11_serializeOpListClusters struct { +} + +func (*awsAwsjson11_serializeOpListClusters) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpListClusters) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListClustersInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListClusters") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentListClustersInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson11_serializeOpListCodeRepositories struct { } @@ -11127,6 +11622,61 @@ func (m *awsAwsjson11_serializeOpListImageVersions) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpListInferenceComponents struct { +} + +func (*awsAwsjson11_serializeOpListInferenceComponents) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpListInferenceComponents) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListInferenceComponentsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListInferenceComponents") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentListInferenceComponentsInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson11_serializeOpListInferenceExperiments struct { } @@ -15087,6 +15637,61 @@ func (m *awsAwsjson11_serializeOpUpdateArtifact) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpUpdateCluster struct { +} + +func (*awsAwsjson11_serializeOpUpdateCluster) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpUpdateCluster) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateClusterInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateCluster") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentUpdateClusterInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson11_serializeOpUpdateCodeRepository struct { } @@ -15802,6 +16407,116 @@ func (m *awsAwsjson11_serializeOpUpdateImageVersion) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpUpdateInferenceComponent struct { +} + +func (*awsAwsjson11_serializeOpUpdateInferenceComponent) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpUpdateInferenceComponent) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateInferenceComponentInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateInferenceComponent") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentUpdateInferenceComponentInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsAwsjson11_serializeOpUpdateInferenceComponentRuntimeConfig struct { +} + +func (*awsAwsjson11_serializeOpUpdateInferenceComponentRuntimeConfig) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpUpdateInferenceComponentRuntimeConfig) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateInferenceComponentRuntimeConfigInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.UpdateInferenceComponentRuntimeConfig") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentUpdateInferenceComponentRuntimeConfigInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson11_serializeOpUpdateInferenceExperiment struct { } @@ -18382,6 +19097,75 @@ func awsAwsjson11_serializeDocumentClarifyTextConfig(v *types.ClarifyTextConfig, return nil } +func awsAwsjson11_serializeDocumentClusterInstanceGroupSpecification(v *types.ClusterInstanceGroupSpecification, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ExecutionRole != nil { + ok := object.Key("ExecutionRole") + ok.String(*v.ExecutionRole) + } + + if v.InstanceCount != nil { + ok := object.Key("InstanceCount") + ok.Integer(*v.InstanceCount) + } + + if v.InstanceGroupName != nil { + ok := object.Key("InstanceGroupName") + ok.String(*v.InstanceGroupName) + } + + if len(v.InstanceType) > 0 { + ok := object.Key("InstanceType") + ok.String(string(v.InstanceType)) + } + + if v.LifeCycleConfig != nil { + ok := object.Key("LifeCycleConfig") + if err := awsAwsjson11_serializeDocumentClusterLifeCycleConfig(v.LifeCycleConfig, ok); err != nil { + return err + } + } + + if v.ThreadsPerCore != nil { + ok := object.Key("ThreadsPerCore") + ok.Integer(*v.ThreadsPerCore) + } + + return nil +} + +func awsAwsjson11_serializeDocumentClusterInstanceGroupSpecifications(v []types.ClusterInstanceGroupSpecification, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsAwsjson11_serializeDocumentClusterInstanceGroupSpecification(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsAwsjson11_serializeDocumentClusterLifeCycleConfig(v *types.ClusterLifeCycleConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.OnCreate != nil { + ok := object.Key("OnCreate") + ok.String(*v.OnCreate) + } + + if v.SourceS3Uri != nil { + ok := object.Key("SourceS3Uri") + ok.String(*v.SourceS3Uri) + } + + return nil +} + func awsAwsjson11_serializeDocumentCodeRepositories(v []types.CodeRepository, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -20940,6 +21724,145 @@ func awsAwsjson11_serializeDocumentImageDeletePropertyList(v []string, value smi return nil } +func awsAwsjson11_serializeDocumentInferenceComponentComputeResourceRequirements(v *types.InferenceComponentComputeResourceRequirements, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.MaxMemoryRequiredInMb != nil { + ok := object.Key("MaxMemoryRequiredInMb") + ok.Integer(*v.MaxMemoryRequiredInMb) + } + + if v.MinMemoryRequiredInMb != nil { + ok := object.Key("MinMemoryRequiredInMb") + ok.Integer(*v.MinMemoryRequiredInMb) + } + + if v.NumberOfAcceleratorDevicesRequired != nil { + ok := object.Key("NumberOfAcceleratorDevicesRequired") + switch { + case math.IsNaN(float64(*v.NumberOfAcceleratorDevicesRequired)): + ok.String("NaN") + + case math.IsInf(float64(*v.NumberOfAcceleratorDevicesRequired), 1): + ok.String("Infinity") + + case math.IsInf(float64(*v.NumberOfAcceleratorDevicesRequired), -1): + ok.String("-Infinity") + + default: + ok.Float(*v.NumberOfAcceleratorDevicesRequired) + + } + } + + if v.NumberOfCpuCoresRequired != nil { + ok := object.Key("NumberOfCpuCoresRequired") + switch { + case math.IsNaN(float64(*v.NumberOfCpuCoresRequired)): + ok.String("NaN") + + case math.IsInf(float64(*v.NumberOfCpuCoresRequired), 1): + ok.String("Infinity") + + case math.IsInf(float64(*v.NumberOfCpuCoresRequired), -1): + ok.String("-Infinity") + + default: + ok.Float(*v.NumberOfCpuCoresRequired) + + } + } + + return nil +} + +func awsAwsjson11_serializeDocumentInferenceComponentContainerSpecification(v *types.InferenceComponentContainerSpecification, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ArtifactUrl != nil { + ok := object.Key("ArtifactUrl") + ok.String(*v.ArtifactUrl) + } + + if v.Environment != nil { + ok := object.Key("Environment") + if err := awsAwsjson11_serializeDocumentEnvironmentMap(v.Environment, ok); err != nil { + return err + } + } + + if v.Image != nil { + ok := object.Key("Image") + ok.String(*v.Image) + } + + return nil +} + +func awsAwsjson11_serializeDocumentInferenceComponentRuntimeConfig(v *types.InferenceComponentRuntimeConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CopyCount != nil { + ok := object.Key("CopyCount") + ok.Integer(*v.CopyCount) + } + + return nil +} + +func awsAwsjson11_serializeDocumentInferenceComponentSpecification(v *types.InferenceComponentSpecification, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ComputeResourceRequirements != nil { + ok := object.Key("ComputeResourceRequirements") + if err := awsAwsjson11_serializeDocumentInferenceComponentComputeResourceRequirements(v.ComputeResourceRequirements, ok); err != nil { + return err + } + } + + if v.Container != nil { + ok := object.Key("Container") + if err := awsAwsjson11_serializeDocumentInferenceComponentContainerSpecification(v.Container, ok); err != nil { + return err + } + } + + if v.ModelName != nil { + ok := object.Key("ModelName") + ok.String(*v.ModelName) + } + + if v.StartupParameters != nil { + ok := object.Key("StartupParameters") + if err := awsAwsjson11_serializeDocumentInferenceComponentStartupParameters(v.StartupParameters, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeDocumentInferenceComponentStartupParameters(v *types.InferenceComponentStartupParameters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ContainerStartupHealthCheckTimeoutInSeconds != nil { + ok := object.Key("ContainerStartupHealthCheckTimeoutInSeconds") + ok.Integer(*v.ContainerStartupHealthCheckTimeoutInSeconds) + } + + if v.ModelDataDownloadTimeoutInSeconds != nil { + ok := object.Key("ModelDataDownloadTimeoutInSeconds") + ok.Integer(*v.ModelDataDownloadTimeoutInSeconds) + } + + return nil +} + func awsAwsjson11_serializeDocumentInferenceExecutionConfig(v *types.InferenceExecutionConfig, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -21035,6 +21958,18 @@ func awsAwsjson11_serializeDocumentInferenceSpecification(v *types.InferenceSpec return nil } +func awsAwsjson11_serializeDocumentInfraCheckConfig(v *types.InfraCheckConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.EnableInfraCheck != nil { + ok := object.Key("EnableInfraCheck") + ok.Boolean(*v.EnableInfraCheck) + } + + return nil +} + func awsAwsjson11_serializeDocumentInputConfig(v *types.InputConfig, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -23699,6 +24634,13 @@ func awsAwsjson11_serializeDocumentProductionVariant(v *types.ProductionVariant, ok.String(string(v.InstanceType)) } + if v.ManagedInstanceScaling != nil { + ok := object.Key("ManagedInstanceScaling") + if err := awsAwsjson11_serializeDocumentProductionVariantManagedInstanceScaling(v.ManagedInstanceScaling, ok); err != nil { + return err + } + } + if v.ModelDataDownloadTimeoutInSeconds != nil { ok := object.Key("ModelDataDownloadTimeoutInSeconds") ok.Integer(*v.ModelDataDownloadTimeoutInSeconds) @@ -23709,6 +24651,13 @@ func awsAwsjson11_serializeDocumentProductionVariant(v *types.ProductionVariant, ok.String(*v.ModelName) } + if v.RoutingConfig != nil { + ok := object.Key("RoutingConfig") + if err := awsAwsjson11_serializeDocumentProductionVariantRoutingConfig(v.RoutingConfig, ok); err != nil { + return err + } + } + if v.ServerlessConfig != nil { ok := object.Key("ServerlessConfig") if err := awsAwsjson11_serializeDocumentProductionVariantServerlessConfig(v.ServerlessConfig, ok); err != nil { @@ -23759,6 +24708,40 @@ func awsAwsjson11_serializeDocumentProductionVariantList(v []types.ProductionVar return nil } +func awsAwsjson11_serializeDocumentProductionVariantManagedInstanceScaling(v *types.ProductionVariantManagedInstanceScaling, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.MaxInstanceCount != nil { + ok := object.Key("MaxInstanceCount") + ok.Integer(*v.MaxInstanceCount) + } + + if v.MinInstanceCount != nil { + ok := object.Key("MinInstanceCount") + ok.Integer(*v.MinInstanceCount) + } + + if len(v.Status) > 0 { + ok := object.Key("Status") + ok.String(string(v.Status)) + } + + return nil +} + +func awsAwsjson11_serializeDocumentProductionVariantRoutingConfig(v *types.ProductionVariantRoutingConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.RoutingStrategy) > 0 { + ok := object.Key("RoutingStrategy") + ok.String(string(v.RoutingStrategy)) + } + + return nil +} + func awsAwsjson11_serializeDocumentProductionVariantServerlessConfig(v *types.ProductionVariantServerlessConfig, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -24567,6 +25550,11 @@ func awsAwsjson11_serializeDocumentResourceSpec(v *types.ResourceSpec, value smi ok.String(*v.SageMakerImageArn) } + if v.SageMakerImageVersionAlias != nil { + ok := object.Key("SageMakerImageVersionAlias") + ok.String(*v.SageMakerImageVersionAlias) + } + if v.SageMakerImageVersionArn != nil { ok := object.Key("SageMakerImageVersionArn") ok.String(*v.SageMakerImageVersionArn) @@ -25445,6 +26433,17 @@ func awsAwsjson11_serializeDocumentTextClassificationJobConfig(v *types.TextClas return nil } +func awsAwsjson11_serializeDocumentTextGenerationHyperParameters(v map[string]string, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + om.String(v[key]) + } + return nil +} + func awsAwsjson11_serializeDocumentTextGenerationJobConfig(v *types.TextGenerationJobConfig, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -25461,6 +26460,13 @@ func awsAwsjson11_serializeDocumentTextGenerationJobConfig(v *types.TextGenerati } } + if v.TextGenerationHyperParameters != nil { + ok := object.Key("TextGenerationHyperParameters") + if err := awsAwsjson11_serializeDocumentTextGenerationHyperParameters(v.TextGenerationHyperParameters, ok); err != nil { + return err + } + } + return nil } @@ -26227,6 +27233,11 @@ func awsAwsjson11_serializeDocumentUserSettings(v *types.UserSettings, value smi } } + if v.DefaultLandingUri != nil { + ok := object.Key("DefaultLandingUri") + ok.String(*v.DefaultLandingUri) + } + if v.ExecutionRole != nil { ok := object.Key("ExecutionRole") ok.String(*v.ExecutionRole) @@ -26274,6 +27285,11 @@ func awsAwsjson11_serializeDocumentUserSettings(v *types.UserSettings, value smi } } + if len(v.StudioWebPortal) > 0 { + ok := object.Key("StudioWebPortal") + ok.String(string(v.StudioWebPortal)) + } + if v.TensorBoardAppSettings != nil { ok := object.Key("TensorBoardAppSettings") if err := awsAwsjson11_serializeDocumentTensorBoardAppSettings(v.TensorBoardAppSettings, ok); err != nil { @@ -26854,6 +27870,39 @@ func awsAwsjson11_serializeOpDocumentCreateAutoMLJobV2Input(v *CreateAutoMLJobV2 return nil } +func awsAwsjson11_serializeOpDocumentCreateClusterInput(v *CreateClusterInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClusterName != nil { + ok := object.Key("ClusterName") + ok.String(*v.ClusterName) + } + + if v.InstanceGroups != nil { + ok := object.Key("InstanceGroups") + if err := awsAwsjson11_serializeDocumentClusterInstanceGroupSpecifications(v.InstanceGroups, ok); err != nil { + return err + } + } + + if v.Tags != nil { + ok := object.Key("Tags") + if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil { + return err + } + } + + if v.VpcConfig != nil { + ok := object.Key("VpcConfig") + if err := awsAwsjson11_serializeDocumentVpcConfig(v.VpcConfig, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson11_serializeOpDocumentCreateCodeRepositoryInput(v *CreateCodeRepositoryInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -27297,11 +28346,21 @@ func awsAwsjson11_serializeOpDocumentCreateEndpointConfigInput(v *CreateEndpoint } } + if v.EnableNetworkIsolation != nil { + ok := object.Key("EnableNetworkIsolation") + ok.Boolean(*v.EnableNetworkIsolation) + } + if v.EndpointConfigName != nil { ok := object.Key("EndpointConfigName") ok.String(*v.EndpointConfigName) } + if v.ExecutionRoleArn != nil { + ok := object.Key("ExecutionRoleArn") + ok.String(*v.ExecutionRoleArn) + } + if v.ExplainerConfig != nil { ok := object.Key("ExplainerConfig") if err := awsAwsjson11_serializeDocumentExplainerConfig(v.ExplainerConfig, ok); err != nil { @@ -27335,6 +28394,13 @@ func awsAwsjson11_serializeOpDocumentCreateEndpointConfigInput(v *CreateEndpoint } } + if v.VpcConfig != nil { + ok := object.Key("VpcConfig") + if err := awsAwsjson11_serializeDocumentVpcConfig(v.VpcConfig, ok); err != nil { + return err + } + } + return nil } @@ -27731,6 +28797,49 @@ func awsAwsjson11_serializeOpDocumentCreateImageVersionInput(v *CreateImageVersi return nil } +func awsAwsjson11_serializeOpDocumentCreateInferenceComponentInput(v *CreateInferenceComponentInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.EndpointName != nil { + ok := object.Key("EndpointName") + ok.String(*v.EndpointName) + } + + if v.InferenceComponentName != nil { + ok := object.Key("InferenceComponentName") + ok.String(*v.InferenceComponentName) + } + + if v.RuntimeConfig != nil { + ok := object.Key("RuntimeConfig") + if err := awsAwsjson11_serializeDocumentInferenceComponentRuntimeConfig(v.RuntimeConfig, ok); err != nil { + return err + } + } + + if v.Specification != nil { + ok := object.Key("Specification") + if err := awsAwsjson11_serializeDocumentInferenceComponentSpecification(v.Specification, ok); err != nil { + return err + } + } + + if v.Tags != nil { + ok := object.Key("Tags") + if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil { + return err + } + } + + if v.VariantName != nil { + ok := object.Key("VariantName") + ok.String(*v.VariantName) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentCreateInferenceExperimentInput(v *CreateInferenceExperimentInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -28633,6 +29742,11 @@ func awsAwsjson11_serializeOpDocumentCreatePresignedDomainUrlInput(v *CreatePres ok.Integer(*v.ExpiresInSeconds) } + if v.LandingUri != nil { + ok := object.Key("LandingUri") + ok.String(*v.LandingUri) + } + if v.SessionExpirationDurationInSeconds != nil { ok := object.Key("SessionExpirationDurationInSeconds") ok.Integer(*v.SessionExpirationDurationInSeconds) @@ -28907,6 +30021,13 @@ func awsAwsjson11_serializeOpDocumentCreateTrainingJobInput(v *CreateTrainingJob } } + if v.InfraCheckConfig != nil { + ok := object.Key("InfraCheckConfig") + if err := awsAwsjson11_serializeDocumentInfraCheckConfig(v.InfraCheckConfig, ok); err != nil { + return err + } + } + if v.InputDataConfig != nil { ok := object.Key("InputDataConfig") if err := awsAwsjson11_serializeDocumentInputDataConfig(v.InputDataConfig, ok); err != nil { @@ -29425,6 +30546,18 @@ func awsAwsjson11_serializeOpDocumentDeleteAssociationInput(v *DeleteAssociation return nil } +func awsAwsjson11_serializeOpDocumentDeleteClusterInput(v *DeleteClusterInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClusterName != nil { + ok := object.Key("ClusterName") + ok.String(*v.ClusterName) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentDeleteCodeRepositoryInput(v *DeleteCodeRepositoryInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -29666,6 +30799,18 @@ func awsAwsjson11_serializeOpDocumentDeleteImageVersionInput(v *DeleteImageVersi return nil } +func awsAwsjson11_serializeOpDocumentDeleteInferenceComponentInput(v *DeleteInferenceComponentInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.InferenceComponentName != nil { + ok := object.Key("InferenceComponentName") + ok.String(*v.InferenceComponentName) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentDeleteInferenceExperimentInput(v *DeleteInferenceExperimentInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -30075,6 +31220,35 @@ func awsAwsjson11_serializeOpDocumentDescribeAutoMLJobV2Input(v *DescribeAutoMLJ return nil } +func awsAwsjson11_serializeOpDocumentDescribeClusterInput(v *DescribeClusterInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClusterName != nil { + ok := object.Key("ClusterName") + ok.String(*v.ClusterName) + } + + return nil +} + +func awsAwsjson11_serializeOpDocumentDescribeClusterNodeInput(v *DescribeClusterNodeInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClusterName != nil { + ok := object.Key("ClusterName") + ok.String(*v.ClusterName) + } + + if v.NodeId != nil { + ok := object.Key("NodeId") + ok.String(*v.NodeId) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentDescribeCodeRepositoryInput(v *DescribeCodeRepositoryInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -30382,6 +31556,18 @@ func awsAwsjson11_serializeOpDocumentDescribeImageVersionInput(v *DescribeImageV return nil } +func awsAwsjson11_serializeOpDocumentDescribeInferenceComponentInput(v *DescribeInferenceComponentInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.InferenceComponentName != nil { + ok := object.Key("InferenceComponentName") + ok.String(*v.InferenceComponentName) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentDescribeInferenceExperimentInput(v *DescribeInferenceExperimentInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -31331,18 +32517,70 @@ func awsAwsjson11_serializeOpDocumentListAutoMLJobsInput(v *ListAutoMLJobsInput, return nil } -func awsAwsjson11_serializeOpDocumentListCandidatesForAutoMLJobInput(v *ListCandidatesForAutoMLJobInput, value smithyjson.Value) error { +func awsAwsjson11_serializeOpDocumentListCandidatesForAutoMLJobInput(v *ListCandidatesForAutoMLJobInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AutoMLJobName != nil { + ok := object.Key("AutoMLJobName") + ok.String(*v.AutoMLJobName) + } + + if v.CandidateNameEquals != nil { + ok := object.Key("CandidateNameEquals") + ok.String(*v.CandidateNameEquals) + } + + if v.MaxResults != nil { + ok := object.Key("MaxResults") + ok.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + ok := object.Key("NextToken") + ok.String(*v.NextToken) + } + + if len(v.SortBy) > 0 { + ok := object.Key("SortBy") + ok.String(string(v.SortBy)) + } + + if len(v.SortOrder) > 0 { + ok := object.Key("SortOrder") + ok.String(string(v.SortOrder)) + } + + if len(v.StatusEquals) > 0 { + ok := object.Key("StatusEquals") + ok.String(string(v.StatusEquals)) + } + + return nil +} + +func awsAwsjson11_serializeOpDocumentListClusterNodesInput(v *ListClusterNodesInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.AutoMLJobName != nil { - ok := object.Key("AutoMLJobName") - ok.String(*v.AutoMLJobName) + if v.ClusterName != nil { + ok := object.Key("ClusterName") + ok.String(*v.ClusterName) } - if v.CandidateNameEquals != nil { - ok := object.Key("CandidateNameEquals") - ok.String(*v.CandidateNameEquals) + if v.CreationTimeAfter != nil { + ok := object.Key("CreationTimeAfter") + ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter)) + } + + if v.CreationTimeBefore != nil { + ok := object.Key("CreationTimeBefore") + ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore)) + } + + if v.InstanceGroupNameContains != nil { + ok := object.Key("InstanceGroupNameContains") + ok.String(*v.InstanceGroupNameContains) } if v.MaxResults != nil { @@ -31365,9 +32603,46 @@ func awsAwsjson11_serializeOpDocumentListCandidatesForAutoMLJobInput(v *ListCand ok.String(string(v.SortOrder)) } - if len(v.StatusEquals) > 0 { - ok := object.Key("StatusEquals") - ok.String(string(v.StatusEquals)) + return nil +} + +func awsAwsjson11_serializeOpDocumentListClustersInput(v *ListClustersInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CreationTimeAfter != nil { + ok := object.Key("CreationTimeAfter") + ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter)) + } + + if v.CreationTimeBefore != nil { + ok := object.Key("CreationTimeBefore") + ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore)) + } + + if v.MaxResults != nil { + ok := object.Key("MaxResults") + ok.Integer(*v.MaxResults) + } + + if v.NameContains != nil { + ok := object.Key("NameContains") + ok.String(*v.NameContains) + } + + if v.NextToken != nil { + ok := object.Key("NextToken") + ok.String(*v.NextToken) + } + + if len(v.SortBy) > 0 { + ok := object.Key("SortBy") + ok.String(string(v.SortBy)) + } + + if len(v.SortOrder) > 0 { + ok := object.Key("SortOrder") + ok.String(string(v.SortOrder)) } return nil @@ -31932,7 +33207,210 @@ func awsAwsjson11_serializeOpDocumentListExperimentsInput(v *ListExperimentsInpu return nil } -func awsAwsjson11_serializeOpDocumentListFeatureGroupsInput(v *ListFeatureGroupsInput, value smithyjson.Value) error { +func awsAwsjson11_serializeOpDocumentListFeatureGroupsInput(v *ListFeatureGroupsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CreationTimeAfter != nil { + ok := object.Key("CreationTimeAfter") + ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter)) + } + + if v.CreationTimeBefore != nil { + ok := object.Key("CreationTimeBefore") + ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore)) + } + + if len(v.FeatureGroupStatusEquals) > 0 { + ok := object.Key("FeatureGroupStatusEquals") + ok.String(string(v.FeatureGroupStatusEquals)) + } + + if v.MaxResults != nil { + ok := object.Key("MaxResults") + ok.Integer(*v.MaxResults) + } + + if v.NameContains != nil { + ok := object.Key("NameContains") + ok.String(*v.NameContains) + } + + if v.NextToken != nil { + ok := object.Key("NextToken") + ok.String(*v.NextToken) + } + + if len(v.OfflineStoreStatusEquals) > 0 { + ok := object.Key("OfflineStoreStatusEquals") + ok.String(string(v.OfflineStoreStatusEquals)) + } + + if len(v.SortBy) > 0 { + ok := object.Key("SortBy") + ok.String(string(v.SortBy)) + } + + if len(v.SortOrder) > 0 { + ok := object.Key("SortOrder") + ok.String(string(v.SortOrder)) + } + + return nil +} + +func awsAwsjson11_serializeOpDocumentListFlowDefinitionsInput(v *ListFlowDefinitionsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CreationTimeAfter != nil { + ok := object.Key("CreationTimeAfter") + ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter)) + } + + if v.CreationTimeBefore != nil { + ok := object.Key("CreationTimeBefore") + ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore)) + } + + if v.MaxResults != nil { + ok := object.Key("MaxResults") + ok.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + ok := object.Key("NextToken") + ok.String(*v.NextToken) + } + + if len(v.SortOrder) > 0 { + ok := object.Key("SortOrder") + ok.String(string(v.SortOrder)) + } + + return nil +} + +func awsAwsjson11_serializeOpDocumentListHubContentsInput(v *ListHubContentsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CreationTimeAfter != nil { + ok := object.Key("CreationTimeAfter") + ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter)) + } + + if v.CreationTimeBefore != nil { + ok := object.Key("CreationTimeBefore") + ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore)) + } + + if len(v.HubContentType) > 0 { + ok := object.Key("HubContentType") + ok.String(string(v.HubContentType)) + } + + if v.HubName != nil { + ok := object.Key("HubName") + ok.String(*v.HubName) + } + + if v.MaxResults != nil { + ok := object.Key("MaxResults") + ok.Integer(*v.MaxResults) + } + + if v.MaxSchemaVersion != nil { + ok := object.Key("MaxSchemaVersion") + ok.String(*v.MaxSchemaVersion) + } + + if v.NameContains != nil { + ok := object.Key("NameContains") + ok.String(*v.NameContains) + } + + if v.NextToken != nil { + ok := object.Key("NextToken") + ok.String(*v.NextToken) + } + + if len(v.SortBy) > 0 { + ok := object.Key("SortBy") + ok.String(string(v.SortBy)) + } + + if len(v.SortOrder) > 0 { + ok := object.Key("SortOrder") + ok.String(string(v.SortOrder)) + } + + return nil +} + +func awsAwsjson11_serializeOpDocumentListHubContentVersionsInput(v *ListHubContentVersionsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CreationTimeAfter != nil { + ok := object.Key("CreationTimeAfter") + ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter)) + } + + if v.CreationTimeBefore != nil { + ok := object.Key("CreationTimeBefore") + ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore)) + } + + if v.HubContentName != nil { + ok := object.Key("HubContentName") + ok.String(*v.HubContentName) + } + + if len(v.HubContentType) > 0 { + ok := object.Key("HubContentType") + ok.String(string(v.HubContentType)) + } + + if v.HubName != nil { + ok := object.Key("HubName") + ok.String(*v.HubName) + } + + if v.MaxResults != nil { + ok := object.Key("MaxResults") + ok.Integer(*v.MaxResults) + } + + if v.MaxSchemaVersion != nil { + ok := object.Key("MaxSchemaVersion") + ok.String(*v.MaxSchemaVersion) + } + + if v.MinVersion != nil { + ok := object.Key("MinVersion") + ok.String(*v.MinVersion) + } + + if v.NextToken != nil { + ok := object.Key("NextToken") + ok.String(*v.NextToken) + } + + if len(v.SortBy) > 0 { + ok := object.Key("SortBy") + ok.String(string(v.SortBy)) + } + + if len(v.SortOrder) > 0 { + ok := object.Key("SortOrder") + ok.String(string(v.SortOrder)) + } + + return nil +} + +func awsAwsjson11_serializeOpDocumentListHubsInput(v *ListHubsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -31946,9 +33424,14 @@ func awsAwsjson11_serializeOpDocumentListFeatureGroupsInput(v *ListFeatureGroups ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore)) } - if len(v.FeatureGroupStatusEquals) > 0 { - ok := object.Key("FeatureGroupStatusEquals") - ok.String(string(v.FeatureGroupStatusEquals)) + if v.LastModifiedTimeAfter != nil { + ok := object.Key("LastModifiedTimeAfter") + ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeAfter)) + } + + if v.LastModifiedTimeBefore != nil { + ok := object.Key("LastModifiedTimeBefore") + ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore)) } if v.MaxResults != nil { @@ -31966,11 +33449,6 @@ func awsAwsjson11_serializeOpDocumentListFeatureGroupsInput(v *ListFeatureGroups ok.String(*v.NextToken) } - if len(v.OfflineStoreStatusEquals) > 0 { - ok := object.Key("OfflineStoreStatusEquals") - ok.String(string(v.OfflineStoreStatusEquals)) - } - if len(v.SortBy) > 0 { ok := object.Key("SortBy") ok.String(string(v.SortBy)) @@ -31984,7 +33462,7 @@ func awsAwsjson11_serializeOpDocumentListFeatureGroupsInput(v *ListFeatureGroups return nil } -func awsAwsjson11_serializeOpDocumentListFlowDefinitionsInput(v *ListFlowDefinitionsInput, value smithyjson.Value) error { +func awsAwsjson11_serializeOpDocumentListHumanTaskUisInput(v *ListHumanTaskUisInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -32016,7 +33494,7 @@ func awsAwsjson11_serializeOpDocumentListFlowDefinitionsInput(v *ListFlowDefinit return nil } -func awsAwsjson11_serializeOpDocumentListHubContentsInput(v *ListHubContentsInput, value smithyjson.Value) error { +func awsAwsjson11_serializeOpDocumentListHyperParameterTuningJobsInput(v *ListHyperParameterTuningJobsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -32030,14 +33508,14 @@ func awsAwsjson11_serializeOpDocumentListHubContentsInput(v *ListHubContentsInpu ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore)) } - if len(v.HubContentType) > 0 { - ok := object.Key("HubContentType") - ok.String(string(v.HubContentType)) + if v.LastModifiedTimeAfter != nil { + ok := object.Key("LastModifiedTimeAfter") + ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeAfter)) } - if v.HubName != nil { - ok := object.Key("HubName") - ok.String(*v.HubName) + if v.LastModifiedTimeBefore != nil { + ok := object.Key("LastModifiedTimeBefore") + ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore)) } if v.MaxResults != nil { @@ -32045,11 +33523,6 @@ func awsAwsjson11_serializeOpDocumentListHubContentsInput(v *ListHubContentsInpu ok.Integer(*v.MaxResults) } - if v.MaxSchemaVersion != nil { - ok := object.Key("MaxSchemaVersion") - ok.String(*v.MaxSchemaVersion) - } - if v.NameContains != nil { ok := object.Key("NameContains") ok.String(*v.NameContains) @@ -32070,72 +33543,15 @@ func awsAwsjson11_serializeOpDocumentListHubContentsInput(v *ListHubContentsInpu ok.String(string(v.SortOrder)) } - return nil -} - -func awsAwsjson11_serializeOpDocumentListHubContentVersionsInput(v *ListHubContentVersionsInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.CreationTimeAfter != nil { - ok := object.Key("CreationTimeAfter") - ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter)) - } - - if v.CreationTimeBefore != nil { - ok := object.Key("CreationTimeBefore") - ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore)) - } - - if v.HubContentName != nil { - ok := object.Key("HubContentName") - ok.String(*v.HubContentName) - } - - if len(v.HubContentType) > 0 { - ok := object.Key("HubContentType") - ok.String(string(v.HubContentType)) - } - - if v.HubName != nil { - ok := object.Key("HubName") - ok.String(*v.HubName) - } - - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.MaxSchemaVersion != nil { - ok := object.Key("MaxSchemaVersion") - ok.String(*v.MaxSchemaVersion) - } - - if v.MinVersion != nil { - ok := object.Key("MinVersion") - ok.String(*v.MinVersion) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - if len(v.SortBy) > 0 { - ok := object.Key("SortBy") - ok.String(string(v.SortBy)) - } - - if len(v.SortOrder) > 0 { - ok := object.Key("SortOrder") - ok.String(string(v.SortOrder)) + if len(v.StatusEquals) > 0 { + ok := object.Key("StatusEquals") + ok.String(string(v.StatusEquals)) } return nil } -func awsAwsjson11_serializeOpDocumentListHubsInput(v *ListHubsInput, value smithyjson.Value) error { +func awsAwsjson11_serializeOpDocumentListImagesInput(v *ListImagesInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -32187,7 +33603,7 @@ func awsAwsjson11_serializeOpDocumentListHubsInput(v *ListHubsInput, value smith return nil } -func awsAwsjson11_serializeOpDocumentListHumanTaskUisInput(v *ListHumanTaskUisInput, value smithyjson.Value) error { +func awsAwsjson11_serializeOpDocumentListImageVersionsInput(v *ListImageVersionsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -32201,36 +33617,9 @@ func awsAwsjson11_serializeOpDocumentListHumanTaskUisInput(v *ListHumanTaskUisIn ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore)) } - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - if len(v.SortOrder) > 0 { - ok := object.Key("SortOrder") - ok.String(string(v.SortOrder)) - } - - return nil -} - -func awsAwsjson11_serializeOpDocumentListHyperParameterTuningJobsInput(v *ListHyperParameterTuningJobsInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.CreationTimeAfter != nil { - ok := object.Key("CreationTimeAfter") - ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter)) - } - - if v.CreationTimeBefore != nil { - ok := object.Key("CreationTimeBefore") - ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore)) + if v.ImageName != nil { + ok := object.Key("ImageName") + ok.String(*v.ImageName) } if v.LastModifiedTimeAfter != nil { @@ -32248,11 +33637,6 @@ func awsAwsjson11_serializeOpDocumentListHyperParameterTuningJobsInput(v *ListHy ok.Integer(*v.MaxResults) } - if v.NameContains != nil { - ok := object.Key("NameContains") - ok.String(*v.NameContains) - } - if v.NextToken != nil { ok := object.Key("NextToken") ok.String(*v.NextToken) @@ -32268,15 +33652,10 @@ func awsAwsjson11_serializeOpDocumentListHyperParameterTuningJobsInput(v *ListHy ok.String(string(v.SortOrder)) } - if len(v.StatusEquals) > 0 { - ok := object.Key("StatusEquals") - ok.String(string(v.StatusEquals)) - } - return nil } -func awsAwsjson11_serializeOpDocumentListImagesInput(v *ListImagesInput, value smithyjson.Value) error { +func awsAwsjson11_serializeOpDocumentListInferenceComponentsInput(v *ListInferenceComponentsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -32290,6 +33669,11 @@ func awsAwsjson11_serializeOpDocumentListImagesInput(v *ListImagesInput, value s ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore)) } + if v.EndpointNameEquals != nil { + ok := object.Key("EndpointNameEquals") + ok.String(*v.EndpointNameEquals) + } + if v.LastModifiedTimeAfter != nil { ok := object.Key("LastModifiedTimeAfter") ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeAfter)) @@ -32325,56 +33709,14 @@ func awsAwsjson11_serializeOpDocumentListImagesInput(v *ListImagesInput, value s ok.String(string(v.SortOrder)) } - return nil -} - -func awsAwsjson11_serializeOpDocumentListImageVersionsInput(v *ListImageVersionsInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.CreationTimeAfter != nil { - ok := object.Key("CreationTimeAfter") - ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter)) - } - - if v.CreationTimeBefore != nil { - ok := object.Key("CreationTimeBefore") - ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore)) - } - - if v.ImageName != nil { - ok := object.Key("ImageName") - ok.String(*v.ImageName) - } - - if v.LastModifiedTimeAfter != nil { - ok := object.Key("LastModifiedTimeAfter") - ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeAfter)) - } - - if v.LastModifiedTimeBefore != nil { - ok := object.Key("LastModifiedTimeBefore") - ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore)) - } - - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - if len(v.SortBy) > 0 { - ok := object.Key("SortBy") - ok.String(string(v.SortBy)) + if len(v.StatusEquals) > 0 { + ok := object.Key("StatusEquals") + ok.String(string(v.StatusEquals)) } - if len(v.SortOrder) > 0 { - ok := object.Key("SortOrder") - ok.String(string(v.SortOrder)) + if v.VariantNameEquals != nil { + ok := object.Key("VariantNameEquals") + ok.String(*v.VariantNameEquals) } return nil @@ -34914,6 +36256,25 @@ func awsAwsjson11_serializeOpDocumentUpdateArtifactInput(v *UpdateArtifactInput, return nil } +func awsAwsjson11_serializeOpDocumentUpdateClusterInput(v *UpdateClusterInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClusterName != nil { + ok := object.Key("ClusterName") + ok.String(*v.ClusterName) + } + + if v.InstanceGroups != nil { + ok := object.Key("InstanceGroups") + if err := awsAwsjson11_serializeDocumentClusterInstanceGroupSpecifications(v.InstanceGroups, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson11_serializeOpDocumentUpdateCodeRepositoryInput(v *UpdateCodeRepositoryInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -35021,6 +36382,11 @@ func awsAwsjson11_serializeOpDocumentUpdateDomainInput(v *UpdateDomainInput, val object := value.Object() defer object.Close() + if len(v.AppNetworkAccessType) > 0 { + ok := object.Key("AppNetworkAccessType") + ok.String(string(v.AppNetworkAccessType)) + } + if len(v.AppSecurityGroupManagement) > 0 { ok := object.Key("AppSecurityGroupManagement") ok.String(string(v.AppSecurityGroupManagement)) @@ -35052,6 +36418,13 @@ func awsAwsjson11_serializeOpDocumentUpdateDomainInput(v *UpdateDomainInput, val } } + if v.SubnetIds != nil { + ok := object.Key("SubnetIds") + if err := awsAwsjson11_serializeDocumentSubnets(v.SubnetIds, ok); err != nil { + return err + } + } + return nil } @@ -35333,6 +36706,51 @@ func awsAwsjson11_serializeOpDocumentUpdateImageVersionInput(v *UpdateImageVersi return nil } +func awsAwsjson11_serializeOpDocumentUpdateInferenceComponentInput(v *UpdateInferenceComponentInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.InferenceComponentName != nil { + ok := object.Key("InferenceComponentName") + ok.String(*v.InferenceComponentName) + } + + if v.RuntimeConfig != nil { + ok := object.Key("RuntimeConfig") + if err := awsAwsjson11_serializeDocumentInferenceComponentRuntimeConfig(v.RuntimeConfig, ok); err != nil { + return err + } + } + + if v.Specification != nil { + ok := object.Key("Specification") + if err := awsAwsjson11_serializeDocumentInferenceComponentSpecification(v.Specification, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeOpDocumentUpdateInferenceComponentRuntimeConfigInput(v *UpdateInferenceComponentRuntimeConfigInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DesiredRuntimeConfig != nil { + ok := object.Key("DesiredRuntimeConfig") + if err := awsAwsjson11_serializeDocumentInferenceComponentRuntimeConfig(v.DesiredRuntimeConfig, ok); err != nil { + return err + } + } + + if v.InferenceComponentName != nil { + ok := object.Key("InferenceComponentName") + ok.String(*v.InferenceComponentName) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentUpdateInferenceExperimentInput(v *UpdateInferenceExperimentInput, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/sagemaker/types/enums.go b/service/sagemaker/types/enums.go index 52e0e8309c8..0f4f5380f41 100644 --- a/service/sagemaker/types/enums.go +++ b/service/sagemaker/types/enums.go @@ -1255,6 +1255,166 @@ func (ClarifyTextLanguage) Values() []ClarifyTextLanguage { } } +type ClusterInstanceStatus string + +// Enum values for ClusterInstanceStatus +const ( + ClusterInstanceStatusRunning ClusterInstanceStatus = "Running" + ClusterInstanceStatusFailure ClusterInstanceStatus = "Failure" + ClusterInstanceStatusPending ClusterInstanceStatus = "Pending" + ClusterInstanceStatusShuttingDown ClusterInstanceStatus = "ShuttingDown" + ClusterInstanceStatusSystemUpdating ClusterInstanceStatus = "SystemUpdating" +) + +// Values returns all known values for ClusterInstanceStatus. 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 (ClusterInstanceStatus) Values() []ClusterInstanceStatus { + return []ClusterInstanceStatus{ + "Running", + "Failure", + "Pending", + "ShuttingDown", + "SystemUpdating", + } +} + +type ClusterInstanceType string + +// Enum values for ClusterInstanceType +const ( + ClusterInstanceTypeMlP4d24xlarge ClusterInstanceType = "ml.p4d.24xlarge" + ClusterInstanceTypeMlP4de24xlarge ClusterInstanceType = "ml.p4de.24xlarge" + ClusterInstanceTypeMlP548xlarge ClusterInstanceType = "ml.p5.48xlarge" + ClusterInstanceTypeMlTrn132xlarge ClusterInstanceType = "ml.trn1.32xlarge" + ClusterInstanceTypeMlTrn1n32xlarge ClusterInstanceType = "ml.trn1n.32xlarge" + ClusterInstanceTypeMlG5Xlarge ClusterInstanceType = "ml.g5.xlarge" + ClusterInstanceTypeMlG52xlarge ClusterInstanceType = "ml.g5.2xlarge" + ClusterInstanceTypeMlG54xlarge ClusterInstanceType = "ml.g5.4xlarge" + ClusterInstanceTypeMlG58xlarge ClusterInstanceType = "ml.g5.8xlarge" + ClusterInstanceTypeMlG512xlarge ClusterInstanceType = "ml.g5.12xlarge" + ClusterInstanceTypeMlG516xlarge ClusterInstanceType = "ml.g5.16xlarge" + ClusterInstanceTypeMlG524xlarge ClusterInstanceType = "ml.g5.24xlarge" + ClusterInstanceTypeMlG548xlarge ClusterInstanceType = "ml.g5.48xlarge" + ClusterInstanceTypeMlC5Large ClusterInstanceType = "ml.c5.large" + ClusterInstanceTypeMlC5Xlarge ClusterInstanceType = "ml.c5.xlarge" + ClusterInstanceTypeMlC52xlarge ClusterInstanceType = "ml.c5.2xlarge" + ClusterInstanceTypeMlC54xlarge ClusterInstanceType = "ml.c5.4xlarge" + ClusterInstanceTypeMlC59xlarge ClusterInstanceType = "ml.c5.9xlarge" + ClusterInstanceTypeMlC512xlarge ClusterInstanceType = "ml.c5.12xlarge" + ClusterInstanceTypeMlC518xlarge ClusterInstanceType = "ml.c5.18xlarge" + ClusterInstanceTypeMlC524xlarge ClusterInstanceType = "ml.c5.24xlarge" + ClusterInstanceTypeMlC5nLarge ClusterInstanceType = "ml.c5n.large" + ClusterInstanceTypeMlC5n2xlarge ClusterInstanceType = "ml.c5n.2xlarge" + ClusterInstanceTypeMlC5n4xlarge ClusterInstanceType = "ml.c5n.4xlarge" + ClusterInstanceTypeMlC5n9xlarge ClusterInstanceType = "ml.c5n.9xlarge" + ClusterInstanceTypeMlC5n18xlarge ClusterInstanceType = "ml.c5n.18xlarge" + ClusterInstanceTypeMlM5Large ClusterInstanceType = "ml.m5.large" + ClusterInstanceTypeMlM5Xlarge ClusterInstanceType = "ml.m5.xlarge" + ClusterInstanceTypeMlM52xlarge ClusterInstanceType = "ml.m5.2xlarge" + ClusterInstanceTypeMlM54xlarge ClusterInstanceType = "ml.m5.4xlarge" + ClusterInstanceTypeMlM58xlarge ClusterInstanceType = "ml.m5.8xlarge" + ClusterInstanceTypeMlM512xlarge ClusterInstanceType = "ml.m5.12xlarge" + ClusterInstanceTypeMlM516xlarge ClusterInstanceType = "ml.m5.16xlarge" + ClusterInstanceTypeMlM524xlarge ClusterInstanceType = "ml.m5.24xlarge" + ClusterInstanceTypeMlT3Medium ClusterInstanceType = "ml.t3.medium" + ClusterInstanceTypeMlT3Large ClusterInstanceType = "ml.t3.large" + ClusterInstanceTypeMlT3Xlarge ClusterInstanceType = "ml.t3.xlarge" + ClusterInstanceTypeMlT32xlarge ClusterInstanceType = "ml.t3.2xlarge" +) + +// Values returns all known values for ClusterInstanceType. 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 (ClusterInstanceType) Values() []ClusterInstanceType { + return []ClusterInstanceType{ + "ml.p4d.24xlarge", + "ml.p4de.24xlarge", + "ml.p5.48xlarge", + "ml.trn1.32xlarge", + "ml.trn1n.32xlarge", + "ml.g5.xlarge", + "ml.g5.2xlarge", + "ml.g5.4xlarge", + "ml.g5.8xlarge", + "ml.g5.12xlarge", + "ml.g5.16xlarge", + "ml.g5.24xlarge", + "ml.g5.48xlarge", + "ml.c5.large", + "ml.c5.xlarge", + "ml.c5.2xlarge", + "ml.c5.4xlarge", + "ml.c5.9xlarge", + "ml.c5.12xlarge", + "ml.c5.18xlarge", + "ml.c5.24xlarge", + "ml.c5n.large", + "ml.c5n.2xlarge", + "ml.c5n.4xlarge", + "ml.c5n.9xlarge", + "ml.c5n.18xlarge", + "ml.m5.large", + "ml.m5.xlarge", + "ml.m5.2xlarge", + "ml.m5.4xlarge", + "ml.m5.8xlarge", + "ml.m5.12xlarge", + "ml.m5.16xlarge", + "ml.m5.24xlarge", + "ml.t3.medium", + "ml.t3.large", + "ml.t3.xlarge", + "ml.t3.2xlarge", + } +} + +type ClusterSortBy string + +// Enum values for ClusterSortBy +const ( + ClusterSortByCreationTime ClusterSortBy = "CREATION_TIME" + ClusterSortByName ClusterSortBy = "NAME" +) + +// Values returns all known values for ClusterSortBy. 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 (ClusterSortBy) Values() []ClusterSortBy { + return []ClusterSortBy{ + "CREATION_TIME", + "NAME", + } +} + +type ClusterStatus string + +// Enum values for ClusterStatus +const ( + ClusterStatusCreating ClusterStatus = "Creating" + ClusterStatusDeleting ClusterStatus = "Deleting" + ClusterStatusFailed ClusterStatus = "Failed" + ClusterStatusInservice ClusterStatus = "InService" + ClusterStatusRollingback ClusterStatus = "RollingBack" + ClusterStatusSystemupdating ClusterStatus = "SystemUpdating" + ClusterStatusUpdating ClusterStatus = "Updating" +) + +// Values returns all known values for ClusterStatus. 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 (ClusterStatus) Values() []ClusterStatus { + return []ClusterStatus{ + "Creating", + "Deleting", + "Failed", + "InService", + "RollingBack", + "SystemUpdating", + "Updating", + } +} + type CodeRepositorySortBy string // Enum values for CodeRepositorySortBy @@ -2477,6 +2637,50 @@ func (ImageVersionStatus) Values() []ImageVersionStatus { } } +type InferenceComponentSortKey string + +// Enum values for InferenceComponentSortKey +const ( + InferenceComponentSortKeyName InferenceComponentSortKey = "Name" + InferenceComponentSortKeyCreationTime InferenceComponentSortKey = "CreationTime" + InferenceComponentSortKeyStatus InferenceComponentSortKey = "Status" +) + +// Values returns all known values for InferenceComponentSortKey. 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 (InferenceComponentSortKey) Values() []InferenceComponentSortKey { + return []InferenceComponentSortKey{ + "Name", + "CreationTime", + "Status", + } +} + +type InferenceComponentStatus string + +// Enum values for InferenceComponentStatus +const ( + InferenceComponentStatusInService InferenceComponentStatus = "InService" + InferenceComponentStatusCreating InferenceComponentStatus = "Creating" + InferenceComponentStatusUpdating InferenceComponentStatus = "Updating" + InferenceComponentStatusFailed InferenceComponentStatus = "Failed" + InferenceComponentStatusDeleting InferenceComponentStatus = "Deleting" +) + +// Values returns all known values for InferenceComponentStatus. 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 (InferenceComponentStatus) Values() []InferenceComponentStatus { + return []InferenceComponentStatus{ + "InService", + "Creating", + "Updating", + "Failed", + "Deleting", + } +} + type InferenceExecutionMode string // Enum values for InferenceExecutionMode @@ -3009,6 +3213,25 @@ func (ListWorkteamsSortByOptions) Values() []ListWorkteamsSortByOptions { } } +type ManagedInstanceScalingStatus string + +// Enum values for ManagedInstanceScalingStatus +const ( + ManagedInstanceScalingStatusEnabled ManagedInstanceScalingStatus = "ENABLED" + ManagedInstanceScalingStatusDisabled ManagedInstanceScalingStatus = "DISABLED" +) + +// Values returns all known values for ManagedInstanceScalingStatus. 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 (ManagedInstanceScalingStatus) Values() []ManagedInstanceScalingStatus { + return []ManagedInstanceScalingStatus{ + "ENABLED", + "DISABLED", + } +} + type MetricSetSource string // Enum values for MetricSetSource @@ -4885,6 +5108,24 @@ func (RootAccess) Values() []RootAccess { } } +type RoutingStrategy string + +// Enum values for RoutingStrategy +const ( + RoutingStrategyLeastOutstandingRequests RoutingStrategy = "LEAST_OUTSTANDING_REQUESTS" + RoutingStrategyRandom RoutingStrategy = "RANDOM" +) + +// Values returns all known values for RoutingStrategy. 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 (RoutingStrategy) Values() []RoutingStrategy { + return []RoutingStrategy{ + "LEAST_OUTSTANDING_REQUESTS", + "RANDOM", + } +} + type RStudioServerProAccessStatus string // Enum values for RStudioServerProAccessStatus @@ -5575,6 +5816,24 @@ func (StudioLifecycleConfigSortKey) Values() []StudioLifecycleConfigSortKey { } } +type StudioWebPortal string + +// Enum values for StudioWebPortal +const ( + StudioWebPortalEnabled StudioWebPortal = "ENABLED" + StudioWebPortalDisabled StudioWebPortal = "DISABLED" +) + +// Values returns all known values for StudioWebPortal. 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 (StudioWebPortal) Values() []StudioWebPortal { + return []StudioWebPortal{ + "ENABLED", + "DISABLED", + } +} + type TableFormat string // Enum values for TableFormat diff --git a/service/sagemaker/types/types.go b/service/sagemaker/types/types.go index 2aa10e5ff4a..f4a102bee8f 100644 --- a/service/sagemaker/types/types.go +++ b/service/sagemaker/types/types.go @@ -1424,7 +1424,8 @@ type AutoMLJobCompletionCriteria struct { // For more information, see the StoppingCondition (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_StoppingCondition.html) // used by the CreateHyperParameterTuningJob (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateHyperParameterTuningJob.html) // action. For job V2s (jobs created by calling CreateAutoMLJobV2 ), this field - // controls the runtime of the job candidate. + // controls the runtime of the job candidate. For TextGenerationJobConfig (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_TextClassificationJobConfig.html) + // problem types, the maximum time defaults to 72 hours (259200 seconds). MaxRuntimePerTrainingJobInSeconds *int32 noSmithyDocumentSerde @@ -2567,6 +2568,197 @@ type ClarifyTextConfig struct { noSmithyDocumentSerde } +// Details of an instance group in a SageMaker HyperPod cluster. +type ClusterInstanceGroupDetails struct { + + // The number of instances that are currently in the instance group of a SageMaker + // HyperPod cluster. + CurrentCount *int32 + + // The execution role for the instance group to assume. + ExecutionRole *string + + // The name of the instance group of a SageMaker HyperPod cluster. + InstanceGroupName *string + + // The instance type of the instance group of a SageMaker HyperPod cluster. + InstanceType ClusterInstanceType + + // Details of LifeCycle configuration for the instance group. + LifeCycleConfig *ClusterLifeCycleConfig + + // The number of instances you specified to add to the instance group of a + // SageMaker HyperPod cluster. + TargetCount *int32 + + // The number you specified to TreadsPerCore in CreateCluster for enabling or + // disabling multithreading. For instance types that support multithreading, you + // can specify 1 for disabling multithreading and 2 for enabling multithreading. + // For more information, see the reference table of CPU cores and threads per CPU + // core per instance type (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/cpu-options-supported-instances-values.html) + // in the Amazon Elastic Compute Cloud User Guide. + ThreadsPerCore *int32 + + noSmithyDocumentSerde +} + +// The specifications of an instance group that you need to define. +type ClusterInstanceGroupSpecification struct { + + // Specifies an IAM execution role to be assumed by the instance group. + // + // This member is required. + ExecutionRole *string + + // Specifies the number of instances to add to the instance group of a SageMaker + // HyperPod cluster. + // + // This member is required. + InstanceCount *int32 + + // Specifies the name of the instance group. + // + // This member is required. + InstanceGroupName *string + + // Specifies the instance type of the instance group. + // + // This member is required. + InstanceType ClusterInstanceType + + // Specifies the LifeCycle configuration for the instance group. + // + // This member is required. + LifeCycleConfig *ClusterLifeCycleConfig + + // Specifies the value for Threads per core. For instance types that support + // multithreading, you can specify 1 for disabling multithreading and 2 for + // enabling multithreading. For instance types that doesn't support multithreading, + // specify 1 . For more information, see the reference table of CPU cores and + // threads per CPU core per instance type (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/cpu-options-supported-instances-values.html) + // in the Amazon Elastic Compute Cloud User Guide. + ThreadsPerCore *int32 + + noSmithyDocumentSerde +} + +// Details of an instance in a SageMaker HyperPod cluster. +type ClusterInstanceStatusDetails struct { + + // The status of an instance in a SageMaker HyperPod cluster. + // + // This member is required. + Status ClusterInstanceStatus + + // The message from an instance in a SageMaker HyperPod cluster. + Message *string + + noSmithyDocumentSerde +} + +// The LifeCycle configuration for a SageMaker HyperPod cluster. +type ClusterLifeCycleConfig struct { + + // The directory of the LifeCycle script under SourceS3Uri . This LifeCycle script + // runs during cluster creation. + // + // This member is required. + OnCreate *string + + // An Amazon S3 bucket path where your LifeCycle scripts are stored. + // + // This member is required. + SourceS3Uri *string + + noSmithyDocumentSerde +} + +// Details of an instance (also called a node interchangeably) in a SageMaker +// HyperPod cluster. +type ClusterNodeDetails struct { + + // The instance group name in which the instance is. + InstanceGroupName *string + + // The ID of the instance. + InstanceId *string + + // The status of the instance. + InstanceStatus *ClusterInstanceStatusDetails + + // The type of the instance. + InstanceType ClusterInstanceType + + // The time when the instance is launched. + LaunchTime *time.Time + + // The LifeCycle configuration applied to the instance. + LifeCycleConfig *ClusterLifeCycleConfig + + // The number of threads per CPU core you specified under CreateCluster . + ThreadsPerCore *int32 + + noSmithyDocumentSerde +} + +// Lists a summary of the properties of an instance (also called a node +// interchangeably) of a SageMaker HyperPod cluster. +type ClusterNodeSummary struct { + + // The name of the instance group in which the instance is. + // + // This member is required. + InstanceGroupName *string + + // The ID of the instance. + // + // This member is required. + InstanceId *string + + // The status of the instance. + // + // This member is required. + InstanceStatus *ClusterInstanceStatusDetails + + // The type of the instance. + // + // This member is required. + InstanceType ClusterInstanceType + + // The time when the instance is launched. + // + // This member is required. + LaunchTime *time.Time + + noSmithyDocumentSerde +} + +// Lists a summary of the properties of a SageMaker HyperPod cluster. +type ClusterSummary struct { + + // The Amazon Resource Name (ARN) of the SageMaker HyperPod cluster. + // + // This member is required. + ClusterArn *string + + // The name of the SageMaker HyperPod cluster. + // + // This member is required. + ClusterName *string + + // The status of the SageMaker HyperPod cluster. + // + // This member is required. + ClusterStatus ClusterStatus + + // The time when the SageMaker HyperPod cluster is created. + // + // This member is required. + CreationTime *time.Time + + noSmithyDocumentSerde +} + // A Git repository that SageMaker automatically displays to users for cloning in // the JupyterServer application. type CodeRepository struct { @@ -6814,6 +7006,210 @@ type ImageVersion struct { noSmithyDocumentSerde } +// Defines the compute resources to allocate to run a model that you assign to an +// inference component. These resources include CPU cores, accelerators, and +// memory. +type InferenceComponentComputeResourceRequirements struct { + + // The minimum MB of memory to allocate to run a model that you assign to an + // inference component. + // + // This member is required. + MinMemoryRequiredInMb *int32 + + // The maximum MB of memory to allocate to run a model that you assign to an + // inference component. + MaxMemoryRequiredInMb *int32 + + // The number of accelerators to allocate to run a model that you assign to an + // inference component. Accelerators include GPUs and Amazon Web Services + // Inferentia. + NumberOfAcceleratorDevicesRequired *float32 + + // The number of CPU cores to allocate to run a model that you assign to an + // inference component. + NumberOfCpuCoresRequired *float32 + + noSmithyDocumentSerde +} + +// Defines a container that provides the runtime environment for a model that you +// deploy with an inference component. +type InferenceComponentContainerSpecification struct { + + // The Amazon S3 path where the model artifacts, which result from model training, + // are stored. This path must point to a single gzip compressed tar archive + // (.tar.gz suffix). + ArtifactUrl *string + + // The environment variables to set in the Docker container. Each key and value in + // the Environment string-to-string map can have length of up to 1024. We support + // up to 16 entries in the map. + Environment map[string]string + + // The Amazon Elastic Container Registry (Amazon ECR) path where the Docker image + // for the model is stored. + Image *string + + noSmithyDocumentSerde +} + +// Details about the resources that are deployed with this inference component. +type InferenceComponentContainerSpecificationSummary struct { + + // The Amazon S3 path where the model artifacts are stored. + ArtifactUrl *string + + // Gets the Amazon EC2 Container Registry path of the docker image of the model + // that is hosted in this ProductionVariant (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ProductionVariant.html) + // . If you used the registry/repository[:tag] form to specify the image path of + // the primary container when you created the model hosted in this + // ProductionVariant , the path resolves to a path of the form + // registry/repository[@digest] . A digest is a hash value that identifies a + // specific version of an image. For information about Amazon ECR paths, see + // Pulling an Image (https://docs.aws.amazon.com/AmazonECR/latest/userguide/docker-pull-ecr-image.html) + // in the Amazon ECR User Guide. + DeployedImage *DeployedImage + + // The environment variables to set in the Docker container. + Environment map[string]string + + noSmithyDocumentSerde +} + +// Runtime settings for a model that is deployed with an inference component. +type InferenceComponentRuntimeConfig struct { + + // The number of runtime copies of the model container to deploy with the + // inference component. Each copy can serve inference requests. + // + // This member is required. + CopyCount *int32 + + noSmithyDocumentSerde +} + +// Details about the runtime settings for the model that is deployed with the +// inference component. +type InferenceComponentRuntimeConfigSummary struct { + + // The number of runtime copies of the model container that are currently deployed. + CurrentCopyCount *int32 + + // The number of runtime copies of the model container that you requested to + // deploy with the inference component. + DesiredCopyCount *int32 + + noSmithyDocumentSerde +} + +// Details about the resources to deploy with this inference component, including +// the model, container, and compute resources. +type InferenceComponentSpecification struct { + + // The compute resources allocated to run the model assigned to the inference + // component. + // + // This member is required. + ComputeResourceRequirements *InferenceComponentComputeResourceRequirements + + // Defines a container that provides the runtime environment for a model that you + // deploy with an inference component. + Container *InferenceComponentContainerSpecification + + // The name of an existing SageMaker model object in your account that you want to + // deploy with the inference component. + ModelName *string + + // Settings that take effect while the model container starts up. + StartupParameters *InferenceComponentStartupParameters + + noSmithyDocumentSerde +} + +// Details about the resources that are deployed with this inference component. +type InferenceComponentSpecificationSummary struct { + + // The compute resources allocated to run the model assigned to the inference + // component. + ComputeResourceRequirements *InferenceComponentComputeResourceRequirements + + // Details about the container that provides the runtime environment for the model + // that is deployed with the inference component. + Container *InferenceComponentContainerSpecificationSummary + + // The name of the SageMaker model object that is deployed with the inference + // component. + ModelName *string + + // Settings that take effect while the model container starts up. + StartupParameters *InferenceComponentStartupParameters + + noSmithyDocumentSerde +} + +// Settings that take effect while the model container starts up. +type InferenceComponentStartupParameters struct { + + // The timeout value, in seconds, for your inference container to pass health + // check by Amazon S3 Hosting. For more information about health check, see How + // Your Container Should Respond to Health Check (Ping) Requests (https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-inference-code.html#your-algorithms-inference-algo-ping-requests) + // . + ContainerStartupHealthCheckTimeoutInSeconds *int32 + + // The timeout value, in seconds, to download and extract the model that you want + // to host from Amazon S3 to the individual inference instance associated with this + // inference component. + ModelDataDownloadTimeoutInSeconds *int32 + + noSmithyDocumentSerde +} + +// A summary of the properties of an inference component. +type InferenceComponentSummary struct { + + // The time when the inference component was created. + // + // This member is required. + CreationTime *time.Time + + // The Amazon Resource Name (ARN) of the endpoint that hosts the inference + // component. + // + // This member is required. + EndpointArn *string + + // The name of the endpoint that hosts the inference component. + // + // This member is required. + EndpointName *string + + // The Amazon Resource Name (ARN) of the inference component. + // + // This member is required. + InferenceComponentArn *string + + // The name of the inference component. + // + // This member is required. + InferenceComponentName *string + + // The time when the inference component was last updated. + // + // This member is required. + LastModifiedTime *time.Time + + // The name of the production variant that hosts the inference component. + // + // This member is required. + VariantName *string + + // The status of the inference component. + InferenceComponentStatus InferenceComponentStatus + + noSmithyDocumentSerde +} + // Specifies details about how containers in a multi-container endpoint are run. type InferenceExecutionConfig struct { @@ -7075,6 +7471,17 @@ type InferenceSpecification struct { noSmithyDocumentSerde } +// Configuration information for the infrastructure health check of a training +// job. A SageMaker-provided health check tests the health of instance hardware and +// cluster network connectivity. +type InfraCheckConfig struct { + + // Enables an infrastructure health check. + EnableInfraCheck *bool + + noSmithyDocumentSerde +} + // Contains information about the location of input model artifacts, the name and // shape of the expected data inputs, and the framework in which the model was // trained. @@ -7590,11 +7997,10 @@ type LabelingJobResourceConfig struct { // "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string - // Specifies a VPC that your training jobs and hosted models have access to. - // Control access to and from your training and model containers by configuring the - // VPC. For more information, see Protect Endpoints by Using an Amazon Virtual - // Private Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html) - // and Protect Training Jobs by Using an Amazon Virtual Private Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html) + // Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, + // hosted models, and compute resources have access to. You can control access to + // and from your resources by configuring a VPC. For more information, see Give + // SageMaker Access to Resources in your Amazon VPC (https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) // . VpcConfig *VpcConfig @@ -7942,11 +8348,10 @@ type Model struct { // in the Amazon Web Services General Reference Guide. Tags []Tag - // Specifies a VPC that your training jobs and hosted models have access to. - // Control access to and from your training and model containers by configuring the - // VPC. For more information, see Protect Endpoints by Using an Amazon Virtual - // Private Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html) - // and Protect Training Jobs by Using an Amazon Virtual Private Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html) + // Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, + // hosted models, and compute resources have access to. You can control access to + // and from your resources by configuring a VPC. For more information, see Give + // SageMaker Access to Resources in your Amazon VPC (https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) // . VpcConfig *VpcConfig @@ -9526,11 +9931,10 @@ type MonitoringNetworkConfig struct { // used for the monitoring job. EnableNetworkIsolation *bool - // Specifies a VPC that your training jobs and hosted models have access to. - // Control access to and from your training and model containers by configuring the - // VPC. For more information, see Protect Endpoints by Using an Amazon Virtual - // Private Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html) - // and Protect Training Jobs by Using an Amazon Virtual Private Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html) + // Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, + // hosted models, and compute resources have access to. You can control access to + // and from your resources by configuring a VPC. For more information, see Give + // SageMaker Access to Resources in your Amazon VPC (https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) // . VpcConfig *VpcConfig @@ -9811,11 +10215,10 @@ type NetworkConfig struct { // used for the processing job. EnableNetworkIsolation *bool - // Specifies a VPC that your training jobs and hosted models have access to. - // Control access to and from your training and model containers by configuring the - // VPC. For more information, see Protect Endpoints by Using an Amazon Virtual - // Private Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html) - // and Protect Training Jobs by Using an Amazon Virtual Private Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html) + // Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, + // hosted models, and compute resources have access to. You can control access to + // and from your resources by configuring a VPC. For more information, see Give + // SageMaker Access to Resources in your Amazon VPC (https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) // . VpcConfig *VpcConfig @@ -10505,6 +10908,14 @@ type PendingProductionVariantSummary struct { // The type of instances associated with the variant. InstanceType ProductionVariantInstanceType + // Settings that control the range in the number of instances that the endpoint + // provisions as it scales up or down to accommodate traffic. + ManagedInstanceScaling *ProductionVariantManagedInstanceScaling + + // Settings that control how the endpoint routes incoming traffic to the instances + // that the endpoint hosts. + RoutingConfig *ProductionVariantRoutingConfig + // The endpoint variant status which describes the current deployment stage status // or operational status. VariantStatus []ProductionVariantStatus @@ -11214,12 +11625,6 @@ type ProcessingStoppingCondition struct { // . type ProductionVariant struct { - // The name of the model that you want to host. This is the name that you - // specified when creating the model. - // - // This member is required. - ModelName *string - // The name of the production variant. // // This member is required. @@ -11260,11 +11665,23 @@ type ProductionVariant struct { // The ML compute instance type. InstanceType ProductionVariantInstanceType + // Settings that control the range in the number of instances that the endpoint + // provisions as it scales up or down to accommodate traffic. + ManagedInstanceScaling *ProductionVariantManagedInstanceScaling + // The timeout value, in seconds, to download and extract the model that you want // to host from Amazon S3 to the individual inference instance associated with this // production variant. ModelDataDownloadTimeoutInSeconds *int32 + // The name of the model that you want to host. This is the name that you + // specified when creating the model. + ModelName *string + + // Settings that control how the endpoint routes incoming traffic to the instances + // that the endpoint hosts. + RoutingConfig *ProductionVariantRoutingConfig + // The serverless configuration for an endpoint. Specifies a serverless endpoint // configuration instead of an instance-based endpoint configuration. ServerlessConfig *ProductionVariantServerlessConfig @@ -11313,6 +11730,39 @@ type ProductionVariantCoreDumpConfig struct { noSmithyDocumentSerde } +// Settings that control the range in the number of instances that the endpoint +// provisions as it scales up or down to accommodate traffic. +type ProductionVariantManagedInstanceScaling struct { + + // The maximum number of instances that the endpoint can provision when it scales + // up to accommodate an increase in traffic. + MaxInstanceCount *int32 + + // The minimum number of instances that the endpoint must retain when it scales + // down to accommodate a decrease in traffic. + MinInstanceCount *int32 + + // Indicates whether managed instance scaling is enabled. + Status ManagedInstanceScalingStatus + + noSmithyDocumentSerde +} + +// Settings that control how the endpoint routes incoming traffic to the instances +// that the endpoint hosts. +type ProductionVariantRoutingConfig struct { + + // Sets how the endpoint routes incoming traffic: + // - LEAST_OUTSTANDING_REQUESTS : The endpoint routes requests to the specific + // instances that have more capacity to process them. + // - RANDOM : The endpoint routes each request to a randomly chosen instance. + // + // This member is required. + RoutingStrategy RoutingStrategy + + noSmithyDocumentSerde +} + // Specifies the serverless configuration for an endpoint variant. type ProductionVariantServerlessConfig struct { @@ -11414,6 +11864,14 @@ type ProductionVariantSummary struct { // request. DesiredWeight *float32 + // Settings that control the range in the number of instances that the endpoint + // provisions as it scales up or down to accommodate traffic. + ManagedInstanceScaling *ProductionVariantManagedInstanceScaling + + // Settings that control how the endpoint routes incoming traffic to the instances + // that the endpoint hosts. + RoutingConfig *ProductionVariantRoutingConfig + // The endpoint variant status which describes the current deployment stage status // or operational status. VariantStatus []ProductionVariantStatus @@ -12446,6 +12904,9 @@ type ResourceSpec struct { // The ARN of the SageMaker image that the image version belongs to. SageMakerImageArn *string + // The SageMakerImageVersionAlias. + SageMakerImageVersionAlias *string + // The ARN of the image version created on the instance. SageMakerImageVersionArn *string @@ -13149,10 +13610,10 @@ type ShadowModelVariantConfig struct { noSmithyDocumentSerde } -// Specifies options for sharing SageMaker Studio notebooks. These settings are -// specified as part of DefaultUserSettings when the CreateDomain API is called, -// and as part of UserSettings when the CreateUserProfile API is called. When -// SharingSettings is not specified, notebook sharing isn't allowed. +// Specifies options for sharing Amazon SageMaker Studio notebooks. These settings +// are specified as part of DefaultUserSettings when the CreateDomain API is +// called, and as part of UserSettings when the CreateUserProfile API is called. +// When SharingSettings is not specified, notebook sharing isn't allowed. type SharingSettings struct { // Whether to include the notebook cell output when sharing the notebook. The @@ -13336,14 +13797,14 @@ type StoppingCondition struct { noSmithyDocumentSerde } -// Details of the Studio Lifecycle Configuration. +// Details of the Amazon SageMaker Studio Lifecycle Configuration. type StudioLifecycleConfigDetails struct { - // The creation time of the Studio Lifecycle Configuration. + // The creation time of the Amazon SageMaker Studio Lifecycle Configuration. CreationTime *time.Time - // This value is equivalent to CreationTime because Studio Lifecycle - // Configurations are immutable. + // This value is equivalent to CreationTime because Amazon SageMaker Studio + // Lifecycle Configurations are immutable. LastModifiedTime *time.Time // The App type to which the Lifecycle Configuration is attached. @@ -13352,7 +13813,7 @@ type StudioLifecycleConfigDetails struct { // The Amazon Resource Name (ARN) of the Lifecycle Configuration. StudioLifecycleConfigArn *string - // The name of the Studio Lifecycle Configuration. + // The name of the Amazon SageMaker Studio Lifecycle Configuration. StudioLifecycleConfigName *string noSmithyDocumentSerde @@ -13620,13 +14081,38 @@ type TextGenerationJobConfig struct { // The name of the base model to fine-tune. Autopilot supports fine-tuning a // variety of large language models. For information on the list of supported // models, see Text generation models supporting fine-tuning in Autopilot (https://docs.aws.amazon.com/sagemaker/latest/dg/autopilot-llms-finetuning-models.html#autopilot-llms-finetuning-supported-llms) - // . If no BaseModelName is provided, the default model used is Falcon-7B-Instruct. + // . If no BaseModelName is provided, the default model used is Falcon7BInstruct. BaseModelName *string - // How long a job is allowed to run, or how many candidates a job is allowed to - // generate. + // How long a fine-tuning job is allowed to run. For TextGenerationJobConfig + // problem types, the MaxRuntimePerTrainingJobInSeconds attribute of + // AutoMLJobCompletionCriteria defaults to 72h (259200s). CompletionCriteria *AutoMLJobCompletionCriteria + // The hyperparameters used to configure and optimize the learning process of the + // base model. You can set any combination of the following hyperparameters for all + // base models. For more information on each supported hyperparameter, see + // Optimize the learning process of your text generation models with + // hyperparameters (https://docs.aws.amazon.com/sagemaker/latest/dg/autopilot-llms-finetuning-set-hyperparameters.html) + // . + // - "epochCount" : The number of times the model goes through the entire + // training dataset. Its value should be a string containing an integer value + // within the range of "1" to "10". + // - "batchSize" : The number of data samples used in each iteration of training. + // Its value should be a string containing an integer value within the range of "1" + // to "64". + // - "learningRate" : The step size at which a model's parameters are updated + // during training. Its value should be a string containing a floating-point value + // within the range of "0" to "1". + // - "learningRateWarmupSteps" : The number of training steps during which the + // learning rate gradually increases before reaching its target or maximum value. + // Its value should be a string containing an integer value within the range of "0" + // to "250". + // Here is an example where all four hyperparameters are configured. { + // "epochCount":"5", "learningRate":"0.5", "batchSize": "32", + // "learningRateWarmupSteps": "10" } + TextGenerationHyperParameters map[string]string + noSmithyDocumentSerde } @@ -15168,17 +15654,25 @@ type UserProfileDetails struct { noSmithyDocumentSerde } -// A collection of settings that apply to users of Amazon SageMaker Studio. These -// settings are specified when the CreateUserProfile API is called, and as -// DefaultUserSettings when the CreateDomain API is called. SecurityGroups is -// aggregated when specified in both calls. For all other settings in UserSettings -// , the values specified in CreateUserProfile take precedence over those -// specified in CreateDomain . +// A collection of settings that apply to users in a domain. These settings are +// specified when the CreateUserProfile API is called, and as DefaultUserSettings +// when the CreateDomain API is called. SecurityGroups is aggregated when +// specified in both calls. For all other settings in UserSettings , the values +// specified in CreateUserProfile take precedence over those specified in +// CreateDomain . type UserSettings struct { // The Canvas app settings. CanvasAppSettings *CanvasAppSettings + // The default experience that the user is directed to when accessing the domain. + // The supported values are: + // - studio:: : Indicates that Studio is the default experience. This value can + // only be passed if StudioWebPortal is set to ENABLED . + // - app:JupyterServer: : Indicates that Studio Classic is the default + // experience. + DefaultLandingUri *string + // The execution role for the user. ExecutionRole *string @@ -15195,19 +15689,23 @@ type UserSettings struct { // RStudioServerPro app. RStudioServerProAppSettings *RStudioServerProAppSettings - // The security groups for the Amazon Virtual Private Cloud (VPC) that Studio uses - // for communication. Optional when the CreateDomain.AppNetworkAccessType + // The security groups for the Amazon Virtual Private Cloud (VPC) that the domain + // uses for communication. Optional when the CreateDomain.AppNetworkAccessType // parameter is set to PublicInternetOnly . Required when the // CreateDomain.AppNetworkAccessType parameter is set to VpcOnly , unless specified // as part of the DefaultUserSettings for the domain. Amazon SageMaker adds a - // security group to allow NFS traffic from SageMaker Studio. Therefore, the number - // of security groups that you can specify is one less than the maximum number - // shown. + // security group to allow NFS traffic from Amazon SageMaker Studio. Therefore, the + // number of security groups that you can specify is one less than the maximum + // number shown. SecurityGroups []string - // Specifies options for sharing SageMaker Studio notebooks. + // Specifies options for sharing Amazon SageMaker Studio notebooks. SharingSettings *SharingSettings + // Whether the user can access Studio. If this value is set to DISABLED , the user + // cannot access Studio, even if that is the default experience for the domain. + StudioWebPortal StudioWebPortal + // The TensorBoard app settings. TensorBoardAppSettings *TensorBoardAppSettings @@ -15265,15 +15763,14 @@ type Vertex struct { noSmithyDocumentSerde } -// Specifies a VPC that your training jobs and hosted models have access to. -// Control access to and from your training and model containers by configuring the -// VPC. For more information, see Protect Endpoints by Using an Amazon Virtual -// Private Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html) -// and Protect Training Jobs by Using an Amazon Virtual Private Cloud (https://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html) +// Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, +// hosted models, and compute resources have access to. You can control access to +// and from your resources by configuring a VPC. For more information, see Give +// SageMaker Access to Resources in your Amazon VPC (https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) // . type VpcConfig struct { - // The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security + // The VPC security group IDs, in the form sg-xxxxxxxx . Specify the security // groups for the VPC that is specified in the Subnets field. // // This member is required. diff --git a/service/sagemaker/validators.go b/service/sagemaker/validators.go index e677e7c7cab..dabab2acfe0 100644 --- a/service/sagemaker/validators.go +++ b/service/sagemaker/validators.go @@ -230,6 +230,26 @@ func (m *validateOpCreateAutoMLJobV2) HandleInitialize(ctx context.Context, in m return next.HandleInitialize(ctx, in) } +type validateOpCreateCluster struct { +} + +func (*validateOpCreateCluster) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateCluster) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateClusterInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateClusterInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateCodeRepository struct { } @@ -610,6 +630,26 @@ func (m *validateOpCreateImageVersion) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpCreateInferenceComponent struct { +} + +func (*validateOpCreateInferenceComponent) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateInferenceComponent) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateInferenceComponentInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateInferenceComponentInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateInferenceExperiment struct { } @@ -1290,6 +1330,26 @@ func (m *validateOpDeleteAssociation) HandleInitialize(ctx context.Context, in m return next.HandleInitialize(ctx, in) } +type validateOpDeleteCluster struct { +} + +func (*validateOpDeleteCluster) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteCluster) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteClusterInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteClusterInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteCodeRepository struct { } @@ -1630,6 +1690,26 @@ func (m *validateOpDeleteImageVersion) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpDeleteInferenceComponent struct { +} + +func (*validateOpDeleteInferenceComponent) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteInferenceComponent) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteInferenceComponentInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteInferenceComponentInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteInferenceExperiment struct { } @@ -2230,6 +2310,46 @@ func (m *validateOpDescribeAutoMLJobV2) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpDescribeCluster struct { +} + +func (*validateOpDescribeCluster) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeCluster) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeClusterInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeClusterInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDescribeClusterNode struct { +} + +func (*validateOpDescribeClusterNode) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeClusterNode) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeClusterNodeInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeClusterNodeInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDescribeCodeRepository struct { } @@ -2650,6 +2770,26 @@ func (m *validateOpDescribeImageVersion) HandleInitialize(ctx context.Context, i return next.HandleInitialize(ctx, in) } +type validateOpDescribeInferenceComponent struct { +} + +func (*validateOpDescribeInferenceComponent) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeInferenceComponent) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeInferenceComponentInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeInferenceComponentInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDescribeInferenceExperiment struct { } @@ -3430,6 +3570,26 @@ func (m *validateOpListCandidatesForAutoMLJob) HandleInitialize(ctx context.Cont return next.HandleInitialize(ctx, in) } +type validateOpListClusterNodes struct { +} + +func (*validateOpListClusterNodes) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListClusterNodes) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListClusterNodesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListClusterNodesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListHubContents struct { } @@ -4290,6 +4450,26 @@ func (m *validateOpUpdateArtifact) HandleInitialize(ctx context.Context, in midd return next.HandleInitialize(ctx, in) } +type validateOpUpdateCluster struct { +} + +func (*validateOpUpdateCluster) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateCluster) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateClusterInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateClusterInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateCodeRepository struct { } @@ -4550,6 +4730,46 @@ func (m *validateOpUpdateImageVersion) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpUpdateInferenceComponent struct { +} + +func (*validateOpUpdateInferenceComponent) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateInferenceComponent) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateInferenceComponentInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateInferenceComponentInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateInferenceComponentRuntimeConfig struct { +} + +func (*validateOpUpdateInferenceComponentRuntimeConfig) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateInferenceComponentRuntimeConfig) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateInferenceComponentRuntimeConfigInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateInferenceComponentRuntimeConfigInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateInferenceExperiment struct { } @@ -4934,6 +5154,10 @@ func addOpCreateAutoMLJobV2ValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateAutoMLJobV2{}, middleware.After) } +func addOpCreateClusterValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateCluster{}, middleware.After) +} + func addOpCreateCodeRepositoryValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateCodeRepository{}, middleware.After) } @@ -5010,6 +5234,10 @@ func addOpCreateImageVersionValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpCreateImageVersion{}, middleware.After) } +func addOpCreateInferenceComponentValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateInferenceComponent{}, middleware.After) +} + func addOpCreateInferenceExperimentValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateInferenceExperiment{}, middleware.After) } @@ -5146,6 +5374,10 @@ func addOpDeleteAssociationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteAssociation{}, middleware.After) } +func addOpDeleteClusterValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteCluster{}, middleware.After) +} + func addOpDeleteCodeRepositoryValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteCodeRepository{}, middleware.After) } @@ -5214,6 +5446,10 @@ func addOpDeleteImageVersionValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpDeleteImageVersion{}, middleware.After) } +func addOpDeleteInferenceComponentValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteInferenceComponent{}, middleware.After) +} + func addOpDeleteInferenceExperimentValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteInferenceExperiment{}, middleware.After) } @@ -5334,6 +5570,14 @@ func addOpDescribeAutoMLJobV2ValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpDescribeAutoMLJobV2{}, middleware.After) } +func addOpDescribeClusterValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeCluster{}, middleware.After) +} + +func addOpDescribeClusterNodeValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeClusterNode{}, middleware.After) +} + func addOpDescribeCodeRepositoryValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeCodeRepository{}, middleware.After) } @@ -5418,6 +5662,10 @@ func addOpDescribeImageVersionValidationMiddleware(stack *middleware.Stack) erro return stack.Initialize.Add(&validateOpDescribeImageVersion{}, middleware.After) } +func addOpDescribeInferenceComponentValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeInferenceComponent{}, middleware.After) +} + func addOpDescribeInferenceExperimentValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeInferenceExperiment{}, middleware.After) } @@ -5574,6 +5822,10 @@ func addOpListCandidatesForAutoMLJobValidationMiddleware(stack *middleware.Stack return stack.Initialize.Add(&validateOpListCandidatesForAutoMLJob{}, middleware.After) } +func addOpListClusterNodesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListClusterNodes{}, middleware.After) +} + func addOpListHubContentsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListHubContents{}, middleware.After) } @@ -5746,6 +5998,10 @@ func addOpUpdateArtifactValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateArtifact{}, middleware.After) } +func addOpUpdateClusterValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateCluster{}, middleware.After) +} + func addOpUpdateCodeRepositoryValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateCodeRepository{}, middleware.After) } @@ -5798,6 +6054,14 @@ func addOpUpdateImageVersionValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpUpdateImageVersion{}, middleware.After) } +func addOpUpdateInferenceComponentValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateInferenceComponent{}, middleware.After) +} + +func addOpUpdateInferenceComponentRuntimeConfigValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateInferenceComponentRuntimeConfig{}, middleware.After) +} + func addOpUpdateInferenceExperimentValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateInferenceExperiment{}, middleware.After) } @@ -6834,6 +7098,72 @@ func validateClarifyTextConfig(v *types.ClarifyTextConfig) error { } } +func validateClusterInstanceGroupSpecification(v *types.ClusterInstanceGroupSpecification) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ClusterInstanceGroupSpecification"} + if v.InstanceCount == nil { + invalidParams.Add(smithy.NewErrParamRequired("InstanceCount")) + } + if v.InstanceGroupName == nil { + invalidParams.Add(smithy.NewErrParamRequired("InstanceGroupName")) + } + if len(v.InstanceType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("InstanceType")) + } + if v.LifeCycleConfig == nil { + invalidParams.Add(smithy.NewErrParamRequired("LifeCycleConfig")) + } else if v.LifeCycleConfig != nil { + if err := validateClusterLifeCycleConfig(v.LifeCycleConfig); err != nil { + invalidParams.AddNested("LifeCycleConfig", err.(smithy.InvalidParamsError)) + } + } + if v.ExecutionRole == nil { + invalidParams.Add(smithy.NewErrParamRequired("ExecutionRole")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateClusterInstanceGroupSpecifications(v []types.ClusterInstanceGroupSpecification) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ClusterInstanceGroupSpecifications"} + for i := range v { + if err := validateClusterInstanceGroupSpecification(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateClusterLifeCycleConfig(v *types.ClusterLifeCycleConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ClusterLifeCycleConfig"} + if v.SourceS3Uri == nil { + invalidParams.Add(smithy.NewErrParamRequired("SourceS3Uri")) + } + if v.OnCreate == nil { + invalidParams.Add(smithy.NewErrParamRequired("OnCreate")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateCodeRepositories(v []types.CodeRepository) error { if v == nil { return nil @@ -8354,6 +8684,55 @@ func validateImageConfig(v *types.ImageConfig) error { } } +func validateInferenceComponentComputeResourceRequirements(v *types.InferenceComponentComputeResourceRequirements) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "InferenceComponentComputeResourceRequirements"} + if v.MinMemoryRequiredInMb == nil { + invalidParams.Add(smithy.NewErrParamRequired("MinMemoryRequiredInMb")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateInferenceComponentRuntimeConfig(v *types.InferenceComponentRuntimeConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "InferenceComponentRuntimeConfig"} + if v.CopyCount == nil { + invalidParams.Add(smithy.NewErrParamRequired("CopyCount")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateInferenceComponentSpecification(v *types.InferenceComponentSpecification) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "InferenceComponentSpecification"} + if v.ComputeResourceRequirements == nil { + invalidParams.Add(smithy.NewErrParamRequired("ComputeResourceRequirements")) + } else if v.ComputeResourceRequirements != nil { + if err := validateInferenceComponentComputeResourceRequirements(v.ComputeResourceRequirements); err != nil { + invalidParams.AddNested("ComputeResourceRequirements", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateInferenceExecutionConfig(v *types.InferenceExecutionConfig) error { if v == nil { return nil @@ -10169,9 +10548,6 @@ func validateProductionVariant(v *types.ProductionVariant) error { if v.VariantName == nil { invalidParams.Add(smithy.NewErrParamRequired("VariantName")) } - if v.ModelName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ModelName")) - } if v.CoreDumpConfig != nil { if err := validateProductionVariantCoreDumpConfig(v.CoreDumpConfig); err != nil { invalidParams.AddNested("CoreDumpConfig", err.(smithy.InvalidParamsError)) @@ -10182,6 +10558,11 @@ func validateProductionVariant(v *types.ProductionVariant) error { invalidParams.AddNested("ServerlessConfig", err.(smithy.InvalidParamsError)) } } + if v.RoutingConfig != nil { + if err := validateProductionVariantRoutingConfig(v.RoutingConfig); err != nil { + invalidParams.AddNested("RoutingConfig", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -10221,6 +10602,21 @@ func validateProductionVariantList(v []types.ProductionVariant) error { } } +func validateProductionVariantRoutingConfig(v *types.ProductionVariantRoutingConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ProductionVariantRoutingConfig"} + if len(v.RoutingStrategy) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("RoutingStrategy")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateProductionVariantServerlessConfig(v *types.ProductionVariantServerlessConfig) error { if v == nil { return nil @@ -11795,6 +12191,38 @@ func validateOpCreateAutoMLJobV2Input(v *CreateAutoMLJobV2Input) error { } } +func validateOpCreateClusterInput(v *CreateClusterInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateClusterInput"} + if v.ClusterName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ClusterName")) + } + if v.InstanceGroups == nil { + invalidParams.Add(smithy.NewErrParamRequired("InstanceGroups")) + } else if v.InstanceGroups != nil { + if err := validateClusterInstanceGroupSpecifications(v.InstanceGroups); err != nil { + invalidParams.AddNested("InstanceGroups", err.(smithy.InvalidParamsError)) + } + } + if v.VpcConfig != nil { + if err := validateVpcConfig(v.VpcConfig); err != nil { + invalidParams.AddNested("VpcConfig", err.(smithy.InvalidParamsError)) + } + } + if v.Tags != nil { + if err := validateTagList(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateCodeRepositoryInput(v *CreateCodeRepositoryInput) error { if v == nil { return nil @@ -12165,6 +12593,11 @@ func validateOpCreateEndpointConfigInput(v *CreateEndpointConfigInput) error { invalidParams.AddNested("ShadowProductionVariants", err.(smithy.InvalidParamsError)) } } + if v.VpcConfig != nil { + if err := validateVpcConfig(v.VpcConfig); err != nil { + invalidParams.AddNested("VpcConfig", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -12446,6 +12879,46 @@ func validateOpCreateImageVersionInput(v *CreateImageVersionInput) error { } } +func validateOpCreateInferenceComponentInput(v *CreateInferenceComponentInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateInferenceComponentInput"} + if v.InferenceComponentName == nil { + invalidParams.Add(smithy.NewErrParamRequired("InferenceComponentName")) + } + if v.EndpointName == nil { + invalidParams.Add(smithy.NewErrParamRequired("EndpointName")) + } + if v.VariantName == nil { + invalidParams.Add(smithy.NewErrParamRequired("VariantName")) + } + if v.Specification == nil { + invalidParams.Add(smithy.NewErrParamRequired("Specification")) + } else if v.Specification != nil { + if err := validateInferenceComponentSpecification(v.Specification); err != nil { + invalidParams.AddNested("Specification", err.(smithy.InvalidParamsError)) + } + } + if v.RuntimeConfig == nil { + invalidParams.Add(smithy.NewErrParamRequired("RuntimeConfig")) + } else if v.RuntimeConfig != nil { + if err := validateInferenceComponentRuntimeConfig(v.RuntimeConfig); err != nil { + invalidParams.AddNested("RuntimeConfig", err.(smithy.InvalidParamsError)) + } + } + if v.Tags != nil { + if err := validateTagList(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateInferenceExperimentInput(v *CreateInferenceExperimentInput) error { if v == nil { return nil @@ -12775,9 +13248,6 @@ func validateOpCreateModelInput(v *CreateModelInput) error { invalidParams.AddNested("InferenceExecutionConfig", err.(smithy.InvalidParamsError)) } } - if v.ExecutionRoleArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ExecutionRoleArn")) - } if v.Tags != nil { if err := validateTagList(v.Tags); err != nil { invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) @@ -13586,6 +14056,21 @@ func validateOpDeleteAssociationInput(v *DeleteAssociationInput) error { } } +func validateOpDeleteClusterInput(v *DeleteClusterInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteClusterInput"} + if v.ClusterName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ClusterName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteCodeRepositoryInput(v *DeleteCodeRepositoryInput) error { if v == nil { return nil @@ -13853,6 +14338,21 @@ func validateOpDeleteImageVersionInput(v *DeleteImageVersionInput) error { } } +func validateOpDeleteInferenceComponentInput(v *DeleteInferenceComponentInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteInferenceComponentInput"} + if v.InferenceComponentName == nil { + invalidParams.Add(smithy.NewErrParamRequired("InferenceComponentName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteInferenceExperimentInput(v *DeleteInferenceExperimentInput) error { if v == nil { return nil @@ -14324,6 +14824,39 @@ func validateOpDescribeAutoMLJobV2Input(v *DescribeAutoMLJobV2Input) error { } } +func validateOpDescribeClusterInput(v *DescribeClusterInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeClusterInput"} + if v.ClusterName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ClusterName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDescribeClusterNodeInput(v *DescribeClusterNodeInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeClusterNodeInput"} + if v.ClusterName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ClusterName")) + } + if v.NodeId == nil { + invalidParams.Add(smithy.NewErrParamRequired("NodeId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDescribeCodeRepositoryInput(v *DescribeCodeRepositoryInput) error { if v == nil { return nil @@ -14651,6 +15184,21 @@ func validateOpDescribeImageVersionInput(v *DescribeImageVersionInput) error { } } +func validateOpDescribeInferenceComponentInput(v *DescribeInferenceComponentInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeInferenceComponentInput"} + if v.InferenceComponentName == nil { + invalidParams.Add(smithy.NewErrParamRequired("InferenceComponentName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDescribeInferenceExperimentInput(v *DescribeInferenceExperimentInput) error { if v == nil { return nil @@ -15267,6 +15815,21 @@ func validateOpListCandidatesForAutoMLJobInput(v *ListCandidatesForAutoMLJobInpu } } +func validateOpListClusterNodesInput(v *ListClusterNodesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListClusterNodesInput"} + if v.ClusterName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ClusterName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListHubContentsInput(v *ListHubContentsInput) error { if v == nil { return nil @@ -16011,6 +16574,28 @@ func validateOpUpdateArtifactInput(v *UpdateArtifactInput) error { } } +func validateOpUpdateClusterInput(v *UpdateClusterInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateClusterInput"} + if v.ClusterName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ClusterName")) + } + if v.InstanceGroups == nil { + invalidParams.Add(smithy.NewErrParamRequired("InstanceGroups")) + } else if v.InstanceGroups != nil { + if err := validateClusterInstanceGroupSpecifications(v.InstanceGroups); err != nil { + invalidParams.AddNested("InstanceGroups", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpUpdateCodeRepositoryInput(v *UpdateCodeRepositoryInput) error { if v == nil { return nil @@ -16263,6 +16848,53 @@ func validateOpUpdateImageVersionInput(v *UpdateImageVersionInput) error { } } +func validateOpUpdateInferenceComponentInput(v *UpdateInferenceComponentInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateInferenceComponentInput"} + if v.InferenceComponentName == nil { + invalidParams.Add(smithy.NewErrParamRequired("InferenceComponentName")) + } + if v.Specification != nil { + if err := validateInferenceComponentSpecification(v.Specification); err != nil { + invalidParams.AddNested("Specification", err.(smithy.InvalidParamsError)) + } + } + if v.RuntimeConfig != nil { + if err := validateInferenceComponentRuntimeConfig(v.RuntimeConfig); err != nil { + invalidParams.AddNested("RuntimeConfig", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateInferenceComponentRuntimeConfigInput(v *UpdateInferenceComponentRuntimeConfigInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateInferenceComponentRuntimeConfigInput"} + if v.InferenceComponentName == nil { + invalidParams.Add(smithy.NewErrParamRequired("InferenceComponentName")) + } + if v.DesiredRuntimeConfig == nil { + invalidParams.Add(smithy.NewErrParamRequired("DesiredRuntimeConfig")) + } else if v.DesiredRuntimeConfig != nil { + if err := validateInferenceComponentRuntimeConfig(v.DesiredRuntimeConfig); err != nil { + invalidParams.AddNested("DesiredRuntimeConfig", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpUpdateInferenceExperimentInput(v *UpdateInferenceExperimentInput) error { if v == nil { return nil diff --git a/service/sagemakera2iruntime/go.mod b/service/sagemakera2iruntime/go.mod index 1f685eead32..efa1e6b5df3 100644 --- a/service/sagemakera2iruntime/go.mod +++ b/service/sagemakera2iruntime/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sagemakera2iruntime/go.sum b/service/sagemakera2iruntime/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/sagemakera2iruntime/go.sum +++ b/service/sagemakera2iruntime/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemakeredge/go.mod b/service/sagemakeredge/go.mod index f1c447233fc..80d603f72ab 100644 --- a/service/sagemakeredge/go.mod +++ b/service/sagemakeredge/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sagemakeredge/go.sum b/service/sagemakeredge/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/sagemakeredge/go.sum +++ b/service/sagemakeredge/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemakerfeaturestoreruntime/go.mod b/service/sagemakerfeaturestoreruntime/go.mod index e43021ff9cf..7e10bd3dc63 100644 --- a/service/sagemakerfeaturestoreruntime/go.mod +++ b/service/sagemakerfeaturestoreruntime/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sagemakerfeaturestoreruntime/go.sum b/service/sagemakerfeaturestoreruntime/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/sagemakerfeaturestoreruntime/go.sum +++ b/service/sagemakerfeaturestoreruntime/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemakergeospatial/go.mod b/service/sagemakergeospatial/go.mod index 805222725fe..d22856e72ad 100644 --- a/service/sagemakergeospatial/go.mod +++ b/service/sagemakergeospatial/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sagemakergeospatial/go.sum b/service/sagemakergeospatial/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/sagemakergeospatial/go.sum +++ b/service/sagemakergeospatial/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemakermetrics/go.mod b/service/sagemakermetrics/go.mod index 1c07bda6ed3..c48019024de 100644 --- a/service/sagemakermetrics/go.mod +++ b/service/sagemakermetrics/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sagemakermetrics/go.sum b/service/sagemakermetrics/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/sagemakermetrics/go.sum +++ b/service/sagemakermetrics/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemakerruntime/api_op_InvokeEndpoint.go b/service/sagemakerruntime/api_op_InvokeEndpoint.go index 468899d5207..e305007dbdb 100644 --- a/service/sagemakerruntime/api_op_InvokeEndpoint.go +++ b/service/sagemakerruntime/api_op_InvokeEndpoint.go @@ -88,6 +88,10 @@ type InvokeEndpointInput struct { // section in the developer guide for more information. EnableExplanations *string + // If the endpoint hosts one or more inference components, this parameter + // specifies the name of inference component to invoke. + InferenceComponentName *string + // If you provide a value, it is added to the captured data when you enable data // capture on the endpoint. For information about data capture, see Capture Data (https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-data-capture.html) // . diff --git a/service/sagemakerruntime/api_op_InvokeEndpointWithResponseStream.go b/service/sagemakerruntime/api_op_InvokeEndpointWithResponseStream.go index cbea7b149a7..30ded1017e2 100644 --- a/service/sagemakerruntime/api_op_InvokeEndpointWithResponseStream.go +++ b/service/sagemakerruntime/api_op_InvokeEndpointWithResponseStream.go @@ -28,12 +28,16 @@ import ( // real-time endpoints (https://docs.aws.amazon.com/sagemaker/latest/dg/realtime-endpoints-test-endpoints.html) // . // -// Amazon SageMaker strips all POST headers except those supported by the API. -// Amazon SageMaker might add additional headers. You should not rely on the -// behavior of headers outside those enumerated in the request syntax. Calls to -// InvokeEndpointWithResponseStream are authenticated by using Amazon Web Services -// Signature Version 4. For information, see Authenticating Requests (Amazon Web -// Services Signature Version 4) (https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html) +// Before you can use this operation, your IAM permissions must allow the +// sagemaker:InvokeEndpoint action. For more information about Amazon SageMaker +// actions for IAM policies, see Actions, resources, and condition keys for Amazon +// SageMaker (https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonsagemaker.html) +// in the IAM Service Authorization Reference. Amazon SageMaker strips all POST +// headers except those supported by the API. Amazon SageMaker might add additional +// headers. You should not rely on the behavior of headers outside those enumerated +// in the request syntax. Calls to InvokeEndpointWithResponseStream are +// authenticated by using Amazon Web Services Signature Version 4. For information, +// see Authenticating Requests (Amazon Web Services Signature Version 4) (https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html) // in the Amazon S3 API Reference. func (c *Client) InvokeEndpointWithResponseStream(ctx context.Context, params *InvokeEndpointWithResponseStreamInput, optFns ...func(*Options)) (*InvokeEndpointWithResponseStreamOutput, error) { if params == nil { @@ -90,6 +94,10 @@ type InvokeEndpointWithResponseStreamInput struct { // the Amazon SageMaker Python SDK. CustomAttributes *string + // If the endpoint hosts one or more inference components, this parameter + // specifies the name of inference component to invoke for a streaming response. + InferenceComponentName *string + // An identifier that you assign to your request. InferenceId *string diff --git a/service/sagemakerruntime/go.mod b/service/sagemakerruntime/go.mod index 1ce01990946..e529cc12273 100644 --- a/service/sagemakerruntime/go.mod +++ b/service/sagemakerruntime/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sagemakerruntime/go.sum b/service/sagemakerruntime/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/sagemakerruntime/go.sum +++ b/service/sagemakerruntime/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemakerruntime/serializers.go b/service/sagemakerruntime/serializers.go index 2522100bd3f..9f116a228a9 100644 --- a/service/sagemakerruntime/serializers.go +++ b/service/sagemakerruntime/serializers.go @@ -106,6 +106,11 @@ func awsRestjson1_serializeOpHttpBindingsInvokeEndpointInput(v *InvokeEndpointIn } } + if v.InferenceComponentName != nil && len(*v.InferenceComponentName) > 0 { + locationName := "X-Amzn-Sagemaker-Inference-Component" + encoder.SetHeader(locationName).String(*v.InferenceComponentName) + } + if v.InferenceId != nil && len(*v.InferenceId) > 0 { locationName := "X-Amzn-Sagemaker-Inference-Id" encoder.SetHeader(locationName).String(*v.InferenceId) @@ -318,6 +323,11 @@ func awsRestjson1_serializeOpHttpBindingsInvokeEndpointWithResponseStreamInput(v } } + if v.InferenceComponentName != nil && len(*v.InferenceComponentName) > 0 { + locationName := "X-Amzn-Sagemaker-Inference-Component" + encoder.SetHeader(locationName).String(*v.InferenceComponentName) + } + if v.InferenceId != nil && len(*v.InferenceId) > 0 { locationName := "X-Amzn-Sagemaker-Inference-Id" encoder.SetHeader(locationName).String(*v.InferenceId) diff --git a/service/savingsplans/go.mod b/service/savingsplans/go.mod index 55d0d94dcb1..e2e7d367c34 100644 --- a/service/savingsplans/go.mod +++ b/service/savingsplans/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/savingsplans/go.sum b/service/savingsplans/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/savingsplans/go.sum +++ b/service/savingsplans/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/scheduler/go.mod b/service/scheduler/go.mod index f969f51e49f..6c4f6a2a4f3 100644 --- a/service/scheduler/go.mod +++ b/service/scheduler/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/scheduler/go.sum b/service/scheduler/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/scheduler/go.sum +++ b/service/scheduler/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/schemas/go.mod b/service/schemas/go.mod index 7fbb748a185..a189c9285df 100644 --- a/service/schemas/go.mod +++ b/service/schemas/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/schemas/go.sum b/service/schemas/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/schemas/go.sum +++ b/service/schemas/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/secretsmanager/go.mod b/service/secretsmanager/go.mod index f272342c1d3..a3866f12dfa 100644 --- a/service/secretsmanager/go.mod +++ b/service/secretsmanager/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/secretsmanager/go.sum b/service/secretsmanager/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/secretsmanager/go.sum +++ b/service/secretsmanager/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/securityhub/go.mod b/service/securityhub/go.mod index eb51274999c..7c14f1c6745 100644 --- a/service/securityhub/go.mod +++ b/service/securityhub/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/securityhub/go.sum b/service/securityhub/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/securityhub/go.sum +++ b/service/securityhub/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/securitylake/go.mod b/service/securitylake/go.mod index f0ff0e49bd7..e05be76b3dd 100644 --- a/service/securitylake/go.mod +++ b/service/securitylake/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/securitylake/go.sum b/service/securitylake/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/securitylake/go.sum +++ b/service/securitylake/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/serverlessapplicationrepository/go.mod b/service/serverlessapplicationrepository/go.mod index e420d335b36..33efc94e123 100644 --- a/service/serverlessapplicationrepository/go.mod +++ b/service/serverlessapplicationrepository/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/serverlessapplicationrepository/go.sum b/service/serverlessapplicationrepository/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/serverlessapplicationrepository/go.sum +++ b/service/serverlessapplicationrepository/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/servicecatalog/go.mod b/service/servicecatalog/go.mod index 50126084bea..d0976614087 100644 --- a/service/servicecatalog/go.mod +++ b/service/servicecatalog/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/servicecatalog/go.sum b/service/servicecatalog/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/servicecatalog/go.sum +++ b/service/servicecatalog/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/servicecatalogappregistry/go.mod b/service/servicecatalogappregistry/go.mod index e32be93367b..47f8a8f30e8 100644 --- a/service/servicecatalogappregistry/go.mod +++ b/service/servicecatalogappregistry/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/servicecatalogappregistry/go.sum b/service/servicecatalogappregistry/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/servicecatalogappregistry/go.sum +++ b/service/servicecatalogappregistry/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/servicediscovery/go.mod b/service/servicediscovery/go.mod index b951c3fe8b6..030f23bb227 100644 --- a/service/servicediscovery/go.mod +++ b/service/servicediscovery/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/servicediscovery/go.sum b/service/servicediscovery/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/servicediscovery/go.sum +++ b/service/servicediscovery/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/servicequotas/go.mod b/service/servicequotas/go.mod index b0b483f4a68..d3d1b783d5b 100644 --- a/service/servicequotas/go.mod +++ b/service/servicequotas/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/servicequotas/go.sum b/service/servicequotas/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/servicequotas/go.sum +++ b/service/servicequotas/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ses/go.mod b/service/ses/go.mod index e92f9c80bbb..77adec58840 100644 --- a/service/ses/go.mod +++ b/service/ses/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ses/go.sum b/service/ses/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/ses/go.sum +++ b/service/ses/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/sesv2/go.mod b/service/sesv2/go.mod index dd0c4d7fb58..2d13816fa6c 100644 --- a/service/sesv2/go.mod +++ b/service/sesv2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sesv2/go.sum b/service/sesv2/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/sesv2/go.sum +++ b/service/sesv2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sfn/go.mod b/service/sfn/go.mod index e5fac4c9f65..db2362c4d99 100644 --- a/service/sfn/go.mod +++ b/service/sfn/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sfn/go.sum b/service/sfn/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/sfn/go.sum +++ b/service/sfn/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/shield/go.mod b/service/shield/go.mod index 356f7a41d81..d45dc2932b1 100644 --- a/service/shield/go.mod +++ b/service/shield/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/shield/go.sum b/service/shield/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/shield/go.sum +++ b/service/shield/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/signer/go.mod b/service/signer/go.mod index 4a27d83e632..e0c41a8fe61 100644 --- a/service/signer/go.mod +++ b/service/signer/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/signer/go.sum b/service/signer/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/signer/go.sum +++ b/service/signer/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/simspaceweaver/go.mod b/service/simspaceweaver/go.mod index dc0434dcc39..2eebf6bcd60 100644 --- a/service/simspaceweaver/go.mod +++ b/service/simspaceweaver/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/simspaceweaver/go.sum b/service/simspaceweaver/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/simspaceweaver/go.sum +++ b/service/simspaceweaver/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sms/go.mod b/service/sms/go.mod index 6bbe42b9bf8..5df01e51640 100644 --- a/service/sms/go.mod +++ b/service/sms/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sms/go.sum b/service/sms/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/sms/go.sum +++ b/service/sms/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/snowball/go.mod b/service/snowball/go.mod index 2720da23fbb..feb3f7104dc 100644 --- a/service/snowball/go.mod +++ b/service/snowball/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/snowball/go.sum b/service/snowball/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/snowball/go.sum +++ b/service/snowball/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/snowdevicemanagement/go.mod b/service/snowdevicemanagement/go.mod index 4c18777727f..5417af1c2db 100644 --- a/service/snowdevicemanagement/go.mod +++ b/service/snowdevicemanagement/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/snowdevicemanagement/go.sum b/service/snowdevicemanagement/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/snowdevicemanagement/go.sum +++ b/service/snowdevicemanagement/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sns/go.mod b/service/sns/go.mod index a10651151c8..f99b851e3fa 100644 --- a/service/sns/go.mod +++ b/service/sns/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sns/go.sum b/service/sns/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/sns/go.sum +++ b/service/sns/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sqs/go.mod b/service/sqs/go.mod index 2dbaba32414..456d85b6e34 100644 --- a/service/sqs/go.mod +++ b/service/sqs/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sqs/go.sum b/service/sqs/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/sqs/go.sum +++ b/service/sqs/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ssm/go.mod b/service/ssm/go.mod index b831e142532..1fcef2d7015 100644 --- a/service/ssm/go.mod +++ b/service/ssm/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ssm/go.sum b/service/ssm/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/ssm/go.sum +++ b/service/ssm/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/ssmcontacts/go.mod b/service/ssmcontacts/go.mod index 6b96a314cfb..106a8760e4c 100644 --- a/service/ssmcontacts/go.mod +++ b/service/ssmcontacts/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ssmcontacts/go.sum b/service/ssmcontacts/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/ssmcontacts/go.sum +++ b/service/ssmcontacts/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ssmincidents/go.mod b/service/ssmincidents/go.mod index 6a292e140e7..3ad5f5b1f3c 100644 --- a/service/ssmincidents/go.mod +++ b/service/ssmincidents/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ssmincidents/go.sum b/service/ssmincidents/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/ssmincidents/go.sum +++ b/service/ssmincidents/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/ssmsap/go.mod b/service/ssmsap/go.mod index 3e1aa8c9581..64810d62bea 100644 --- a/service/ssmsap/go.mod +++ b/service/ssmsap/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ssmsap/go.sum b/service/ssmsap/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/ssmsap/go.sum +++ b/service/ssmsap/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sso/go.mod b/service/sso/go.mod index 3fc8b8309a2..f346f15ec63 100644 --- a/service/sso/go.mod +++ b/service/sso/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sso/go.sum b/service/sso/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/sso/go.sum +++ b/service/sso/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ssoadmin/go.mod b/service/ssoadmin/go.mod index b791e13e4e1..45100afb446 100644 --- a/service/ssoadmin/go.mod +++ b/service/ssoadmin/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ssoadmin/go.sum b/service/ssoadmin/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/ssoadmin/go.sum +++ b/service/ssoadmin/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ssooidc/go.mod b/service/ssooidc/go.mod index 00258cb811a..ccf7567fa1c 100644 --- a/service/ssooidc/go.mod +++ b/service/ssooidc/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ssooidc/go.sum b/service/ssooidc/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/ssooidc/go.sum +++ b/service/ssooidc/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/storagegateway/go.mod b/service/storagegateway/go.mod index 36c3bf9ec1f..3b9255dc8fe 100644 --- a/service/storagegateway/go.mod +++ b/service/storagegateway/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/storagegateway/go.sum b/service/storagegateway/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/storagegateway/go.sum +++ b/service/storagegateway/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sts/api_op_AssumeRole.go b/service/sts/api_op_AssumeRole.go index ea2e4595ebd..2938dac8e38 100644 --- a/service/sts/api_op_AssumeRole.go +++ b/service/sts/api_op_AssumeRole.go @@ -205,7 +205,7 @@ type AssumeRoleInput struct { // Services STS. The following is an example of a ProvidedContext value that // includes a single trusted context assertion and the ARN of the context provider // from which the trusted context assertion was generated. - // [{"ProviderArn":"arn:aws:iam::aws:contextProvider/identitycenter","ContextAssertion":"trusted-context-assertion"}] + // [{"ProviderArn":"arn:aws:iam::aws:contextProvider/IdentityCenter","ContextAssertion":"trusted-context-assertion"}] ProvidedContexts []types.ProvidedContext // The identification number of the MFA device that is associated with the user diff --git a/service/sts/go.mod b/service/sts/go.mod index 57b2cdba112..f80c70961d5 100644 --- a/service/sts/go.mod +++ b/service/sts/go.mod @@ -8,7 +8,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.1 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sts/go.sum b/service/sts/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/sts/go.sum +++ b/service/sts/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/support/go.mod b/service/support/go.mod index 1155297ccd0..4f0763a4b85 100644 --- a/service/support/go.mod +++ b/service/support/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/support/go.sum b/service/support/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/support/go.sum +++ b/service/support/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/supportapp/go.mod b/service/supportapp/go.mod index f32ab3b6a8e..1fa60ca585a 100644 --- a/service/supportapp/go.mod +++ b/service/supportapp/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/supportapp/go.sum b/service/supportapp/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/supportapp/go.sum +++ b/service/supportapp/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/swf/go.mod b/service/swf/go.mod index 9aad146568f..71f25f84c18 100644 --- a/service/swf/go.mod +++ b/service/swf/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/swf/go.sum b/service/swf/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/swf/go.sum +++ b/service/swf/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/synthetics/go.mod b/service/synthetics/go.mod index 3113658f4aa..a823d036836 100644 --- a/service/synthetics/go.mod +++ b/service/synthetics/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/synthetics/go.sum b/service/synthetics/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/synthetics/go.sum +++ b/service/synthetics/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/textract/go.mod b/service/textract/go.mod index a33b34eaa78..62ccc5a3009 100644 --- a/service/textract/go.mod +++ b/service/textract/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/textract/go.sum b/service/textract/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/textract/go.sum +++ b/service/textract/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/timestreamquery/go.mod b/service/timestreamquery/go.mod index 34cb8b9eab7..818c6ce8f40 100644 --- a/service/timestreamquery/go.mod +++ b/service/timestreamquery/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.8.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/timestreamquery/go.sum b/service/timestreamquery/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/timestreamquery/go.sum +++ b/service/timestreamquery/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/timestreamwrite/go.mod b/service/timestreamwrite/go.mod index 43561f0b261..a7fd921aa56 100644 --- a/service/timestreamwrite/go.mod +++ b/service/timestreamwrite/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.8.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/timestreamwrite/go.sum b/service/timestreamwrite/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/timestreamwrite/go.sum +++ b/service/timestreamwrite/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/tnb/go.mod b/service/tnb/go.mod index 4e0341412a3..3dbf778af1d 100644 --- a/service/tnb/go.mod +++ b/service/tnb/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/tnb/go.sum b/service/tnb/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/tnb/go.sum +++ b/service/tnb/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/transcribe/go.mod b/service/transcribe/go.mod index 17a889e7bb4..4935e6ef981 100644 --- a/service/transcribe/go.mod +++ b/service/transcribe/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/transcribe/go.sum b/service/transcribe/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/transcribe/go.sum +++ b/service/transcribe/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/transcribestreaming/go.mod b/service/transcribestreaming/go.mod index 70aad7d1aad..a122f9aed45 100644 --- a/service/transcribestreaming/go.mod +++ b/service/transcribestreaming/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.1 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/transcribestreaming/go.sum b/service/transcribestreaming/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/transcribestreaming/go.sum +++ b/service/transcribestreaming/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/transcribestreaming/internal/testing/go.mod b/service/transcribestreaming/internal/testing/go.mod index 7fa3544e55d..cca90a9d2f2 100644 --- a/service/transcribestreaming/internal/testing/go.mod +++ b/service/transcribestreaming/internal/testing/go.mod @@ -7,7 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.1 github.com/aws/aws-sdk-go-v2/service/internal/eventstreamtesting v1.2.9 github.com/aws/aws-sdk-go-v2/service/transcribestreaming v1.14.4 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/transcribestreaming/internal/testing/go.sum b/service/transcribestreaming/internal/testing/go.sum index c4f26fc06f3..cadcc3e243b 100644 --- a/service/transcribestreaming/internal/testing/go.sum +++ b/service/transcribestreaming/internal/testing/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= diff --git a/service/transfer/go.mod b/service/transfer/go.mod index fb77ae9f9f3..4f8850d9c2d 100644 --- a/service/transfer/go.mod +++ b/service/transfer/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/transfer/go.sum b/service/transfer/go.sum index 2d53208d06e..ed8e1c52cd2 100644 --- a/service/transfer/go.sum +++ b/service/transfer/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= 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/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/translate/go.mod b/service/translate/go.mod index f5c3d5da636..ec85ffe4b8e 100644 --- a/service/translate/go.mod +++ b/service/translate/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/translate/go.sum b/service/translate/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/translate/go.sum +++ b/service/translate/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/trustedadvisor/go.mod b/service/trustedadvisor/go.mod index 9232cfbea14..fcc7a6cb5f8 100644 --- a/service/trustedadvisor/go.mod +++ b/service/trustedadvisor/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/trustedadvisor/go.sum b/service/trustedadvisor/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/trustedadvisor/go.sum +++ b/service/trustedadvisor/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/verifiedpermissions/go.mod b/service/verifiedpermissions/go.mod index 16e58d6a200..30c76affc5e 100644 --- a/service/verifiedpermissions/go.mod +++ b/service/verifiedpermissions/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/verifiedpermissions/go.sum b/service/verifiedpermissions/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/verifiedpermissions/go.sum +++ b/service/verifiedpermissions/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/voiceid/go.mod b/service/voiceid/go.mod index 7e66c50950b..abbe8f05bbb 100644 --- a/service/voiceid/go.mod +++ b/service/voiceid/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/voiceid/go.sum b/service/voiceid/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/voiceid/go.sum +++ b/service/voiceid/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/vpclattice/go.mod b/service/vpclattice/go.mod index 2fb52652700..8c7b7182d64 100644 --- a/service/vpclattice/go.mod +++ b/service/vpclattice/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/vpclattice/go.sum b/service/vpclattice/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/vpclattice/go.sum +++ b/service/vpclattice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/waf/go.mod b/service/waf/go.mod index c626bee37d0..f83caf7ef6a 100644 --- a/service/waf/go.mod +++ b/service/waf/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/waf/go.sum b/service/waf/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/waf/go.sum +++ b/service/waf/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/wafregional/go.mod b/service/wafregional/go.mod index 19f98ff4ed0..8c3f64d1b7e 100644 --- a/service/wafregional/go.mod +++ b/service/wafregional/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/wafregional/go.sum b/service/wafregional/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/wafregional/go.sum +++ b/service/wafregional/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/wafv2/go.mod b/service/wafv2/go.mod index 29f155ce138..67caff9711c 100644 --- a/service/wafv2/go.mod +++ b/service/wafv2/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/wafv2/go.sum b/service/wafv2/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/wafv2/go.sum +++ b/service/wafv2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/wellarchitected/go.mod b/service/wellarchitected/go.mod index 79f68541323..610d57b51df 100644 --- a/service/wellarchitected/go.mod +++ b/service/wellarchitected/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/wellarchitected/go.sum b/service/wellarchitected/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/wellarchitected/go.sum +++ b/service/wellarchitected/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/wisdom/go.mod b/service/wisdom/go.mod index 0db6081e169..77152cae833 100644 --- a/service/wisdom/go.mod +++ b/service/wisdom/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/wisdom/go.sum b/service/wisdom/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/wisdom/go.sum +++ b/service/wisdom/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/workdocs/go.mod b/service/workdocs/go.mod index 147cf98591f..f1b332f13d5 100644 --- a/service/workdocs/go.mod +++ b/service/workdocs/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/workdocs/go.sum b/service/workdocs/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/workdocs/go.sum +++ b/service/workdocs/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/worklink/go.mod b/service/worklink/go.mod index 080954d5191..56fc9dbdd74 100644 --- a/service/worklink/go.mod +++ b/service/worklink/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/worklink/go.sum b/service/worklink/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/worklink/go.sum +++ b/service/worklink/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/workmail/go.mod b/service/workmail/go.mod index 145cee29841..e367c7bac2d 100644 --- a/service/workmail/go.mod +++ b/service/workmail/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/workmail/go.sum b/service/workmail/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/workmail/go.sum +++ b/service/workmail/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/workmailmessageflow/go.mod b/service/workmailmessageflow/go.mod index d1d5c9d3aa6..6ebad93c130 100644 --- a/service/workmailmessageflow/go.mod +++ b/service/workmailmessageflow/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/workmailmessageflow/go.sum b/service/workmailmessageflow/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/workmailmessageflow/go.sum +++ b/service/workmailmessageflow/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/workspaces/go.mod b/service/workspaces/go.mod index e58efb6b560..cc321ef9efe 100644 --- a/service/workspaces/go.mod +++ b/service/workspaces/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/workspaces/go.sum b/service/workspaces/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/workspaces/go.sum +++ b/service/workspaces/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/workspacesthinclient/go.mod b/service/workspacesthinclient/go.mod index 82b010c2ce0..af1683e6231 100644 --- a/service/workspacesthinclient/go.mod +++ b/service/workspacesthinclient/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/workspacesthinclient/go.sum b/service/workspacesthinclient/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/workspacesthinclient/go.sum +++ b/service/workspacesthinclient/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/workspacesweb/go.mod b/service/workspacesweb/go.mod index 3089dc91ea9..278fb488e42 100644 --- a/service/workspacesweb/go.mod +++ b/service/workspacesweb/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/workspacesweb/go.sum b/service/workspacesweb/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/workspacesweb/go.sum +++ b/service/workspacesweb/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/xray/go.mod b/service/xray/go.mod index 41bf4226eee..71cc5f1af5d 100644 --- a/service/xray/go.mod +++ b/service/xray/go.mod @@ -6,7 +6,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.23.2 github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.5 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.5 - github.com/aws/smithy-go v1.17.0 + github.com/aws/smithy-go v1.18.0 github.com/google/go-cmp v0.5.8 ) diff --git a/service/xray/go.sum b/service/xray/go.sum index 42e4fc806b4..b005e723d96 100644 --- a/service/xray/go.sum +++ b/service/xray/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.17.0 h1:wWJD7LX6PBV6etBUwO0zElG0nWN9rUhp0WdYeHSHAaI= -github.com/aws/smithy-go v1.17.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= +github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=