From 22d087682834495c3aebc0c0f1aa2db37c4785a6 Mon Sep 17 00:00:00 2001 From: AWS SDK for Go v2 automation user Date: Fri, 20 Sep 2024 18:27:32 +0000 Subject: [PATCH] Regenerated Clients --- .../3b23b791b785446a9cd73e118dd491ae.json | 8 + .../4b42e520264042539c490057eb359c9d.json | 8 + .../53b6b7428c6c426d8e8bbf5d40aef436.json | 8 + .../5ee92ceeca5d4e7bb0a36a1d4d6d568b.json | 8 + .../c68e2f09de4243b4afdf7fa766bf0818.json | 8 + .../attributevalue/go_module_metadata.go | 2 +- service/accessanalyzer/api_client.go | 4 +- service/account/api_client.go | 4 +- service/acm/api_client.go | 4 +- service/acmpca/api_client.go | 4 +- service/amp/api_client.go | 4 +- service/amplify/api_client.go | 4 +- service/amplifybackend/api_client.go | 4 +- service/amplifyuibuilder/api_client.go | 4 +- service/apigateway/api_client.go | 4 +- service/apigatewaymanagementapi/api_client.go | 4 +- service/apigatewayv2/api_client.go | 4 +- service/appconfig/api_client.go | 4 +- service/appconfigdata/api_client.go | 4 +- service/appfabric/api_client.go | 4 +- service/appflow/api_client.go | 4 +- service/appintegrations/api_client.go | 4 +- service/applicationautoscaling/api_client.go | 4 +- service/applicationcostprofiler/api_client.go | 4 +- .../applicationdiscoveryservice/api_client.go | 4 +- service/applicationinsights/api_client.go | 4 +- service/applicationsignals/api_client.go | 4 +- service/appmesh/api_client.go | 4 +- service/apprunner/api_client.go | 4 +- service/appstream/api_client.go | 4 +- service/appsync/api_client.go | 4 +- service/apptest/api_client.go | 4 +- service/arczonalshift/api_client.go | 4 +- service/artifact/api_client.go | 4 +- service/athena/api_client.go | 4 +- service/auditmanager/api_client.go | 4 +- service/autoscaling/api_client.go | 4 +- service/autoscalingplans/api_client.go | 4 +- service/b2bi/api_client.go | 4 +- service/backup/api_client.go | 4 +- service/backupgateway/api_client.go | 4 +- service/batch/api_client.go | 4 +- service/bcmdataexports/api_client.go | 4 +- service/bedrock/api_client.go | 4 +- service/bedrockagent/api_client.go | 4 +- service/bedrockagentruntime/api_client.go | 4 +- service/bedrockruntime/api_client.go | 4 +- service/billingconductor/api_client.go | 4 +- service/braket/api_client.go | 4 +- service/budgets/api_client.go | 4 +- service/chatbot/api_client.go | 4 +- service/chime/api_client.go | 4 +- service/chimesdkidentity/api_client.go | 4 +- service/chimesdkmediapipelines/api_client.go | 4 +- service/chimesdkmeetings/api_client.go | 4 +- service/chimesdkmessaging/api_client.go | 4 +- service/chimesdkvoice/api_client.go | 4 +- service/cleanrooms/api_client.go | 4 +- service/cleanroomsml/api_client.go | 4 +- service/cloud9/api_client.go | 4 +- service/cloudcontrol/api_client.go | 4 +- service/clouddirectory/api_client.go | 4 +- service/cloudformation/api_client.go | 4 +- service/cloudfront/api_client.go | 4 +- service/cloudfrontkeyvaluestore/api_client.go | 4 +- service/cloudhsm/api_client.go | 4 +- service/cloudhsmv2/api_client.go | 4 +- service/cloudsearch/api_client.go | 4 +- service/cloudsearchdomain/api_client.go | 4 +- service/cloudtrail/api_client.go | 4 +- service/cloudtraildata/api_client.go | 4 +- service/cloudwatch/api_client.go | 4 +- service/cloudwatchevents/api_client.go | 4 +- service/cloudwatchlogs/api_client.go | 4 +- service/codeartifact/api_client.go | 4 +- service/codebuild/api_client.go | 4 +- service/codecatalyst/api_client.go | 4 +- service/codecommit/api_client.go | 4 +- service/codeconnections/api_client.go | 4 +- service/codedeploy/api_client.go | 4 +- service/codeguruprofiler/api_client.go | 4 +- service/codegurureviewer/api_client.go | 4 +- service/codegurusecurity/api_client.go | 4 +- service/codepipeline/api_client.go | 4 +- service/codestarconnections/api_client.go | 4 +- service/codestarnotifications/api_client.go | 4 +- service/cognitoidentity/api_client.go | 4 +- service/cognitoidentityprovider/api_client.go | 4 +- service/cognitosync/api_client.go | 4 +- service/comprehend/api_client.go | 4 +- service/comprehendmedical/api_client.go | 4 +- service/computeoptimizer/api_client.go | 4 +- service/configservice/api_client.go | 4 +- service/connect/api_client.go | 4 +- service/connectcampaigns/api_client.go | 4 +- service/connectcases/api_client.go | 4 +- service/connectcontactlens/api_client.go | 4 +- service/connectparticipant/api_client.go | 4 +- service/controlcatalog/api_client.go | 4 +- service/controltower/api_client.go | 4 +- .../costandusagereportservice/api_client.go | 4 +- service/costexplorer/api_client.go | 4 +- service/costoptimizationhub/api_client.go | 4 +- service/customerprofiles/api_client.go | 4 +- .../databasemigrationservice/api_client.go | 4 +- service/databrew/api_client.go | 4 +- service/dataexchange/api_client.go | 4 +- service/datapipeline/api_client.go | 4 +- service/datasync/api_client.go | 4 +- service/datazone/api_client.go | 4 +- service/dax/api_client.go | 4 +- service/deadline/api_client.go | 4 +- service/detective/api_client.go | 4 +- service/devicefarm/api_client.go | 4 +- service/devopsguru/api_client.go | 4 +- service/directconnect/api_client.go | 4 +- service/directoryservice/api_client.go | 4 +- service/directoryservicedata/api_client.go | 4 +- service/dlm/api_client.go | 4 +- service/docdb/api_client.go | 4 +- service/docdbelastic/api_client.go | 4 +- service/drs/api_client.go | 4 +- service/dynamodb/api_client.go | 42 +- service/dynamodb/endpoints.go | 259 ++- service/dynamodb/endpoints_test.go | 1505 +++++++++++++++++ service/dynamodb/options.go | 3 + service/dynamodbstreams/api_client.go | 4 +- service/ebs/api_client.go | 4 +- service/ec2/api_client.go | 4 +- service/ec2instanceconnect/api_client.go | 4 +- service/ecr/api_client.go | 4 +- service/ecrpublic/api_client.go | 4 +- service/ecs/api_client.go | 4 +- service/efs/api_client.go | 4 +- service/eks/api_client.go | 4 +- service/eksauth/api_client.go | 4 +- service/elasticache/api_client.go | 4 +- service/elasticbeanstalk/api_client.go | 4 +- service/elasticinference/api_client.go | 4 +- service/elasticloadbalancing/api_client.go | 4 +- service/elasticloadbalancingv2/api_client.go | 4 +- service/elasticsearchservice/api_client.go | 4 +- service/elastictranscoder/api_client.go | 4 +- service/emr/api_client.go | 4 +- service/emrcontainers/api_client.go | 4 +- service/emrserverless/api_client.go | 4 +- service/entityresolution/api_client.go | 4 +- service/eventbridge/api_client.go | 4 +- service/evidently/api_client.go | 4 +- service/finspace/api_client.go | 4 +- service/finspacedata/api_client.go | 4 +- service/firehose/api_client.go | 4 +- service/fis/api_client.go | 4 +- service/fms/api_client.go | 4 +- service/forecast/api_client.go | 4 +- service/forecastquery/api_client.go | 4 +- service/frauddetector/api_client.go | 4 +- service/freetier/api_client.go | 4 +- service/fsx/api_client.go | 4 +- service/gamelift/api_client.go | 4 +- service/glacier/api_client.go | 4 +- service/globalaccelerator/api_client.go | 4 +- service/glue/api_client.go | 4 +- service/glue/api_op_TestConnection.go | 15 + service/glue/deserializers.go | 4 + service/glue/serializers.go | 6 + .../snapshot/api_op_TestConnection.go.snap | 5 + service/grafana/api_client.go | 4 +- service/greengrass/api_client.go | 4 +- service/greengrassv2/api_client.go | 4 +- service/groundstation/api_client.go | 4 +- service/guardduty/api_client.go | 4 +- service/health/api_client.go | 4 +- service/healthlake/api_client.go | 4 +- service/iam/api_client.go | 4 +- service/identitystore/api_client.go | 4 +- service/imagebuilder/api_client.go | 4 +- service/inspector/api_client.go | 4 +- service/inspector2/api_client.go | 4 +- service/inspectorscan/api_client.go | 4 +- service/internetmonitor/api_client.go | 4 +- service/iot/api_client.go | 4 +- service/iot1clickdevicesservice/api_client.go | 4 +- service/iot1clickprojects/api_client.go | 4 +- service/iotanalytics/api_client.go | 4 +- service/iotdataplane/api_client.go | 4 +- service/iotdeviceadvisor/api_client.go | 4 +- service/iotevents/api_client.go | 4 +- service/ioteventsdata/api_client.go | 4 +- service/iotfleethub/api_client.go | 4 +- service/iotfleetwise/api_client.go | 4 +- service/iotjobsdataplane/api_client.go | 4 +- service/iotsecuretunneling/api_client.go | 4 +- service/iotsitewise/api_client.go | 4 +- service/iotthingsgraph/api_client.go | 4 +- service/iottwinmaker/api_client.go | 4 +- service/iotwireless/api_client.go | 4 +- service/ivs/api_client.go | 4 +- service/ivschat/api_client.go | 4 +- service/ivsrealtime/api_client.go | 4 +- service/kafka/api_client.go | 4 +- service/kafkaconnect/api_client.go | 4 +- service/kendra/api_client.go | 4 +- service/kendraranking/api_client.go | 4 +- service/keyspaces/api_client.go | 4 +- service/kinesis/api_client.go | 4 +- service/kinesisanalytics/api_client.go | 4 +- service/kinesisanalyticsv2/api_client.go | 4 +- service/kinesisvideo/api_client.go | 4 +- .../kinesisvideoarchivedmedia/api_client.go | 4 +- service/kinesisvideomedia/api_client.go | 4 +- service/kinesisvideosignaling/api_client.go | 4 +- .../kinesisvideowebrtcstorage/api_client.go | 4 +- service/kms/api_client.go | 4 +- service/lakeformation/api_client.go | 4 +- service/lambda/api_client.go | 4 +- service/launchwizard/api_client.go | 4 +- service/lexmodelbuildingservice/api_client.go | 4 +- service/lexmodelsv2/api_client.go | 4 +- service/lexruntimeservice/api_client.go | 4 +- service/lexruntimev2/api_client.go | 4 +- service/licensemanager/api_client.go | 4 +- .../api_client.go | 4 +- .../api_client.go | 4 +- service/lightsail/api_client.go | 4 +- service/location/api_client.go | 4 +- service/lookoutequipment/api_client.go | 4 +- service/lookoutmetrics/api_client.go | 4 +- service/lookoutvision/api_client.go | 4 +- service/m2/api_client.go | 4 +- service/machinelearning/api_client.go | 4 +- service/macie2/api_client.go | 4 +- service/mailmanager/api_client.go | 4 +- service/managedblockchain/api_client.go | 4 +- service/managedblockchainquery/api_client.go | 4 +- service/marketplaceagreement/api_client.go | 4 +- service/marketplacecatalog/api_client.go | 4 +- .../api_client.go | 4 +- service/marketplacedeployment/api_client.go | 4 +- .../api_client.go | 4 +- service/marketplacemetering/api_client.go | 4 +- service/mediaconnect/api_client.go | 4 +- service/mediaconvert/api_client.go | 4 +- service/medialive/api_client.go | 4 +- service/mediapackage/api_client.go | 4 +- service/mediapackagev2/api_client.go | 4 +- service/mediapackagevod/api_client.go | 4 +- service/mediastore/api_client.go | 4 +- service/mediastoredata/api_client.go | 4 +- service/mediatailor/api_client.go | 4 +- service/medicalimaging/api_client.go | 4 +- service/memorydb/api_client.go | 4 +- service/mgn/api_client.go | 4 +- service/migrationhub/api_client.go | 4 +- service/migrationhubconfig/api_client.go | 4 +- .../migrationhuborchestrator/api_client.go | 4 +- .../migrationhubrefactorspaces/api_client.go | 4 +- service/migrationhubstrategy/api_client.go | 4 +- service/mq/api_client.go | 4 +- service/mturk/api_client.go | 4 +- service/mwaa/api_client.go | 4 +- service/neptune/api_client.go | 4 +- service/neptune/endpoints_test.go | 20 - service/neptunedata/api_client.go | 4 +- service/neptunegraph/api_client.go | 4 +- service/networkfirewall/api_client.go | 4 +- service/networkmanager/api_client.go | 4 +- service/networkmonitor/api_client.go | 4 +- service/nimble/api_client.go | 4 +- service/oam/api_client.go | 4 +- service/omics/api_client.go | 4 +- service/opensearch/api_client.go | 4 +- service/opensearchserverless/api_client.go | 4 +- service/opsworks/api_client.go | 4 +- service/opsworkscm/api_client.go | 4 +- service/organizations/api_client.go | 4 +- service/osis/api_client.go | 4 +- service/outposts/api_client.go | 4 +- service/panorama/api_client.go | 4 +- service/paymentcryptography/api_client.go | 4 +- service/paymentcryptographydata/api_client.go | 4 +- service/pcaconnectorad/api_client.go | 4 +- service/pcaconnectorscep/api_client.go | 4 +- service/pcs/api_client.go | 4 +- service/personalize/api_client.go | 4 +- service/personalizeevents/api_client.go | 4 +- service/personalizeruntime/api_client.go | 4 +- service/pi/api_client.go | 4 +- service/pinpoint/api_client.go | 4 +- service/pinpointemail/api_client.go | 4 +- service/pinpointsmsvoice/api_client.go | 4 +- service/pinpointsmsvoicev2/api_client.go | 4 +- service/pipes/api_client.go | 4 +- service/polly/api_client.go | 4 +- service/pricing/api_client.go | 4 +- service/privatenetworks/api_client.go | 4 +- service/proton/api_client.go | 4 +- service/qapps/api_client.go | 4 +- service/qbusiness/api_client.go | 4 +- service/qconnect/api_client.go | 4 +- service/qldb/api_client.go | 4 +- service/qldbsession/api_client.go | 4 +- service/quicksight/api_client.go | 4 +- .../api_op_ListFoldersForResource.go | 15 + service/quicksight/deserializers.go | 5 + service/quicksight/serializers.go | 6 + .../api_op_ListFoldersForResource.go.snap | 5 + service/ram/api_client.go | 4 +- service/rbin/api_client.go | 4 +- service/rds/api_client.go | 4 +- service/rdsdata/api_client.go | 4 +- service/redshift/api_client.go | 4 +- service/redshiftdata/api_client.go | 4 +- service/redshiftserverless/api_client.go | 4 +- service/rekognition/api_client.go | 4 +- service/repostspace/api_client.go | 4 +- service/resiliencehub/api_client.go | 4 +- service/resourceexplorer2/api_client.go | 4 +- service/resourcegroups/api_client.go | 4 +- .../resourcegroupstaggingapi/api_client.go | 4 +- service/robomaker/api_client.go | 4 +- service/rolesanywhere/api_client.go | 4 +- service/route53/api_client.go | 4 +- service/route53domains/api_client.go | 4 +- service/route53profiles/api_client.go | 4 +- service/route53recoverycluster/api_client.go | 4 +- .../api_client.go | 4 +- .../route53recoveryreadiness/api_client.go | 4 +- service/route53resolver/api_client.go | 4 +- service/rum/api_client.go | 4 +- service/s3/api_client.go | 4 +- service/s3control/api_client.go | 4 +- service/s3outposts/api_client.go | 4 +- service/sagemaker/api_client.go | 4 +- service/sagemaker/deserializers.go | 9 + service/sagemaker/serializers.go | 5 + service/sagemaker/types/types.go | 4 + service/sagemakera2iruntime/api_client.go | 4 +- service/sagemakeredge/api_client.go | 4 +- .../api_client.go | 4 +- service/sagemakergeospatial/api_client.go | 4 +- service/sagemakermetrics/api_client.go | 4 +- .../api_op_BatchGetMetrics.go | 157 ++ .../api_op_BatchPutMetrics.go | 5 +- service/sagemakermetrics/deserializers.go | 345 ++++ service/sagemakermetrics/generated.json | 1 + service/sagemakermetrics/serializers.go | 138 ++ .../snapshot/api_op_BatchGetMetrics.go.snap | 41 + service/sagemakermetrics/snapshot_test.go | 24 + service/sagemakermetrics/types/enums.go | 92 + service/sagemakermetrics/types/types.go | 61 + service/sagemakermetrics/validators.go | 87 + service/sagemakerruntime/api_client.go | 4 +- service/savingsplans/api_client.go | 4 +- service/scheduler/api_client.go | 4 +- service/schemas/api_client.go | 4 +- service/secretsmanager/api_client.go | 4 +- service/securityhub/api_client.go | 4 +- service/securitylake/api_client.go | 4 +- .../api_client.go | 4 +- service/servicecatalog/api_client.go | 4 +- .../servicecatalogappregistry/api_client.go | 4 +- service/servicediscovery/api_client.go | 4 +- service/servicequotas/api_client.go | 4 +- service/ses/api_client.go | 4 +- service/sesv2/api_client.go | 4 +- service/sfn/api_client.go | 4 +- service/shield/api_client.go | 4 +- service/signer/api_client.go | 4 +- service/simspaceweaver/api_client.go | 4 +- service/sms/api_client.go | 4 +- service/snowball/api_client.go | 4 +- service/snowdevicemanagement/api_client.go | 4 +- service/sns/api_client.go | 4 +- service/sqs/api_client.go | 4 +- service/ssm/api_client.go | 4 +- service/ssmcontacts/api_client.go | 4 +- service/ssmincidents/api_client.go | 4 +- service/ssmquicksetup/api_client.go | 4 +- service/ssmsap/api_client.go | 4 +- service/sso/api_client.go | 4 +- service/ssoadmin/api_client.go | 4 +- service/ssooidc/api_client.go | 4 +- service/storagegateway/api_client.go | 4 +- service/sts/api_client.go | 4 +- service/supplychain/api_client.go | 4 +- service/support/api_client.go | 4 +- service/supportapp/api_client.go | 4 +- service/swf/api_client.go | 4 +- service/synthetics/api_client.go | 4 +- service/taxsettings/api_client.go | 4 +- service/textract/api_client.go | 4 +- service/timestreaminfluxdb/api_client.go | 4 +- service/timestreamquery/api_client.go | 4 +- service/timestreamwrite/api_client.go | 4 +- service/tnb/api_client.go | 4 +- service/transcribe/api_client.go | 4 +- service/transcribestreaming/api_client.go | 4 +- service/transfer/api_client.go | 4 +- service/translate/api_client.go | 4 +- service/trustedadvisor/api_client.go | 4 +- service/verifiedpermissions/api_client.go | 4 +- service/voiceid/api_client.go | 4 +- service/vpclattice/api_client.go | 4 +- service/waf/api_client.go | 4 +- service/wafregional/api_client.go | 4 +- service/wafv2/api_client.go | 4 +- service/wellarchitected/api_client.go | 4 +- service/wisdom/api_client.go | 4 +- service/workdocs/api_client.go | 4 +- service/worklink/api_client.go | 4 +- service/workmail/api_client.go | 4 +- service/workmailmessageflow/api_client.go | 4 +- service/workspaces/api_client.go | 4 +- service/workspaces/types/enums.go | 6 + service/workspacesthinclient/api_client.go | 4 +- service/workspacesweb/api_client.go | 4 +- service/workspacesweb/api_op_ExpireSession.go | 15 + service/workspacesweb/api_op_GetSession.go | 15 + service/workspacesweb/api_op_ListSessions.go | 15 + service/workspacesweb/deserializers.go | 15 + service/workspacesweb/serializers.go | 18 + .../snapshot/api_op_ExpireSession.go.snap | 5 + .../snapshot/api_op_GetSession.go.snap | 5 + .../snapshot/api_op_ListSessions.go.snap | 5 + service/xray/api_client.go | 4 +- 426 files changed, 3707 insertions(+), 833 deletions(-) create mode 100644 .changelog/3b23b791b785446a9cd73e118dd491ae.json create mode 100644 .changelog/4b42e520264042539c490057eb359c9d.json create mode 100644 .changelog/53b6b7428c6c426d8e8bbf5d40aef436.json create mode 100644 .changelog/5ee92ceeca5d4e7bb0a36a1d4d6d568b.json create mode 100644 .changelog/c68e2f09de4243b4afdf7fa766bf0818.json create mode 100644 service/sagemakermetrics/api_op_BatchGetMetrics.go create mode 100644 service/sagemakermetrics/snapshot/api_op_BatchGetMetrics.go.snap diff --git a/.changelog/3b23b791b785446a9cd73e118dd491ae.json b/.changelog/3b23b791b785446a9cd73e118dd491ae.json new file mode 100644 index 00000000000..011d34317ab --- /dev/null +++ b/.changelog/3b23b791b785446a9cd73e118dd491ae.json @@ -0,0 +1,8 @@ +{ + "id": "3b23b791-b785-446a-9cd7-3e118dd491ae", + "type": "feature", + "description": "Amazon SageMaker now supports using manifest files to specify the location of uncompressed model artifacts within Model Packages", + "modules": [ + "service/sagemaker" + ] +} \ No newline at end of file diff --git a/.changelog/4b42e520264042539c490057eb359c9d.json b/.changelog/4b42e520264042539c490057eb359c9d.json new file mode 100644 index 00000000000..da89cb220a5 --- /dev/null +++ b/.changelog/4b42e520264042539c490057eb359c9d.json @@ -0,0 +1,8 @@ +{ + "id": "4b42e520-2640-4253-9c49-0057eb359c9d", + "type": "feature", + "description": "Releasing new ErrorCodes for SysPrep failures during ImageImport and CreateImage process", + "modules": [ + "service/workspaces" + ] +} \ No newline at end of file diff --git a/.changelog/53b6b7428c6c426d8e8bbf5d40aef436.json b/.changelog/53b6b7428c6c426d8e8bbf5d40aef436.json new file mode 100644 index 00000000000..d4bdc7eaaf7 --- /dev/null +++ b/.changelog/53b6b7428c6c426d8e8bbf5d40aef436.json @@ -0,0 +1,8 @@ +{ + "id": "53b6b742-8c6c-426d-8e8b-bf5d40aef436", + "type": "feature", + "description": "Generate account endpoint for DynamoDB requests when the account ID is available", + "modules": [ + "service/dynamodb" + ] +} \ No newline at end of file diff --git a/.changelog/5ee92ceeca5d4e7bb0a36a1d4d6d568b.json b/.changelog/5ee92ceeca5d4e7bb0a36a1d4d6d568b.json new file mode 100644 index 00000000000..a8f78be2edc --- /dev/null +++ b/.changelog/5ee92ceeca5d4e7bb0a36a1d4d6d568b.json @@ -0,0 +1,8 @@ +{ + "id": "5ee92cee-ca5d-4e7b-b0a3-6a1d4d6d568b", + "type": "feature", + "description": "This release introduces support for the SageMaker Metrics BatchGetMetrics API.", + "modules": [ + "service/sagemakermetrics" + ] +} \ No newline at end of file diff --git a/.changelog/c68e2f09de4243b4afdf7fa766bf0818.json b/.changelog/c68e2f09de4243b4afdf7fa766bf0818.json new file mode 100644 index 00000000000..25cde6ffce4 --- /dev/null +++ b/.changelog/c68e2f09de4243b4afdf7fa766bf0818.json @@ -0,0 +1,8 @@ +{ + "id": "c68e2f09-de42-43b4-afdf-7fa766bf0818", + "type": "feature", + "description": "Add v2 smoke tests and smithy smokeTests trait for SDK testing.", + "modules": [ + "service/neptune" + ] +} \ No newline at end of file diff --git a/feature/dynamodbstreams/attributevalue/go_module_metadata.go b/feature/dynamodbstreams/attributevalue/go_module_metadata.go index 25c07d2b0ed..76dae59b430 100644 --- a/feature/dynamodbstreams/attributevalue/go_module_metadata.go +++ b/feature/dynamodbstreams/attributevalue/go_module_metadata.go @@ -3,4 +3,4 @@ package attributevalue // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.14.17" +const goModuleVersion = "1.15.4" diff --git a/service/accessanalyzer/api_client.go b/service/accessanalyzer/api_client.go index e7ffe0f2dc5..2ad2d7ab5f1 100644 --- a/service/accessanalyzer/api_client.go +++ b/service/accessanalyzer/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/account/api_client.go b/service/account/api_client.go index fe398101ef7..c7e39d44a26 100644 --- a/service/account/api_client.go +++ b/service/account/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/acm/api_client.go b/service/acm/api_client.go index e6c27ea8bea..f280a1f44fa 100644 --- a/service/acm/api_client.go +++ b/service/acm/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/acmpca/api_client.go b/service/acmpca/api_client.go index 76ac1c76a95..10899c87f9f 100644 --- a/service/acmpca/api_client.go +++ b/service/acmpca/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/amp/api_client.go b/service/amp/api_client.go index 6f0fcdd5254..ab6963fdb1a 100644 --- a/service/amp/api_client.go +++ b/service/amp/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/amplify/api_client.go b/service/amplify/api_client.go index 9b4fb9a2654..36418a23b38 100644 --- a/service/amplify/api_client.go +++ b/service/amplify/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/amplifybackend/api_client.go b/service/amplifybackend/api_client.go index dbf66e464dc..3cb672e201d 100644 --- a/service/amplifybackend/api_client.go +++ b/service/amplifybackend/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/amplifyuibuilder/api_client.go b/service/amplifyuibuilder/api_client.go index 1669c336796..ad86e25abc2 100644 --- a/service/amplifyuibuilder/api_client.go +++ b/service/amplifyuibuilder/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/apigateway/api_client.go b/service/apigateway/api_client.go index 7853d582f0a..7d20ee4aef3 100644 --- a/service/apigateway/api_client.go +++ b/service/apigateway/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/apigatewaymanagementapi/api_client.go b/service/apigatewaymanagementapi/api_client.go index ecc0bab2368..67de2de8116 100644 --- a/service/apigatewaymanagementapi/api_client.go +++ b/service/apigatewaymanagementapi/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/apigatewayv2/api_client.go b/service/apigatewayv2/api_client.go index 6899a3ab543..71b544f96b3 100644 --- a/service/apigatewayv2/api_client.go +++ b/service/apigatewayv2/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/appconfig/api_client.go b/service/appconfig/api_client.go index 5b38d261d0d..ab2165b1318 100644 --- a/service/appconfig/api_client.go +++ b/service/appconfig/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/appconfigdata/api_client.go b/service/appconfigdata/api_client.go index cdec14cb1ee..642db2c10d6 100644 --- a/service/appconfigdata/api_client.go +++ b/service/appconfigdata/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/appfabric/api_client.go b/service/appfabric/api_client.go index dd958df7371..9f232e55097 100644 --- a/service/appfabric/api_client.go +++ b/service/appfabric/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/appflow/api_client.go b/service/appflow/api_client.go index aab84f347b0..18493b07ca9 100644 --- a/service/appflow/api_client.go +++ b/service/appflow/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/appintegrations/api_client.go b/service/appintegrations/api_client.go index 5a1b6646247..e29575559cb 100644 --- a/service/appintegrations/api_client.go +++ b/service/appintegrations/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/applicationautoscaling/api_client.go b/service/applicationautoscaling/api_client.go index d3fc15a8364..6670574229a 100644 --- a/service/applicationautoscaling/api_client.go +++ b/service/applicationautoscaling/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/applicationcostprofiler/api_client.go b/service/applicationcostprofiler/api_client.go index b36f23cf9c7..c53b97fb46d 100644 --- a/service/applicationcostprofiler/api_client.go +++ b/service/applicationcostprofiler/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/applicationdiscoveryservice/api_client.go b/service/applicationdiscoveryservice/api_client.go index 3f6bf1b3af8..4a6e8db8315 100644 --- a/service/applicationdiscoveryservice/api_client.go +++ b/service/applicationdiscoveryservice/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/applicationinsights/api_client.go b/service/applicationinsights/api_client.go index 69ce07d1617..20bc0a51149 100644 --- a/service/applicationinsights/api_client.go +++ b/service/applicationinsights/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/applicationsignals/api_client.go b/service/applicationsignals/api_client.go index 35a7db25bd1..8d8718a4f9b 100644 --- a/service/applicationsignals/api_client.go +++ b/service/applicationsignals/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/appmesh/api_client.go b/service/appmesh/api_client.go index b651da2cf15..58ccd3ab3a3 100644 --- a/service/appmesh/api_client.go +++ b/service/appmesh/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/apprunner/api_client.go b/service/apprunner/api_client.go index cbe803b7430..4c4e67341de 100644 --- a/service/apprunner/api_client.go +++ b/service/apprunner/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/appstream/api_client.go b/service/appstream/api_client.go index bb3d342d923..481910b212d 100644 --- a/service/appstream/api_client.go +++ b/service/appstream/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/appsync/api_client.go b/service/appsync/api_client.go index 5cdb8cdb580..2aaf0af16fc 100644 --- a/service/appsync/api_client.go +++ b/service/appsync/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/apptest/api_client.go b/service/apptest/api_client.go index 21230eebdfa..792274dc31f 100644 --- a/service/apptest/api_client.go +++ b/service/apptest/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/arczonalshift/api_client.go b/service/arczonalshift/api_client.go index a3d47416d6b..a2c1f988392 100644 --- a/service/arczonalshift/api_client.go +++ b/service/arczonalshift/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/artifact/api_client.go b/service/artifact/api_client.go index fdfa6c9d77e..5bfbd7e3f19 100644 --- a/service/artifact/api_client.go +++ b/service/artifact/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/athena/api_client.go b/service/athena/api_client.go index ff2d15c661a..78fa448fbe4 100644 --- a/service/athena/api_client.go +++ b/service/athena/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/auditmanager/api_client.go b/service/auditmanager/api_client.go index d4eb70e67bc..70a5a83855c 100644 --- a/service/auditmanager/api_client.go +++ b/service/auditmanager/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/autoscaling/api_client.go b/service/autoscaling/api_client.go index 74a21394cca..130aff3e43b 100644 --- a/service/autoscaling/api_client.go +++ b/service/autoscaling/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/autoscalingplans/api_client.go b/service/autoscalingplans/api_client.go index ad7f3ec38cb..c1e8bfdf16b 100644 --- a/service/autoscalingplans/api_client.go +++ b/service/autoscalingplans/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/b2bi/api_client.go b/service/b2bi/api_client.go index d7a686b5f40..f90181a7a10 100644 --- a/service/b2bi/api_client.go +++ b/service/b2bi/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/backup/api_client.go b/service/backup/api_client.go index c97d6ba86ff..b3f39981f3d 100644 --- a/service/backup/api_client.go +++ b/service/backup/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/backupgateway/api_client.go b/service/backupgateway/api_client.go index 3a2f6050097..cfb17ec29f7 100644 --- a/service/backupgateway/api_client.go +++ b/service/backupgateway/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/batch/api_client.go b/service/batch/api_client.go index bcb4c6ce7b2..839347251ec 100644 --- a/service/batch/api_client.go +++ b/service/batch/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/bcmdataexports/api_client.go b/service/bcmdataexports/api_client.go index ef222d87c6e..ab6f892da29 100644 --- a/service/bcmdataexports/api_client.go +++ b/service/bcmdataexports/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/bedrock/api_client.go b/service/bedrock/api_client.go index 306a85ca818..c8426d40c3c 100644 --- a/service/bedrock/api_client.go +++ b/service/bedrock/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/bedrockagent/api_client.go b/service/bedrockagent/api_client.go index 9fa77e172df..b2075999456 100644 --- a/service/bedrockagent/api_client.go +++ b/service/bedrockagent/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/bedrockagentruntime/api_client.go b/service/bedrockagentruntime/api_client.go index 42f2512a934..061b12b78b7 100644 --- a/service/bedrockagentruntime/api_client.go +++ b/service/bedrockagentruntime/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/bedrockruntime/api_client.go b/service/bedrockruntime/api_client.go index a9bbede73ea..3123d5dc31a 100644 --- a/service/bedrockruntime/api_client.go +++ b/service/bedrockruntime/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/billingconductor/api_client.go b/service/billingconductor/api_client.go index 64a90667796..9f2b6af5a31 100644 --- a/service/billingconductor/api_client.go +++ b/service/billingconductor/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/braket/api_client.go b/service/braket/api_client.go index dddd904affe..829f8483257 100644 --- a/service/braket/api_client.go +++ b/service/braket/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/budgets/api_client.go b/service/budgets/api_client.go index 0fccf815a5b..0254fb6e6a5 100644 --- a/service/budgets/api_client.go +++ b/service/budgets/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/chatbot/api_client.go b/service/chatbot/api_client.go index 2f34caf2834..1865b3cdcef 100644 --- a/service/chatbot/api_client.go +++ b/service/chatbot/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/chime/api_client.go b/service/chime/api_client.go index 18a99273bda..f697d261b81 100644 --- a/service/chime/api_client.go +++ b/service/chime/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/chimesdkidentity/api_client.go b/service/chimesdkidentity/api_client.go index f70dde8a23c..4ef9fe50450 100644 --- a/service/chimesdkidentity/api_client.go +++ b/service/chimesdkidentity/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/chimesdkmediapipelines/api_client.go b/service/chimesdkmediapipelines/api_client.go index bf8b9d0d022..80eb77313f8 100644 --- a/service/chimesdkmediapipelines/api_client.go +++ b/service/chimesdkmediapipelines/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/chimesdkmeetings/api_client.go b/service/chimesdkmeetings/api_client.go index 6ba24130edb..f9d14e68373 100644 --- a/service/chimesdkmeetings/api_client.go +++ b/service/chimesdkmeetings/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/chimesdkmessaging/api_client.go b/service/chimesdkmessaging/api_client.go index c34c3a21d5f..13ea966f0d8 100644 --- a/service/chimesdkmessaging/api_client.go +++ b/service/chimesdkmessaging/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/chimesdkvoice/api_client.go b/service/chimesdkvoice/api_client.go index be69c79281c..96f42f6a6d1 100644 --- a/service/chimesdkvoice/api_client.go +++ b/service/chimesdkvoice/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/cleanrooms/api_client.go b/service/cleanrooms/api_client.go index 89888581ab2..6c38d7ea8e7 100644 --- a/service/cleanrooms/api_client.go +++ b/service/cleanrooms/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/cleanroomsml/api_client.go b/service/cleanroomsml/api_client.go index 61bcf5142cd..ba649135e40 100644 --- a/service/cleanroomsml/api_client.go +++ b/service/cleanroomsml/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/cloud9/api_client.go b/service/cloud9/api_client.go index 7a35e632e51..82d825cdd40 100644 --- a/service/cloud9/api_client.go +++ b/service/cloud9/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/cloudcontrol/api_client.go b/service/cloudcontrol/api_client.go index 8ae81e9a6d4..5d8b31c6bac 100644 --- a/service/cloudcontrol/api_client.go +++ b/service/cloudcontrol/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/clouddirectory/api_client.go b/service/clouddirectory/api_client.go index 6f552df78b7..371fe43107c 100644 --- a/service/clouddirectory/api_client.go +++ b/service/clouddirectory/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/cloudformation/api_client.go b/service/cloudformation/api_client.go index 5585057902d..8d9dbcf8a66 100644 --- a/service/cloudformation/api_client.go +++ b/service/cloudformation/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/cloudfront/api_client.go b/service/cloudfront/api_client.go index 4ac8ddba3ad..ccbc3c68cb9 100644 --- a/service/cloudfront/api_client.go +++ b/service/cloudfront/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/cloudfrontkeyvaluestore/api_client.go b/service/cloudfrontkeyvaluestore/api_client.go index 3363179d499..07e8e3f9ef2 100644 --- a/service/cloudfrontkeyvaluestore/api_client.go +++ b/service/cloudfrontkeyvaluestore/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveHTTPSignerV4a(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/cloudhsm/api_client.go b/service/cloudhsm/api_client.go index e2168d1fd33..0d7effb3fe4 100644 --- a/service/cloudhsm/api_client.go +++ b/service/cloudhsm/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/cloudhsmv2/api_client.go b/service/cloudhsmv2/api_client.go index b65316b9954..738bb669e01 100644 --- a/service/cloudhsmv2/api_client.go +++ b/service/cloudhsmv2/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/cloudsearch/api_client.go b/service/cloudsearch/api_client.go index 95a903259bb..d0f9dc1e3e3 100644 --- a/service/cloudsearch/api_client.go +++ b/service/cloudsearch/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/cloudsearchdomain/api_client.go b/service/cloudsearchdomain/api_client.go index 176c62cbd8f..8749acd4d99 100644 --- a/service/cloudsearchdomain/api_client.go +++ b/service/cloudsearchdomain/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/cloudtrail/api_client.go b/service/cloudtrail/api_client.go index 20e8a02d13e..454d65efd08 100644 --- a/service/cloudtrail/api_client.go +++ b/service/cloudtrail/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/cloudtraildata/api_client.go b/service/cloudtraildata/api_client.go index 417a8eec619..a5154b3324b 100644 --- a/service/cloudtraildata/api_client.go +++ b/service/cloudtraildata/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/cloudwatch/api_client.go b/service/cloudwatch/api_client.go index 17c816b4643..a32b9c25803 100644 --- a/service/cloudwatch/api_client.go +++ b/service/cloudwatch/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/cloudwatchevents/api_client.go b/service/cloudwatchevents/api_client.go index 8507a27e582..b38ba2400ee 100644 --- a/service/cloudwatchevents/api_client.go +++ b/service/cloudwatchevents/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/cloudwatchlogs/api_client.go b/service/cloudwatchlogs/api_client.go index 561e6cb326f..5af89ad4d8a 100644 --- a/service/cloudwatchlogs/api_client.go +++ b/service/cloudwatchlogs/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/codeartifact/api_client.go b/service/codeartifact/api_client.go index 797181b5cf9..ed240990f2f 100644 --- a/service/codeartifact/api_client.go +++ b/service/codeartifact/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/codebuild/api_client.go b/service/codebuild/api_client.go index b3d7bf7672a..c4779f03a0e 100644 --- a/service/codebuild/api_client.go +++ b/service/codebuild/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/codecatalyst/api_client.go b/service/codecatalyst/api_client.go index c005fbc8d67..56298cde6e5 100644 --- a/service/codecatalyst/api_client.go +++ b/service/codecatalyst/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveBearerAuthSigner(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/codecommit/api_client.go b/service/codecommit/api_client.go index 7fd68950710..587301316f0 100644 --- a/service/codecommit/api_client.go +++ b/service/codecommit/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/codeconnections/api_client.go b/service/codeconnections/api_client.go index d3c38d25037..b0d9015fb51 100644 --- a/service/codeconnections/api_client.go +++ b/service/codeconnections/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/codedeploy/api_client.go b/service/codedeploy/api_client.go index 2818b711269..5c47eba070c 100644 --- a/service/codedeploy/api_client.go +++ b/service/codedeploy/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/codeguruprofiler/api_client.go b/service/codeguruprofiler/api_client.go index 825a50aa2a8..b766e9c0916 100644 --- a/service/codeguruprofiler/api_client.go +++ b/service/codeguruprofiler/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/codegurureviewer/api_client.go b/service/codegurureviewer/api_client.go index f7b3d7255ce..f47deb855f3 100644 --- a/service/codegurureviewer/api_client.go +++ b/service/codegurureviewer/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/codegurusecurity/api_client.go b/service/codegurusecurity/api_client.go index de3a88ec9e6..e7550df7c69 100644 --- a/service/codegurusecurity/api_client.go +++ b/service/codegurusecurity/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/codepipeline/api_client.go b/service/codepipeline/api_client.go index 88abbad963c..4be215e40ed 100644 --- a/service/codepipeline/api_client.go +++ b/service/codepipeline/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/codestarconnections/api_client.go b/service/codestarconnections/api_client.go index d2de3a6672e..160893117d5 100644 --- a/service/codestarconnections/api_client.go +++ b/service/codestarconnections/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/codestarnotifications/api_client.go b/service/codestarnotifications/api_client.go index 724b03eca60..d36b121c67d 100644 --- a/service/codestarnotifications/api_client.go +++ b/service/codestarnotifications/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/cognitoidentity/api_client.go b/service/cognitoidentity/api_client.go index 556a0fbc590..cf65373febe 100644 --- a/service/cognitoidentity/api_client.go +++ b/service/cognitoidentity/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/cognitoidentityprovider/api_client.go b/service/cognitoidentityprovider/api_client.go index 8b3c0b364ab..5954a9f77da 100644 --- a/service/cognitoidentityprovider/api_client.go +++ b/service/cognitoidentityprovider/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/cognitosync/api_client.go b/service/cognitosync/api_client.go index 39ba69e0689..6bf118071f5 100644 --- a/service/cognitosync/api_client.go +++ b/service/cognitosync/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/comprehend/api_client.go b/service/comprehend/api_client.go index 55f10bf2db2..ab09b229113 100644 --- a/service/comprehend/api_client.go +++ b/service/comprehend/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/comprehendmedical/api_client.go b/service/comprehendmedical/api_client.go index 7df5a0c9544..9b8f6a56e0f 100644 --- a/service/comprehendmedical/api_client.go +++ b/service/comprehendmedical/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/computeoptimizer/api_client.go b/service/computeoptimizer/api_client.go index 01d25407f7f..6dc16077caf 100644 --- a/service/computeoptimizer/api_client.go +++ b/service/computeoptimizer/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/configservice/api_client.go b/service/configservice/api_client.go index bf853a6fe4b..947cc57c609 100644 --- a/service/configservice/api_client.go +++ b/service/configservice/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/connect/api_client.go b/service/connect/api_client.go index 13f97351d3e..768544ed571 100644 --- a/service/connect/api_client.go +++ b/service/connect/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/connectcampaigns/api_client.go b/service/connectcampaigns/api_client.go index 1e08f142c20..15a0a8de902 100644 --- a/service/connectcampaigns/api_client.go +++ b/service/connectcampaigns/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/connectcases/api_client.go b/service/connectcases/api_client.go index 6a9e388a71b..0f42601d637 100644 --- a/service/connectcases/api_client.go +++ b/service/connectcases/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/connectcontactlens/api_client.go b/service/connectcontactlens/api_client.go index 482d5dc6a1b..9977f764702 100644 --- a/service/connectcontactlens/api_client.go +++ b/service/connectcontactlens/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/connectparticipant/api_client.go b/service/connectparticipant/api_client.go index bc56c54625e..347138a437e 100644 --- a/service/connectparticipant/api_client.go +++ b/service/connectparticipant/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/controlcatalog/api_client.go b/service/controlcatalog/api_client.go index 2c8ed057289..715e3b0c83a 100644 --- a/service/controlcatalog/api_client.go +++ b/service/controlcatalog/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/controltower/api_client.go b/service/controltower/api_client.go index 6ee0e5a1120..68531e8cbc9 100644 --- a/service/controltower/api_client.go +++ b/service/controltower/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/costandusagereportservice/api_client.go b/service/costandusagereportservice/api_client.go index dee6bd7eedd..f997d8090ed 100644 --- a/service/costandusagereportservice/api_client.go +++ b/service/costandusagereportservice/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/costexplorer/api_client.go b/service/costexplorer/api_client.go index 06cb912b8a4..4df2f9f3190 100644 --- a/service/costexplorer/api_client.go +++ b/service/costexplorer/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/costoptimizationhub/api_client.go b/service/costoptimizationhub/api_client.go index 0cd14de2ffd..4191efeac7a 100644 --- a/service/costoptimizationhub/api_client.go +++ b/service/costoptimizationhub/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/customerprofiles/api_client.go b/service/customerprofiles/api_client.go index ff7f5e55a80..3fee2e513d3 100644 --- a/service/customerprofiles/api_client.go +++ b/service/customerprofiles/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/databasemigrationservice/api_client.go b/service/databasemigrationservice/api_client.go index 92ef53452e3..4c3c452ab9f 100644 --- a/service/databasemigrationservice/api_client.go +++ b/service/databasemigrationservice/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/databrew/api_client.go b/service/databrew/api_client.go index 64eab0bc4c6..34f4923d68c 100644 --- a/service/databrew/api_client.go +++ b/service/databrew/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/dataexchange/api_client.go b/service/dataexchange/api_client.go index 6994db3cb08..d068907795c 100644 --- a/service/dataexchange/api_client.go +++ b/service/dataexchange/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/datapipeline/api_client.go b/service/datapipeline/api_client.go index faa9841b3c6..59a9dcf10be 100644 --- a/service/datapipeline/api_client.go +++ b/service/datapipeline/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/datasync/api_client.go b/service/datasync/api_client.go index 9253342e030..8f7a04174dd 100644 --- a/service/datasync/api_client.go +++ b/service/datasync/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/datazone/api_client.go b/service/datazone/api_client.go index ea6cc8a196d..6a006adb425 100644 --- a/service/datazone/api_client.go +++ b/service/datazone/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/dax/api_client.go b/service/dax/api_client.go index 6e33f01bf89..afc67e50264 100644 --- a/service/dax/api_client.go +++ b/service/dax/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/deadline/api_client.go b/service/deadline/api_client.go index 9436c1acd70..a3fa21fcdae 100644 --- a/service/deadline/api_client.go +++ b/service/deadline/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/detective/api_client.go b/service/detective/api_client.go index 40b0840b17a..83ac827dc25 100644 --- a/service/detective/api_client.go +++ b/service/detective/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/devicefarm/api_client.go b/service/devicefarm/api_client.go index 4a32b9cbea4..4318b3655a6 100644 --- a/service/devicefarm/api_client.go +++ b/service/devicefarm/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/devopsguru/api_client.go b/service/devopsguru/api_client.go index 7b0993739ae..924b2bcdabc 100644 --- a/service/devopsguru/api_client.go +++ b/service/devopsguru/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/directconnect/api_client.go b/service/directconnect/api_client.go index e9aea9f0f01..d8201e4f6d2 100644 --- a/service/directconnect/api_client.go +++ b/service/directconnect/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/directoryservice/api_client.go b/service/directoryservice/api_client.go index ae4d3324cc2..3015f1c506b 100644 --- a/service/directoryservice/api_client.go +++ b/service/directoryservice/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/directoryservicedata/api_client.go b/service/directoryservicedata/api_client.go index 92a14d19e25..19238a43baa 100644 --- a/service/directoryservicedata/api_client.go +++ b/service/directoryservicedata/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/dlm/api_client.go b/service/dlm/api_client.go index 7935d913ad0..0a0db19bedb 100644 --- a/service/dlm/api_client.go +++ b/service/dlm/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/docdb/api_client.go b/service/docdb/api_client.go index 04bcf181e1f..b20decb8a45 100644 --- a/service/docdb/api_client.go +++ b/service/docdb/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/docdbelastic/api_client.go b/service/docdbelastic/api_client.go index cefb5e355e4..18cfd9ecb72 100644 --- a/service/docdbelastic/api_client.go +++ b/service/docdbelastic/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/drs/api_client.go b/service/drs/api_client.go index d48f15c1fff..be4c5134961 100644 --- a/service/drs/api_client.go +++ b/service/drs/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/dynamodb/api_client.go b/service/dynamodb/api_client.go index fcc93f03aab..c3402891ffa 100644 --- a/service/dynamodb/api_client.go +++ b/service/dynamodb/api_client.go @@ -200,10 +200,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { @@ -433,15 +433,16 @@ func setResolvedDefaultsMode(o *Options) { // 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, + 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, + AccountIDEndpointMode: cfg.AccountIDEndpointMode, } resolveAWSRetryerProvider(cfg, &opts) resolveAWSRetryMaxAttempts(cfg, &opts) @@ -850,6 +851,25 @@ func initializeTimeOffsetResolver(c *Client) { c.timeOffset = new(atomic.Int64) } +func checkAccountID(identity smithyauth.Identity, mode aws.AccountIDEndpointMode) error { + switch mode { + case aws.AccountIDEndpointModeUnset: + case aws.AccountIDEndpointModePreferred: + case aws.AccountIDEndpointModeDisabled: + case aws.AccountIDEndpointModeRequired: + if ca, ok := identity.(*internalauthsmithy.CredentialsAdapter); !ok { + return fmt.Errorf("accountID is required but not set") + } else if ca.Credentials.AccountID == "" { + return fmt.Errorf("accountID is required but not set") + } + // default check in case invalid mode is configured through request config + default: + return fmt.Errorf("invalid accountID endpoint mode %s, must be preferred/required/disabled", mode) + } + + return nil +} + func addUserAgentRetryMode(stack *middleware.Stack, options Options) error { ua, err := getOrAddRequestUserAgent(stack) if err != nil { diff --git a/service/dynamodb/endpoints.go b/service/dynamodb/endpoints.go index fabf4b04a87..8c915933b8a 100644 --- a/service/dynamodb/endpoints.go +++ b/service/dynamodb/endpoints.go @@ -15,6 +15,7 @@ import ( smithy "github.com/aws/smithy-go" smithyauth "github.com/aws/smithy-go/auth" smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/endpoints/private/rulesfn" "github.com/aws/smithy-go/middleware" "github.com/aws/smithy-go/ptr" "github.com/aws/smithy-go/tracing" @@ -262,6 +263,22 @@ type EndpointParameters struct { // // SDK::Endpoint Endpoint *string + + // The AWS AccountId used for the request. + // + // Parameter is + // required. + // + // AWS::Auth::AccountId + AccountId *string + + // The AccountId Endpoint Mode. + // + // Parameter is + // required. + // + // AWS::Auth::AccountIdEndpointMode + AccountIdEndpointMode *string } // ValidateRequired validates required parameters are set. @@ -358,10 +375,92 @@ func (r *resolver) ResolveEndpoint( if exprVal := awsrulesfn.GetPartition(_Region); exprVal != nil { _PartitionResult := *exprVal _ = _PartitionResult + if _Region == "local" { + if _UseFIPS == true { + return endpoint, fmt.Errorf("endpoint rule error, %s", "Invalid Configuration: FIPS and local endpoint are not supported") + } + if _UseDualStack == true { + return endpoint, fmt.Errorf("endpoint rule error, %s", "Invalid Configuration: Dualstack and local endpoint are not supported") + } + uriString := "http://localhost:8000" + + 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{}, + Properties: func() smithy.Properties { + var out smithy.Properties + smithyauth.SetAuthOptions(&out, []*smithyauth.Option{ + { + SchemeID: "aws.auth#sigv4", + SignerProperties: func() smithy.Properties { + var sp smithy.Properties + smithyhttp.SetSigV4SigningName(&sp, "dynamodb") + smithyhttp.SetSigV4ASigningName(&sp, "dynamodb") + + smithyhttp.SetSigV4SigningRegion(&sp, "us-east-1") + return sp + }(), + }, + }) + return out + }(), + }, nil + } + if exprVal := params.AccountIdEndpointMode; exprVal != nil { + _AccountIdEndpointMode := *exprVal + _ = _AccountIdEndpointMode + if _AccountIdEndpointMode == "required" { + if !(params.AccountId != nil) { + return endpoint, fmt.Errorf("endpoint rule error, %s", "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded.") + } + } + } + if exprVal := params.AccountId; exprVal != nil { + _AccountId := *exprVal + _ = _AccountId + if _PartitionResult.Name == "aws" { + if !(_UseFIPS == true) { + if !(_UseDualStack == true) { + if !(rulesfn.IsValidHostLabel(_AccountId, false)) { + return endpoint, fmt.Errorf("endpoint rule error, %s", "Credentials-sourced account ID parameter is invalid") + } + } + } + } + } if _UseFIPS == true { if _UseDualStack == true { - if true == _PartitionResult.SupportsFIPS { - if true == _PartitionResult.SupportsDualStack { + if _PartitionResult.SupportsFIPS == true { + if _PartitionResult.SupportsDualStack == true { + if exprVal := params.AccountIdEndpointMode; exprVal != nil { + _AccountIdEndpointMode := *exprVal + _ = _AccountIdEndpointMode + if _AccountIdEndpointMode == "disabled" { + uriString := func() string { + var out strings.Builder + out.WriteString("https://dynamodb-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 + } + } uriString := func() string { var out strings.Builder out.WriteString("https://dynamodb-fips.") @@ -388,11 +487,36 @@ func (r *resolver) ResolveEndpoint( if _UseFIPS == true { if _PartitionResult.SupportsFIPS == true { if _PartitionResult.Name == "aws-us-gov" { + if exprVal := params.AccountIdEndpointMode; exprVal != nil { + _AccountIdEndpointMode := *exprVal + _ = _AccountIdEndpointMode + if _AccountIdEndpointMode == "disabled" { + uriString := func() string { + var out strings.Builder + out.WriteString("https://dynamodb.") + 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 + } + } uriString := func() string { var out strings.Builder out.WriteString("https://dynamodb.") out.WriteString(_Region) - out.WriteString(".amazonaws.com") + out.WriteString(".") + out.WriteString(_PartitionResult.DnsSuffix) return out.String() }() @@ -406,6 +530,30 @@ func (r *resolver) ResolveEndpoint( Headers: http.Header{}, }, nil } + if exprVal := params.AccountIdEndpointMode; exprVal != nil { + _AccountIdEndpointMode := *exprVal + _ = _AccountIdEndpointMode + if _AccountIdEndpointMode == "disabled" { + uriString := func() string { + var out strings.Builder + out.WriteString("https://dynamodb-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 + } + } uriString := func() string { var out strings.Builder out.WriteString("https://dynamodb-fips.") @@ -428,7 +576,31 @@ func (r *resolver) ResolveEndpoint( 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 { + if _PartitionResult.SupportsDualStack == true { + if exprVal := params.AccountIdEndpointMode; exprVal != nil { + _AccountIdEndpointMode := *exprVal + _ = _AccountIdEndpointMode + if _AccountIdEndpointMode == "disabled" { + uriString := func() string { + var out strings.Builder + out.WriteString("https://dynamodb.") + 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 + } + } uriString := func() string { var out strings.Builder out.WriteString("https://dynamodb.") @@ -450,35 +622,59 @@ func (r *resolver) ResolveEndpoint( } return endpoint, fmt.Errorf("endpoint rule error, %s", "DualStack is enabled but this partition does not support DualStack") } - if _Region == "local" { - uriString := "http://localhost:8000" + if exprVal := params.AccountIdEndpointMode; exprVal != nil { + _AccountIdEndpointMode := *exprVal + _ = _AccountIdEndpointMode + if _AccountIdEndpointMode == "disabled" { + uriString := func() string { + var out strings.Builder + out.WriteString("https://dynamodb.") + 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) + 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.AccountId; exprVal != nil { + _AccountId := *exprVal + _ = _AccountId + if _PartitionResult.Name == "aws" { + if !(_UseFIPS == true) { + if !(_UseDualStack == true) { + uriString := func() string { + var out strings.Builder + out.WriteString("https://") + out.WriteString(_AccountId) + out.WriteString(".ddb.") + out.WriteString(_Region) + out.WriteString(".") + out.WriteString(_PartitionResult.DnsSuffix) + return out.String() + }() - return smithyendpoints.Endpoint{ - URI: *uri, - Headers: http.Header{}, - Properties: func() smithy.Properties { - var out smithy.Properties - smithyauth.SetAuthOptions(&out, []*smithyauth.Option{ - { - SchemeID: "aws.auth#sigv4", - SignerProperties: func() smithy.Properties { - var sp smithy.Properties - smithyhttp.SetSigV4SigningName(&sp, "dynamodb") - smithyhttp.SetSigV4ASigningName(&sp, "dynamodb") + uri, err := url.Parse(uriString) + if err != nil { + return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString) + } - smithyhttp.SetSigV4SigningRegion(&sp, "us-east-1") - return sp - }(), - }, - }) - return out - }(), - }, nil + return smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + }, nil + } + } + } } uriString := func() string { var out strings.Builder @@ -515,6 +711,7 @@ func bindEndpointParams(ctx context.Context, input interface{}, options Options) params.UseDualStack = aws.Bool(options.EndpointOptions.UseDualStackEndpoint == aws.DualStackEndpointStateEnabled) params.UseFIPS = aws.Bool(options.EndpointOptions.UseFIPSEndpoint == aws.FIPSEndpointStateEnabled) params.Endpoint = options.BaseEndpoint + params.AccountId = resolveAccountID(getIdentity(ctx), options.AccountIDEndpointMode) if b, ok := input.(endpointParamsBinder); ok { b.bindEndpointParams(params) @@ -541,6 +738,10 @@ func (m *resolveEndpointV2Middleware) HandleFinalize(ctx context.Context, in mid return next.HandleFinalize(ctx, in) } + if err := checkAccountID(getIdentity(ctx), m.options.AccountIDEndpointMode); err != nil { + return out, metadata, fmt.Errorf("invalid accountID set: %w", err) + } + req, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) diff --git a/service/dynamodb/endpoints_test.go b/service/dynamodb/endpoints_test.go index 0a8906763d1..d0cec130763 100644 --- a/service/dynamodb/endpoints_test.go +++ b/service/dynamodb/endpoints_test.go @@ -1946,3 +1946,1508 @@ func TestEndpointCase54(t *testing.T) { t.Errorf("expect %v error in %v", e, a) } } + +// For custom endpoint with account ID available, FIPS enabled, and DualStack +// enabled +func TestEndpointCase55(t *testing.T) { + var params = EndpointParameters{ + AccountId: ptr.String("012345678901"), + UseFIPS: ptr.Bool(true), + 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: 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 account ID available, FIPS enabled, and DualStack +// disabled +func TestEndpointCase56(t *testing.T) { + var params = EndpointParameters{ + AccountId: ptr.String("012345678901"), + 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 account ID available, FIPS disabled, and DualStack +// enabled +func TestEndpointCase57(t *testing.T) { + var params = EndpointParameters{ + AccountId: ptr.String("012345678901"), + 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) + } +} + +// For custom endpoint with account ID available, FIPS disabled, and DualStack +// disabled +func TestEndpointCase58(t *testing.T) { + var params = EndpointParameters{ + AccountId: ptr.String("012345678901"), + 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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For custom endpoint with empty account ID available, FIPS disabled, and +// DualStack disabled +func TestEndpointCase59(t *testing.T) { + var params = EndpointParameters{ + AccountId: ptr.String(""), + 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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region local with account ID available, FIPS enabled, and DualStack enabled +func TestEndpointCase60(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("local"), + AccountId: ptr.String("012345678901"), + 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 := "Invalid Configuration: FIPS and local endpoint are not supported", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region local with account ID available, FIPS enabled, and DualStack disabled +func TestEndpointCase61(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("local"), + AccountId: ptr.String("012345678901"), + 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 error, got none") + } + if e, a := "Invalid Configuration: FIPS and local endpoint are not supported", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region local with account ID available, FIPS disabled, and DualStack enabled +func TestEndpointCase62(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("local"), + AccountId: ptr.String("012345678901"), + 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 := "Invalid Configuration: Dualstack and local endpoint are not supported", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region local with account ID available, FIPS disabled, and DualStack +// disabled +func TestEndpointCase63(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("local"), + AccountId: ptr.String("012345678901"), + 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("http://localhost:8000") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: func() smithy.Properties { + var out smithy.Properties + smithyauth.SetAuthOptions(&out, []*smithyauth.Option{ + { + SchemeID: "aws.auth#sigv4", + SignerProperties: func() smithy.Properties { + var sp smithy.Properties + smithyhttp.SetSigV4SigningName(&sp, "dynamodb") + smithyhttp.SetSigV4ASigningName(&sp, "dynamodb") + + smithyhttp.SetSigV4SigningRegion(&sp, "us-east-1") + return sp + }(), + }, + }) + return out + }(), + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region local with empty account ID available, FIPS disabled, and DualStack +// disabled +func TestEndpointCase64(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("local"), + AccountId: ptr.String(""), + 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("http://localhost:8000") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: func() smithy.Properties { + var out smithy.Properties + smithyauth.SetAuthOptions(&out, []*smithyauth.Option{ + { + SchemeID: "aws.auth#sigv4", + SignerProperties: func() smithy.Properties { + var sp smithy.Properties + smithyhttp.SetSigV4SigningName(&sp, "dynamodb") + smithyhttp.SetSigV4ASigningName(&sp, "dynamodb") + + smithyhttp.SetSigV4SigningRegion(&sp, "us-east-1") + return sp + }(), + }, + }) + return out + }(), + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For AccountIdEndpointMode required and no AccountId set +func TestEndpointCase65(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + AccountIdEndpointMode: ptr.String("required"), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded.", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region us-east-1 with account ID available, FIPS enabled, and DualStack +// enabled +func TestEndpointCase66(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + AccountId: ptr.String("012345678901"), + 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://dynamodb-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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region us-east-1 with account ID available, FIPS enabled, and DualStack +// disabled +func TestEndpointCase67(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + AccountId: ptr.String("012345678901"), + 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://dynamodb-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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region us-east-1 with account ID available, AccountIdEndpointMode preferred, +// FIPS enabled, and DualStack disabled +func TestEndpointCase68(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + AccountId: ptr.String("012345678901"), + AccountIdEndpointMode: ptr.String("preferred"), + 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://dynamodb-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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region us-east-1 with account ID available, AccountIdEndpointMode required, +// FIPS enabled, and DualStack disabled +func TestEndpointCase69(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + AccountId: ptr.String("012345678901"), + AccountIdEndpointMode: ptr.String("required"), + 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://dynamodb-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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region us-east-1 with account ID available, FIPS disabled, and DualStack +// enabled +func TestEndpointCase70(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + AccountId: ptr.String("012345678901"), + 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://dynamodb.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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region us-east-1 with account ID available, FIPS disabled, and DualStack +// enabled +func TestEndpointCase71(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + AccountId: ptr.String("012345678901"), + 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://dynamodb.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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region us-east-1 with account ID available, AccountIdEndpointMode preferred, +// FIPS disabled, and DualStack enabled +func TestEndpointCase72(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + AccountId: ptr.String("012345678901"), + AccountIdEndpointMode: ptr.String("preferred"), + 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://dynamodb.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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region us-east-1 with account ID available, AccountIdEndpointMode disabled, +// FIPS disabled, and DualStack enabled +func TestEndpointCase73(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + AccountId: ptr.String("012345678901"), + AccountIdEndpointMode: ptr.String("disabled"), + 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://dynamodb.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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region us-east-1 with account ID available, AccountIdEndpointMode required, +// FIPS disabled, and DualStack enabled +func TestEndpointCase74(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + AccountId: ptr.String("012345678901"), + AccountIdEndpointMode: ptr.String("required"), + 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://dynamodb.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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region us-east-1 with account ID available, AccountIdEndpointMode preferred, +// FIPS disabled, and DualStack disabled +func TestEndpointCase75(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + AccountId: ptr.String("012345678901"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + AccountIdEndpointMode: ptr.String("preferred"), + } + + 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://012345678901.ddb.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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region us-east-1 with account ID available, AccountIdEndpointMode required, +// FIPS disabled, and DualStack disabled +func TestEndpointCase76(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + AccountId: ptr.String("012345678901"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + AccountIdEndpointMode: ptr.String("required"), + } + + 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://012345678901.ddb.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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region us-east-1 with account ID available, AccountIdEndpointMode disabled, +// FIPS disabled, and DualStack disabled +func TestEndpointCase77(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + AccountId: ptr.String("012345678901"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + AccountIdEndpointMode: ptr.String("disabled"), + } + + 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://dynamodb.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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region us-east-1 with empty account ID, FIPS disabled, and DualStack +// disabled +func TestEndpointCase78(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + AccountId: ptr.String(""), + 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 error, got none") + } + if e, a := "Credentials-sourced account ID parameter is invalid", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region cn-north-1 with account ID available, FIPS enabled, and DualStack +// enabled +func TestEndpointCase79(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), + AccountId: ptr.String("012345678901"), + 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://dynamodb-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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region cn-north-1 with account ID available, FIPS enabled, and DualStack +// disabled +func TestEndpointCase80(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), + AccountId: ptr.String("012345678901"), + 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://dynamodb-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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region cn-north-1 with account ID available, FIPS disabled, and DualStack +// enabled +func TestEndpointCase81(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), + AccountId: ptr.String("012345678901"), + 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://dynamodb.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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region cn-north-1 with account ID available, FIPS disabled, and DualStack +// disabled +func TestEndpointCase82(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), + AccountId: ptr.String("012345678901"), + 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://dynamodb.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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region cn-north-1 with account ID available, AccountIdEndpointMode +// preferred, FIPS disabled, and DualStack disabled +func TestEndpointCase83(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), + AccountId: ptr.String("012345678901"), + AccountIdEndpointMode: ptr.String("preferred"), + 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://dynamodb.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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region cn-north-1 with account ID available, AccountIdEndpointMode disabled, +// FIPS disabled, and DualStack disabled +func TestEndpointCase84(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), + AccountId: ptr.String("012345678901"), + AccountIdEndpointMode: ptr.String("disabled"), + 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://dynamodb.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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region cn-north-1 with account ID available, AccountIdEndpointMode required, +// FIPS disabled, and DualStack disabled +func TestEndpointCase85(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), + AccountId: ptr.String("012345678901"), + AccountIdEndpointMode: ptr.String("required"), + 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://dynamodb.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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region cn-north-1 with empty account ID available, FIPS disabled, and +// DualStack disabled +func TestEndpointCase86(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), + AccountId: ptr.String(""), + 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://dynamodb.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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region us-iso-east-1 with account ID available, FIPS enabled, and DualStack +// enabled +func TestEndpointCase87(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + AccountId: ptr.String("012345678901"), + 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 account ID available, FIPS enabled, and DualStack +// disabled +func TestEndpointCase88(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + AccountId: ptr.String("012345678901"), + 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://dynamodb-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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region us-iso-east-1 with account ID available, FIPS disabled, and DualStack +// enabled +func TestEndpointCase89(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + AccountId: ptr.String("012345678901"), + 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 account ID available, FIPS disabled, and DualStack +// disabled +func TestEndpointCase90(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + AccountId: ptr.String("012345678901"), + 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://dynamodb.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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region us-iso-east-1 with empty account ID available, FIPS disabled, and +// DualStack disabled +func TestEndpointCase91(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + AccountId: ptr.String(""), + 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://dynamodb.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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region us-gov-east-1 with account ID available, FIPS enabled, and DualStack +// enabled +func TestEndpointCase92(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), + AccountId: ptr.String("012345678901"), + 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://dynamodb-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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region us-gov-east-1 with account ID available, FIPS enabled, and DualStack +// disabled +func TestEndpointCase93(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), + AccountId: ptr.String("012345678901"), + 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://dynamodb.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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region us-gov-east-1 with account ID available, FIPS disabled, and DualStack +// enabled +func TestEndpointCase94(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), + AccountId: ptr.String("012345678901"), + 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://dynamodb.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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region us-gov-east-1 with account ID available, FIPS disabled, and DualStack +// disabled +func TestEndpointCase95(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), + AccountId: ptr.String("012345678901"), + 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://dynamodb.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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} + +// For region us-gov-east-1 with empty account ID available, FIPS disabled, and +// DualStack disabled +func TestEndpointCase96(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), + AccountId: ptr.String(""), + 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://dynamodb.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 !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) { + t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers) + } + + if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) { + t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties) + } +} diff --git a/service/dynamodb/options.go b/service/dynamodb/options.go index e1381803265..88f04deb112 100644 --- a/service/dynamodb/options.go +++ b/service/dynamodb/options.go @@ -26,6 +26,9 @@ type Options struct { // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error + // Indicates how aws account ID is applied in endpoint2.0 routing + AccountIDEndpointMode aws.AccountIDEndpointMode + // The optional application specific identifier appended to the User-Agent header. AppID string diff --git a/service/dynamodbstreams/api_client.go b/service/dynamodbstreams/api_client.go index a98a26ae89d..4772a652ff0 100644 --- a/service/dynamodbstreams/api_client.go +++ b/service/dynamodbstreams/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/ebs/api_client.go b/service/ebs/api_client.go index 186f540452e..597c2dc262f 100644 --- a/service/ebs/api_client.go +++ b/service/ebs/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/ec2/api_client.go b/service/ec2/api_client.go index 02cd2943e25..27a7afc0c76 100644 --- a/service/ec2/api_client.go +++ b/service/ec2/api_client.go @@ -194,10 +194,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/ec2instanceconnect/api_client.go b/service/ec2instanceconnect/api_client.go index 2a053fd15c3..3f55d21ee0d 100644 --- a/service/ec2instanceconnect/api_client.go +++ b/service/ec2instanceconnect/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/ecr/api_client.go b/service/ecr/api_client.go index 189109eb556..66983e1c11f 100644 --- a/service/ecr/api_client.go +++ b/service/ecr/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/ecrpublic/api_client.go b/service/ecrpublic/api_client.go index fb153d0dde6..183825aa21f 100644 --- a/service/ecrpublic/api_client.go +++ b/service/ecrpublic/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/ecs/api_client.go b/service/ecs/api_client.go index 15fea102418..ab64ccb1bd6 100644 --- a/service/ecs/api_client.go +++ b/service/ecs/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/efs/api_client.go b/service/efs/api_client.go index eeb73185d3d..2c426536ec3 100644 --- a/service/efs/api_client.go +++ b/service/efs/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/eks/api_client.go b/service/eks/api_client.go index bca35f6b5dd..f1fb1c8620c 100644 --- a/service/eks/api_client.go +++ b/service/eks/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/eksauth/api_client.go b/service/eksauth/api_client.go index 7b7ae72a3ac..d15d80994b4 100644 --- a/service/eksauth/api_client.go +++ b/service/eksauth/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/elasticache/api_client.go b/service/elasticache/api_client.go index 469d7e719d9..e12f9b059ba 100644 --- a/service/elasticache/api_client.go +++ b/service/elasticache/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/elasticbeanstalk/api_client.go b/service/elasticbeanstalk/api_client.go index 84145bda5ba..7d2c5c83100 100644 --- a/service/elasticbeanstalk/api_client.go +++ b/service/elasticbeanstalk/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/elasticinference/api_client.go b/service/elasticinference/api_client.go index d5480d3017d..9bf01570511 100644 --- a/service/elasticinference/api_client.go +++ b/service/elasticinference/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/elasticloadbalancing/api_client.go b/service/elasticloadbalancing/api_client.go index e79d8ec7b32..2cb23dda2d4 100644 --- a/service/elasticloadbalancing/api_client.go +++ b/service/elasticloadbalancing/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/elasticloadbalancingv2/api_client.go b/service/elasticloadbalancingv2/api_client.go index 4443724445c..0687e601f40 100644 --- a/service/elasticloadbalancingv2/api_client.go +++ b/service/elasticloadbalancingv2/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/elasticsearchservice/api_client.go b/service/elasticsearchservice/api_client.go index 5d726af7e2a..7fafdb54011 100644 --- a/service/elasticsearchservice/api_client.go +++ b/service/elasticsearchservice/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/elastictranscoder/api_client.go b/service/elastictranscoder/api_client.go index 8d63a374551..512be4061ea 100644 --- a/service/elastictranscoder/api_client.go +++ b/service/elastictranscoder/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/emr/api_client.go b/service/emr/api_client.go index 7ca2e24460a..ebdf99b07b1 100644 --- a/service/emr/api_client.go +++ b/service/emr/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/emrcontainers/api_client.go b/service/emrcontainers/api_client.go index 88541f6d594..aadd442f8e0 100644 --- a/service/emrcontainers/api_client.go +++ b/service/emrcontainers/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/emrserverless/api_client.go b/service/emrserverless/api_client.go index 15ddff0e067..6672e455282 100644 --- a/service/emrserverless/api_client.go +++ b/service/emrserverless/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/entityresolution/api_client.go b/service/entityresolution/api_client.go index cbefdfe3e5f..09554b35ea4 100644 --- a/service/entityresolution/api_client.go +++ b/service/entityresolution/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/eventbridge/api_client.go b/service/eventbridge/api_client.go index 17a3dd9e1f1..72128bcb067 100644 --- a/service/eventbridge/api_client.go +++ b/service/eventbridge/api_client.go @@ -189,10 +189,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveHTTPSignerV4a(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/evidently/api_client.go b/service/evidently/api_client.go index 3883f2f9363..c558ffd5cd1 100644 --- a/service/evidently/api_client.go +++ b/service/evidently/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/finspace/api_client.go b/service/finspace/api_client.go index 20f3606e1cd..72a38dbf91d 100644 --- a/service/finspace/api_client.go +++ b/service/finspace/api_client.go @@ -192,10 +192,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/finspacedata/api_client.go b/service/finspacedata/api_client.go index 87c47d8dfba..f332f869c07 100644 --- a/service/finspacedata/api_client.go +++ b/service/finspacedata/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/firehose/api_client.go b/service/firehose/api_client.go index 47ef4a37628..24b7edf5636 100644 --- a/service/firehose/api_client.go +++ b/service/firehose/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/fis/api_client.go b/service/fis/api_client.go index d0f3c24cced..9adfd42c34f 100644 --- a/service/fis/api_client.go +++ b/service/fis/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/fms/api_client.go b/service/fms/api_client.go index 6a08597babb..ff2d35cc249 100644 --- a/service/fms/api_client.go +++ b/service/fms/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/forecast/api_client.go b/service/forecast/api_client.go index 19bcd21b9bb..8b7c89ffe3c 100644 --- a/service/forecast/api_client.go +++ b/service/forecast/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/forecastquery/api_client.go b/service/forecastquery/api_client.go index 7c63c9c53c7..7d7a41ead1b 100644 --- a/service/forecastquery/api_client.go +++ b/service/forecastquery/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/frauddetector/api_client.go b/service/frauddetector/api_client.go index ab6f5e1e377..f3fe3462dd8 100644 --- a/service/frauddetector/api_client.go +++ b/service/frauddetector/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/freetier/api_client.go b/service/freetier/api_client.go index 340abff5d58..ef43917a783 100644 --- a/service/freetier/api_client.go +++ b/service/freetier/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/fsx/api_client.go b/service/fsx/api_client.go index cceb8c97c28..dff09988df6 100644 --- a/service/fsx/api_client.go +++ b/service/fsx/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/gamelift/api_client.go b/service/gamelift/api_client.go index ec16473532e..e3fa05487c6 100644 --- a/service/gamelift/api_client.go +++ b/service/gamelift/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/glacier/api_client.go b/service/glacier/api_client.go index 55d128351d9..d7647f4c339 100644 --- a/service/glacier/api_client.go +++ b/service/glacier/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/globalaccelerator/api_client.go b/service/globalaccelerator/api_client.go index 6d35ee3f7fa..30d8a9150e5 100644 --- a/service/globalaccelerator/api_client.go +++ b/service/globalaccelerator/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/glue/api_client.go b/service/glue/api_client.go index f3edc7cd68e..dabcae5e3d9 100644 --- a/service/glue/api_client.go +++ b/service/glue/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/glue/api_op_TestConnection.go b/service/glue/api_op_TestConnection.go index 0e9f48a9400..3445352a1f4 100644 --- a/service/glue/api_op_TestConnection.go +++ b/service/glue/api_op_TestConnection.go @@ -96,6 +96,9 @@ func (c *Client) addOperationTestConnectionMiddlewares(stack *middleware.Stack, if err = addRecordResponseTiming(stack); err != nil { return err } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } if err = addClientUserAgent(stack, options); err != nil { return err } @@ -135,6 +138,18 @@ func (c *Client) addOperationTestConnectionMiddlewares(stack *middleware.Stack, if err = addDisableHTTPSMiddleware(stack, options); err != nil { return err } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } return nil } diff --git a/service/glue/deserializers.go b/service/glue/deserializers.go index 06a4699b3cd..207fa54bdc1 100644 --- a/service/glue/deserializers.go +++ b/service/glue/deserializers.go @@ -24322,6 +24322,10 @@ func (m *awsAwsjson11_deserializeOpTestConnection) HandleDeserialize(ctx context return out, metadata, err } + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() response, ok := out.RawResponse.(*smithyhttp.Response) if !ok { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} diff --git a/service/glue/serializers.go b/service/glue/serializers.go index 8773064b272..3ec3c8e5be8 100644 --- a/service/glue/serializers.go +++ b/service/glue/serializers.go @@ -12228,6 +12228,10 @@ func (*awsAwsjson11_serializeOpTestConnection) ID() string { func (m *awsAwsjson11_serializeOpTestConnection) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} @@ -12270,6 +12274,8 @@ func (m *awsAwsjson11_serializeOpTestConnection) HandleSerialize(ctx context.Con } in.Request = request + endTimer() + span.End() return next.HandleSerialize(ctx, in) } diff --git a/service/glue/snapshot/api_op_TestConnection.go.snap b/service/glue/snapshot/api_op_TestConnection.go.snap index bed0022d38c..39cc771ee3a 100644 --- a/service/glue/snapshot/api_op_TestConnection.go.snap +++ b/service/glue/snapshot/api_op_TestConnection.go.snap @@ -1,10 +1,13 @@ TestConnection Initialize stack step + spanInitializeStart RegisterServiceMetadata legacyEndpointContextSetter SetLogger OperationInputValidation + spanInitializeEnd Serialize stack step + spanBuildRequestStart setOperationInput ResolveEndpoint OperationSerializer @@ -14,12 +17,14 @@ TestConnection UserAgent AddTimeOffsetMiddleware RecursionDetection + spanBuildRequestEnd Finalize stack step ResolveAuthScheme GetIdentity ResolveEndpointV2 disableHTTPS ComputePayloadHash + spanRetryLoop Retry RetryMetricsHeader setLegacyContextSigningOptions diff --git a/service/grafana/api_client.go b/service/grafana/api_client.go index cc65b43a326..7a9d2cb706d 100644 --- a/service/grafana/api_client.go +++ b/service/grafana/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/greengrass/api_client.go b/service/greengrass/api_client.go index 3331de4311a..53ceb59c989 100644 --- a/service/greengrass/api_client.go +++ b/service/greengrass/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/greengrassv2/api_client.go b/service/greengrassv2/api_client.go index db907cf12d8..413e82b532b 100644 --- a/service/greengrassv2/api_client.go +++ b/service/greengrassv2/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/groundstation/api_client.go b/service/groundstation/api_client.go index 16d627e9256..6f24a3de3d2 100644 --- a/service/groundstation/api_client.go +++ b/service/groundstation/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/guardduty/api_client.go b/service/guardduty/api_client.go index 9d4b51bfa3f..94354241136 100644 --- a/service/guardduty/api_client.go +++ b/service/guardduty/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/health/api_client.go b/service/health/api_client.go index 05b39cd6685..96b76263c3a 100644 --- a/service/health/api_client.go +++ b/service/health/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/healthlake/api_client.go b/service/healthlake/api_client.go index e99e9f788ff..9647128e457 100644 --- a/service/healthlake/api_client.go +++ b/service/healthlake/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/iam/api_client.go b/service/iam/api_client.go index 4bfff9e461f..57c28186fc6 100644 --- a/service/iam/api_client.go +++ b/service/iam/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/identitystore/api_client.go b/service/identitystore/api_client.go index 6fab7ad129e..e723395ecdf 100644 --- a/service/identitystore/api_client.go +++ b/service/identitystore/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/imagebuilder/api_client.go b/service/imagebuilder/api_client.go index 3cee8633a55..509f6688797 100644 --- a/service/imagebuilder/api_client.go +++ b/service/imagebuilder/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/inspector/api_client.go b/service/inspector/api_client.go index 364fa4f4ebd..6ba0180b686 100644 --- a/service/inspector/api_client.go +++ b/service/inspector/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/inspector2/api_client.go b/service/inspector2/api_client.go index b4cf063482d..ff48cdfdc97 100644 --- a/service/inspector2/api_client.go +++ b/service/inspector2/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/inspectorscan/api_client.go b/service/inspectorscan/api_client.go index 43a6bbfcf7c..08ceae4c78d 100644 --- a/service/inspectorscan/api_client.go +++ b/service/inspectorscan/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/internetmonitor/api_client.go b/service/internetmonitor/api_client.go index 557373cf666..f8ed9674e35 100644 --- a/service/internetmonitor/api_client.go +++ b/service/internetmonitor/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/iot/api_client.go b/service/iot/api_client.go index 169f646809b..0bb9865fe07 100644 --- a/service/iot/api_client.go +++ b/service/iot/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/iot1clickdevicesservice/api_client.go b/service/iot1clickdevicesservice/api_client.go index c437a0d362a..2ab338b6461 100644 --- a/service/iot1clickdevicesservice/api_client.go +++ b/service/iot1clickdevicesservice/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/iot1clickprojects/api_client.go b/service/iot1clickprojects/api_client.go index eb885cb5688..bf12c7b5f87 100644 --- a/service/iot1clickprojects/api_client.go +++ b/service/iot1clickprojects/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/iotanalytics/api_client.go b/service/iotanalytics/api_client.go index 87695d2ddd2..eb501958878 100644 --- a/service/iotanalytics/api_client.go +++ b/service/iotanalytics/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/iotdataplane/api_client.go b/service/iotdataplane/api_client.go index 91853ffc077..13f3fbb9058 100644 --- a/service/iotdataplane/api_client.go +++ b/service/iotdataplane/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/iotdeviceadvisor/api_client.go b/service/iotdeviceadvisor/api_client.go index 9039095b4b5..5e62d9a87e7 100644 --- a/service/iotdeviceadvisor/api_client.go +++ b/service/iotdeviceadvisor/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/iotevents/api_client.go b/service/iotevents/api_client.go index 2616c5c4518..63bc3f79bf9 100644 --- a/service/iotevents/api_client.go +++ b/service/iotevents/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/ioteventsdata/api_client.go b/service/ioteventsdata/api_client.go index 0d52e557fd8..28cc06e37c0 100644 --- a/service/ioteventsdata/api_client.go +++ b/service/ioteventsdata/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/iotfleethub/api_client.go b/service/iotfleethub/api_client.go index fe5731e0fe5..27ade82dbd3 100644 --- a/service/iotfleethub/api_client.go +++ b/service/iotfleethub/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/iotfleetwise/api_client.go b/service/iotfleetwise/api_client.go index 5625533e432..62d105d0f34 100644 --- a/service/iotfleetwise/api_client.go +++ b/service/iotfleetwise/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/iotjobsdataplane/api_client.go b/service/iotjobsdataplane/api_client.go index 910d35fb1f5..ee7f7e5085d 100644 --- a/service/iotjobsdataplane/api_client.go +++ b/service/iotjobsdataplane/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/iotsecuretunneling/api_client.go b/service/iotsecuretunneling/api_client.go index 24ccdd1a545..73c845441e5 100644 --- a/service/iotsecuretunneling/api_client.go +++ b/service/iotsecuretunneling/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/iotsitewise/api_client.go b/service/iotsitewise/api_client.go index a16801e2089..92988d69d51 100644 --- a/service/iotsitewise/api_client.go +++ b/service/iotsitewise/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/iotthingsgraph/api_client.go b/service/iotthingsgraph/api_client.go index ed0c819494b..0554cedef3e 100644 --- a/service/iotthingsgraph/api_client.go +++ b/service/iotthingsgraph/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/iottwinmaker/api_client.go b/service/iottwinmaker/api_client.go index b77b22ff317..76245deb741 100644 --- a/service/iottwinmaker/api_client.go +++ b/service/iottwinmaker/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/iotwireless/api_client.go b/service/iotwireless/api_client.go index b2d02e5e801..91aefc37b35 100644 --- a/service/iotwireless/api_client.go +++ b/service/iotwireless/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/ivs/api_client.go b/service/ivs/api_client.go index c3c55813e20..2b5c1628913 100644 --- a/service/ivs/api_client.go +++ b/service/ivs/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/ivschat/api_client.go b/service/ivschat/api_client.go index 0d7dcb3931c..6bba44a2fe1 100644 --- a/service/ivschat/api_client.go +++ b/service/ivschat/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/ivsrealtime/api_client.go b/service/ivsrealtime/api_client.go index 10c7dade7d3..38cc068678f 100644 --- a/service/ivsrealtime/api_client.go +++ b/service/ivsrealtime/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/kafka/api_client.go b/service/kafka/api_client.go index c2802d7c28f..45d0e9c57d6 100644 --- a/service/kafka/api_client.go +++ b/service/kafka/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/kafkaconnect/api_client.go b/service/kafkaconnect/api_client.go index 4dad789bc67..4da4684a7c0 100644 --- a/service/kafkaconnect/api_client.go +++ b/service/kafkaconnect/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/kendra/api_client.go b/service/kendra/api_client.go index 9112685b727..9880623e63c 100644 --- a/service/kendra/api_client.go +++ b/service/kendra/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/kendraranking/api_client.go b/service/kendraranking/api_client.go index e575b2b0be8..13b13d66b8f 100644 --- a/service/kendraranking/api_client.go +++ b/service/kendraranking/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/keyspaces/api_client.go b/service/keyspaces/api_client.go index ddeac8b36c9..c3a8f1e93bf 100644 --- a/service/keyspaces/api_client.go +++ b/service/keyspaces/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/kinesis/api_client.go b/service/kinesis/api_client.go index f9970ccdef3..f54daf6590c 100644 --- a/service/kinesis/api_client.go +++ b/service/kinesis/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/kinesisanalytics/api_client.go b/service/kinesisanalytics/api_client.go index 636874e749f..0f404861d09 100644 --- a/service/kinesisanalytics/api_client.go +++ b/service/kinesisanalytics/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/kinesisanalyticsv2/api_client.go b/service/kinesisanalyticsv2/api_client.go index 4d16d0c35fe..6219e8a5c04 100644 --- a/service/kinesisanalyticsv2/api_client.go +++ b/service/kinesisanalyticsv2/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/kinesisvideo/api_client.go b/service/kinesisvideo/api_client.go index 9acea3f268b..488c9bcab3a 100644 --- a/service/kinesisvideo/api_client.go +++ b/service/kinesisvideo/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/kinesisvideoarchivedmedia/api_client.go b/service/kinesisvideoarchivedmedia/api_client.go index 9ee7f3ccf96..73efbee5299 100644 --- a/service/kinesisvideoarchivedmedia/api_client.go +++ b/service/kinesisvideoarchivedmedia/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/kinesisvideomedia/api_client.go b/service/kinesisvideomedia/api_client.go index a0f672dfc0f..4724a55ec25 100644 --- a/service/kinesisvideomedia/api_client.go +++ b/service/kinesisvideomedia/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/kinesisvideosignaling/api_client.go b/service/kinesisvideosignaling/api_client.go index 82fb2127bb7..fe6bd5687aa 100644 --- a/service/kinesisvideosignaling/api_client.go +++ b/service/kinesisvideosignaling/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/kinesisvideowebrtcstorage/api_client.go b/service/kinesisvideowebrtcstorage/api_client.go index 25d7c0b45ac..58a1314e08a 100644 --- a/service/kinesisvideowebrtcstorage/api_client.go +++ b/service/kinesisvideowebrtcstorage/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/kms/api_client.go b/service/kms/api_client.go index c5e6b2a2e20..5c50c166dc7 100644 --- a/service/kms/api_client.go +++ b/service/kms/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/lakeformation/api_client.go b/service/lakeformation/api_client.go index 59daeee944b..018797eb787 100644 --- a/service/lakeformation/api_client.go +++ b/service/lakeformation/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/lambda/api_client.go b/service/lambda/api_client.go index 5ae893f6aeb..870e0e1df35 100644 --- a/service/lambda/api_client.go +++ b/service/lambda/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/launchwizard/api_client.go b/service/launchwizard/api_client.go index 3e8c893b07f..af0e34ab262 100644 --- a/service/launchwizard/api_client.go +++ b/service/launchwizard/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/lexmodelbuildingservice/api_client.go b/service/lexmodelbuildingservice/api_client.go index 3d5f2d81168..76f9b7a9f2b 100644 --- a/service/lexmodelbuildingservice/api_client.go +++ b/service/lexmodelbuildingservice/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/lexmodelsv2/api_client.go b/service/lexmodelsv2/api_client.go index bc04e7ab4c3..671fb099ded 100644 --- a/service/lexmodelsv2/api_client.go +++ b/service/lexmodelsv2/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/lexruntimeservice/api_client.go b/service/lexruntimeservice/api_client.go index 222513f79be..3a28fcaf22f 100644 --- a/service/lexruntimeservice/api_client.go +++ b/service/lexruntimeservice/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/lexruntimev2/api_client.go b/service/lexruntimev2/api_client.go index 1271a11c20b..8271fc058e8 100644 --- a/service/lexruntimev2/api_client.go +++ b/service/lexruntimev2/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/licensemanager/api_client.go b/service/licensemanager/api_client.go index a038fc82b16..f89b60e94e8 100644 --- a/service/licensemanager/api_client.go +++ b/service/licensemanager/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/licensemanagerlinuxsubscriptions/api_client.go b/service/licensemanagerlinuxsubscriptions/api_client.go index a4dbd71fcca..cc36e4e60b6 100644 --- a/service/licensemanagerlinuxsubscriptions/api_client.go +++ b/service/licensemanagerlinuxsubscriptions/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/licensemanagerusersubscriptions/api_client.go b/service/licensemanagerusersubscriptions/api_client.go index bd56cbde64d..4e12b016139 100644 --- a/service/licensemanagerusersubscriptions/api_client.go +++ b/service/licensemanagerusersubscriptions/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/lightsail/api_client.go b/service/lightsail/api_client.go index 5da76840c2e..62c5c753309 100644 --- a/service/lightsail/api_client.go +++ b/service/lightsail/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/location/api_client.go b/service/location/api_client.go index a3f02d3c48b..ec5feb4d453 100644 --- a/service/location/api_client.go +++ b/service/location/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/lookoutequipment/api_client.go b/service/lookoutequipment/api_client.go index 114fe6ad053..7174fdd0520 100644 --- a/service/lookoutequipment/api_client.go +++ b/service/lookoutequipment/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/lookoutmetrics/api_client.go b/service/lookoutmetrics/api_client.go index edb53e772a4..03525af0688 100644 --- a/service/lookoutmetrics/api_client.go +++ b/service/lookoutmetrics/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/lookoutvision/api_client.go b/service/lookoutvision/api_client.go index 3209ea9ec5b..7b0a67b093f 100644 --- a/service/lookoutvision/api_client.go +++ b/service/lookoutvision/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/m2/api_client.go b/service/m2/api_client.go index 0ba064806f3..9ee048c43d3 100644 --- a/service/m2/api_client.go +++ b/service/m2/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/machinelearning/api_client.go b/service/machinelearning/api_client.go index b268ba07828..859e3b331c7 100644 --- a/service/machinelearning/api_client.go +++ b/service/machinelearning/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/macie2/api_client.go b/service/macie2/api_client.go index 063f5fd89bb..e65bfd1de2c 100644 --- a/service/macie2/api_client.go +++ b/service/macie2/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/mailmanager/api_client.go b/service/mailmanager/api_client.go index ce20e946eed..10a5fff7f27 100644 --- a/service/mailmanager/api_client.go +++ b/service/mailmanager/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/managedblockchain/api_client.go b/service/managedblockchain/api_client.go index ef167a5b169..4159452364e 100644 --- a/service/managedblockchain/api_client.go +++ b/service/managedblockchain/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/managedblockchainquery/api_client.go b/service/managedblockchainquery/api_client.go index 3e5595039a4..1f3cd77b9b6 100644 --- a/service/managedblockchainquery/api_client.go +++ b/service/managedblockchainquery/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/marketplaceagreement/api_client.go b/service/marketplaceagreement/api_client.go index b35679ab487..92b5e20e219 100644 --- a/service/marketplaceagreement/api_client.go +++ b/service/marketplaceagreement/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/marketplacecatalog/api_client.go b/service/marketplacecatalog/api_client.go index e23474d61b8..c380c7ffe19 100644 --- a/service/marketplacecatalog/api_client.go +++ b/service/marketplacecatalog/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/marketplacecommerceanalytics/api_client.go b/service/marketplacecommerceanalytics/api_client.go index 0b5943753a8..517bac59813 100644 --- a/service/marketplacecommerceanalytics/api_client.go +++ b/service/marketplacecommerceanalytics/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/marketplacedeployment/api_client.go b/service/marketplacedeployment/api_client.go index d7e2eb70956..567a7bce400 100644 --- a/service/marketplacedeployment/api_client.go +++ b/service/marketplacedeployment/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/marketplaceentitlementservice/api_client.go b/service/marketplaceentitlementservice/api_client.go index 8486f569e0b..f2eca3fceb6 100644 --- a/service/marketplaceentitlementservice/api_client.go +++ b/service/marketplaceentitlementservice/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/marketplacemetering/api_client.go b/service/marketplacemetering/api_client.go index 6eaa22e0f6f..aa622287373 100644 --- a/service/marketplacemetering/api_client.go +++ b/service/marketplacemetering/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/mediaconnect/api_client.go b/service/mediaconnect/api_client.go index e920ea0bd8b..f0ae12c558a 100644 --- a/service/mediaconnect/api_client.go +++ b/service/mediaconnect/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/mediaconvert/api_client.go b/service/mediaconvert/api_client.go index 840daec5fff..8bf93a099d4 100644 --- a/service/mediaconvert/api_client.go +++ b/service/mediaconvert/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/medialive/api_client.go b/service/medialive/api_client.go index 583f89fb339..0c675862f0d 100644 --- a/service/medialive/api_client.go +++ b/service/medialive/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/mediapackage/api_client.go b/service/mediapackage/api_client.go index a6cac4a9515..bacdb84d556 100644 --- a/service/mediapackage/api_client.go +++ b/service/mediapackage/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/mediapackagev2/api_client.go b/service/mediapackagev2/api_client.go index a849e1a7b27..a53d7292ca8 100644 --- a/service/mediapackagev2/api_client.go +++ b/service/mediapackagev2/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/mediapackagevod/api_client.go b/service/mediapackagevod/api_client.go index f45006bd960..d1327e4e132 100644 --- a/service/mediapackagevod/api_client.go +++ b/service/mediapackagevod/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/mediastore/api_client.go b/service/mediastore/api_client.go index db1d8711a82..fd41bc102fa 100644 --- a/service/mediastore/api_client.go +++ b/service/mediastore/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/mediastoredata/api_client.go b/service/mediastoredata/api_client.go index e3f64e692e3..a4747a83227 100644 --- a/service/mediastoredata/api_client.go +++ b/service/mediastoredata/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/mediatailor/api_client.go b/service/mediatailor/api_client.go index a7a15205ba6..654c9b2a225 100644 --- a/service/mediatailor/api_client.go +++ b/service/mediatailor/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/medicalimaging/api_client.go b/service/medicalimaging/api_client.go index 79a0a967f40..4c9eac3b356 100644 --- a/service/medicalimaging/api_client.go +++ b/service/medicalimaging/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/memorydb/api_client.go b/service/memorydb/api_client.go index 513bc4ab5bf..5927215f53c 100644 --- a/service/memorydb/api_client.go +++ b/service/memorydb/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/mgn/api_client.go b/service/mgn/api_client.go index a854bc49853..171cee62c91 100644 --- a/service/mgn/api_client.go +++ b/service/mgn/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/migrationhub/api_client.go b/service/migrationhub/api_client.go index c5109d1a5d6..08f4a46dd92 100644 --- a/service/migrationhub/api_client.go +++ b/service/migrationhub/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/migrationhubconfig/api_client.go b/service/migrationhubconfig/api_client.go index e24166637b0..4081dcbfcc2 100644 --- a/service/migrationhubconfig/api_client.go +++ b/service/migrationhubconfig/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/migrationhuborchestrator/api_client.go b/service/migrationhuborchestrator/api_client.go index 3e2dd9a2bcf..0ead8a69cb3 100644 --- a/service/migrationhuborchestrator/api_client.go +++ b/service/migrationhuborchestrator/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/migrationhubrefactorspaces/api_client.go b/service/migrationhubrefactorspaces/api_client.go index b474e4edb5d..074b3dd7f68 100644 --- a/service/migrationhubrefactorspaces/api_client.go +++ b/service/migrationhubrefactorspaces/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/migrationhubstrategy/api_client.go b/service/migrationhubstrategy/api_client.go index 6902f7ed54b..97618123c76 100644 --- a/service/migrationhubstrategy/api_client.go +++ b/service/migrationhubstrategy/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/mq/api_client.go b/service/mq/api_client.go index a8b6ca58c1e..c0e8af8aaec 100644 --- a/service/mq/api_client.go +++ b/service/mq/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/mturk/api_client.go b/service/mturk/api_client.go index 5c58d791ebf..4f6494d9591 100644 --- a/service/mturk/api_client.go +++ b/service/mturk/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/mwaa/api_client.go b/service/mwaa/api_client.go index 07929795807..b0ef4b14f5f 100644 --- a/service/mwaa/api_client.go +++ b/service/mwaa/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/neptune/api_client.go b/service/neptune/api_client.go index b6b4759c05d..d4eca8718ef 100644 --- a/service/neptune/api_client.go +++ b/service/neptune/api_client.go @@ -189,10 +189,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/neptune/endpoints_test.go b/service/neptune/endpoints_test.go index cd6787c644b..55c835bad7a 100644 --- a/service/neptune/endpoints_test.go +++ b/service/neptune/endpoints_test.go @@ -1891,23 +1891,3 @@ func TestEndpointCase53(t *testing.T) { t.Errorf("expect %v error in %v", e, a) } } - -// Partition doesn't support DualStack -func TestEndpointCase54(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/neptunedata/api_client.go b/service/neptunedata/api_client.go index 72a666527a4..dd45aaec0d1 100644 --- a/service/neptunedata/api_client.go +++ b/service/neptunedata/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/neptunegraph/api_client.go b/service/neptunegraph/api_client.go index d2c44acc265..9cc00ab5a18 100644 --- a/service/neptunegraph/api_client.go +++ b/service/neptunegraph/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/networkfirewall/api_client.go b/service/networkfirewall/api_client.go index 93fa460d857..29e50bfe4ec 100644 --- a/service/networkfirewall/api_client.go +++ b/service/networkfirewall/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/networkmanager/api_client.go b/service/networkmanager/api_client.go index 8f66733f845..5bf0ea5f99f 100644 --- a/service/networkmanager/api_client.go +++ b/service/networkmanager/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/networkmonitor/api_client.go b/service/networkmonitor/api_client.go index 8b028a633cb..649e4abeafe 100644 --- a/service/networkmonitor/api_client.go +++ b/service/networkmonitor/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/nimble/api_client.go b/service/nimble/api_client.go index 78e12656df1..0bb3e864c3e 100644 --- a/service/nimble/api_client.go +++ b/service/nimble/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/oam/api_client.go b/service/oam/api_client.go index 3896d8bde69..88d9606a208 100644 --- a/service/oam/api_client.go +++ b/service/oam/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/omics/api_client.go b/service/omics/api_client.go index 7a55658d523..d906f7fce4b 100644 --- a/service/omics/api_client.go +++ b/service/omics/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/opensearch/api_client.go b/service/opensearch/api_client.go index 0da4a59dbe5..969adfce662 100644 --- a/service/opensearch/api_client.go +++ b/service/opensearch/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/opensearchserverless/api_client.go b/service/opensearchserverless/api_client.go index 87fdeaf56c3..3fce10f788d 100644 --- a/service/opensearchserverless/api_client.go +++ b/service/opensearchserverless/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/opsworks/api_client.go b/service/opsworks/api_client.go index 7798b36a723..d0f8461f3f7 100644 --- a/service/opsworks/api_client.go +++ b/service/opsworks/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/opsworkscm/api_client.go b/service/opsworkscm/api_client.go index ab7bce7e001..4c9382c8939 100644 --- a/service/opsworkscm/api_client.go +++ b/service/opsworkscm/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/organizations/api_client.go b/service/organizations/api_client.go index df97c89fe6e..5e623ba8233 100644 --- a/service/organizations/api_client.go +++ b/service/organizations/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/osis/api_client.go b/service/osis/api_client.go index a2fd2a95faf..4334228a1ba 100644 --- a/service/osis/api_client.go +++ b/service/osis/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/outposts/api_client.go b/service/outposts/api_client.go index c99a13994f4..439b9596694 100644 --- a/service/outposts/api_client.go +++ b/service/outposts/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/panorama/api_client.go b/service/panorama/api_client.go index fd3cc660e81..a7140493558 100644 --- a/service/panorama/api_client.go +++ b/service/panorama/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/paymentcryptography/api_client.go b/service/paymentcryptography/api_client.go index b7b47b9fbfd..e009e9a97a5 100644 --- a/service/paymentcryptography/api_client.go +++ b/service/paymentcryptography/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/paymentcryptographydata/api_client.go b/service/paymentcryptographydata/api_client.go index 787d61fe1d4..8f92bf0b492 100644 --- a/service/paymentcryptographydata/api_client.go +++ b/service/paymentcryptographydata/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/pcaconnectorad/api_client.go b/service/pcaconnectorad/api_client.go index f2a9ab78953..c2ac08302c6 100644 --- a/service/pcaconnectorad/api_client.go +++ b/service/pcaconnectorad/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/pcaconnectorscep/api_client.go b/service/pcaconnectorscep/api_client.go index 08eec918396..ffe0655ec49 100644 --- a/service/pcaconnectorscep/api_client.go +++ b/service/pcaconnectorscep/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/pcs/api_client.go b/service/pcs/api_client.go index 03d06cc8639..651f530c3cb 100644 --- a/service/pcs/api_client.go +++ b/service/pcs/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/personalize/api_client.go b/service/personalize/api_client.go index 5f165210361..53b0794d057 100644 --- a/service/personalize/api_client.go +++ b/service/personalize/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/personalizeevents/api_client.go b/service/personalizeevents/api_client.go index 78464b86a64..46ba5b0a9df 100644 --- a/service/personalizeevents/api_client.go +++ b/service/personalizeevents/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/personalizeruntime/api_client.go b/service/personalizeruntime/api_client.go index 450dc44abad..fd892f96a4a 100644 --- a/service/personalizeruntime/api_client.go +++ b/service/personalizeruntime/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/pi/api_client.go b/service/pi/api_client.go index 4c5c57d70c5..c3d621dedca 100644 --- a/service/pi/api_client.go +++ b/service/pi/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/pinpoint/api_client.go b/service/pinpoint/api_client.go index c3cf3f0fa48..6e9ddf7535e 100644 --- a/service/pinpoint/api_client.go +++ b/service/pinpoint/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/pinpointemail/api_client.go b/service/pinpointemail/api_client.go index 5b9cc19e5cc..cec2844cb0c 100644 --- a/service/pinpointemail/api_client.go +++ b/service/pinpointemail/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/pinpointsmsvoice/api_client.go b/service/pinpointsmsvoice/api_client.go index d463932f502..57a0db2cecb 100644 --- a/service/pinpointsmsvoice/api_client.go +++ b/service/pinpointsmsvoice/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/pinpointsmsvoicev2/api_client.go b/service/pinpointsmsvoicev2/api_client.go index fa58bf4d47e..5223027b8d4 100644 --- a/service/pinpointsmsvoicev2/api_client.go +++ b/service/pinpointsmsvoicev2/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/pipes/api_client.go b/service/pipes/api_client.go index a512c804a67..e9f2e6dc2c4 100644 --- a/service/pipes/api_client.go +++ b/service/pipes/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/polly/api_client.go b/service/polly/api_client.go index 261322ed9ac..d1e9f53bc11 100644 --- a/service/polly/api_client.go +++ b/service/polly/api_client.go @@ -189,10 +189,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/pricing/api_client.go b/service/pricing/api_client.go index 81325f70112..7121712b397 100644 --- a/service/pricing/api_client.go +++ b/service/pricing/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/privatenetworks/api_client.go b/service/privatenetworks/api_client.go index 74e69c50f4e..43589bcc34d 100644 --- a/service/privatenetworks/api_client.go +++ b/service/privatenetworks/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/proton/api_client.go b/service/proton/api_client.go index 1931ef479e2..1311ef12b76 100644 --- a/service/proton/api_client.go +++ b/service/proton/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/qapps/api_client.go b/service/qapps/api_client.go index e8005a6135c..70fc1d209cd 100644 --- a/service/qapps/api_client.go +++ b/service/qapps/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/qbusiness/api_client.go b/service/qbusiness/api_client.go index 2a7a7d643a8..dc4d18ccbbe 100644 --- a/service/qbusiness/api_client.go +++ b/service/qbusiness/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/qconnect/api_client.go b/service/qconnect/api_client.go index ce94a6e255b..3e6259f0b85 100644 --- a/service/qconnect/api_client.go +++ b/service/qconnect/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/qldb/api_client.go b/service/qldb/api_client.go index a9199f38c9c..39e1e383b9e 100644 --- a/service/qldb/api_client.go +++ b/service/qldb/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/qldbsession/api_client.go b/service/qldbsession/api_client.go index 6daf234cbcb..2daa0bbabd9 100644 --- a/service/qldbsession/api_client.go +++ b/service/qldbsession/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/quicksight/api_client.go b/service/quicksight/api_client.go index c6fc43e02b3..6ef6a863fc9 100644 --- a/service/quicksight/api_client.go +++ b/service/quicksight/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/quicksight/api_op_ListFoldersForResource.go b/service/quicksight/api_op_ListFoldersForResource.go index 98c47765fa2..b77c5fee2da 100644 --- a/service/quicksight/api_op_ListFoldersForResource.go +++ b/service/quicksight/api_op_ListFoldersForResource.go @@ -111,6 +111,9 @@ func (c *Client) addOperationListFoldersForResourceMiddlewares(stack *middleware if err = addRecordResponseTiming(stack); err != nil { return err } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } if err = addClientUserAgent(stack, options); err != nil { return err } @@ -150,6 +153,18 @@ func (c *Client) addOperationListFoldersForResourceMiddlewares(stack *middleware if err = addDisableHTTPSMiddleware(stack, options); err != nil { return err } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } return nil } diff --git a/service/quicksight/deserializers.go b/service/quicksight/deserializers.go index 54f3f237ff2..2a178974ee8 100644 --- a/service/quicksight/deserializers.go +++ b/service/quicksight/deserializers.go @@ -22085,6 +22085,10 @@ func (m *awsRestjson1_deserializeOpListFoldersForResource) HandleDeserialize(ctx return out, metadata, err } + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() response, ok := out.RawResponse.(*smithyhttp.Response) if !ok { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} @@ -22129,6 +22133,7 @@ func (m *awsRestjson1_deserializeOpListFoldersForResource) HandleDeserialize(ctx } } + span.End() return out, metadata, err } diff --git a/service/quicksight/serializers.go b/service/quicksight/serializers.go index 93b4b33b051..57f23b99057 100644 --- a/service/quicksight/serializers.go +++ b/service/quicksight/serializers.go @@ -10123,6 +10123,10 @@ func (*awsRestjson1_serializeOpListFoldersForResource) ID() string { func (m *awsRestjson1_serializeOpListFoldersForResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} @@ -10159,6 +10163,8 @@ func (m *awsRestjson1_serializeOpListFoldersForResource) HandleSerialize(ctx con } in.Request = request + endTimer() + span.End() return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsListFoldersForResourceInput(v *ListFoldersForResourceInput, encoder *httpbinding.Encoder) error { diff --git a/service/quicksight/snapshot/api_op_ListFoldersForResource.go.snap b/service/quicksight/snapshot/api_op_ListFoldersForResource.go.snap index 1e9fba35ee4..92e805fd1d3 100644 --- a/service/quicksight/snapshot/api_op_ListFoldersForResource.go.snap +++ b/service/quicksight/snapshot/api_op_ListFoldersForResource.go.snap @@ -1,10 +1,13 @@ ListFoldersForResource Initialize stack step + spanInitializeStart RegisterServiceMetadata legacyEndpointContextSetter SetLogger OperationInputValidation + spanInitializeEnd Serialize stack step + spanBuildRequestStart setOperationInput ResolveEndpoint OperationSerializer @@ -14,12 +17,14 @@ ListFoldersForResource UserAgent AddTimeOffsetMiddleware RecursionDetection + spanBuildRequestEnd Finalize stack step ResolveAuthScheme GetIdentity ResolveEndpointV2 disableHTTPS ComputePayloadHash + spanRetryLoop Retry RetryMetricsHeader setLegacyContextSigningOptions diff --git a/service/ram/api_client.go b/service/ram/api_client.go index eb50822b403..7b42cddb83b 100644 --- a/service/ram/api_client.go +++ b/service/ram/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/rbin/api_client.go b/service/rbin/api_client.go index 824dd641988..0d5dc92a2bf 100644 --- a/service/rbin/api_client.go +++ b/service/rbin/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/rds/api_client.go b/service/rds/api_client.go index cfe4fd50c48..f217752fcbc 100644 --- a/service/rds/api_client.go +++ b/service/rds/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/rdsdata/api_client.go b/service/rdsdata/api_client.go index 4c5d040c09a..b6c0005f5a2 100644 --- a/service/rdsdata/api_client.go +++ b/service/rdsdata/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/redshift/api_client.go b/service/redshift/api_client.go index 35b134b0c89..48bbb0b804a 100644 --- a/service/redshift/api_client.go +++ b/service/redshift/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/redshiftdata/api_client.go b/service/redshiftdata/api_client.go index 80385e4003e..74318863cca 100644 --- a/service/redshiftdata/api_client.go +++ b/service/redshiftdata/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/redshiftserverless/api_client.go b/service/redshiftserverless/api_client.go index 5390391c0e3..37668bc7e96 100644 --- a/service/redshiftserverless/api_client.go +++ b/service/redshiftserverless/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/rekognition/api_client.go b/service/rekognition/api_client.go index 3666d297c6c..9b078ab5af9 100644 --- a/service/rekognition/api_client.go +++ b/service/rekognition/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/repostspace/api_client.go b/service/repostspace/api_client.go index 20fdea445fd..547d850d2ce 100644 --- a/service/repostspace/api_client.go +++ b/service/repostspace/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/resiliencehub/api_client.go b/service/resiliencehub/api_client.go index ca1bb833f32..a6a855b6d0d 100644 --- a/service/resiliencehub/api_client.go +++ b/service/resiliencehub/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/resourceexplorer2/api_client.go b/service/resourceexplorer2/api_client.go index f03c2f179ef..d9f02403a79 100644 --- a/service/resourceexplorer2/api_client.go +++ b/service/resourceexplorer2/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/resourcegroups/api_client.go b/service/resourcegroups/api_client.go index 41920744470..31227bb4a96 100644 --- a/service/resourcegroups/api_client.go +++ b/service/resourcegroups/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/resourcegroupstaggingapi/api_client.go b/service/resourcegroupstaggingapi/api_client.go index 6fead8013f0..f5335208988 100644 --- a/service/resourcegroupstaggingapi/api_client.go +++ b/service/resourcegroupstaggingapi/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/robomaker/api_client.go b/service/robomaker/api_client.go index 6ea908118fd..404fa4d3942 100644 --- a/service/robomaker/api_client.go +++ b/service/robomaker/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/rolesanywhere/api_client.go b/service/rolesanywhere/api_client.go index d2ae4bfd601..deaa39ce9d7 100644 --- a/service/rolesanywhere/api_client.go +++ b/service/rolesanywhere/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/route53/api_client.go b/service/route53/api_client.go index 53d4c035101..6d33b2d87fe 100644 --- a/service/route53/api_client.go +++ b/service/route53/api_client.go @@ -188,10 +188,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/route53domains/api_client.go b/service/route53domains/api_client.go index 00a34ae5b81..73329b9f6dd 100644 --- a/service/route53domains/api_client.go +++ b/service/route53domains/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/route53profiles/api_client.go b/service/route53profiles/api_client.go index d299a4cc71f..a3c1f1b07d5 100644 --- a/service/route53profiles/api_client.go +++ b/service/route53profiles/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/route53recoverycluster/api_client.go b/service/route53recoverycluster/api_client.go index 541166e3251..7a68c9e7521 100644 --- a/service/route53recoverycluster/api_client.go +++ b/service/route53recoverycluster/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/route53recoverycontrolconfig/api_client.go b/service/route53recoverycontrolconfig/api_client.go index d8ef7666afa..1dbbddcba4f 100644 --- a/service/route53recoverycontrolconfig/api_client.go +++ b/service/route53recoverycontrolconfig/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/route53recoveryreadiness/api_client.go b/service/route53recoveryreadiness/api_client.go index 297e2a8d2f1..aaceea972ed 100644 --- a/service/route53recoveryreadiness/api_client.go +++ b/service/route53recoveryreadiness/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/route53resolver/api_client.go b/service/route53resolver/api_client.go index ade504d4d04..d1f745980d7 100644 --- a/service/route53resolver/api_client.go +++ b/service/route53resolver/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/rum/api_client.go b/service/rum/api_client.go index 277730db8fb..8d2fa844327 100644 --- a/service/rum/api_client.go +++ b/service/rum/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/s3/api_client.go b/service/s3/api_client.go index 1dec600baf7..95295c23b0a 100644 --- a/service/s3/api_client.go +++ b/service/s3/api_client.go @@ -196,10 +196,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveHTTPSignerV4a(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/s3control/api_client.go b/service/s3control/api_client.go index ab2e295d97b..ee9e7b48715 100644 --- a/service/s3control/api_client.go +++ b/service/s3control/api_client.go @@ -192,10 +192,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/s3outposts/api_client.go b/service/s3outposts/api_client.go index 24838972b96..eb595853f92 100644 --- a/service/s3outposts/api_client.go +++ b/service/s3outposts/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/sagemaker/api_client.go b/service/sagemaker/api_client.go index adfa020913a..3654321879e 100644 --- a/service/sagemaker/api_client.go +++ b/service/sagemaker/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/sagemaker/deserializers.go b/service/sagemaker/deserializers.go index da51e38ca3f..4d2743dfccf 100644 --- a/service/sagemaker/deserializers.go +++ b/service/sagemaker/deserializers.go @@ -74916,6 +74916,15 @@ func awsAwsjson11_deserializeDocumentS3ModelDataSource(v **types.S3ModelDataSour return err } + case "ManifestS3Uri": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected S3ModelUri to be of type string, got %T instead", value) + } + sv.ManifestS3Uri = ptr.String(jtv) + } + case "ModelAccessConfig": if err := awsAwsjson11_deserializeDocumentModelAccessConfig(&sv.ModelAccessConfig, value); err != nil { return err diff --git a/service/sagemaker/serializers.go b/service/sagemaker/serializers.go index 4698195449d..98192f9846e 100644 --- a/service/sagemaker/serializers.go +++ b/service/sagemaker/serializers.go @@ -29870,6 +29870,11 @@ func awsAwsjson11_serializeDocumentS3ModelDataSource(v *types.S3ModelDataSource, } } + if v.ManifestS3Uri != nil { + ok := object.Key("ManifestS3Uri") + ok.String(*v.ManifestS3Uri) + } + if v.ModelAccessConfig != nil { ok := object.Key("ModelAccessConfig") if err := awsAwsjson11_serializeDocumentModelAccessConfig(v.ModelAccessConfig, ok); err != nil { diff --git a/service/sagemaker/types/types.go b/service/sagemaker/types/types.go index 33a0815a5b4..521c07a0063 100644 --- a/service/sagemaker/types/types.go +++ b/service/sagemaker/types/types.go @@ -15956,6 +15956,10 @@ type S3ModelDataSource struct { // Configuration information for hub access. HubAccessConfig *InferenceHubAccessConfig + // The Amazon S3 URI of the manifest file. The manifest file is a CSV file that + // stores the artifact locations. + ManifestS3Uri *string + // Specifies the access configuration file for the ML model. You can explicitly // accept the model end-user license agreement (EULA) within the ModelAccessConfig // . You are responsible for reviewing and complying with any applicable license diff --git a/service/sagemakera2iruntime/api_client.go b/service/sagemakera2iruntime/api_client.go index c5a580ca322..378215c9e93 100644 --- a/service/sagemakera2iruntime/api_client.go +++ b/service/sagemakera2iruntime/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/sagemakeredge/api_client.go b/service/sagemakeredge/api_client.go index 05413c89828..86e5b69c78b 100644 --- a/service/sagemakeredge/api_client.go +++ b/service/sagemakeredge/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/sagemakerfeaturestoreruntime/api_client.go b/service/sagemakerfeaturestoreruntime/api_client.go index 16a4f5a513d..5a914300969 100644 --- a/service/sagemakerfeaturestoreruntime/api_client.go +++ b/service/sagemakerfeaturestoreruntime/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/sagemakergeospatial/api_client.go b/service/sagemakergeospatial/api_client.go index 6af4ad88041..6b4fe417a1b 100644 --- a/service/sagemakergeospatial/api_client.go +++ b/service/sagemakergeospatial/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/sagemakermetrics/api_client.go b/service/sagemakermetrics/api_client.go index e1111d19454..8740e6f495d 100644 --- a/service/sagemakermetrics/api_client.go +++ b/service/sagemakermetrics/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/sagemakermetrics/api_op_BatchGetMetrics.go b/service/sagemakermetrics/api_op_BatchGetMetrics.go new file mode 100644 index 00000000000..be2a0a1a86f --- /dev/null +++ b/service/sagemakermetrics/api_op_BatchGetMetrics.go @@ -0,0 +1,157 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemakermetrics + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/sagemakermetrics/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Used to retrieve training metrics from SageMaker. +func (c *Client) BatchGetMetrics(ctx context.Context, params *BatchGetMetricsInput, optFns ...func(*Options)) (*BatchGetMetricsOutput, error) { + if params == nil { + params = &BatchGetMetricsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "BatchGetMetrics", params, optFns, c.addOperationBatchGetMetricsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*BatchGetMetricsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type BatchGetMetricsInput struct { + + // Queries made to retrieve training metrics from SageMaker. + // + // This member is required. + MetricQueries []types.MetricQuery + + noSmithyDocumentSerde +} + +type BatchGetMetricsOutput struct { + + // The results of a query to retrieve training metrics from SageMaker. + MetricQueryResults []types.MetricQueryResult + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationBatchGetMetricsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpBatchGetMetrics{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpBatchGetMetrics{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "BatchGetMetrics"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpBatchGetMetricsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opBatchGetMetrics(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opBatchGetMetrics(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "BatchGetMetrics", + } +} diff --git a/service/sagemakermetrics/api_op_BatchPutMetrics.go b/service/sagemakermetrics/api_op_BatchPutMetrics.go index 77783c9dd35..ea2952a14a9 100644 --- a/service/sagemakermetrics/api_op_BatchPutMetrics.go +++ b/service/sagemakermetrics/api_op_BatchPutMetrics.go @@ -12,7 +12,7 @@ import ( ) // Used to ingest training metrics into SageMaker. These metrics can be visualized -// in SageMaker Studio and retrieved with the GetMetrics API. +// in SageMaker Studio. func (c *Client) BatchPutMetrics(ctx context.Context, params *BatchPutMetricsInput, optFns ...func(*Options)) (*BatchPutMetricsOutput, error) { if params == nil { params = &BatchPutMetricsInput{} @@ -35,7 +35,8 @@ type BatchPutMetricsInput struct { // This member is required. MetricData []types.RawMetricData - // The name of the Trial Component to associate with the metrics. + // The name of the Trial Component to associate with the metrics. The Trial + // Component name must be entirely lowercase. // // This member is required. TrialComponentName *string diff --git a/service/sagemakermetrics/deserializers.go b/service/sagemakermetrics/deserializers.go index dcc6106c6a7..ae2fe747a12 100644 --- a/service/sagemakermetrics/deserializers.go +++ b/service/sagemakermetrics/deserializers.go @@ -17,6 +17,8 @@ import ( "github.com/aws/smithy-go/tracing" smithyhttp "github.com/aws/smithy-go/transport/http" "io" + "math" + "strings" "time" ) @@ -28,6 +30,155 @@ func deserializeS3Expires(v string) (*time.Time, error) { return &t, nil } +type awsRestjson1_deserializeOpBatchGetMetrics struct { +} + +func (*awsRestjson1_deserializeOpBatchGetMetrics) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpBatchGetMetrics) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorBatchGetMetrics(response, &metadata) + } + output := &BatchGetMetricsOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.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_deserializeOpDocumentBatchGetMetricsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + span.End() + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorBatchGetMetrics(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != 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 + + } +} + +func awsRestjson1_deserializeOpDocumentBatchGetMetricsOutput(v **BatchGetMetricsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *BatchGetMetricsOutput + if *v == nil { + sv = &BatchGetMetricsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "MetricQueryResults": + if err := awsRestjson1_deserializeDocumentMetricQueryResultList(&sv.MetricQueryResults, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + type awsRestjson1_deserializeOpBatchPutMetrics struct { } @@ -263,3 +414,197 @@ func awsRestjson1_deserializeDocumentBatchPutMetricsErrorList(v *[]types.BatchPu *v = cv return nil } + +func awsRestjson1_deserializeDocumentMetricQueryResult(v **types.MetricQueryResult, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.MetricQueryResult + if *v == nil { + sv = &types.MetricQueryResult{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Message to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "MetricValues": + if err := awsRestjson1_deserializeDocumentMetricValues(&sv.MetricValues, value); err != nil { + return err + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MetricQueryResultStatus to be of type string, got %T instead", value) + } + sv.Status = types.MetricQueryResultStatus(jtv) + } + + case "XAxisValues": + if err := awsRestjson1_deserializeDocumentXAxisValues(&sv.XAxisValues, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentMetricQueryResultList(v *[]types.MetricQueryResult, 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.MetricQueryResult + if *v == nil { + cv = []types.MetricQueryResult{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.MetricQueryResult + destAddr := &col + if err := awsRestjson1_deserializeDocumentMetricQueryResult(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentMetricValues(v *[]float64, 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 []float64 + if *v == nil { + cv = []float64{} + } else { + cv = *v + } + + for _, value := range shape { + var col float64 + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + col = 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) + + } + col = f64 + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentXAxisValues(v *[]int64, 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 []int64 + if *v == nil { + cv = []int64{} + } else { + cv = *v + } + + for _, value := range shape { + var col int64 + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Long to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + col = i64 + } + cv = append(cv, col) + + } + *v = cv + return nil +} diff --git a/service/sagemakermetrics/generated.json b/service/sagemakermetrics/generated.json index cf1907ea989..1fe626feb9e 100644 --- a/service/sagemakermetrics/generated.json +++ b/service/sagemakermetrics/generated.json @@ -8,6 +8,7 @@ "files": [ "api_client.go", "api_client_test.go", + "api_op_BatchGetMetrics.go", "api_op_BatchPutMetrics.go", "auth.go", "deserializers.go", diff --git a/service/sagemakermetrics/serializers.go b/service/sagemakermetrics/serializers.go index 7aa38620163..3ddc623840b 100644 --- a/service/sagemakermetrics/serializers.go +++ b/service/sagemakermetrics/serializers.go @@ -17,6 +17,89 @@ import ( "math" ) +type awsRestjson1_serializeOpBatchGetMetrics struct { +} + +func (*awsRestjson1_serializeOpBatchGetMetrics) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpBatchGetMetrics) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*BatchGetMetricsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/BatchGetMetrics") + 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_serializeOpDocumentBatchGetMetricsInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsBatchGetMetricsInput(v *BatchGetMetricsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentBatchGetMetricsInput(v *BatchGetMetricsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.MetricQueries != nil { + ok := object.Key("MetricQueries") + if err := awsRestjson1_serializeDocumentMetricQueryList(v.MetricQueries, ok); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpBatchPutMetrics struct { } @@ -105,6 +188,61 @@ func awsRestjson1_serializeOpDocumentBatchPutMetricsInput(v *BatchPutMetricsInpu return nil } +func awsRestjson1_serializeDocumentMetricQuery(v *types.MetricQuery, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.End != nil { + ok := object.Key("End") + ok.Long(*v.End) + } + + if v.MetricName != nil { + ok := object.Key("MetricName") + ok.String(*v.MetricName) + } + + if len(v.MetricStat) > 0 { + ok := object.Key("MetricStat") + ok.String(string(v.MetricStat)) + } + + if len(v.Period) > 0 { + ok := object.Key("Period") + ok.String(string(v.Period)) + } + + if v.ResourceArn != nil { + ok := object.Key("ResourceArn") + ok.String(*v.ResourceArn) + } + + if v.Start != nil { + ok := object.Key("Start") + ok.Long(*v.Start) + } + + if len(v.XAxisType) > 0 { + ok := object.Key("XAxisType") + ok.String(string(v.XAxisType)) + } + + return nil +} + +func awsRestjson1_serializeDocumentMetricQueryList(v []types.MetricQuery, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentMetricQuery(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsRestjson1_serializeDocumentRawMetricData(v *types.RawMetricData, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/sagemakermetrics/snapshot/api_op_BatchGetMetrics.go.snap b/service/sagemakermetrics/snapshot/api_op_BatchGetMetrics.go.snap new file mode 100644 index 00000000000..5ff9f3ac7d5 --- /dev/null +++ b/service/sagemakermetrics/snapshot/api_op_BatchGetMetrics.go.snap @@ -0,0 +1,41 @@ +BatchGetMetrics + Initialize stack step + spanInitializeStart + RegisterServiceMetadata + legacyEndpointContextSetter + SetLogger + OperationInputValidation + spanInitializeEnd + Serialize stack step + spanBuildRequestStart + setOperationInput + ResolveEndpoint + OperationSerializer + Build stack step + ClientRequestID + ComputeContentLength + UserAgent + AddTimeOffsetMiddleware + RecursionDetection + spanBuildRequestEnd + Finalize stack step + ResolveAuthScheme + GetIdentity + ResolveEndpointV2 + disableHTTPS + ComputePayloadHash + spanRetryLoop + Retry + RetryMetricsHeader + setLegacyContextSigningOptions + Signing + Deserialize stack step + AddRawResponseToMetadata + ErrorCloseResponseBody + CloseResponseBody + ResponseErrorWrapper + RequestIDRetriever + OperationDeserializer + AddTimeOffsetMiddleware + RecordResponseTiming + RequestResponseLogger diff --git a/service/sagemakermetrics/snapshot_test.go b/service/sagemakermetrics/snapshot_test.go index e13ef4e9e8a..9733799b92e 100644 --- a/service/sagemakermetrics/snapshot_test.go +++ b/service/sagemakermetrics/snapshot_test.go @@ -62,6 +62,18 @@ func testSnapshot(stack *middleware.Stack, operation string) error { } return snapshotOK{} } +func TestCheckSnapshot_BatchGetMetrics(t *testing.T) { + svc := New(Options{}) + _, err := svc.BatchGetMetrics(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return testSnapshot(stack, "BatchGetMetrics") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestCheckSnapshot_BatchPutMetrics(t *testing.T) { svc := New(Options{}) _, err := svc.BatchPutMetrics(context.Background(), nil, func(o *Options) { @@ -73,6 +85,18 @@ func TestCheckSnapshot_BatchPutMetrics(t *testing.T) { t.Fatal(err) } } +func TestUpdateSnapshot_BatchGetMetrics(t *testing.T) { + svc := New(Options{}) + _, err := svc.BatchGetMetrics(context.Background(), nil, func(o *Options) { + o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error { + return updateSnapshot(stack, "BatchGetMetrics") + }) + }) + if _, ok := err.(snapshotOK); !ok && err != nil { + t.Fatal(err) + } +} + func TestUpdateSnapshot_BatchPutMetrics(t *testing.T) { svc := New(Options{}) _, err := svc.BatchPutMetrics(context.Background(), nil, func(o *Options) { diff --git a/service/sagemakermetrics/types/enums.go b/service/sagemakermetrics/types/enums.go index 475fdecd970..f799803f995 100644 --- a/service/sagemakermetrics/types/enums.go +++ b/service/sagemakermetrics/types/enums.go @@ -2,6 +2,79 @@ package types +type MetricQueryResultStatus string + +// Enum values for MetricQueryResultStatus +const ( + MetricQueryResultStatusComplete MetricQueryResultStatus = "Complete" + MetricQueryResultStatusTruncated MetricQueryResultStatus = "Truncated" + MetricQueryResultStatusInternalError MetricQueryResultStatus = "InternalError" + MetricQueryResultStatusValidationError MetricQueryResultStatus = "ValidationError" +) + +// Values returns all known values for MetricQueryResultStatus. 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 (MetricQueryResultStatus) Values() []MetricQueryResultStatus { + return []MetricQueryResultStatus{ + "Complete", + "Truncated", + "InternalError", + "ValidationError", + } +} + +type MetricStatistic string + +// Enum values for MetricStatistic +const ( + MetricStatisticMin MetricStatistic = "Min" + MetricStatisticMax MetricStatistic = "Max" + MetricStatisticAvg MetricStatistic = "Avg" + MetricStatisticCount MetricStatistic = "Count" + MetricStatisticStdDev MetricStatistic = "StdDev" + MetricStatisticLast MetricStatistic = "Last" +) + +// Values returns all known values for MetricStatistic. 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 (MetricStatistic) Values() []MetricStatistic { + return []MetricStatistic{ + "Min", + "Max", + "Avg", + "Count", + "StdDev", + "Last", + } +} + +type Period string + +// Enum values for Period +const ( + PeriodOneMinute Period = "OneMinute" + PeriodFiveMinute Period = "FiveMinute" + PeriodOneHour Period = "OneHour" + PeriodIterationNumber Period = "IterationNumber" +) + +// Values returns all known values for Period. 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 (Period) Values() []Period { + return []Period{ + "OneMinute", + "FiveMinute", + "OneHour", + "IterationNumber", + } +} + type PutMetricsErrorCode string // Enum values for PutMetricsErrorCode @@ -24,3 +97,22 @@ func (PutMetricsErrorCode) Values() []PutMetricsErrorCode { "CONFLICT_ERROR", } } + +type XAxisType string + +// Enum values for XAxisType +const ( + XAxisTypeIterationNumber XAxisType = "IterationNumber" + XAxisTypeTimestamp XAxisType = "Timestamp" +) + +// Values returns all known values for XAxisType. 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 (XAxisType) Values() []XAxisType { + return []XAxisType{ + "IterationNumber", + "Timestamp", + } +} diff --git a/service/sagemakermetrics/types/types.go b/service/sagemakermetrics/types/types.go index 5a97b01ce53..3f36c87c7b7 100644 --- a/service/sagemakermetrics/types/types.go +++ b/service/sagemakermetrics/types/types.go @@ -29,6 +29,67 @@ type BatchPutMetricsError struct { noSmithyDocumentSerde } +// Specifies a query to retrieve training metrics from SageMaker. +type MetricQuery struct { + + // The name of the metric to retrieve. + // + // This member is required. + MetricName *string + + // The metrics stat type of metrics to retrieve. + // + // This member is required. + MetricStat MetricStatistic + + // The time period of metrics to retrieve. + // + // This member is required. + Period Period + + // The ARN of the SageMaker resource to retrieve metrics for. + // + // This member is required. + ResourceArn *string + + // The x-axis type of metrics to retrieve. + // + // This member is required. + XAxisType XAxisType + + // The end time of metrics to retrieve. + End *int64 + + // The start time of metrics to retrieve. + Start *int64 + + noSmithyDocumentSerde +} + +// The result of a query to retrieve training metrics from SageMaker. +type MetricQueryResult struct { + + // The metric values retrieved by the query. + // + // This member is required. + MetricValues []float64 + + // The status of the metric query. + // + // This member is required. + Status MetricQueryResultStatus + + // The values for the x-axis of the metrics. + // + // This member is required. + XAxisValues []int64 + + // A message describing the status of the metric query. + Message *string + + noSmithyDocumentSerde +} + // The raw metric data to associate with the resource. type RawMetricData struct { diff --git a/service/sagemakermetrics/validators.go b/service/sagemakermetrics/validators.go index 66246a4acd7..ced37519beb 100644 --- a/service/sagemakermetrics/validators.go +++ b/service/sagemakermetrics/validators.go @@ -10,6 +10,26 @@ import ( "github.com/aws/smithy-go/middleware" ) +type validateOpBatchGetMetrics struct { +} + +func (*validateOpBatchGetMetrics) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpBatchGetMetrics) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*BatchGetMetricsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpBatchGetMetricsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpBatchPutMetrics struct { } @@ -30,10 +50,58 @@ func (m *validateOpBatchPutMetrics) HandleInitialize(ctx context.Context, in mid return next.HandleInitialize(ctx, in) } +func addOpBatchGetMetricsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpBatchGetMetrics{}, middleware.After) +} + func addOpBatchPutMetricsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpBatchPutMetrics{}, middleware.After) } +func validateMetricQuery(v *types.MetricQuery) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "MetricQuery"} + if v.MetricName == nil { + invalidParams.Add(smithy.NewErrParamRequired("MetricName")) + } + if v.ResourceArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) + } + if len(v.MetricStat) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("MetricStat")) + } + if len(v.Period) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Period")) + } + if len(v.XAxisType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("XAxisType")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateMetricQueryList(v []types.MetricQuery) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "MetricQueryList"} + for i := range v { + if err := validateMetricQuery(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateRawMetricData(v *types.RawMetricData) error { if v == nil { return nil @@ -72,6 +140,25 @@ func validateRawMetricDataList(v []types.RawMetricData) error { } } +func validateOpBatchGetMetricsInput(v *BatchGetMetricsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "BatchGetMetricsInput"} + if v.MetricQueries == nil { + invalidParams.Add(smithy.NewErrParamRequired("MetricQueries")) + } else if v.MetricQueries != nil { + if err := validateMetricQueryList(v.MetricQueries); err != nil { + invalidParams.AddNested("MetricQueries", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpBatchPutMetricsInput(v *BatchPutMetricsInput) error { if v == nil { return nil diff --git a/service/sagemakerruntime/api_client.go b/service/sagemakerruntime/api_client.go index 30574dc0da5..0b578df3bc7 100644 --- a/service/sagemakerruntime/api_client.go +++ b/service/sagemakerruntime/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/savingsplans/api_client.go b/service/savingsplans/api_client.go index 585cb7f50cc..b359a958651 100644 --- a/service/savingsplans/api_client.go +++ b/service/savingsplans/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/scheduler/api_client.go b/service/scheduler/api_client.go index 69b9190d6ed..fdb98c03fab 100644 --- a/service/scheduler/api_client.go +++ b/service/scheduler/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/schemas/api_client.go b/service/schemas/api_client.go index 6b7176c056f..a97033d0b03 100644 --- a/service/schemas/api_client.go +++ b/service/schemas/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/secretsmanager/api_client.go b/service/secretsmanager/api_client.go index d4b0dbdb5c3..561278453c6 100644 --- a/service/secretsmanager/api_client.go +++ b/service/secretsmanager/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/securityhub/api_client.go b/service/securityhub/api_client.go index c6f72095f71..663fba6c582 100644 --- a/service/securityhub/api_client.go +++ b/service/securityhub/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/securitylake/api_client.go b/service/securitylake/api_client.go index a1d609b5a62..f7a1de299db 100644 --- a/service/securitylake/api_client.go +++ b/service/securitylake/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/serverlessapplicationrepository/api_client.go b/service/serverlessapplicationrepository/api_client.go index aa89dc9c170..c304ed3e298 100644 --- a/service/serverlessapplicationrepository/api_client.go +++ b/service/serverlessapplicationrepository/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/servicecatalog/api_client.go b/service/servicecatalog/api_client.go index 340355d6d28..c4f38a85de0 100644 --- a/service/servicecatalog/api_client.go +++ b/service/servicecatalog/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/servicecatalogappregistry/api_client.go b/service/servicecatalogappregistry/api_client.go index 397c8aaa69a..9ed987a4cdb 100644 --- a/service/servicecatalogappregistry/api_client.go +++ b/service/servicecatalogappregistry/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/servicediscovery/api_client.go b/service/servicediscovery/api_client.go index 97f6e2906ba..a75928e4c3b 100644 --- a/service/servicediscovery/api_client.go +++ b/service/servicediscovery/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/servicequotas/api_client.go b/service/servicequotas/api_client.go index 335ebad0ea3..0e696e94aac 100644 --- a/service/servicequotas/api_client.go +++ b/service/servicequotas/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/ses/api_client.go b/service/ses/api_client.go index 50cf9a6a341..1f8076d5cba 100644 --- a/service/ses/api_client.go +++ b/service/ses/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/sesv2/api_client.go b/service/sesv2/api_client.go index 30308ad6b41..d327ac7aacf 100644 --- a/service/sesv2/api_client.go +++ b/service/sesv2/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/sfn/api_client.go b/service/sfn/api_client.go index 3e6c8d41ed8..e6005447993 100644 --- a/service/sfn/api_client.go +++ b/service/sfn/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/shield/api_client.go b/service/shield/api_client.go index 2fd5015a98e..6bf447355c3 100644 --- a/service/shield/api_client.go +++ b/service/shield/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/signer/api_client.go b/service/signer/api_client.go index afb19354e88..67dd7df91d0 100644 --- a/service/signer/api_client.go +++ b/service/signer/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/simspaceweaver/api_client.go b/service/simspaceweaver/api_client.go index 5c3fe117086..b2b2b67ccf4 100644 --- a/service/simspaceweaver/api_client.go +++ b/service/simspaceweaver/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/sms/api_client.go b/service/sms/api_client.go index 32a303ac3bf..12b6f2ef8d1 100644 --- a/service/sms/api_client.go +++ b/service/sms/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/snowball/api_client.go b/service/snowball/api_client.go index a4554e7a555..911f664b1d2 100644 --- a/service/snowball/api_client.go +++ b/service/snowball/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/snowdevicemanagement/api_client.go b/service/snowdevicemanagement/api_client.go index 2583f155ea9..ea97dfd04e0 100644 --- a/service/snowdevicemanagement/api_client.go +++ b/service/snowdevicemanagement/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/sns/api_client.go b/service/sns/api_client.go index e6250c8657a..41a17f508d8 100644 --- a/service/sns/api_client.go +++ b/service/sns/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/sqs/api_client.go b/service/sqs/api_client.go index 05ec0ab7403..36b7ac52846 100644 --- a/service/sqs/api_client.go +++ b/service/sqs/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/ssm/api_client.go b/service/ssm/api_client.go index a158aa729e9..6b40e85ed1f 100644 --- a/service/ssm/api_client.go +++ b/service/ssm/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/ssmcontacts/api_client.go b/service/ssmcontacts/api_client.go index fe111807e8c..050200a5422 100644 --- a/service/ssmcontacts/api_client.go +++ b/service/ssmcontacts/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/ssmincidents/api_client.go b/service/ssmincidents/api_client.go index 01bec53c3d3..65da058d8e8 100644 --- a/service/ssmincidents/api_client.go +++ b/service/ssmincidents/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/ssmquicksetup/api_client.go b/service/ssmquicksetup/api_client.go index e3099ceca90..8586422c010 100644 --- a/service/ssmquicksetup/api_client.go +++ b/service/ssmquicksetup/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/ssmsap/api_client.go b/service/ssmsap/api_client.go index 99f95d5ad0f..c85e9e895c5 100644 --- a/service/ssmsap/api_client.go +++ b/service/ssmsap/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/sso/api_client.go b/service/sso/api_client.go index 274b15275be..fe8e46769da 100644 --- a/service/sso/api_client.go +++ b/service/sso/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/ssoadmin/api_client.go b/service/ssoadmin/api_client.go index 3cb3165abb0..e4bbb0fcc89 100644 --- a/service/ssoadmin/api_client.go +++ b/service/ssoadmin/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/ssooidc/api_client.go b/service/ssooidc/api_client.go index 16c908212ed..aa1f3ab3160 100644 --- a/service/ssooidc/api_client.go +++ b/service/ssooidc/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/storagegateway/api_client.go b/service/storagegateway/api_client.go index e1f04b74cac..fb7a8f363c9 100644 --- a/service/storagegateway/api_client.go +++ b/service/storagegateway/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/sts/api_client.go b/service/sts/api_client.go index 4425ba95c49..0df1bddf741 100644 --- a/service/sts/api_client.go +++ b/service/sts/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/supplychain/api_client.go b/service/supplychain/api_client.go index 826d80a922f..7c89ddee9bc 100644 --- a/service/supplychain/api_client.go +++ b/service/supplychain/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/support/api_client.go b/service/support/api_client.go index 45c9184fcbf..45ad983e850 100644 --- a/service/support/api_client.go +++ b/service/support/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/supportapp/api_client.go b/service/supportapp/api_client.go index 1ccd637e9c4..6483740eebd 100644 --- a/service/supportapp/api_client.go +++ b/service/supportapp/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/swf/api_client.go b/service/swf/api_client.go index 088d2ce10f5..3be2b612c85 100644 --- a/service/swf/api_client.go +++ b/service/swf/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/synthetics/api_client.go b/service/synthetics/api_client.go index 724c5dd6cb7..05f9f1b9309 100644 --- a/service/synthetics/api_client.go +++ b/service/synthetics/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/taxsettings/api_client.go b/service/taxsettings/api_client.go index 0230dd6e673..84c53df3cd9 100644 --- a/service/taxsettings/api_client.go +++ b/service/taxsettings/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/textract/api_client.go b/service/textract/api_client.go index 721ee510e62..73343db7873 100644 --- a/service/textract/api_client.go +++ b/service/textract/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/timestreaminfluxdb/api_client.go b/service/timestreaminfluxdb/api_client.go index 6f947d237e5..9d9ae0b35b9 100644 --- a/service/timestreaminfluxdb/api_client.go +++ b/service/timestreaminfluxdb/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/timestreamquery/api_client.go b/service/timestreamquery/api_client.go index a75e8c7f871..b412ceeef3d 100644 --- a/service/timestreamquery/api_client.go +++ b/service/timestreamquery/api_client.go @@ -199,10 +199,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/timestreamwrite/api_client.go b/service/timestreamwrite/api_client.go index 0365e75bea3..97b233603f3 100644 --- a/service/timestreamwrite/api_client.go +++ b/service/timestreamwrite/api_client.go @@ -199,10 +199,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/tnb/api_client.go b/service/tnb/api_client.go index 5aea60fdd13..9137543d45c 100644 --- a/service/tnb/api_client.go +++ b/service/tnb/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/transcribe/api_client.go b/service/transcribe/api_client.go index 9983380dd43..d25e12fab6c 100644 --- a/service/transcribe/api_client.go +++ b/service/transcribe/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/transcribestreaming/api_client.go b/service/transcribestreaming/api_client.go index 0c2fc14292e..7a48b04fdda 100644 --- a/service/transcribestreaming/api_client.go +++ b/service/transcribestreaming/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/transfer/api_client.go b/service/transfer/api_client.go index e6f7981036d..d1fd72abdb4 100644 --- a/service/transfer/api_client.go +++ b/service/transfer/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/translate/api_client.go b/service/translate/api_client.go index 7e7b173b0b0..b50023d3001 100644 --- a/service/translate/api_client.go +++ b/service/translate/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/trustedadvisor/api_client.go b/service/trustedadvisor/api_client.go index 1a5d9dbea07..1f51ebb0ead 100644 --- a/service/trustedadvisor/api_client.go +++ b/service/trustedadvisor/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/verifiedpermissions/api_client.go b/service/verifiedpermissions/api_client.go index 9910f7c3fa7..39eaa6c326d 100644 --- a/service/verifiedpermissions/api_client.go +++ b/service/verifiedpermissions/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/voiceid/api_client.go b/service/voiceid/api_client.go index 31ed35a05fd..2240040f1cf 100644 --- a/service/voiceid/api_client.go +++ b/service/voiceid/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/vpclattice/api_client.go b/service/vpclattice/api_client.go index 9995a9cccb1..27d64cb7987 100644 --- a/service/vpclattice/api_client.go +++ b/service/vpclattice/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/waf/api_client.go b/service/waf/api_client.go index 18b95f3a65a..21d6abfc5bc 100644 --- a/service/waf/api_client.go +++ b/service/waf/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/wafregional/api_client.go b/service/wafregional/api_client.go index 32d6ecb618d..fb153e4f869 100644 --- a/service/wafregional/api_client.go +++ b/service/wafregional/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/wafv2/api_client.go b/service/wafv2/api_client.go index eb240619974..016612af0cc 100644 --- a/service/wafv2/api_client.go +++ b/service/wafv2/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/wellarchitected/api_client.go b/service/wellarchitected/api_client.go index c2168d6fc4e..401e5f56c02 100644 --- a/service/wellarchitected/api_client.go +++ b/service/wellarchitected/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/wisdom/api_client.go b/service/wisdom/api_client.go index 13dc35acc1f..4f031414e01 100644 --- a/service/wisdom/api_client.go +++ b/service/wisdom/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/workdocs/api_client.go b/service/workdocs/api_client.go index 6b9f17e22e9..03564076071 100644 --- a/service/workdocs/api_client.go +++ b/service/workdocs/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/worklink/api_client.go b/service/worklink/api_client.go index 2ba7be86c79..fb437b66cf1 100644 --- a/service/worklink/api_client.go +++ b/service/worklink/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/workmail/api_client.go b/service/workmail/api_client.go index 046b38a0856..e1b4781b78e 100644 --- a/service/workmail/api_client.go +++ b/service/workmail/api_client.go @@ -190,10 +190,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/workmailmessageflow/api_client.go b/service/workmailmessageflow/api_client.go index ebd26deae08..c28fcc6a4ac 100644 --- a/service/workmailmessageflow/api_client.go +++ b/service/workmailmessageflow/api_client.go @@ -187,10 +187,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/workspaces/api_client.go b/service/workspaces/api_client.go index 29a0f0219a7..4447a1cb7bf 100644 --- a/service/workspaces/api_client.go +++ b/service/workspaces/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/workspaces/types/enums.go b/service/workspaces/types/enums.go index 973f9dc2744..f8522c5439a 100644 --- a/service/workspaces/types/enums.go +++ b/service/workspaces/types/enums.go @@ -1151,6 +1151,9 @@ const ( WorkspaceImageErrorDetailCodeInPlaceUpgrade WorkspaceImageErrorDetailCode = "InPlaceUpgrade" WorkspaceImageErrorDetailCodeAntiVirusInstalled WorkspaceImageErrorDetailCode = "AntiVirusInstalled" WorkspaceImageErrorDetailCodeUefiNotSupported WorkspaceImageErrorDetailCode = "UEFINotSupported" + WorkspaceImageErrorDetailCodeUnknownError WorkspaceImageErrorDetailCode = "UnknownError" + WorkspaceImageErrorDetailCodeAppxPackagesInstalled WorkspaceImageErrorDetailCode = "AppXPackagesInstalled" + WorkspaceImageErrorDetailCodeReservedStorageInUse WorkspaceImageErrorDetailCode = "ReservedStorageInUse" ) // Values returns all known values for WorkspaceImageErrorDetailCode. Note that @@ -1186,6 +1189,9 @@ func (WorkspaceImageErrorDetailCode) Values() []WorkspaceImageErrorDetailCode { "InPlaceUpgrade", "AntiVirusInstalled", "UEFINotSupported", + "UnknownError", + "AppXPackagesInstalled", + "ReservedStorageInUse", } } diff --git a/service/workspacesthinclient/api_client.go b/service/workspacesthinclient/api_client.go index ed0d185d440..f337b41fb1d 100644 --- a/service/workspacesthinclient/api_client.go +++ b/service/workspacesthinclient/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/workspacesweb/api_client.go b/service/workspacesweb/api_client.go index b4b600c020a..4495b504818 100644 --- a/service/workspacesweb/api_client.go +++ b/service/workspacesweb/api_client.go @@ -191,10 +191,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns { diff --git a/service/workspacesweb/api_op_ExpireSession.go b/service/workspacesweb/api_op_ExpireSession.go index 1b7f5a04a61..e96aae3f023 100644 --- a/service/workspacesweb/api_op_ExpireSession.go +++ b/service/workspacesweb/api_op_ExpireSession.go @@ -91,6 +91,9 @@ func (c *Client) addOperationExpireSessionMiddlewares(stack *middleware.Stack, o if err = addRecordResponseTiming(stack); err != nil { return err } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } if err = addClientUserAgent(stack, options); err != nil { return err } @@ -130,6 +133,18 @@ func (c *Client) addOperationExpireSessionMiddlewares(stack *middleware.Stack, o if err = addDisableHTTPSMiddleware(stack, options); err != nil { return err } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } return nil } diff --git a/service/workspacesweb/api_op_GetSession.go b/service/workspacesweb/api_op_GetSession.go index 9c0e4e8a992..7f040745087 100644 --- a/service/workspacesweb/api_op_GetSession.go +++ b/service/workspacesweb/api_op_GetSession.go @@ -96,6 +96,9 @@ func (c *Client) addOperationGetSessionMiddlewares(stack *middleware.Stack, opti if err = addRecordResponseTiming(stack); err != nil { return err } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } if err = addClientUserAgent(stack, options); err != nil { return err } @@ -135,6 +138,18 @@ func (c *Client) addOperationGetSessionMiddlewares(stack *middleware.Stack, opti if err = addDisableHTTPSMiddleware(stack, options); err != nil { return err } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } return nil } diff --git a/service/workspacesweb/api_op_ListSessions.go b/service/workspacesweb/api_op_ListSessions.go index be51a4aae2b..7ae310296c2 100644 --- a/service/workspacesweb/api_op_ListSessions.go +++ b/service/workspacesweb/api_op_ListSessions.go @@ -116,6 +116,9 @@ func (c *Client) addOperationListSessionsMiddlewares(stack *middleware.Stack, op if err = addRecordResponseTiming(stack); err != nil { return err } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } if err = addClientUserAgent(stack, options); err != nil { return err } @@ -155,6 +158,18 @@ func (c *Client) addOperationListSessionsMiddlewares(stack *middleware.Stack, op if err = addDisableHTTPSMiddleware(stack, options); err != nil { return err } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } return nil } diff --git a/service/workspacesweb/deserializers.go b/service/workspacesweb/deserializers.go index 98f74a39141..e8b4fc92462 100644 --- a/service/workspacesweb/deserializers.go +++ b/service/workspacesweb/deserializers.go @@ -3930,6 +3930,10 @@ func (m *awsRestjson1_deserializeOpExpireSession) HandleDeserialize(ctx context. return out, metadata, err } + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() response, ok := out.RawResponse.(*smithyhttp.Response) if !ok { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} @@ -3941,6 +3945,7 @@ func (m *awsRestjson1_deserializeOpExpireSession) HandleDeserialize(ctx context. output := &ExpireSessionOutput{} out.Result = output + span.End() return out, metadata, err } @@ -5022,6 +5027,10 @@ func (m *awsRestjson1_deserializeOpGetSession) HandleDeserialize(ctx context.Con return out, metadata, err } + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() response, ok := out.RawResponse.(*smithyhttp.Response) if !ok { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} @@ -5061,6 +5070,7 @@ func (m *awsRestjson1_deserializeOpGetSession) HandleDeserialize(ctx context.Con } } + span.End() return out, metadata, err } @@ -6696,6 +6706,10 @@ func (m *awsRestjson1_deserializeOpListSessions) HandleDeserialize(ctx context.C return out, metadata, err } + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() response, ok := out.RawResponse.(*smithyhttp.Response) if !ok { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} @@ -6735,6 +6749,7 @@ func (m *awsRestjson1_deserializeOpListSessions) HandleDeserialize(ctx context.C } } + span.End() return out, metadata, err } diff --git a/service/workspacesweb/serializers.go b/service/workspacesweb/serializers.go index 0685caa451d..066d961ae3e 100644 --- a/service/workspacesweb/serializers.go +++ b/service/workspacesweb/serializers.go @@ -2363,6 +2363,10 @@ func (*awsRestjson1_serializeOpExpireSession) ID() string { func (m *awsRestjson1_serializeOpExpireSession) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} @@ -2399,6 +2403,8 @@ func (m *awsRestjson1_serializeOpExpireSession) HandleSerialize(ctx context.Cont } in.Request = request + endTimer() + span.End() return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsExpireSessionInput(v *ExpireSessionInput, encoder *httpbinding.Encoder) error { @@ -2863,6 +2869,10 @@ func (*awsRestjson1_serializeOpGetSession) ID() string { func (m *awsRestjson1_serializeOpGetSession) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} @@ -2899,6 +2909,8 @@ func (m *awsRestjson1_serializeOpGetSession) HandleSerialize(ctx context.Context } in.Request = request + endTimer() + span.End() return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsGetSessionInput(v *GetSessionInput, encoder *httpbinding.Encoder) error { @@ -3584,6 +3596,10 @@ func (*awsRestjson1_serializeOpListSessions) ID() string { func (m *awsRestjson1_serializeOpListSessions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} @@ -3620,6 +3636,8 @@ func (m *awsRestjson1_serializeOpListSessions) HandleSerialize(ctx context.Conte } in.Request = request + endTimer() + span.End() return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsListSessionsInput(v *ListSessionsInput, encoder *httpbinding.Encoder) error { diff --git a/service/workspacesweb/snapshot/api_op_ExpireSession.go.snap b/service/workspacesweb/snapshot/api_op_ExpireSession.go.snap index 3d8a3be29e5..8a53d9a0c4a 100644 --- a/service/workspacesweb/snapshot/api_op_ExpireSession.go.snap +++ b/service/workspacesweb/snapshot/api_op_ExpireSession.go.snap @@ -1,10 +1,13 @@ ExpireSession Initialize stack step + spanInitializeStart RegisterServiceMetadata legacyEndpointContextSetter SetLogger OperationInputValidation + spanInitializeEnd Serialize stack step + spanBuildRequestStart setOperationInput ResolveEndpoint OperationSerializer @@ -14,12 +17,14 @@ ExpireSession UserAgent AddTimeOffsetMiddleware RecursionDetection + spanBuildRequestEnd Finalize stack step ResolveAuthScheme GetIdentity ResolveEndpointV2 disableHTTPS ComputePayloadHash + spanRetryLoop Retry RetryMetricsHeader setLegacyContextSigningOptions diff --git a/service/workspacesweb/snapshot/api_op_GetSession.go.snap b/service/workspacesweb/snapshot/api_op_GetSession.go.snap index 165531b26c3..a95cba9cccd 100644 --- a/service/workspacesweb/snapshot/api_op_GetSession.go.snap +++ b/service/workspacesweb/snapshot/api_op_GetSession.go.snap @@ -1,10 +1,13 @@ GetSession Initialize stack step + spanInitializeStart RegisterServiceMetadata legacyEndpointContextSetter SetLogger OperationInputValidation + spanInitializeEnd Serialize stack step + spanBuildRequestStart setOperationInput ResolveEndpoint OperationSerializer @@ -14,12 +17,14 @@ GetSession UserAgent AddTimeOffsetMiddleware RecursionDetection + spanBuildRequestEnd Finalize stack step ResolveAuthScheme GetIdentity ResolveEndpointV2 disableHTTPS ComputePayloadHash + spanRetryLoop Retry RetryMetricsHeader setLegacyContextSigningOptions diff --git a/service/workspacesweb/snapshot/api_op_ListSessions.go.snap b/service/workspacesweb/snapshot/api_op_ListSessions.go.snap index 5561b2d0cab..bd3c0578cd6 100644 --- a/service/workspacesweb/snapshot/api_op_ListSessions.go.snap +++ b/service/workspacesweb/snapshot/api_op_ListSessions.go.snap @@ -1,10 +1,13 @@ ListSessions Initialize stack step + spanInitializeStart RegisterServiceMetadata legacyEndpointContextSetter SetLogger OperationInputValidation + spanInitializeEnd Serialize stack step + spanBuildRequestStart setOperationInput ResolveEndpoint OperationSerializer @@ -14,12 +17,14 @@ ListSessions UserAgent AddTimeOffsetMiddleware RecursionDetection + spanBuildRequestEnd Finalize stack step ResolveAuthScheme GetIdentity ResolveEndpointV2 disableHTTPS ComputePayloadHash + spanRetryLoop Retry RetryMetricsHeader setLegacyContextSigningOptions diff --git a/service/xray/api_client.go b/service/xray/api_client.go index 51e0374806a..75bdb030432 100644 --- a/service/xray/api_client.go +++ b/service/xray/api_client.go @@ -186,10 +186,10 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveEndpointResolverV2(&options) - resolveMeterProvider(&options) - resolveTracerProvider(&options) + resolveMeterProvider(&options) + resolveAuthSchemeResolver(&options) for _, fn := range optFns {