From 585165e4c2c0833bdfe80490efc96cb5fcf3c20e Mon Sep 17 00:00:00 2001 From: Josh Elkins Date: Sat, 9 Mar 2024 00:51:31 -0600 Subject: [PATCH] chore: Regenerate SDK --- Package.swift | 6 ++++++ Sources/Services/AWSACM/EndpointResolver.swift | 2 ++ Sources/Services/AWSACMPCA/EndpointResolver.swift | 2 ++ Sources/Services/AWSAPIGateway/EndpointResolver.swift | 2 ++ Sources/Services/AWSARCZonalShift/EndpointResolver.swift | 2 ++ Sources/Services/AWSAccessAnalyzer/EndpointResolver.swift | 2 ++ Sources/Services/AWSAccount/EndpointResolver.swift | 2 ++ Sources/Services/AWSAlexaForBusiness/EndpointResolver.swift | 2 ++ Sources/Services/AWSAmp/EndpointResolver.swift | 2 ++ Sources/Services/AWSAmplify/EndpointResolver.swift | 2 ++ Sources/Services/AWSAmplifyBackend/EndpointResolver.swift | 2 ++ Sources/Services/AWSAmplifyUIBuilder/EndpointResolver.swift | 2 ++ .../AWSApiGatewayManagementApi/EndpointResolver.swift | 2 ++ Sources/Services/AWSApiGatewayV2/EndpointResolver.swift | 2 ++ Sources/Services/AWSAppConfig/EndpointResolver.swift | 2 ++ Sources/Services/AWSAppConfigData/EndpointResolver.swift | 2 ++ Sources/Services/AWSAppFabric/EndpointResolver.swift | 2 ++ Sources/Services/AWSAppIntegrations/EndpointResolver.swift | 2 ++ Sources/Services/AWSAppMesh/EndpointResolver.swift | 2 ++ Sources/Services/AWSAppRunner/EndpointResolver.swift | 2 ++ Sources/Services/AWSAppStream/EndpointResolver.swift | 2 ++ Sources/Services/AWSAppSync/EndpointResolver.swift | 2 ++ Sources/Services/AWSAppflow/EndpointResolver.swift | 2 ++ .../AWSApplicationAutoScaling/EndpointResolver.swift | 2 ++ .../AWSApplicationCostProfiler/EndpointResolver.swift | 2 ++ .../AWSApplicationDiscoveryService/EndpointResolver.swift | 2 ++ .../Services/AWSApplicationInsights/EndpointResolver.swift | 2 ++ Sources/Services/AWSArtifact/EndpointResolver.swift | 2 ++ Sources/Services/AWSAthena/EndpointResolver.swift | 2 ++ Sources/Services/AWSAuditManager/EndpointResolver.swift | 2 ++ Sources/Services/AWSAutoScaling/EndpointResolver.swift | 2 ++ Sources/Services/AWSAutoScalingPlans/EndpointResolver.swift | 2 ++ Sources/Services/AWSB2bi/EndpointResolver.swift | 2 ++ Sources/Services/AWSBCMDataExports/EndpointResolver.swift | 2 ++ Sources/Services/AWSBackup/EndpointResolver.swift | 2 ++ Sources/Services/AWSBackupGateway/EndpointResolver.swift | 2 ++ Sources/Services/AWSBackupStorage/EndpointResolver.swift | 2 ++ Sources/Services/AWSBatch/EndpointResolver.swift | 2 ++ Sources/Services/AWSBedrock/EndpointResolver.swift | 2 ++ Sources/Services/AWSBedrockAgent/EndpointResolver.swift | 2 ++ .../Services/AWSBedrockAgentRuntime/EndpointResolver.swift | 2 ++ Sources/Services/AWSBedrockRuntime/EndpointResolver.swift | 2 ++ Sources/Services/AWSBillingconductor/EndpointResolver.swift | 2 ++ Sources/Services/AWSBraket/EndpointResolver.swift | 2 ++ Sources/Services/AWSBudgets/EndpointResolver.swift | 2 ++ Sources/Services/AWSChatbot/EndpointResolver.swift | 2 ++ Sources/Services/AWSChime/EndpointResolver.swift | 2 ++ Sources/Services/AWSChimeSDKIdentity/EndpointResolver.swift | 2 ++ .../AWSChimeSDKMediaPipelines/EndpointResolver.swift | 2 ++ Sources/Services/AWSChimeSDKMeetings/EndpointResolver.swift | 2 ++ .../Services/AWSChimeSDKMessaging/EndpointResolver.swift | 2 ++ Sources/Services/AWSChimeSDKVoice/EndpointResolver.swift | 2 ++ Sources/Services/AWSCleanRooms/EndpointResolver.swift | 2 ++ Sources/Services/AWSCleanRoomsML/EndpointResolver.swift | 2 ++ Sources/Services/AWSCloud9/EndpointResolver.swift | 2 ++ Sources/Services/AWSCloudControl/EndpointResolver.swift | 2 ++ Sources/Services/AWSCloudDirectory/EndpointResolver.swift | 2 ++ Sources/Services/AWSCloudFormation/EndpointResolver.swift | 2 ++ Sources/Services/AWSCloudFront/EndpointResolver.swift | 2 ++ .../AWSCloudFrontKeyValueStore/EndpointResolver.swift | 2 ++ Sources/Services/AWSCloudHSM/EndpointResolver.swift | 2 ++ Sources/Services/AWSCloudHSMV2/EndpointResolver.swift | 2 ++ Sources/Services/AWSCloudSearch/EndpointResolver.swift | 2 ++ .../Services/AWSCloudSearchDomain/EndpointResolver.swift | 2 ++ Sources/Services/AWSCloudTrail/EndpointResolver.swift | 2 ++ Sources/Services/AWSCloudTrailData/EndpointResolver.swift | 2 ++ Sources/Services/AWSCloudWatch/EndpointResolver.swift | 2 ++ Sources/Services/AWSCloudWatchEvents/EndpointResolver.swift | 2 ++ Sources/Services/AWSCloudWatchLogs/EndpointResolver.swift | 2 ++ Sources/Services/AWSCodeBuild/EndpointResolver.swift | 2 ++ Sources/Services/AWSCodeCatalyst/EndpointResolver.swift | 2 ++ Sources/Services/AWSCodeCommit/EndpointResolver.swift | 2 ++ Sources/Services/AWSCodeDeploy/EndpointResolver.swift | 2 ++ Sources/Services/AWSCodeGuruProfiler/EndpointResolver.swift | 2 ++ Sources/Services/AWSCodeGuruReviewer/EndpointResolver.swift | 2 ++ Sources/Services/AWSCodeGuruSecurity/EndpointResolver.swift | 2 ++ Sources/Services/AWSCodePipeline/EndpointResolver.swift | 2 ++ Sources/Services/AWSCodeStar/EndpointResolver.swift | 2 ++ .../Services/AWSCodeStarconnections/EndpointResolver.swift | 2 ++ Sources/Services/AWSCodeartifact/EndpointResolver.swift | 2 ++ .../AWSCodestarnotifications/EndpointResolver.swift | 2 ++ Sources/Services/AWSCognitoIdentity/EndpointResolver.swift | 2 ++ .../AWSCognitoIdentityProvider/EndpointResolver.swift | 2 ++ Sources/Services/AWSCognitoSync/EndpointResolver.swift | 2 ++ Sources/Services/AWSComprehend/EndpointResolver.swift | 2 ++ .../Services/AWSComprehendMedical/EndpointResolver.swift | 2 ++ Sources/Services/AWSComputeOptimizer/EndpointResolver.swift | 2 ++ Sources/Services/AWSConfigService/EndpointResolver.swift | 2 ++ Sources/Services/AWSConnect/EndpointResolver.swift | 2 ++ Sources/Services/AWSConnectCampaigns/EndpointResolver.swift | 2 ++ Sources/Services/AWSConnectCases/EndpointResolver.swift | 2 ++ .../Services/AWSConnectContactLens/EndpointResolver.swift | 2 ++ .../Services/AWSConnectParticipant/EndpointResolver.swift | 2 ++ Sources/Services/AWSControlTower/EndpointResolver.swift | 2 ++ Sources/Services/AWSCostExplorer/EndpointResolver.swift | 2 ++ .../Services/AWSCostOptimizationHub/EndpointResolver.swift | 2 ++ .../AWSCostandUsageReportService/EndpointResolver.swift | 2 ++ Sources/Services/AWSCustomerProfiles/EndpointResolver.swift | 2 ++ Sources/Services/AWSDAX/EndpointResolver.swift | 2 ++ Sources/Services/AWSDLM/EndpointResolver.swift | 2 ++ Sources/Services/AWSDataBrew/EndpointResolver.swift | 2 ++ Sources/Services/AWSDataExchange/EndpointResolver.swift | 2 ++ Sources/Services/AWSDataPipeline/EndpointResolver.swift | 2 ++ Sources/Services/AWSDataSync/EndpointResolver.swift | 2 ++ Sources/Services/AWSDataZone/EndpointResolver.swift | 2 ++ .../AWSDatabaseMigrationService/EndpointResolver.swift | 2 ++ Sources/Services/AWSDetective/EndpointResolver.swift | 2 ++ Sources/Services/AWSDevOpsGuru/EndpointResolver.swift | 2 ++ Sources/Services/AWSDeviceFarm/EndpointResolver.swift | 2 ++ Sources/Services/AWSDirectConnect/EndpointResolver.swift | 2 ++ Sources/Services/AWSDirectoryService/EndpointResolver.swift | 2 ++ Sources/Services/AWSDocDB/EndpointResolver.swift | 2 ++ Sources/Services/AWSDocDBElastic/EndpointResolver.swift | 2 ++ Sources/Services/AWSDrs/EndpointResolver.swift | 2 ++ Sources/Services/AWSDynamoDB/EndpointResolver.swift | 2 ++ Sources/Services/AWSDynamoDBStreams/EndpointResolver.swift | 2 ++ Sources/Services/AWSEBS/EndpointResolver.swift | 2 ++ Sources/Services/AWSEC2/EndpointResolver.swift | 2 ++ .../Services/AWSEC2InstanceConnect/EndpointResolver.swift | 2 ++ Sources/Services/AWSECR/EndpointResolver.swift | 2 ++ Sources/Services/AWSECRPUBLIC/EndpointResolver.swift | 2 ++ Sources/Services/AWSECS/EndpointResolver.swift | 2 ++ Sources/Services/AWSEFS/EndpointResolver.swift | 2 ++ Sources/Services/AWSEKS/EndpointResolver.swift | 2 ++ Sources/Services/AWSEKSAuth/EndpointResolver.swift | 2 ++ Sources/Services/AWSEMR/EndpointResolver.swift | 2 ++ Sources/Services/AWSEMRServerless/EndpointResolver.swift | 2 ++ Sources/Services/AWSEMRcontainers/EndpointResolver.swift | 2 ++ Sources/Services/AWSElastiCache/EndpointResolver.swift | 2 ++ Sources/Services/AWSElasticBeanstalk/EndpointResolver.swift | 2 ++ Sources/Services/AWSElasticInference/EndpointResolver.swift | 2 ++ .../Services/AWSElasticLoadBalancing/EndpointResolver.swift | 2 ++ .../AWSElasticLoadBalancingv2/EndpointResolver.swift | 2 ++ .../Services/AWSElasticTranscoder/EndpointResolver.swift | 2 ++ .../Services/AWSElasticsearchService/EndpointResolver.swift | 2 ++ Sources/Services/AWSEntityResolution/EndpointResolver.swift | 2 ++ Sources/Services/AWSEventBridge/EndpointResolver.swift | 2 ++ Sources/Services/AWSEvidently/EndpointResolver.swift | 2 ++ Sources/Services/AWSFMS/EndpointResolver.swift | 2 ++ Sources/Services/AWSFSx/EndpointResolver.swift | 2 ++ Sources/Services/AWSFinspace/EndpointResolver.swift | 2 ++ Sources/Services/AWSFinspacedata/EndpointResolver.swift | 2 ++ Sources/Services/AWSFirehose/EndpointResolver.swift | 2 ++ Sources/Services/AWSFis/EndpointResolver.swift | 2 ++ Sources/Services/AWSForecast/EndpointResolver.swift | 2 ++ Sources/Services/AWSForecastquery/EndpointResolver.swift | 2 ++ Sources/Services/AWSFraudDetector/EndpointResolver.swift | 2 ++ Sources/Services/AWSFreeTier/EndpointResolver.swift | 2 ++ Sources/Services/AWSGameLift/EndpointResolver.swift | 2 ++ Sources/Services/AWSGlacier/EndpointResolver.swift | 2 ++ .../Services/AWSGlobalAccelerator/EndpointResolver.swift | 2 ++ Sources/Services/AWSGlue/EndpointResolver.swift | 2 ++ Sources/Services/AWSGrafana/EndpointResolver.swift | 2 ++ Sources/Services/AWSGreengrass/EndpointResolver.swift | 2 ++ Sources/Services/AWSGreengrassV2/EndpointResolver.swift | 2 ++ Sources/Services/AWSGroundStation/EndpointResolver.swift | 2 ++ Sources/Services/AWSGuardDuty/EndpointResolver.swift | 2 ++ Sources/Services/AWSHealth/EndpointResolver.swift | 2 ++ Sources/Services/AWSHealthLake/EndpointResolver.swift | 2 ++ Sources/Services/AWSHoneycode/EndpointResolver.swift | 2 ++ Sources/Services/AWSIAM/EndpointResolver.swift | 2 ++ Sources/Services/AWSIVSRealTime/EndpointResolver.swift | 2 ++ Sources/Services/AWSIdentitystore/EndpointResolver.swift | 2 ++ Sources/Services/AWSImagebuilder/EndpointResolver.swift | 2 ++ Sources/Services/AWSInspector/EndpointResolver.swift | 2 ++ Sources/Services/AWSInspector2/EndpointResolver.swift | 2 ++ Sources/Services/AWSInspectorScan/EndpointResolver.swift | 2 ++ Sources/Services/AWSInternetMonitor/EndpointResolver.swift | 2 ++ Sources/Services/AWSIoT/EndpointResolver.swift | 2 ++ .../AWSIoT1ClickDevicesService/EndpointResolver.swift | 2 ++ .../Services/AWSIoT1ClickProjects/EndpointResolver.swift | 2 ++ Sources/Services/AWSIoTAnalytics/EndpointResolver.swift | 2 ++ Sources/Services/AWSIoTDataPlane/EndpointResolver.swift | 2 ++ Sources/Services/AWSIoTEvents/EndpointResolver.swift | 2 ++ Sources/Services/AWSIoTEventsData/EndpointResolver.swift | 2 ++ Sources/Services/AWSIoTFleetHub/EndpointResolver.swift | 2 ++ Sources/Services/AWSIoTFleetWise/EndpointResolver.swift | 2 ++ Sources/Services/AWSIoTJobsDataPlane/EndpointResolver.swift | 2 ++ Sources/Services/AWSIoTRoboRunner/EndpointResolver.swift | 2 ++ .../Services/AWSIoTSecureTunneling/EndpointResolver.swift | 2 ++ Sources/Services/AWSIoTSiteWise/EndpointResolver.swift | 2 ++ Sources/Services/AWSIoTThingsGraph/EndpointResolver.swift | 2 ++ Sources/Services/AWSIoTTwinMaker/EndpointResolver.swift | 2 ++ Sources/Services/AWSIoTWireless/EndpointResolver.swift | 2 ++ Sources/Services/AWSIotDeviceAdvisor/EndpointResolver.swift | 2 ++ Sources/Services/AWSIvs/EndpointResolver.swift | 2 ++ Sources/Services/AWSIvschat/EndpointResolver.swift | 2 ++ Sources/Services/AWSKMS/EndpointResolver.swift | 2 ++ Sources/Services/AWSKafka/EndpointResolver.swift | 2 ++ Sources/Services/AWSKafkaConnect/EndpointResolver.swift | 2 ++ Sources/Services/AWSKendra/EndpointResolver.swift | 2 ++ Sources/Services/AWSKendraRanking/EndpointResolver.swift | 2 ++ Sources/Services/AWSKeyspaces/EndpointResolver.swift | 2 ++ Sources/Services/AWSKinesis/EndpointResolver.swift | 2 ++ Sources/Services/AWSKinesisAnalytics/EndpointResolver.swift | 2 ++ .../Services/AWSKinesisAnalyticsV2/EndpointResolver.swift | 2 ++ Sources/Services/AWSKinesisVideo/EndpointResolver.swift | 2 ++ .../AWSKinesisVideoArchivedMedia/EndpointResolver.swift | 2 ++ .../Services/AWSKinesisVideoMedia/EndpointResolver.swift | 2 ++ .../AWSKinesisVideoSignaling/EndpointResolver.swift | 2 ++ .../AWSKinesisVideoWebRTCStorage/EndpointResolver.swift | 2 ++ Sources/Services/AWSLakeFormation/EndpointResolver.swift | 2 ++ Sources/Services/AWSLambda/EndpointResolver.swift | 2 ++ Sources/Services/AWSLaunchWizard/EndpointResolver.swift | 2 ++ .../AWSLexModelBuildingService/EndpointResolver.swift | 2 ++ Sources/Services/AWSLexModelsV2/EndpointResolver.swift | 2 ++ .../Services/AWSLexRuntimeService/EndpointResolver.swift | 2 ++ Sources/Services/AWSLexRuntimeV2/EndpointResolver.swift | 2 ++ Sources/Services/AWSLicenseManager/EndpointResolver.swift | 2 ++ .../EndpointResolver.swift | 2 ++ .../EndpointResolver.swift | 2 ++ Sources/Services/AWSLightsail/EndpointResolver.swift | 2 ++ Sources/Services/AWSLocation/EndpointResolver.swift | 2 ++ Sources/Services/AWSLookoutEquipment/EndpointResolver.swift | 2 ++ Sources/Services/AWSLookoutMetrics/EndpointResolver.swift | 2 ++ Sources/Services/AWSLookoutVision/EndpointResolver.swift | 2 ++ Sources/Services/AWSM2/EndpointResolver.swift | 2 ++ Sources/Services/AWSMTurk/EndpointResolver.swift | 2 ++ Sources/Services/AWSMWAA/EndpointResolver.swift | 2 ++ Sources/Services/AWSMachineLearning/EndpointResolver.swift | 2 ++ Sources/Services/AWSMacie2/EndpointResolver.swift | 2 ++ .../Services/AWSManagedBlockchain/EndpointResolver.swift | 2 ++ .../AWSManagedBlockchainQuery/EndpointResolver.swift | 2 ++ .../Services/AWSMarketplaceAgreement/EndpointResolver.swift | 2 ++ .../Services/AWSMarketplaceCatalog/EndpointResolver.swift | 2 ++ .../AWSMarketplaceCommerceAnalytics/EndpointResolver.swift | 2 ++ .../AWSMarketplaceDeployment/EndpointResolver.swift | 2 ++ .../AWSMarketplaceEntitlementService/EndpointResolver.swift | 2 ++ .../Services/AWSMarketplaceMetering/EndpointResolver.swift | 2 ++ Sources/Services/AWSMediaConnect/EndpointResolver.swift | 2 ++ Sources/Services/AWSMediaConvert/EndpointResolver.swift | 2 ++ Sources/Services/AWSMediaLive/EndpointResolver.swift | 2 ++ Sources/Services/AWSMediaPackage/EndpointResolver.swift | 2 ++ Sources/Services/AWSMediaPackageV2/EndpointResolver.swift | 2 ++ Sources/Services/AWSMediaPackageVod/EndpointResolver.swift | 2 ++ Sources/Services/AWSMediaStore/EndpointResolver.swift | 2 ++ Sources/Services/AWSMediaStoreData/EndpointResolver.swift | 2 ++ Sources/Services/AWSMediaTailor/EndpointResolver.swift | 2 ++ Sources/Services/AWSMedicalImaging/EndpointResolver.swift | 2 ++ Sources/Services/AWSMemoryDB/EndpointResolver.swift | 2 ++ Sources/Services/AWSMgn/EndpointResolver.swift | 2 ++ Sources/Services/AWSMigrationHub/EndpointResolver.swift | 2 ++ .../Services/AWSMigrationHubConfig/EndpointResolver.swift | 2 ++ .../AWSMigrationHubOrchestrator/EndpointResolver.swift | 2 ++ .../AWSMigrationHubRefactorSpaces/EndpointResolver.swift | 2 ++ .../Services/AWSMigrationHubStrategy/EndpointResolver.swift | 2 ++ Sources/Services/AWSMobile/EndpointResolver.swift | 2 ++ Sources/Services/AWSMq/EndpointResolver.swift | 2 ++ Sources/Services/AWSNeptune/EndpointResolver.swift | 2 ++ Sources/Services/AWSNeptuneGraph/EndpointResolver.swift | 2 ++ Sources/Services/AWSNeptunedata/EndpointResolver.swift | 2 ++ Sources/Services/AWSNetworkFirewall/EndpointResolver.swift | 2 ++ Sources/Services/AWSNetworkManager/EndpointResolver.swift | 2 ++ Sources/Services/AWSNetworkMonitor/EndpointResolver.swift | 2 ++ Sources/Services/AWSNimble/EndpointResolver.swift | 2 ++ Sources/Services/AWSOAM/EndpointResolver.swift | 2 ++ Sources/Services/AWSOSIS/EndpointResolver.swift | 2 ++ Sources/Services/AWSOmics/EndpointResolver.swift | 2 ++ Sources/Services/AWSOpenSearch/EndpointResolver.swift | 2 ++ .../Services/AWSOpenSearchServerless/EndpointResolver.swift | 2 ++ Sources/Services/AWSOpsWorks/EndpointResolver.swift | 2 ++ Sources/Services/AWSOpsWorksCM/EndpointResolver.swift | 2 ++ Sources/Services/AWSOrganizations/EndpointResolver.swift | 2 ++ Sources/Services/AWSOutposts/EndpointResolver.swift | 2 ++ Sources/Services/AWSPI/EndpointResolver.swift | 2 ++ Sources/Services/AWSPanorama/EndpointResolver.swift | 2 ++ .../Services/AWSPaymentCryptography/EndpointResolver.swift | 2 ++ .../AWSPaymentCryptographyData/EndpointResolver.swift | 2 ++ Sources/Services/AWSPcaConnectorAd/EndpointResolver.swift | 2 ++ Sources/Services/AWSPersonalize/EndpointResolver.swift | 2 ++ .../Services/AWSPersonalizeEvents/EndpointResolver.swift | 2 ++ .../Services/AWSPersonalizeRuntime/EndpointResolver.swift | 2 ++ Sources/Services/AWSPinpoint/EndpointResolver.swift | 2 ++ Sources/Services/AWSPinpointEmail/EndpointResolver.swift | 2 ++ Sources/Services/AWSPinpointSMSVoice/EndpointResolver.swift | 2 ++ .../Services/AWSPinpointSMSVoiceV2/EndpointResolver.swift | 2 ++ Sources/Services/AWSPipes/EndpointResolver.swift | 2 ++ Sources/Services/AWSPolly/EndpointResolver.swift | 2 ++ Sources/Services/AWSPricing/EndpointResolver.swift | 2 ++ Sources/Services/AWSPrivateNetworks/EndpointResolver.swift | 2 ++ Sources/Services/AWSProton/EndpointResolver.swift | 2 ++ Sources/Services/AWSQBusiness/EndpointResolver.swift | 2 ++ Sources/Services/AWSQConnect/EndpointResolver.swift | 2 ++ Sources/Services/AWSQLDB/EndpointResolver.swift | 2 ++ Sources/Services/AWSQLDBSession/EndpointResolver.swift | 2 ++ Sources/Services/AWSQuickSight/EndpointResolver.swift | 2 ++ Sources/Services/AWSRAM/EndpointResolver.swift | 2 ++ Sources/Services/AWSRDS/EndpointResolver.swift | 2 ++ Sources/Services/AWSRDSData/EndpointResolver.swift | 2 ++ Sources/Services/AWSRUM/EndpointResolver.swift | 2 ++ Sources/Services/AWSRbin/EndpointResolver.swift | 2 ++ Sources/Services/AWSRedshift/EndpointResolver.swift | 2 ++ Sources/Services/AWSRedshiftData/EndpointResolver.swift | 2 ++ .../Services/AWSRedshiftServerless/EndpointResolver.swift | 2 ++ Sources/Services/AWSRekognition/EndpointResolver.swift | 2 ++ Sources/Services/AWSRepostspace/EndpointResolver.swift | 2 ++ Sources/Services/AWSResiliencehub/EndpointResolver.swift | 2 ++ .../Services/AWSResourceExplorer2/EndpointResolver.swift | 2 ++ Sources/Services/AWSResourceGroups/EndpointResolver.swift | 2 ++ .../AWSResourceGroupsTaggingAPI/EndpointResolver.swift | 2 ++ Sources/Services/AWSRoboMaker/EndpointResolver.swift | 2 ++ Sources/Services/AWSRolesAnywhere/EndpointResolver.swift | 2 ++ Sources/Services/AWSRoute53/EndpointResolver.swift | 2 ++ Sources/Services/AWSRoute53Domains/EndpointResolver.swift | 2 ++ .../AWSRoute53RecoveryCluster/EndpointResolver.swift | 2 ++ .../AWSRoute53RecoveryControlConfig/EndpointResolver.swift | 2 ++ .../AWSRoute53RecoveryReadiness/EndpointResolver.swift | 2 ++ Sources/Services/AWSRoute53Resolver/EndpointResolver.swift | 2 ++ Sources/Services/AWSS3/EndpointResolver.swift | 2 ++ Sources/Services/AWSS3Control/EndpointResolver.swift | 2 ++ Sources/Services/AWSS3Outposts/EndpointResolver.swift | 2 ++ Sources/Services/AWSSES/EndpointResolver.swift | 2 ++ Sources/Services/AWSSESv2/EndpointResolver.swift | 2 ++ Sources/Services/AWSSFN/EndpointResolver.swift | 2 ++ Sources/Services/AWSSMS/EndpointResolver.swift | 2 ++ Sources/Services/AWSSNS/EndpointResolver.swift | 2 ++ Sources/Services/AWSSQS/EndpointResolver.swift | 2 ++ Sources/Services/AWSSSM/EndpointResolver.swift | 2 ++ Sources/Services/AWSSSMContacts/EndpointResolver.swift | 2 ++ Sources/Services/AWSSSMIncidents/EndpointResolver.swift | 2 ++ Sources/Services/AWSSSO/EndpointResolver.swift | 2 ++ Sources/Services/AWSSSOAdmin/EndpointResolver.swift | 2 ++ Sources/Services/AWSSSOOIDC/EndpointResolver.swift | 2 ++ Sources/Services/AWSSTS/EndpointResolver.swift | 2 ++ Sources/Services/AWSSWF/EndpointResolver.swift | 2 ++ Sources/Services/AWSSageMaker/EndpointResolver.swift | 2 ++ .../Services/AWSSageMakerA2IRuntime/EndpointResolver.swift | 2 ++ .../AWSSageMakerFeatureStoreRuntime/EndpointResolver.swift | 2 ++ .../Services/AWSSageMakerGeospatial/EndpointResolver.swift | 2 ++ Sources/Services/AWSSageMakerMetrics/EndpointResolver.swift | 2 ++ Sources/Services/AWSSageMakerRuntime/EndpointResolver.swift | 2 ++ Sources/Services/AWSSagemakerEdge/EndpointResolver.swift | 2 ++ Sources/Services/AWSSavingsplans/EndpointResolver.swift | 2 ++ Sources/Services/AWSScheduler/EndpointResolver.swift | 2 ++ Sources/Services/AWSSchemas/EndpointResolver.swift | 2 ++ Sources/Services/AWSSecretsManager/EndpointResolver.swift | 2 ++ Sources/Services/AWSSecurityHub/EndpointResolver.swift | 2 ++ Sources/Services/AWSSecurityLake/EndpointResolver.swift | 2 ++ .../EndpointResolver.swift | 2 ++ Sources/Services/AWSServiceCatalog/EndpointResolver.swift | 2 ++ .../AWSServiceCatalogAppRegistry/EndpointResolver.swift | 2 ++ Sources/Services/AWSServiceDiscovery/EndpointResolver.swift | 2 ++ Sources/Services/AWSServiceQuotas/EndpointResolver.swift | 2 ++ Sources/Services/AWSShield/EndpointResolver.swift | 2 ++ Sources/Services/AWSSigner/EndpointResolver.swift | 2 ++ Sources/Services/AWSSimSpaceWeaver/EndpointResolver.swift | 2 ++ .../Services/AWSSnowDeviceManagement/EndpointResolver.swift | 2 ++ Sources/Services/AWSSnowball/EndpointResolver.swift | 2 ++ Sources/Services/AWSSsmSap/EndpointResolver.swift | 2 ++ Sources/Services/AWSStorageGateway/EndpointResolver.swift | 2 ++ Sources/Services/AWSSupplyChain/EndpointResolver.swift | 2 ++ Sources/Services/AWSSupport/EndpointResolver.swift | 2 ++ Sources/Services/AWSSupportApp/EndpointResolver.swift | 2 ++ Sources/Services/AWSSynthetics/EndpointResolver.swift | 2 ++ Sources/Services/AWSTextract/EndpointResolver.swift | 2 ++ Sources/Services/AWSTimestreamQuery/EndpointResolver.swift | 2 ++ Sources/Services/AWSTimestreamWrite/EndpointResolver.swift | 2 ++ Sources/Services/AWSTnb/EndpointResolver.swift | 2 ++ Sources/Services/AWSTranscribe/EndpointResolver.swift | 2 ++ .../Services/AWSTranscribeStreaming/EndpointResolver.swift | 2 ++ Sources/Services/AWSTransfer/EndpointResolver.swift | 2 ++ Sources/Services/AWSTranslate/EndpointResolver.swift | 2 ++ Sources/Services/AWSTrustedAdvisor/EndpointResolver.swift | 2 ++ Sources/Services/AWSVPCLattice/EndpointResolver.swift | 2 ++ .../Services/AWSVerifiedPermissions/EndpointResolver.swift | 2 ++ Sources/Services/AWSVoiceID/EndpointResolver.swift | 2 ++ Sources/Services/AWSWAF/EndpointResolver.swift | 2 ++ Sources/Services/AWSWAFRegional/EndpointResolver.swift | 2 ++ Sources/Services/AWSWAFV2/EndpointResolver.swift | 2 ++ Sources/Services/AWSWellArchitected/EndpointResolver.swift | 2 ++ Sources/Services/AWSWisdom/EndpointResolver.swift | 2 ++ Sources/Services/AWSWorkDocs/EndpointResolver.swift | 2 ++ Sources/Services/AWSWorkLink/EndpointResolver.swift | 2 ++ Sources/Services/AWSWorkMail/EndpointResolver.swift | 2 ++ .../Services/AWSWorkMailMessageFlow/EndpointResolver.swift | 2 ++ Sources/Services/AWSWorkSpaces/EndpointResolver.swift | 2 ++ .../Services/AWSWorkSpacesThinClient/EndpointResolver.swift | 2 ++ Sources/Services/AWSWorkSpacesWeb/EndpointResolver.swift | 2 ++ Sources/Services/AWSXRay/EndpointResolver.swift | 2 ++ 379 files changed, 762 insertions(+) diff --git a/Package.swift b/Package.swift index 803409fa35a..fc3a74efc02 100644 --- a/Package.swift +++ b/Package.swift @@ -128,6 +128,11 @@ func addIntegrationTestTarget(_ name: String) { var additionalDependencies: [String] = [] var exclusions: [String] = [] switch name { + case "AWSEC2": + additionalDependencies = ["AWSIAM", "AWSSTS", "AWSCloudWatchLogs"] + exclusions = [ + "Resources/IMDSIntegTestApp" + ] case "AWSECS": additionalDependencies = ["AWSCloudWatchLogs", "AWSEC2", "AWSIAM", "AWSSTS"] exclusions = [ @@ -629,6 +634,7 @@ addAllServices() let servicesWithIntegrationTests: [String] = [ "AWSCloudFrontKeyValueStore", + "AWSEC2", "AWSECS", "AWSEventBridge", "AWSKinesis", diff --git a/Sources/Services/AWSACM/EndpointResolver.swift b/Sources/Services/AWSACM/EndpointResolver.swift index 578676b436e..22077e98a80 100644 --- a/Sources/Services/AWSACM/EndpointResolver.swift +++ b/Sources/Services/AWSACM/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSACMPCA/EndpointResolver.swift b/Sources/Services/AWSACMPCA/EndpointResolver.swift index 7c30807812c..7f0cd188dfc 100644 --- a/Sources/Services/AWSACMPCA/EndpointResolver.swift +++ b/Sources/Services/AWSACMPCA/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSAPIGateway/EndpointResolver.swift b/Sources/Services/AWSAPIGateway/EndpointResolver.swift index bbc8130e3c3..5f95d2a3cca 100644 --- a/Sources/Services/AWSAPIGateway/EndpointResolver.swift +++ b/Sources/Services/AWSAPIGateway/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSARCZonalShift/EndpointResolver.swift b/Sources/Services/AWSARCZonalShift/EndpointResolver.swift index a7f859cadaf..0e6bbf2e254 100644 --- a/Sources/Services/AWSARCZonalShift/EndpointResolver.swift +++ b/Sources/Services/AWSARCZonalShift/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSAccessAnalyzer/EndpointResolver.swift b/Sources/Services/AWSAccessAnalyzer/EndpointResolver.swift index 7df059c90d5..5d1643bbe1c 100644 --- a/Sources/Services/AWSAccessAnalyzer/EndpointResolver.swift +++ b/Sources/Services/AWSAccessAnalyzer/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSAccount/EndpointResolver.swift b/Sources/Services/AWSAccount/EndpointResolver.swift index 03ce82167a5..c9b80649785 100644 --- a/Sources/Services/AWSAccount/EndpointResolver.swift +++ b/Sources/Services/AWSAccount/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSAlexaForBusiness/EndpointResolver.swift b/Sources/Services/AWSAlexaForBusiness/EndpointResolver.swift index 29423c35ea5..b7a81fb230c 100644 --- a/Sources/Services/AWSAlexaForBusiness/EndpointResolver.swift +++ b/Sources/Services/AWSAlexaForBusiness/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSAmp/EndpointResolver.swift b/Sources/Services/AWSAmp/EndpointResolver.swift index 0557ba5e8e9..46fa18d35aa 100644 --- a/Sources/Services/AWSAmp/EndpointResolver.swift +++ b/Sources/Services/AWSAmp/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSAmplify/EndpointResolver.swift b/Sources/Services/AWSAmplify/EndpointResolver.swift index eb5c16029b9..28e2b552a89 100644 --- a/Sources/Services/AWSAmplify/EndpointResolver.swift +++ b/Sources/Services/AWSAmplify/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSAmplifyBackend/EndpointResolver.swift b/Sources/Services/AWSAmplifyBackend/EndpointResolver.swift index 2cf685e2188..8a47b28c776 100644 --- a/Sources/Services/AWSAmplifyBackend/EndpointResolver.swift +++ b/Sources/Services/AWSAmplifyBackend/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSAmplifyUIBuilder/EndpointResolver.swift b/Sources/Services/AWSAmplifyUIBuilder/EndpointResolver.swift index f15320c5c6b..ba9422337f0 100644 --- a/Sources/Services/AWSAmplifyUIBuilder/EndpointResolver.swift +++ b/Sources/Services/AWSAmplifyUIBuilder/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSApiGatewayManagementApi/EndpointResolver.swift b/Sources/Services/AWSApiGatewayManagementApi/EndpointResolver.swift index ec8f3822b8e..f3a89dd7d0d 100644 --- a/Sources/Services/AWSApiGatewayManagementApi/EndpointResolver.swift +++ b/Sources/Services/AWSApiGatewayManagementApi/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSApiGatewayV2/EndpointResolver.swift b/Sources/Services/AWSApiGatewayV2/EndpointResolver.swift index bbc8130e3c3..5f95d2a3cca 100644 --- a/Sources/Services/AWSApiGatewayV2/EndpointResolver.swift +++ b/Sources/Services/AWSApiGatewayV2/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSAppConfig/EndpointResolver.swift b/Sources/Services/AWSAppConfig/EndpointResolver.swift index 3f9e2c737cb..5652e9f3d01 100644 --- a/Sources/Services/AWSAppConfig/EndpointResolver.swift +++ b/Sources/Services/AWSAppConfig/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSAppConfigData/EndpointResolver.swift b/Sources/Services/AWSAppConfigData/EndpointResolver.swift index 00482f041bc..733cd64b541 100644 --- a/Sources/Services/AWSAppConfigData/EndpointResolver.swift +++ b/Sources/Services/AWSAppConfigData/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSAppFabric/EndpointResolver.swift b/Sources/Services/AWSAppFabric/EndpointResolver.swift index 67bec2beb97..5ca4fde64d2 100644 --- a/Sources/Services/AWSAppFabric/EndpointResolver.swift +++ b/Sources/Services/AWSAppFabric/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSAppIntegrations/EndpointResolver.swift b/Sources/Services/AWSAppIntegrations/EndpointResolver.swift index 5938ae1c060..6739b2e891b 100644 --- a/Sources/Services/AWSAppIntegrations/EndpointResolver.swift +++ b/Sources/Services/AWSAppIntegrations/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSAppMesh/EndpointResolver.swift b/Sources/Services/AWSAppMesh/EndpointResolver.swift index 79b4fb3363c..554464aeb51 100644 --- a/Sources/Services/AWSAppMesh/EndpointResolver.swift +++ b/Sources/Services/AWSAppMesh/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSAppRunner/EndpointResolver.swift b/Sources/Services/AWSAppRunner/EndpointResolver.swift index f0e9957ddd4..b33a72b7807 100644 --- a/Sources/Services/AWSAppRunner/EndpointResolver.swift +++ b/Sources/Services/AWSAppRunner/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSAppStream/EndpointResolver.swift b/Sources/Services/AWSAppStream/EndpointResolver.swift index 9f91cfb0f2c..627fdabacea 100644 --- a/Sources/Services/AWSAppStream/EndpointResolver.swift +++ b/Sources/Services/AWSAppStream/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSAppSync/EndpointResolver.swift b/Sources/Services/AWSAppSync/EndpointResolver.swift index 31d143e8931..51865493935 100644 --- a/Sources/Services/AWSAppSync/EndpointResolver.swift +++ b/Sources/Services/AWSAppSync/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSAppflow/EndpointResolver.swift b/Sources/Services/AWSAppflow/EndpointResolver.swift index e992debf744..b8bee057b00 100644 --- a/Sources/Services/AWSAppflow/EndpointResolver.swift +++ b/Sources/Services/AWSAppflow/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSApplicationAutoScaling/EndpointResolver.swift b/Sources/Services/AWSApplicationAutoScaling/EndpointResolver.swift index 46c0f4d9266..41b4b83ded3 100644 --- a/Sources/Services/AWSApplicationAutoScaling/EndpointResolver.swift +++ b/Sources/Services/AWSApplicationAutoScaling/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSApplicationCostProfiler/EndpointResolver.swift b/Sources/Services/AWSApplicationCostProfiler/EndpointResolver.swift index 12d5bdbc88c..538ae7e45f5 100644 --- a/Sources/Services/AWSApplicationCostProfiler/EndpointResolver.swift +++ b/Sources/Services/AWSApplicationCostProfiler/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSApplicationDiscoveryService/EndpointResolver.swift b/Sources/Services/AWSApplicationDiscoveryService/EndpointResolver.swift index 78f28c18107..29d40b6084a 100644 --- a/Sources/Services/AWSApplicationDiscoveryService/EndpointResolver.swift +++ b/Sources/Services/AWSApplicationDiscoveryService/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSApplicationInsights/EndpointResolver.swift b/Sources/Services/AWSApplicationInsights/EndpointResolver.swift index c2cc27495c3..d4a14feecdf 100644 --- a/Sources/Services/AWSApplicationInsights/EndpointResolver.swift +++ b/Sources/Services/AWSApplicationInsights/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSArtifact/EndpointResolver.swift b/Sources/Services/AWSArtifact/EndpointResolver.swift index 82fdb2f700b..21bfcffd8ea 100644 --- a/Sources/Services/AWSArtifact/EndpointResolver.swift +++ b/Sources/Services/AWSArtifact/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSAthena/EndpointResolver.swift b/Sources/Services/AWSAthena/EndpointResolver.swift index 3ed49b836fb..9626e8ef879 100644 --- a/Sources/Services/AWSAthena/EndpointResolver.swift +++ b/Sources/Services/AWSAthena/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSAuditManager/EndpointResolver.swift b/Sources/Services/AWSAuditManager/EndpointResolver.swift index 100961ea1a5..a3b0da0d125 100644 --- a/Sources/Services/AWSAuditManager/EndpointResolver.swift +++ b/Sources/Services/AWSAuditManager/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSAutoScaling/EndpointResolver.swift b/Sources/Services/AWSAutoScaling/EndpointResolver.swift index 4dfd8e896f6..39994566e16 100644 --- a/Sources/Services/AWSAutoScaling/EndpointResolver.swift +++ b/Sources/Services/AWSAutoScaling/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSAutoScalingPlans/EndpointResolver.swift b/Sources/Services/AWSAutoScalingPlans/EndpointResolver.swift index dd99f79a436..e4e71f0f64b 100644 --- a/Sources/Services/AWSAutoScalingPlans/EndpointResolver.swift +++ b/Sources/Services/AWSAutoScalingPlans/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSB2bi/EndpointResolver.swift b/Sources/Services/AWSB2bi/EndpointResolver.swift index a3987a5bebf..c73b8be3b1f 100644 --- a/Sources/Services/AWSB2bi/EndpointResolver.swift +++ b/Sources/Services/AWSB2bi/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSBCMDataExports/EndpointResolver.swift b/Sources/Services/AWSBCMDataExports/EndpointResolver.swift index cfb7176fc9f..f67c6e92744 100644 --- a/Sources/Services/AWSBCMDataExports/EndpointResolver.swift +++ b/Sources/Services/AWSBCMDataExports/EndpointResolver.swift @@ -121,9 +121,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSBackup/EndpointResolver.swift b/Sources/Services/AWSBackup/EndpointResolver.swift index f6c00fac460..682668a7fb3 100644 --- a/Sources/Services/AWSBackup/EndpointResolver.swift +++ b/Sources/Services/AWSBackup/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSBackupGateway/EndpointResolver.swift b/Sources/Services/AWSBackupGateway/EndpointResolver.swift index 134ea38ee9b..febc48bd930 100644 --- a/Sources/Services/AWSBackupGateway/EndpointResolver.swift +++ b/Sources/Services/AWSBackupGateway/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSBackupStorage/EndpointResolver.swift b/Sources/Services/AWSBackupStorage/EndpointResolver.swift index d360ffda96c..a0c7e0d72a4 100644 --- a/Sources/Services/AWSBackupStorage/EndpointResolver.swift +++ b/Sources/Services/AWSBackupStorage/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSBatch/EndpointResolver.swift b/Sources/Services/AWSBatch/EndpointResolver.swift index 294ab42544a..5cb187b215f 100644 --- a/Sources/Services/AWSBatch/EndpointResolver.swift +++ b/Sources/Services/AWSBatch/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSBedrock/EndpointResolver.swift b/Sources/Services/AWSBedrock/EndpointResolver.swift index 37f7f52c785..864e9a8c501 100644 --- a/Sources/Services/AWSBedrock/EndpointResolver.swift +++ b/Sources/Services/AWSBedrock/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSBedrockAgent/EndpointResolver.swift b/Sources/Services/AWSBedrockAgent/EndpointResolver.swift index 66c5e8640e2..f4bae9483f4 100644 --- a/Sources/Services/AWSBedrockAgent/EndpointResolver.swift +++ b/Sources/Services/AWSBedrockAgent/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSBedrockAgentRuntime/EndpointResolver.swift b/Sources/Services/AWSBedrockAgentRuntime/EndpointResolver.swift index c36468dcdc8..0373f980bcd 100644 --- a/Sources/Services/AWSBedrockAgentRuntime/EndpointResolver.swift +++ b/Sources/Services/AWSBedrockAgentRuntime/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSBedrockRuntime/EndpointResolver.swift b/Sources/Services/AWSBedrockRuntime/EndpointResolver.swift index d67b1bdf634..a3a2111b9bc 100644 --- a/Sources/Services/AWSBedrockRuntime/EndpointResolver.swift +++ b/Sources/Services/AWSBedrockRuntime/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSBillingconductor/EndpointResolver.swift b/Sources/Services/AWSBillingconductor/EndpointResolver.swift index 6e9a068e17a..dc73cc5ded2 100644 --- a/Sources/Services/AWSBillingconductor/EndpointResolver.swift +++ b/Sources/Services/AWSBillingconductor/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSBraket/EndpointResolver.swift b/Sources/Services/AWSBraket/EndpointResolver.swift index b2901bf3733..c78878e5b45 100644 --- a/Sources/Services/AWSBraket/EndpointResolver.swift +++ b/Sources/Services/AWSBraket/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSBudgets/EndpointResolver.swift b/Sources/Services/AWSBudgets/EndpointResolver.swift index cee1ee35861..f919b3a6a1f 100644 --- a/Sources/Services/AWSBudgets/EndpointResolver.swift +++ b/Sources/Services/AWSBudgets/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSChatbot/EndpointResolver.swift b/Sources/Services/AWSChatbot/EndpointResolver.swift index 1c57b8f3593..f9fd25d1432 100644 --- a/Sources/Services/AWSChatbot/EndpointResolver.swift +++ b/Sources/Services/AWSChatbot/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSChime/EndpointResolver.swift b/Sources/Services/AWSChime/EndpointResolver.swift index 377567abd44..3f861ae0d3f 100644 --- a/Sources/Services/AWSChime/EndpointResolver.swift +++ b/Sources/Services/AWSChime/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSChimeSDKIdentity/EndpointResolver.swift b/Sources/Services/AWSChimeSDKIdentity/EndpointResolver.swift index 8647316d027..85cdac5c427 100644 --- a/Sources/Services/AWSChimeSDKIdentity/EndpointResolver.swift +++ b/Sources/Services/AWSChimeSDKIdentity/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSChimeSDKMediaPipelines/EndpointResolver.swift b/Sources/Services/AWSChimeSDKMediaPipelines/EndpointResolver.swift index e33d39fc3d7..0598d3bbe45 100644 --- a/Sources/Services/AWSChimeSDKMediaPipelines/EndpointResolver.swift +++ b/Sources/Services/AWSChimeSDKMediaPipelines/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSChimeSDKMeetings/EndpointResolver.swift b/Sources/Services/AWSChimeSDKMeetings/EndpointResolver.swift index 6d35adc3a39..50dc11d2cdd 100644 --- a/Sources/Services/AWSChimeSDKMeetings/EndpointResolver.swift +++ b/Sources/Services/AWSChimeSDKMeetings/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSChimeSDKMessaging/EndpointResolver.swift b/Sources/Services/AWSChimeSDKMessaging/EndpointResolver.swift index 508db098a33..76d3b57fb6a 100644 --- a/Sources/Services/AWSChimeSDKMessaging/EndpointResolver.swift +++ b/Sources/Services/AWSChimeSDKMessaging/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSChimeSDKVoice/EndpointResolver.swift b/Sources/Services/AWSChimeSDKVoice/EndpointResolver.swift index 83021582398..3c80a972c71 100644 --- a/Sources/Services/AWSChimeSDKVoice/EndpointResolver.swift +++ b/Sources/Services/AWSChimeSDKVoice/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCleanRooms/EndpointResolver.swift b/Sources/Services/AWSCleanRooms/EndpointResolver.swift index a21c0f27a73..aa20df64a82 100644 --- a/Sources/Services/AWSCleanRooms/EndpointResolver.swift +++ b/Sources/Services/AWSCleanRooms/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCleanRoomsML/EndpointResolver.swift b/Sources/Services/AWSCleanRoomsML/EndpointResolver.swift index 3db61b5766c..f7c49ff93ee 100644 --- a/Sources/Services/AWSCleanRoomsML/EndpointResolver.swift +++ b/Sources/Services/AWSCleanRoomsML/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCloud9/EndpointResolver.swift b/Sources/Services/AWSCloud9/EndpointResolver.swift index 25f9274167f..36e7a3fd605 100644 --- a/Sources/Services/AWSCloud9/EndpointResolver.swift +++ b/Sources/Services/AWSCloud9/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCloudControl/EndpointResolver.swift b/Sources/Services/AWSCloudControl/EndpointResolver.swift index 518fda73bc6..592635bac2a 100644 --- a/Sources/Services/AWSCloudControl/EndpointResolver.swift +++ b/Sources/Services/AWSCloudControl/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCloudDirectory/EndpointResolver.swift b/Sources/Services/AWSCloudDirectory/EndpointResolver.swift index a12cb671e1c..2886b2a066e 100644 --- a/Sources/Services/AWSCloudDirectory/EndpointResolver.swift +++ b/Sources/Services/AWSCloudDirectory/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCloudFormation/EndpointResolver.swift b/Sources/Services/AWSCloudFormation/EndpointResolver.swift index 84329790cfd..bfa875be7ae 100644 --- a/Sources/Services/AWSCloudFormation/EndpointResolver.swift +++ b/Sources/Services/AWSCloudFormation/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCloudFront/EndpointResolver.swift b/Sources/Services/AWSCloudFront/EndpointResolver.swift index add3c9202d0..4dce961604d 100644 --- a/Sources/Services/AWSCloudFront/EndpointResolver.swift +++ b/Sources/Services/AWSCloudFront/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCloudFrontKeyValueStore/EndpointResolver.swift b/Sources/Services/AWSCloudFrontKeyValueStore/EndpointResolver.swift index 6fe52d08709..6cef7dd8aa8 100644 --- a/Sources/Services/AWSCloudFrontKeyValueStore/EndpointResolver.swift +++ b/Sources/Services/AWSCloudFrontKeyValueStore/EndpointResolver.swift @@ -132,9 +132,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCloudHSM/EndpointResolver.swift b/Sources/Services/AWSCloudHSM/EndpointResolver.swift index cf4e9ba347f..7e4411bd4c3 100644 --- a/Sources/Services/AWSCloudHSM/EndpointResolver.swift +++ b/Sources/Services/AWSCloudHSM/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCloudHSMV2/EndpointResolver.swift b/Sources/Services/AWSCloudHSMV2/EndpointResolver.swift index e345a86cd40..17810831958 100644 --- a/Sources/Services/AWSCloudHSMV2/EndpointResolver.swift +++ b/Sources/Services/AWSCloudHSMV2/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCloudSearch/EndpointResolver.swift b/Sources/Services/AWSCloudSearch/EndpointResolver.swift index 0bcd5991c45..cfbb4cf86e6 100644 --- a/Sources/Services/AWSCloudSearch/EndpointResolver.swift +++ b/Sources/Services/AWSCloudSearch/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCloudSearchDomain/EndpointResolver.swift b/Sources/Services/AWSCloudSearchDomain/EndpointResolver.swift index fdc0ae29c49..e6e0fc7bc75 100644 --- a/Sources/Services/AWSCloudSearchDomain/EndpointResolver.swift +++ b/Sources/Services/AWSCloudSearchDomain/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCloudTrail/EndpointResolver.swift b/Sources/Services/AWSCloudTrail/EndpointResolver.swift index e21205a08aa..8a38bdbd2d4 100644 --- a/Sources/Services/AWSCloudTrail/EndpointResolver.swift +++ b/Sources/Services/AWSCloudTrail/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCloudTrailData/EndpointResolver.swift b/Sources/Services/AWSCloudTrailData/EndpointResolver.swift index 8e520d311b7..3bb522eeba9 100644 --- a/Sources/Services/AWSCloudTrailData/EndpointResolver.swift +++ b/Sources/Services/AWSCloudTrailData/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCloudWatch/EndpointResolver.swift b/Sources/Services/AWSCloudWatch/EndpointResolver.swift index 788bb66989f..d9ca9a765b1 100644 --- a/Sources/Services/AWSCloudWatch/EndpointResolver.swift +++ b/Sources/Services/AWSCloudWatch/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCloudWatchEvents/EndpointResolver.swift b/Sources/Services/AWSCloudWatchEvents/EndpointResolver.swift index 4b01598c110..c2dd93012ae 100644 --- a/Sources/Services/AWSCloudWatchEvents/EndpointResolver.swift +++ b/Sources/Services/AWSCloudWatchEvents/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCloudWatchLogs/EndpointResolver.swift b/Sources/Services/AWSCloudWatchLogs/EndpointResolver.swift index 9573b3eaa13..cc36d31e037 100644 --- a/Sources/Services/AWSCloudWatchLogs/EndpointResolver.swift +++ b/Sources/Services/AWSCloudWatchLogs/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCodeBuild/EndpointResolver.swift b/Sources/Services/AWSCodeBuild/EndpointResolver.swift index eee579b815e..677a26d4f59 100644 --- a/Sources/Services/AWSCodeBuild/EndpointResolver.swift +++ b/Sources/Services/AWSCodeBuild/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCodeCatalyst/EndpointResolver.swift b/Sources/Services/AWSCodeCatalyst/EndpointResolver.swift index 2c3494bbec0..d303aad13d8 100644 --- a/Sources/Services/AWSCodeCatalyst/EndpointResolver.swift +++ b/Sources/Services/AWSCodeCatalyst/EndpointResolver.swift @@ -121,9 +121,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCodeCommit/EndpointResolver.swift b/Sources/Services/AWSCodeCommit/EndpointResolver.swift index 247bf4ffbc9..8d390227695 100644 --- a/Sources/Services/AWSCodeCommit/EndpointResolver.swift +++ b/Sources/Services/AWSCodeCommit/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCodeDeploy/EndpointResolver.swift b/Sources/Services/AWSCodeDeploy/EndpointResolver.swift index d15f58b8a7e..7433e3a9705 100644 --- a/Sources/Services/AWSCodeDeploy/EndpointResolver.swift +++ b/Sources/Services/AWSCodeDeploy/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCodeGuruProfiler/EndpointResolver.swift b/Sources/Services/AWSCodeGuruProfiler/EndpointResolver.swift index 2d83b8183ac..bab5d6a6ce1 100644 --- a/Sources/Services/AWSCodeGuruProfiler/EndpointResolver.swift +++ b/Sources/Services/AWSCodeGuruProfiler/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCodeGuruReviewer/EndpointResolver.swift b/Sources/Services/AWSCodeGuruReviewer/EndpointResolver.swift index 5fa49efa8c6..210b16078b7 100644 --- a/Sources/Services/AWSCodeGuruReviewer/EndpointResolver.swift +++ b/Sources/Services/AWSCodeGuruReviewer/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCodeGuruSecurity/EndpointResolver.swift b/Sources/Services/AWSCodeGuruSecurity/EndpointResolver.swift index 695f888d51a..03c07fabb84 100644 --- a/Sources/Services/AWSCodeGuruSecurity/EndpointResolver.swift +++ b/Sources/Services/AWSCodeGuruSecurity/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCodePipeline/EndpointResolver.swift b/Sources/Services/AWSCodePipeline/EndpointResolver.swift index e5bbf32cc4e..f2ffa758a79 100644 --- a/Sources/Services/AWSCodePipeline/EndpointResolver.swift +++ b/Sources/Services/AWSCodePipeline/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCodeStar/EndpointResolver.swift b/Sources/Services/AWSCodeStar/EndpointResolver.swift index f13ff4b6717..467764d7c55 100644 --- a/Sources/Services/AWSCodeStar/EndpointResolver.swift +++ b/Sources/Services/AWSCodeStar/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCodeStarconnections/EndpointResolver.swift b/Sources/Services/AWSCodeStarconnections/EndpointResolver.swift index d51dc1bd63c..39e36934004 100644 --- a/Sources/Services/AWSCodeStarconnections/EndpointResolver.swift +++ b/Sources/Services/AWSCodeStarconnections/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCodeartifact/EndpointResolver.swift b/Sources/Services/AWSCodeartifact/EndpointResolver.swift index a84618e3b4a..861985e896d 100644 --- a/Sources/Services/AWSCodeartifact/EndpointResolver.swift +++ b/Sources/Services/AWSCodeartifact/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCodestarnotifications/EndpointResolver.swift b/Sources/Services/AWSCodestarnotifications/EndpointResolver.swift index 2291a4d141f..5aa2d018231 100644 --- a/Sources/Services/AWSCodestarnotifications/EndpointResolver.swift +++ b/Sources/Services/AWSCodestarnotifications/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCognitoIdentity/EndpointResolver.swift b/Sources/Services/AWSCognitoIdentity/EndpointResolver.swift index 4cc420f704c..4af3d2855ba 100644 --- a/Sources/Services/AWSCognitoIdentity/EndpointResolver.swift +++ b/Sources/Services/AWSCognitoIdentity/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCognitoIdentityProvider/EndpointResolver.swift b/Sources/Services/AWSCognitoIdentityProvider/EndpointResolver.swift index de2f1048799..a7c962a134d 100644 --- a/Sources/Services/AWSCognitoIdentityProvider/EndpointResolver.swift +++ b/Sources/Services/AWSCognitoIdentityProvider/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCognitoSync/EndpointResolver.swift b/Sources/Services/AWSCognitoSync/EndpointResolver.swift index 9ae0f3870e5..d8c7f5b43bb 100644 --- a/Sources/Services/AWSCognitoSync/EndpointResolver.swift +++ b/Sources/Services/AWSCognitoSync/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSComprehend/EndpointResolver.swift b/Sources/Services/AWSComprehend/EndpointResolver.swift index 84b09399208..9be179972a3 100644 --- a/Sources/Services/AWSComprehend/EndpointResolver.swift +++ b/Sources/Services/AWSComprehend/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSComprehendMedical/EndpointResolver.swift b/Sources/Services/AWSComprehendMedical/EndpointResolver.swift index e26f6af1842..13bccf70650 100644 --- a/Sources/Services/AWSComprehendMedical/EndpointResolver.swift +++ b/Sources/Services/AWSComprehendMedical/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSComputeOptimizer/EndpointResolver.swift b/Sources/Services/AWSComputeOptimizer/EndpointResolver.swift index 3fac0590bbf..7a783cfcf31 100644 --- a/Sources/Services/AWSComputeOptimizer/EndpointResolver.swift +++ b/Sources/Services/AWSComputeOptimizer/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSConfigService/EndpointResolver.swift b/Sources/Services/AWSConfigService/EndpointResolver.swift index 961f590819c..d0a0240795e 100644 --- a/Sources/Services/AWSConfigService/EndpointResolver.swift +++ b/Sources/Services/AWSConfigService/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSConnect/EndpointResolver.swift b/Sources/Services/AWSConnect/EndpointResolver.swift index 5a64b63ad7e..cbcedb2c591 100644 --- a/Sources/Services/AWSConnect/EndpointResolver.swift +++ b/Sources/Services/AWSConnect/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSConnectCampaigns/EndpointResolver.swift b/Sources/Services/AWSConnectCampaigns/EndpointResolver.swift index 2319ec90f67..1a968dda446 100644 --- a/Sources/Services/AWSConnectCampaigns/EndpointResolver.swift +++ b/Sources/Services/AWSConnectCampaigns/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSConnectCases/EndpointResolver.swift b/Sources/Services/AWSConnectCases/EndpointResolver.swift index d28b4577287..fa43ab0b10a 100644 --- a/Sources/Services/AWSConnectCases/EndpointResolver.swift +++ b/Sources/Services/AWSConnectCases/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSConnectContactLens/EndpointResolver.swift b/Sources/Services/AWSConnectContactLens/EndpointResolver.swift index 4102eef9858..b7e385ab53b 100644 --- a/Sources/Services/AWSConnectContactLens/EndpointResolver.swift +++ b/Sources/Services/AWSConnectContactLens/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSConnectParticipant/EndpointResolver.swift b/Sources/Services/AWSConnectParticipant/EndpointResolver.swift index 63b1e7e885f..db69158f91b 100644 --- a/Sources/Services/AWSConnectParticipant/EndpointResolver.swift +++ b/Sources/Services/AWSConnectParticipant/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSControlTower/EndpointResolver.swift b/Sources/Services/AWSControlTower/EndpointResolver.swift index af1e16b302d..c0297156169 100644 --- a/Sources/Services/AWSControlTower/EndpointResolver.swift +++ b/Sources/Services/AWSControlTower/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCostExplorer/EndpointResolver.swift b/Sources/Services/AWSCostExplorer/EndpointResolver.swift index c33bfbb8b08..fa70cb8f597 100644 --- a/Sources/Services/AWSCostExplorer/EndpointResolver.swift +++ b/Sources/Services/AWSCostExplorer/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCostOptimizationHub/EndpointResolver.swift b/Sources/Services/AWSCostOptimizationHub/EndpointResolver.swift index f48dc15078f..f458ddc34b1 100644 --- a/Sources/Services/AWSCostOptimizationHub/EndpointResolver.swift +++ b/Sources/Services/AWSCostOptimizationHub/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCostandUsageReportService/EndpointResolver.swift b/Sources/Services/AWSCostandUsageReportService/EndpointResolver.swift index 8a6459b6504..c2e296b2fca 100644 --- a/Sources/Services/AWSCostandUsageReportService/EndpointResolver.swift +++ b/Sources/Services/AWSCostandUsageReportService/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSCustomerProfiles/EndpointResolver.swift b/Sources/Services/AWSCustomerProfiles/EndpointResolver.swift index 75766d0864c..29d26333480 100644 --- a/Sources/Services/AWSCustomerProfiles/EndpointResolver.swift +++ b/Sources/Services/AWSCustomerProfiles/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSDAX/EndpointResolver.swift b/Sources/Services/AWSDAX/EndpointResolver.swift index 30aed36e0a1..3aea8a1d174 100644 --- a/Sources/Services/AWSDAX/EndpointResolver.swift +++ b/Sources/Services/AWSDAX/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSDLM/EndpointResolver.swift b/Sources/Services/AWSDLM/EndpointResolver.swift index 0dd32938d11..f222ff06335 100644 --- a/Sources/Services/AWSDLM/EndpointResolver.swift +++ b/Sources/Services/AWSDLM/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSDataBrew/EndpointResolver.swift b/Sources/Services/AWSDataBrew/EndpointResolver.swift index a7f7759944d..018e367049c 100644 --- a/Sources/Services/AWSDataBrew/EndpointResolver.swift +++ b/Sources/Services/AWSDataBrew/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSDataExchange/EndpointResolver.swift b/Sources/Services/AWSDataExchange/EndpointResolver.swift index f70dd086ed0..1d429bf59d1 100644 --- a/Sources/Services/AWSDataExchange/EndpointResolver.swift +++ b/Sources/Services/AWSDataExchange/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSDataPipeline/EndpointResolver.swift b/Sources/Services/AWSDataPipeline/EndpointResolver.swift index b673cd6323d..09b5f497084 100644 --- a/Sources/Services/AWSDataPipeline/EndpointResolver.swift +++ b/Sources/Services/AWSDataPipeline/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSDataSync/EndpointResolver.swift b/Sources/Services/AWSDataSync/EndpointResolver.swift index 673a1080fa8..781d86838c4 100644 --- a/Sources/Services/AWSDataSync/EndpointResolver.swift +++ b/Sources/Services/AWSDataSync/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSDataZone/EndpointResolver.swift b/Sources/Services/AWSDataZone/EndpointResolver.swift index ae66215e200..a03ded8eefd 100644 --- a/Sources/Services/AWSDataZone/EndpointResolver.swift +++ b/Sources/Services/AWSDataZone/EndpointResolver.swift @@ -121,9 +121,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSDatabaseMigrationService/EndpointResolver.swift b/Sources/Services/AWSDatabaseMigrationService/EndpointResolver.swift index 981c25d11a8..65ffaa4accd 100644 --- a/Sources/Services/AWSDatabaseMigrationService/EndpointResolver.swift +++ b/Sources/Services/AWSDatabaseMigrationService/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSDetective/EndpointResolver.swift b/Sources/Services/AWSDetective/EndpointResolver.swift index 7cf0d29b6e6..9737d2b9e56 100644 --- a/Sources/Services/AWSDetective/EndpointResolver.swift +++ b/Sources/Services/AWSDetective/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSDevOpsGuru/EndpointResolver.swift b/Sources/Services/AWSDevOpsGuru/EndpointResolver.swift index 97188328eb2..a8e7b14c972 100644 --- a/Sources/Services/AWSDevOpsGuru/EndpointResolver.swift +++ b/Sources/Services/AWSDevOpsGuru/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSDeviceFarm/EndpointResolver.swift b/Sources/Services/AWSDeviceFarm/EndpointResolver.swift index e2110ef59c1..a6bc134b352 100644 --- a/Sources/Services/AWSDeviceFarm/EndpointResolver.swift +++ b/Sources/Services/AWSDeviceFarm/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSDirectConnect/EndpointResolver.swift b/Sources/Services/AWSDirectConnect/EndpointResolver.swift index 37e48ef691d..9f7a0021c93 100644 --- a/Sources/Services/AWSDirectConnect/EndpointResolver.swift +++ b/Sources/Services/AWSDirectConnect/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSDirectoryService/EndpointResolver.swift b/Sources/Services/AWSDirectoryService/EndpointResolver.swift index e9040149f83..0bcba7b5c8e 100644 --- a/Sources/Services/AWSDirectoryService/EndpointResolver.swift +++ b/Sources/Services/AWSDirectoryService/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSDocDB/EndpointResolver.swift b/Sources/Services/AWSDocDB/EndpointResolver.swift index 48c642ee588..dcc67c30571 100644 --- a/Sources/Services/AWSDocDB/EndpointResolver.swift +++ b/Sources/Services/AWSDocDB/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSDocDBElastic/EndpointResolver.swift b/Sources/Services/AWSDocDBElastic/EndpointResolver.swift index 05e65ffe1aa..149bb449a92 100644 --- a/Sources/Services/AWSDocDBElastic/EndpointResolver.swift +++ b/Sources/Services/AWSDocDBElastic/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSDrs/EndpointResolver.swift b/Sources/Services/AWSDrs/EndpointResolver.swift index 63c20f1f487..4108a7523dd 100644 --- a/Sources/Services/AWSDrs/EndpointResolver.swift +++ b/Sources/Services/AWSDrs/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSDynamoDB/EndpointResolver.swift b/Sources/Services/AWSDynamoDB/EndpointResolver.swift index 8d4984a557c..b4437297531 100644 --- a/Sources/Services/AWSDynamoDB/EndpointResolver.swift +++ b/Sources/Services/AWSDynamoDB/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSDynamoDBStreams/EndpointResolver.swift b/Sources/Services/AWSDynamoDBStreams/EndpointResolver.swift index a133fee984d..02b562f2246 100644 --- a/Sources/Services/AWSDynamoDBStreams/EndpointResolver.swift +++ b/Sources/Services/AWSDynamoDBStreams/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSEBS/EndpointResolver.swift b/Sources/Services/AWSEBS/EndpointResolver.swift index 5947c4dd848..139206e9460 100644 --- a/Sources/Services/AWSEBS/EndpointResolver.swift +++ b/Sources/Services/AWSEBS/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSEC2/EndpointResolver.swift b/Sources/Services/AWSEC2/EndpointResolver.swift index eb2b7156615..32f55cfa274 100644 --- a/Sources/Services/AWSEC2/EndpointResolver.swift +++ b/Sources/Services/AWSEC2/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSEC2InstanceConnect/EndpointResolver.swift b/Sources/Services/AWSEC2InstanceConnect/EndpointResolver.swift index 2ce37eeab67..6680c974a2f 100644 --- a/Sources/Services/AWSEC2InstanceConnect/EndpointResolver.swift +++ b/Sources/Services/AWSEC2InstanceConnect/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSECR/EndpointResolver.swift b/Sources/Services/AWSECR/EndpointResolver.swift index 1bf0ee6cb9b..79bef526e72 100644 --- a/Sources/Services/AWSECR/EndpointResolver.swift +++ b/Sources/Services/AWSECR/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSECRPUBLIC/EndpointResolver.swift b/Sources/Services/AWSECRPUBLIC/EndpointResolver.swift index c094c73f73c..4e556384524 100644 --- a/Sources/Services/AWSECRPUBLIC/EndpointResolver.swift +++ b/Sources/Services/AWSECRPUBLIC/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSECS/EndpointResolver.swift b/Sources/Services/AWSECS/EndpointResolver.swift index 1ef6b5e807f..854b8c254df 100644 --- a/Sources/Services/AWSECS/EndpointResolver.swift +++ b/Sources/Services/AWSECS/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSEFS/EndpointResolver.swift b/Sources/Services/AWSEFS/EndpointResolver.swift index b44465ed38d..4cadae05547 100644 --- a/Sources/Services/AWSEFS/EndpointResolver.swift +++ b/Sources/Services/AWSEFS/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSEKS/EndpointResolver.swift b/Sources/Services/AWSEKS/EndpointResolver.swift index effbde4b6f3..7424896447a 100644 --- a/Sources/Services/AWSEKS/EndpointResolver.swift +++ b/Sources/Services/AWSEKS/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSEKSAuth/EndpointResolver.swift b/Sources/Services/AWSEKSAuth/EndpointResolver.swift index 7c1b9a52f6b..622b603eaa3 100644 --- a/Sources/Services/AWSEKSAuth/EndpointResolver.swift +++ b/Sources/Services/AWSEKSAuth/EndpointResolver.swift @@ -121,9 +121,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSEMR/EndpointResolver.swift b/Sources/Services/AWSEMR/EndpointResolver.swift index 846df1d10e5..7a2c7dd33e8 100644 --- a/Sources/Services/AWSEMR/EndpointResolver.swift +++ b/Sources/Services/AWSEMR/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSEMRServerless/EndpointResolver.swift b/Sources/Services/AWSEMRServerless/EndpointResolver.swift index f5a457580a2..daeff10afd4 100644 --- a/Sources/Services/AWSEMRServerless/EndpointResolver.swift +++ b/Sources/Services/AWSEMRServerless/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSEMRcontainers/EndpointResolver.swift b/Sources/Services/AWSEMRcontainers/EndpointResolver.swift index a2ff1940037..c6f939b383e 100644 --- a/Sources/Services/AWSEMRcontainers/EndpointResolver.swift +++ b/Sources/Services/AWSEMRcontainers/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSElastiCache/EndpointResolver.swift b/Sources/Services/AWSElastiCache/EndpointResolver.swift index fe562b4db0d..0a1c96d4a55 100644 --- a/Sources/Services/AWSElastiCache/EndpointResolver.swift +++ b/Sources/Services/AWSElastiCache/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSElasticBeanstalk/EndpointResolver.swift b/Sources/Services/AWSElasticBeanstalk/EndpointResolver.swift index 41d9f133f20..6b522642601 100644 --- a/Sources/Services/AWSElasticBeanstalk/EndpointResolver.swift +++ b/Sources/Services/AWSElasticBeanstalk/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSElasticInference/EndpointResolver.swift b/Sources/Services/AWSElasticInference/EndpointResolver.swift index 38ec50564de..249af1c3fc5 100644 --- a/Sources/Services/AWSElasticInference/EndpointResolver.swift +++ b/Sources/Services/AWSElasticInference/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSElasticLoadBalancing/EndpointResolver.swift b/Sources/Services/AWSElasticLoadBalancing/EndpointResolver.swift index d127119651e..d24dbbdc542 100644 --- a/Sources/Services/AWSElasticLoadBalancing/EndpointResolver.swift +++ b/Sources/Services/AWSElasticLoadBalancing/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSElasticLoadBalancingv2/EndpointResolver.swift b/Sources/Services/AWSElasticLoadBalancingv2/EndpointResolver.swift index d127119651e..d24dbbdc542 100644 --- a/Sources/Services/AWSElasticLoadBalancingv2/EndpointResolver.swift +++ b/Sources/Services/AWSElasticLoadBalancingv2/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSElasticTranscoder/EndpointResolver.swift b/Sources/Services/AWSElasticTranscoder/EndpointResolver.swift index 0a8578860ec..408fa5f8970 100644 --- a/Sources/Services/AWSElasticTranscoder/EndpointResolver.swift +++ b/Sources/Services/AWSElasticTranscoder/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSElasticsearchService/EndpointResolver.swift b/Sources/Services/AWSElasticsearchService/EndpointResolver.swift index 2154fce8312..b5fcc093115 100644 --- a/Sources/Services/AWSElasticsearchService/EndpointResolver.swift +++ b/Sources/Services/AWSElasticsearchService/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSEntityResolution/EndpointResolver.swift b/Sources/Services/AWSEntityResolution/EndpointResolver.swift index 670c37ec9a9..c3730cc90d1 100644 --- a/Sources/Services/AWSEntityResolution/EndpointResolver.swift +++ b/Sources/Services/AWSEntityResolution/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSEventBridge/EndpointResolver.swift b/Sources/Services/AWSEventBridge/EndpointResolver.swift index 4aab906a4d0..5b130382520 100644 --- a/Sources/Services/AWSEventBridge/EndpointResolver.swift +++ b/Sources/Services/AWSEventBridge/EndpointResolver.swift @@ -138,9 +138,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSEvidently/EndpointResolver.swift b/Sources/Services/AWSEvidently/EndpointResolver.swift index 09c73366e07..a327a5f054a 100644 --- a/Sources/Services/AWSEvidently/EndpointResolver.swift +++ b/Sources/Services/AWSEvidently/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSFMS/EndpointResolver.swift b/Sources/Services/AWSFMS/EndpointResolver.swift index 89ebb785992..e8b686f1001 100644 --- a/Sources/Services/AWSFMS/EndpointResolver.swift +++ b/Sources/Services/AWSFMS/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSFSx/EndpointResolver.swift b/Sources/Services/AWSFSx/EndpointResolver.swift index dd94de823cb..28c561e7988 100644 --- a/Sources/Services/AWSFSx/EndpointResolver.swift +++ b/Sources/Services/AWSFSx/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSFinspace/EndpointResolver.swift b/Sources/Services/AWSFinspace/EndpointResolver.swift index c5d2778e2c9..a05183aa47a 100644 --- a/Sources/Services/AWSFinspace/EndpointResolver.swift +++ b/Sources/Services/AWSFinspace/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSFinspacedata/EndpointResolver.swift b/Sources/Services/AWSFinspacedata/EndpointResolver.swift index 4b4ef5dce85..7e96ccbfade 100644 --- a/Sources/Services/AWSFinspacedata/EndpointResolver.swift +++ b/Sources/Services/AWSFinspacedata/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSFirehose/EndpointResolver.swift b/Sources/Services/AWSFirehose/EndpointResolver.swift index fa528dbd6c0..ffb59f8a959 100644 --- a/Sources/Services/AWSFirehose/EndpointResolver.swift +++ b/Sources/Services/AWSFirehose/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSFis/EndpointResolver.swift b/Sources/Services/AWSFis/EndpointResolver.swift index 4afecd5a717..6650ab1b604 100644 --- a/Sources/Services/AWSFis/EndpointResolver.swift +++ b/Sources/Services/AWSFis/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSForecast/EndpointResolver.swift b/Sources/Services/AWSForecast/EndpointResolver.swift index a29ab858a17..43ee8f45d83 100644 --- a/Sources/Services/AWSForecast/EndpointResolver.swift +++ b/Sources/Services/AWSForecast/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSForecastquery/EndpointResolver.swift b/Sources/Services/AWSForecastquery/EndpointResolver.swift index 4c3e9c5dc43..f9df7add64d 100644 --- a/Sources/Services/AWSForecastquery/EndpointResolver.swift +++ b/Sources/Services/AWSForecastquery/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSFraudDetector/EndpointResolver.swift b/Sources/Services/AWSFraudDetector/EndpointResolver.swift index 7e768e8cba8..fff7c37ca7d 100644 --- a/Sources/Services/AWSFraudDetector/EndpointResolver.swift +++ b/Sources/Services/AWSFraudDetector/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSFreeTier/EndpointResolver.swift b/Sources/Services/AWSFreeTier/EndpointResolver.swift index 3e1bca99938..7a370233b1a 100644 --- a/Sources/Services/AWSFreeTier/EndpointResolver.swift +++ b/Sources/Services/AWSFreeTier/EndpointResolver.swift @@ -121,9 +121,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSGameLift/EndpointResolver.swift b/Sources/Services/AWSGameLift/EndpointResolver.swift index 3cae39ff855..b6a7204f857 100644 --- a/Sources/Services/AWSGameLift/EndpointResolver.swift +++ b/Sources/Services/AWSGameLift/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSGlacier/EndpointResolver.swift b/Sources/Services/AWSGlacier/EndpointResolver.swift index c76e88830e7..1a8193006d6 100644 --- a/Sources/Services/AWSGlacier/EndpointResolver.swift +++ b/Sources/Services/AWSGlacier/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSGlobalAccelerator/EndpointResolver.swift b/Sources/Services/AWSGlobalAccelerator/EndpointResolver.swift index 3723a6db6e2..6439507f774 100644 --- a/Sources/Services/AWSGlobalAccelerator/EndpointResolver.swift +++ b/Sources/Services/AWSGlobalAccelerator/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSGlue/EndpointResolver.swift b/Sources/Services/AWSGlue/EndpointResolver.swift index 38f729378e2..9138360c7a7 100644 --- a/Sources/Services/AWSGlue/EndpointResolver.swift +++ b/Sources/Services/AWSGlue/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSGrafana/EndpointResolver.swift b/Sources/Services/AWSGrafana/EndpointResolver.swift index b7dd9858fda..2344984c403 100644 --- a/Sources/Services/AWSGrafana/EndpointResolver.swift +++ b/Sources/Services/AWSGrafana/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSGreengrass/EndpointResolver.swift b/Sources/Services/AWSGreengrass/EndpointResolver.swift index 1a226fd57c9..846b45af709 100644 --- a/Sources/Services/AWSGreengrass/EndpointResolver.swift +++ b/Sources/Services/AWSGreengrass/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSGreengrassV2/EndpointResolver.swift b/Sources/Services/AWSGreengrassV2/EndpointResolver.swift index 1a226fd57c9..846b45af709 100644 --- a/Sources/Services/AWSGreengrassV2/EndpointResolver.swift +++ b/Sources/Services/AWSGreengrassV2/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSGroundStation/EndpointResolver.swift b/Sources/Services/AWSGroundStation/EndpointResolver.swift index eb17c50cead..9b1d6a3cc90 100644 --- a/Sources/Services/AWSGroundStation/EndpointResolver.swift +++ b/Sources/Services/AWSGroundStation/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSGuardDuty/EndpointResolver.swift b/Sources/Services/AWSGuardDuty/EndpointResolver.swift index ef384e9e392..9ee691b9566 100644 --- a/Sources/Services/AWSGuardDuty/EndpointResolver.swift +++ b/Sources/Services/AWSGuardDuty/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSHealth/EndpointResolver.swift b/Sources/Services/AWSHealth/EndpointResolver.swift index fb33821bc67..e0e5719e7fe 100644 --- a/Sources/Services/AWSHealth/EndpointResolver.swift +++ b/Sources/Services/AWSHealth/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSHealthLake/EndpointResolver.swift b/Sources/Services/AWSHealthLake/EndpointResolver.swift index a97ad1fc2f1..a620a2c9aa8 100644 --- a/Sources/Services/AWSHealthLake/EndpointResolver.swift +++ b/Sources/Services/AWSHealthLake/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSHoneycode/EndpointResolver.swift b/Sources/Services/AWSHoneycode/EndpointResolver.swift index b4ad987783a..6ecfc8e9ad6 100644 --- a/Sources/Services/AWSHoneycode/EndpointResolver.swift +++ b/Sources/Services/AWSHoneycode/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSIAM/EndpointResolver.swift b/Sources/Services/AWSIAM/EndpointResolver.swift index f1fcda25d24..2e7bcf0d878 100644 --- a/Sources/Services/AWSIAM/EndpointResolver.swift +++ b/Sources/Services/AWSIAM/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSIVSRealTime/EndpointResolver.swift b/Sources/Services/AWSIVSRealTime/EndpointResolver.swift index d7e1d35899b..ac676423449 100644 --- a/Sources/Services/AWSIVSRealTime/EndpointResolver.swift +++ b/Sources/Services/AWSIVSRealTime/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSIdentitystore/EndpointResolver.swift b/Sources/Services/AWSIdentitystore/EndpointResolver.swift index 148f7b3af3a..a9f9adb950d 100644 --- a/Sources/Services/AWSIdentitystore/EndpointResolver.swift +++ b/Sources/Services/AWSIdentitystore/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSImagebuilder/EndpointResolver.swift b/Sources/Services/AWSImagebuilder/EndpointResolver.swift index 2e8acd4278c..2af25482bc4 100644 --- a/Sources/Services/AWSImagebuilder/EndpointResolver.swift +++ b/Sources/Services/AWSImagebuilder/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSInspector/EndpointResolver.swift b/Sources/Services/AWSInspector/EndpointResolver.swift index 4f8511447a4..8ca4fa3b68f 100644 --- a/Sources/Services/AWSInspector/EndpointResolver.swift +++ b/Sources/Services/AWSInspector/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSInspector2/EndpointResolver.swift b/Sources/Services/AWSInspector2/EndpointResolver.swift index ccd79f11854..d96125c0f81 100644 --- a/Sources/Services/AWSInspector2/EndpointResolver.swift +++ b/Sources/Services/AWSInspector2/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSInspectorScan/EndpointResolver.swift b/Sources/Services/AWSInspectorScan/EndpointResolver.swift index 560c9f2218f..7cfa635409d 100644 --- a/Sources/Services/AWSInspectorScan/EndpointResolver.swift +++ b/Sources/Services/AWSInspectorScan/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSInternetMonitor/EndpointResolver.swift b/Sources/Services/AWSInternetMonitor/EndpointResolver.swift index 915a08561c6..6d82d89c11e 100644 --- a/Sources/Services/AWSInternetMonitor/EndpointResolver.swift +++ b/Sources/Services/AWSInternetMonitor/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSIoT/EndpointResolver.swift b/Sources/Services/AWSIoT/EndpointResolver.swift index 8247e3054f3..fe95813a945 100644 --- a/Sources/Services/AWSIoT/EndpointResolver.swift +++ b/Sources/Services/AWSIoT/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSIoT1ClickDevicesService/EndpointResolver.swift b/Sources/Services/AWSIoT1ClickDevicesService/EndpointResolver.swift index a568e5bfd63..a210a359cdf 100644 --- a/Sources/Services/AWSIoT1ClickDevicesService/EndpointResolver.swift +++ b/Sources/Services/AWSIoT1ClickDevicesService/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSIoT1ClickProjects/EndpointResolver.swift b/Sources/Services/AWSIoT1ClickProjects/EndpointResolver.swift index a0b9aef916d..504f0708120 100644 --- a/Sources/Services/AWSIoT1ClickProjects/EndpointResolver.swift +++ b/Sources/Services/AWSIoT1ClickProjects/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSIoTAnalytics/EndpointResolver.swift b/Sources/Services/AWSIoTAnalytics/EndpointResolver.swift index 5d423f25508..40b5a1bc235 100644 --- a/Sources/Services/AWSIoTAnalytics/EndpointResolver.swift +++ b/Sources/Services/AWSIoTAnalytics/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSIoTDataPlane/EndpointResolver.swift b/Sources/Services/AWSIoTDataPlane/EndpointResolver.swift index 84e12c220d5..6afab06e83b 100644 --- a/Sources/Services/AWSIoTDataPlane/EndpointResolver.swift +++ b/Sources/Services/AWSIoTDataPlane/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSIoTEvents/EndpointResolver.swift b/Sources/Services/AWSIoTEvents/EndpointResolver.swift index e6511720658..aec7dadd4a4 100644 --- a/Sources/Services/AWSIoTEvents/EndpointResolver.swift +++ b/Sources/Services/AWSIoTEvents/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSIoTEventsData/EndpointResolver.swift b/Sources/Services/AWSIoTEventsData/EndpointResolver.swift index 363d7f93c3e..68fd101614b 100644 --- a/Sources/Services/AWSIoTEventsData/EndpointResolver.swift +++ b/Sources/Services/AWSIoTEventsData/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSIoTFleetHub/EndpointResolver.swift b/Sources/Services/AWSIoTFleetHub/EndpointResolver.swift index 454e5fef48a..326aea57a82 100644 --- a/Sources/Services/AWSIoTFleetHub/EndpointResolver.swift +++ b/Sources/Services/AWSIoTFleetHub/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSIoTFleetWise/EndpointResolver.swift b/Sources/Services/AWSIoTFleetWise/EndpointResolver.swift index 7292cd7aa76..dac957903ba 100644 --- a/Sources/Services/AWSIoTFleetWise/EndpointResolver.swift +++ b/Sources/Services/AWSIoTFleetWise/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSIoTJobsDataPlane/EndpointResolver.swift b/Sources/Services/AWSIoTJobsDataPlane/EndpointResolver.swift index ca79cfa9ce3..13b704fab7f 100644 --- a/Sources/Services/AWSIoTJobsDataPlane/EndpointResolver.swift +++ b/Sources/Services/AWSIoTJobsDataPlane/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSIoTRoboRunner/EndpointResolver.swift b/Sources/Services/AWSIoTRoboRunner/EndpointResolver.swift index 158d876123b..53bfd2952c0 100644 --- a/Sources/Services/AWSIoTRoboRunner/EndpointResolver.swift +++ b/Sources/Services/AWSIoTRoboRunner/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSIoTSecureTunneling/EndpointResolver.swift b/Sources/Services/AWSIoTSecureTunneling/EndpointResolver.swift index 0a7aaf30256..1198d1ac6ae 100644 --- a/Sources/Services/AWSIoTSecureTunneling/EndpointResolver.swift +++ b/Sources/Services/AWSIoTSecureTunneling/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSIoTSiteWise/EndpointResolver.swift b/Sources/Services/AWSIoTSiteWise/EndpointResolver.swift index 24a764a2863..93b6f7a2372 100644 --- a/Sources/Services/AWSIoTSiteWise/EndpointResolver.swift +++ b/Sources/Services/AWSIoTSiteWise/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSIoTThingsGraph/EndpointResolver.swift b/Sources/Services/AWSIoTThingsGraph/EndpointResolver.swift index cf5b39fc64f..aae1a19dd2e 100644 --- a/Sources/Services/AWSIoTThingsGraph/EndpointResolver.swift +++ b/Sources/Services/AWSIoTThingsGraph/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSIoTTwinMaker/EndpointResolver.swift b/Sources/Services/AWSIoTTwinMaker/EndpointResolver.swift index 2a231b310a9..b0738efd1ff 100644 --- a/Sources/Services/AWSIoTTwinMaker/EndpointResolver.swift +++ b/Sources/Services/AWSIoTTwinMaker/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSIoTWireless/EndpointResolver.swift b/Sources/Services/AWSIoTWireless/EndpointResolver.swift index 4d8b8cec129..3dc6de7084b 100644 --- a/Sources/Services/AWSIoTWireless/EndpointResolver.swift +++ b/Sources/Services/AWSIoTWireless/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSIotDeviceAdvisor/EndpointResolver.swift b/Sources/Services/AWSIotDeviceAdvisor/EndpointResolver.swift index 320bcfce4e8..8515e4082d2 100644 --- a/Sources/Services/AWSIotDeviceAdvisor/EndpointResolver.swift +++ b/Sources/Services/AWSIotDeviceAdvisor/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSIvs/EndpointResolver.swift b/Sources/Services/AWSIvs/EndpointResolver.swift index 6cd6de94a3e..f240a8e4c63 100644 --- a/Sources/Services/AWSIvs/EndpointResolver.swift +++ b/Sources/Services/AWSIvs/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSIvschat/EndpointResolver.swift b/Sources/Services/AWSIvschat/EndpointResolver.swift index 99828692826..cf2ff8393d9 100644 --- a/Sources/Services/AWSIvschat/EndpointResolver.swift +++ b/Sources/Services/AWSIvschat/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSKMS/EndpointResolver.swift b/Sources/Services/AWSKMS/EndpointResolver.swift index 842c7f64bb8..acfa0b7df36 100644 --- a/Sources/Services/AWSKMS/EndpointResolver.swift +++ b/Sources/Services/AWSKMS/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSKafka/EndpointResolver.swift b/Sources/Services/AWSKafka/EndpointResolver.swift index 2fb2a5ecba7..526395a8380 100644 --- a/Sources/Services/AWSKafka/EndpointResolver.swift +++ b/Sources/Services/AWSKafka/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSKafkaConnect/EndpointResolver.swift b/Sources/Services/AWSKafkaConnect/EndpointResolver.swift index 77a1203aa1b..b2028b8bc20 100644 --- a/Sources/Services/AWSKafkaConnect/EndpointResolver.swift +++ b/Sources/Services/AWSKafkaConnect/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSKendra/EndpointResolver.swift b/Sources/Services/AWSKendra/EndpointResolver.swift index 98b554b89f4..695a20dce61 100644 --- a/Sources/Services/AWSKendra/EndpointResolver.swift +++ b/Sources/Services/AWSKendra/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSKendraRanking/EndpointResolver.swift b/Sources/Services/AWSKendraRanking/EndpointResolver.swift index fc58e9586a6..b1a4155b16a 100644 --- a/Sources/Services/AWSKendraRanking/EndpointResolver.swift +++ b/Sources/Services/AWSKendraRanking/EndpointResolver.swift @@ -121,9 +121,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSKeyspaces/EndpointResolver.swift b/Sources/Services/AWSKeyspaces/EndpointResolver.swift index 46f66a99723..661748fe736 100644 --- a/Sources/Services/AWSKeyspaces/EndpointResolver.swift +++ b/Sources/Services/AWSKeyspaces/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSKinesis/EndpointResolver.swift b/Sources/Services/AWSKinesis/EndpointResolver.swift index e98704a3a65..74dbfdcce9e 100644 --- a/Sources/Services/AWSKinesis/EndpointResolver.swift +++ b/Sources/Services/AWSKinesis/EndpointResolver.swift @@ -146,9 +146,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSKinesisAnalytics/EndpointResolver.swift b/Sources/Services/AWSKinesisAnalytics/EndpointResolver.swift index 1c510513b70..67db49f6f05 100644 --- a/Sources/Services/AWSKinesisAnalytics/EndpointResolver.swift +++ b/Sources/Services/AWSKinesisAnalytics/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSKinesisAnalyticsV2/EndpointResolver.swift b/Sources/Services/AWSKinesisAnalyticsV2/EndpointResolver.swift index 1c510513b70..67db49f6f05 100644 --- a/Sources/Services/AWSKinesisAnalyticsV2/EndpointResolver.swift +++ b/Sources/Services/AWSKinesisAnalyticsV2/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSKinesisVideo/EndpointResolver.swift b/Sources/Services/AWSKinesisVideo/EndpointResolver.swift index 3c53f3d5d30..fd3f2ee08ca 100644 --- a/Sources/Services/AWSKinesisVideo/EndpointResolver.swift +++ b/Sources/Services/AWSKinesisVideo/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSKinesisVideoArchivedMedia/EndpointResolver.swift b/Sources/Services/AWSKinesisVideoArchivedMedia/EndpointResolver.swift index 3c53f3d5d30..fd3f2ee08ca 100644 --- a/Sources/Services/AWSKinesisVideoArchivedMedia/EndpointResolver.swift +++ b/Sources/Services/AWSKinesisVideoArchivedMedia/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSKinesisVideoMedia/EndpointResolver.swift b/Sources/Services/AWSKinesisVideoMedia/EndpointResolver.swift index 3c53f3d5d30..fd3f2ee08ca 100644 --- a/Sources/Services/AWSKinesisVideoMedia/EndpointResolver.swift +++ b/Sources/Services/AWSKinesisVideoMedia/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSKinesisVideoSignaling/EndpointResolver.swift b/Sources/Services/AWSKinesisVideoSignaling/EndpointResolver.swift index 3c53f3d5d30..fd3f2ee08ca 100644 --- a/Sources/Services/AWSKinesisVideoSignaling/EndpointResolver.swift +++ b/Sources/Services/AWSKinesisVideoSignaling/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSKinesisVideoWebRTCStorage/EndpointResolver.swift b/Sources/Services/AWSKinesisVideoWebRTCStorage/EndpointResolver.swift index 6d527bda0b6..bb06005d7aa 100644 --- a/Sources/Services/AWSKinesisVideoWebRTCStorage/EndpointResolver.swift +++ b/Sources/Services/AWSKinesisVideoWebRTCStorage/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSLakeFormation/EndpointResolver.swift b/Sources/Services/AWSLakeFormation/EndpointResolver.swift index 08492f7bcc1..49bebd7e3f7 100644 --- a/Sources/Services/AWSLakeFormation/EndpointResolver.swift +++ b/Sources/Services/AWSLakeFormation/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSLambda/EndpointResolver.swift b/Sources/Services/AWSLambda/EndpointResolver.swift index b8662e5abae..323eb4fe994 100644 --- a/Sources/Services/AWSLambda/EndpointResolver.swift +++ b/Sources/Services/AWSLambda/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSLaunchWizard/EndpointResolver.swift b/Sources/Services/AWSLaunchWizard/EndpointResolver.swift index b96fab7169d..c9c06f3a35c 100644 --- a/Sources/Services/AWSLaunchWizard/EndpointResolver.swift +++ b/Sources/Services/AWSLaunchWizard/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSLexModelBuildingService/EndpointResolver.swift b/Sources/Services/AWSLexModelBuildingService/EndpointResolver.swift index e43c9b836fd..4d60c986bc3 100644 --- a/Sources/Services/AWSLexModelBuildingService/EndpointResolver.swift +++ b/Sources/Services/AWSLexModelBuildingService/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSLexModelsV2/EndpointResolver.swift b/Sources/Services/AWSLexModelsV2/EndpointResolver.swift index 8f13f9cdde9..579b60b93bf 100644 --- a/Sources/Services/AWSLexModelsV2/EndpointResolver.swift +++ b/Sources/Services/AWSLexModelsV2/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSLexRuntimeService/EndpointResolver.swift b/Sources/Services/AWSLexRuntimeService/EndpointResolver.swift index 7a95bd03acc..4550461de86 100644 --- a/Sources/Services/AWSLexRuntimeService/EndpointResolver.swift +++ b/Sources/Services/AWSLexRuntimeService/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSLexRuntimeV2/EndpointResolver.swift b/Sources/Services/AWSLexRuntimeV2/EndpointResolver.swift index fed1d949296..93fc3a51d9e 100644 --- a/Sources/Services/AWSLexRuntimeV2/EndpointResolver.swift +++ b/Sources/Services/AWSLexRuntimeV2/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSLicenseManager/EndpointResolver.swift b/Sources/Services/AWSLicenseManager/EndpointResolver.swift index 087c3485be3..a3a46e0421e 100644 --- a/Sources/Services/AWSLicenseManager/EndpointResolver.swift +++ b/Sources/Services/AWSLicenseManager/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSLicenseManagerLinuxSubscriptions/EndpointResolver.swift b/Sources/Services/AWSLicenseManagerLinuxSubscriptions/EndpointResolver.swift index 4c00dcdee6a..fe4a2ad0fd7 100644 --- a/Sources/Services/AWSLicenseManagerLinuxSubscriptions/EndpointResolver.swift +++ b/Sources/Services/AWSLicenseManagerLinuxSubscriptions/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSLicenseManagerUserSubscriptions/EndpointResolver.swift b/Sources/Services/AWSLicenseManagerUserSubscriptions/EndpointResolver.swift index 7fff2252aad..499ca0eaf79 100644 --- a/Sources/Services/AWSLicenseManagerUserSubscriptions/EndpointResolver.swift +++ b/Sources/Services/AWSLicenseManagerUserSubscriptions/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSLightsail/EndpointResolver.swift b/Sources/Services/AWSLightsail/EndpointResolver.swift index 29d4748c847..81bb0429f29 100644 --- a/Sources/Services/AWSLightsail/EndpointResolver.swift +++ b/Sources/Services/AWSLightsail/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSLocation/EndpointResolver.swift b/Sources/Services/AWSLocation/EndpointResolver.swift index cbd66e1c7e2..9fe11bfe005 100644 --- a/Sources/Services/AWSLocation/EndpointResolver.swift +++ b/Sources/Services/AWSLocation/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSLookoutEquipment/EndpointResolver.swift b/Sources/Services/AWSLookoutEquipment/EndpointResolver.swift index 773dab374af..5779c1a317c 100644 --- a/Sources/Services/AWSLookoutEquipment/EndpointResolver.swift +++ b/Sources/Services/AWSLookoutEquipment/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSLookoutMetrics/EndpointResolver.swift b/Sources/Services/AWSLookoutMetrics/EndpointResolver.swift index 56362291f50..ba5c75557c9 100644 --- a/Sources/Services/AWSLookoutMetrics/EndpointResolver.swift +++ b/Sources/Services/AWSLookoutMetrics/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSLookoutVision/EndpointResolver.swift b/Sources/Services/AWSLookoutVision/EndpointResolver.swift index 103ac3875a3..03f1570110e 100644 --- a/Sources/Services/AWSLookoutVision/EndpointResolver.swift +++ b/Sources/Services/AWSLookoutVision/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSM2/EndpointResolver.swift b/Sources/Services/AWSM2/EndpointResolver.swift index 4287d116c0c..ed48a8bb092 100644 --- a/Sources/Services/AWSM2/EndpointResolver.swift +++ b/Sources/Services/AWSM2/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMTurk/EndpointResolver.swift b/Sources/Services/AWSMTurk/EndpointResolver.swift index 0277531f17b..77e40b50b8b 100644 --- a/Sources/Services/AWSMTurk/EndpointResolver.swift +++ b/Sources/Services/AWSMTurk/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMWAA/EndpointResolver.swift b/Sources/Services/AWSMWAA/EndpointResolver.swift index cbfe1c25104..ed7432c8849 100644 --- a/Sources/Services/AWSMWAA/EndpointResolver.swift +++ b/Sources/Services/AWSMWAA/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMachineLearning/EndpointResolver.swift b/Sources/Services/AWSMachineLearning/EndpointResolver.swift index 153f4aad09d..f85a783e3a0 100644 --- a/Sources/Services/AWSMachineLearning/EndpointResolver.swift +++ b/Sources/Services/AWSMachineLearning/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMacie2/EndpointResolver.swift b/Sources/Services/AWSMacie2/EndpointResolver.swift index c7db73d85c0..e589de307fb 100644 --- a/Sources/Services/AWSMacie2/EndpointResolver.swift +++ b/Sources/Services/AWSMacie2/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSManagedBlockchain/EndpointResolver.swift b/Sources/Services/AWSManagedBlockchain/EndpointResolver.swift index d3c13b41003..35eb5125b9d 100644 --- a/Sources/Services/AWSManagedBlockchain/EndpointResolver.swift +++ b/Sources/Services/AWSManagedBlockchain/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSManagedBlockchainQuery/EndpointResolver.swift b/Sources/Services/AWSManagedBlockchainQuery/EndpointResolver.swift index d249fe7f512..401d2950dda 100644 --- a/Sources/Services/AWSManagedBlockchainQuery/EndpointResolver.swift +++ b/Sources/Services/AWSManagedBlockchainQuery/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMarketplaceAgreement/EndpointResolver.swift b/Sources/Services/AWSMarketplaceAgreement/EndpointResolver.swift index cad62c14178..4a9efef7f40 100644 --- a/Sources/Services/AWSMarketplaceAgreement/EndpointResolver.swift +++ b/Sources/Services/AWSMarketplaceAgreement/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMarketplaceCatalog/EndpointResolver.swift b/Sources/Services/AWSMarketplaceCatalog/EndpointResolver.swift index 56d59f6a9c9..737b5db073d 100644 --- a/Sources/Services/AWSMarketplaceCatalog/EndpointResolver.swift +++ b/Sources/Services/AWSMarketplaceCatalog/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMarketplaceCommerceAnalytics/EndpointResolver.swift b/Sources/Services/AWSMarketplaceCommerceAnalytics/EndpointResolver.swift index 8c034d94fa5..51d306563d0 100644 --- a/Sources/Services/AWSMarketplaceCommerceAnalytics/EndpointResolver.swift +++ b/Sources/Services/AWSMarketplaceCommerceAnalytics/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMarketplaceDeployment/EndpointResolver.swift b/Sources/Services/AWSMarketplaceDeployment/EndpointResolver.swift index effe6b2b7ad..2ce20f8b623 100644 --- a/Sources/Services/AWSMarketplaceDeployment/EndpointResolver.swift +++ b/Sources/Services/AWSMarketplaceDeployment/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMarketplaceEntitlementService/EndpointResolver.swift b/Sources/Services/AWSMarketplaceEntitlementService/EndpointResolver.swift index f3c4c606a98..63205bd0980 100644 --- a/Sources/Services/AWSMarketplaceEntitlementService/EndpointResolver.swift +++ b/Sources/Services/AWSMarketplaceEntitlementService/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMarketplaceMetering/EndpointResolver.swift b/Sources/Services/AWSMarketplaceMetering/EndpointResolver.swift index a4cbc626bfe..91bc3e5017a 100644 --- a/Sources/Services/AWSMarketplaceMetering/EndpointResolver.swift +++ b/Sources/Services/AWSMarketplaceMetering/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMediaConnect/EndpointResolver.swift b/Sources/Services/AWSMediaConnect/EndpointResolver.swift index 91b18ba7905..c9e9ddece8e 100644 --- a/Sources/Services/AWSMediaConnect/EndpointResolver.swift +++ b/Sources/Services/AWSMediaConnect/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMediaConvert/EndpointResolver.swift b/Sources/Services/AWSMediaConvert/EndpointResolver.swift index 8143cd5e875..bf0e1244b78 100644 --- a/Sources/Services/AWSMediaConvert/EndpointResolver.swift +++ b/Sources/Services/AWSMediaConvert/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMediaLive/EndpointResolver.swift b/Sources/Services/AWSMediaLive/EndpointResolver.swift index 3f68c5a3356..ba7290bc136 100644 --- a/Sources/Services/AWSMediaLive/EndpointResolver.swift +++ b/Sources/Services/AWSMediaLive/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMediaPackage/EndpointResolver.swift b/Sources/Services/AWSMediaPackage/EndpointResolver.swift index 4a259cec41e..ee31c04586d 100644 --- a/Sources/Services/AWSMediaPackage/EndpointResolver.swift +++ b/Sources/Services/AWSMediaPackage/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMediaPackageV2/EndpointResolver.swift b/Sources/Services/AWSMediaPackageV2/EndpointResolver.swift index 8096eb4af80..1bac4eb71cb 100644 --- a/Sources/Services/AWSMediaPackageV2/EndpointResolver.swift +++ b/Sources/Services/AWSMediaPackageV2/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMediaPackageVod/EndpointResolver.swift b/Sources/Services/AWSMediaPackageVod/EndpointResolver.swift index 72c2ebc9dcc..c91042b74e2 100644 --- a/Sources/Services/AWSMediaPackageVod/EndpointResolver.swift +++ b/Sources/Services/AWSMediaPackageVod/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMediaStore/EndpointResolver.swift b/Sources/Services/AWSMediaStore/EndpointResolver.swift index 95c55d1c202..342739c0947 100644 --- a/Sources/Services/AWSMediaStore/EndpointResolver.swift +++ b/Sources/Services/AWSMediaStore/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMediaStoreData/EndpointResolver.swift b/Sources/Services/AWSMediaStoreData/EndpointResolver.swift index 852a47e41ef..fbc6f88df92 100644 --- a/Sources/Services/AWSMediaStoreData/EndpointResolver.swift +++ b/Sources/Services/AWSMediaStoreData/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMediaTailor/EndpointResolver.swift b/Sources/Services/AWSMediaTailor/EndpointResolver.swift index 69d742ffe75..abcec095e16 100644 --- a/Sources/Services/AWSMediaTailor/EndpointResolver.swift +++ b/Sources/Services/AWSMediaTailor/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMedicalImaging/EndpointResolver.swift b/Sources/Services/AWSMedicalImaging/EndpointResolver.swift index 108828c951e..4f333da7a08 100644 --- a/Sources/Services/AWSMedicalImaging/EndpointResolver.swift +++ b/Sources/Services/AWSMedicalImaging/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMemoryDB/EndpointResolver.swift b/Sources/Services/AWSMemoryDB/EndpointResolver.swift index e8155e10331..a7fcd7adff7 100644 --- a/Sources/Services/AWSMemoryDB/EndpointResolver.swift +++ b/Sources/Services/AWSMemoryDB/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMgn/EndpointResolver.swift b/Sources/Services/AWSMgn/EndpointResolver.swift index c0f580a6a5f..17dcc12765e 100644 --- a/Sources/Services/AWSMgn/EndpointResolver.swift +++ b/Sources/Services/AWSMgn/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMigrationHub/EndpointResolver.swift b/Sources/Services/AWSMigrationHub/EndpointResolver.swift index fc402fee992..ce6afe92b4d 100644 --- a/Sources/Services/AWSMigrationHub/EndpointResolver.swift +++ b/Sources/Services/AWSMigrationHub/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMigrationHubConfig/EndpointResolver.swift b/Sources/Services/AWSMigrationHubConfig/EndpointResolver.swift index 2359f29f4b0..bcf4fa46ff7 100644 --- a/Sources/Services/AWSMigrationHubConfig/EndpointResolver.swift +++ b/Sources/Services/AWSMigrationHubConfig/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMigrationHubOrchestrator/EndpointResolver.swift b/Sources/Services/AWSMigrationHubOrchestrator/EndpointResolver.swift index b65c5527446..15cbc8b0560 100644 --- a/Sources/Services/AWSMigrationHubOrchestrator/EndpointResolver.swift +++ b/Sources/Services/AWSMigrationHubOrchestrator/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMigrationHubRefactorSpaces/EndpointResolver.swift b/Sources/Services/AWSMigrationHubRefactorSpaces/EndpointResolver.swift index 6853134484c..57411535a77 100644 --- a/Sources/Services/AWSMigrationHubRefactorSpaces/EndpointResolver.swift +++ b/Sources/Services/AWSMigrationHubRefactorSpaces/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMigrationHubStrategy/EndpointResolver.swift b/Sources/Services/AWSMigrationHubStrategy/EndpointResolver.swift index ef41763177e..b34c4c2df76 100644 --- a/Sources/Services/AWSMigrationHubStrategy/EndpointResolver.swift +++ b/Sources/Services/AWSMigrationHubStrategy/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMobile/EndpointResolver.swift b/Sources/Services/AWSMobile/EndpointResolver.swift index 87c5ce993a2..f70c64746d0 100644 --- a/Sources/Services/AWSMobile/EndpointResolver.swift +++ b/Sources/Services/AWSMobile/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSMq/EndpointResolver.swift b/Sources/Services/AWSMq/EndpointResolver.swift index 97ec6483644..56e7595c3f9 100644 --- a/Sources/Services/AWSMq/EndpointResolver.swift +++ b/Sources/Services/AWSMq/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSNeptune/EndpointResolver.swift b/Sources/Services/AWSNeptune/EndpointResolver.swift index 48c642ee588..dcc67c30571 100644 --- a/Sources/Services/AWSNeptune/EndpointResolver.swift +++ b/Sources/Services/AWSNeptune/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSNeptuneGraph/EndpointResolver.swift b/Sources/Services/AWSNeptuneGraph/EndpointResolver.swift index 620c5c560b8..468a654cd1a 100644 --- a/Sources/Services/AWSNeptuneGraph/EndpointResolver.swift +++ b/Sources/Services/AWSNeptuneGraph/EndpointResolver.swift @@ -131,9 +131,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSNeptunedata/EndpointResolver.swift b/Sources/Services/AWSNeptunedata/EndpointResolver.swift index 2ca23d6f45f..c90e9829f24 100644 --- a/Sources/Services/AWSNeptunedata/EndpointResolver.swift +++ b/Sources/Services/AWSNeptunedata/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSNetworkFirewall/EndpointResolver.swift b/Sources/Services/AWSNetworkFirewall/EndpointResolver.swift index 070c9aa81d2..d44bdd6f7f6 100644 --- a/Sources/Services/AWSNetworkFirewall/EndpointResolver.swift +++ b/Sources/Services/AWSNetworkFirewall/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSNetworkManager/EndpointResolver.swift b/Sources/Services/AWSNetworkManager/EndpointResolver.swift index cfb6ee4d842..d66f44549d7 100644 --- a/Sources/Services/AWSNetworkManager/EndpointResolver.swift +++ b/Sources/Services/AWSNetworkManager/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSNetworkMonitor/EndpointResolver.swift b/Sources/Services/AWSNetworkMonitor/EndpointResolver.swift index 5f27f7142a3..a2a75ce6ba8 100644 --- a/Sources/Services/AWSNetworkMonitor/EndpointResolver.swift +++ b/Sources/Services/AWSNetworkMonitor/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSNimble/EndpointResolver.swift b/Sources/Services/AWSNimble/EndpointResolver.swift index fec337b8e29..c510a2fb033 100644 --- a/Sources/Services/AWSNimble/EndpointResolver.swift +++ b/Sources/Services/AWSNimble/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSOAM/EndpointResolver.swift b/Sources/Services/AWSOAM/EndpointResolver.swift index a368dbec8a5..29a8d17c277 100644 --- a/Sources/Services/AWSOAM/EndpointResolver.swift +++ b/Sources/Services/AWSOAM/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSOSIS/EndpointResolver.swift b/Sources/Services/AWSOSIS/EndpointResolver.swift index 9f8556fd7a0..793ed689f3b 100644 --- a/Sources/Services/AWSOSIS/EndpointResolver.swift +++ b/Sources/Services/AWSOSIS/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSOmics/EndpointResolver.swift b/Sources/Services/AWSOmics/EndpointResolver.swift index 17d25ca71ed..326abd155f7 100644 --- a/Sources/Services/AWSOmics/EndpointResolver.swift +++ b/Sources/Services/AWSOmics/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSOpenSearch/EndpointResolver.swift b/Sources/Services/AWSOpenSearch/EndpointResolver.swift index 2154fce8312..b5fcc093115 100644 --- a/Sources/Services/AWSOpenSearch/EndpointResolver.swift +++ b/Sources/Services/AWSOpenSearch/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSOpenSearchServerless/EndpointResolver.swift b/Sources/Services/AWSOpenSearchServerless/EndpointResolver.swift index bb88a05af24..cd269179db4 100644 --- a/Sources/Services/AWSOpenSearchServerless/EndpointResolver.swift +++ b/Sources/Services/AWSOpenSearchServerless/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSOpsWorks/EndpointResolver.swift b/Sources/Services/AWSOpsWorks/EndpointResolver.swift index 2828194b83d..7daf52b9370 100644 --- a/Sources/Services/AWSOpsWorks/EndpointResolver.swift +++ b/Sources/Services/AWSOpsWorks/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSOpsWorksCM/EndpointResolver.swift b/Sources/Services/AWSOpsWorksCM/EndpointResolver.swift index 880e710a98a..690b9a544a9 100644 --- a/Sources/Services/AWSOpsWorksCM/EndpointResolver.swift +++ b/Sources/Services/AWSOpsWorksCM/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSOrganizations/EndpointResolver.swift b/Sources/Services/AWSOrganizations/EndpointResolver.swift index d03334c92ee..b194b85757e 100644 --- a/Sources/Services/AWSOrganizations/EndpointResolver.swift +++ b/Sources/Services/AWSOrganizations/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSOutposts/EndpointResolver.swift b/Sources/Services/AWSOutposts/EndpointResolver.swift index a07ff9d8379..5b892c4cf5d 100644 --- a/Sources/Services/AWSOutposts/EndpointResolver.swift +++ b/Sources/Services/AWSOutposts/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSPI/EndpointResolver.swift b/Sources/Services/AWSPI/EndpointResolver.swift index d6de07110ad..2338687c6fd 100644 --- a/Sources/Services/AWSPI/EndpointResolver.swift +++ b/Sources/Services/AWSPI/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSPanorama/EndpointResolver.swift b/Sources/Services/AWSPanorama/EndpointResolver.swift index d81d4dd9baf..60bdbfca747 100644 --- a/Sources/Services/AWSPanorama/EndpointResolver.swift +++ b/Sources/Services/AWSPanorama/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSPaymentCryptography/EndpointResolver.swift b/Sources/Services/AWSPaymentCryptography/EndpointResolver.swift index 808d704cc11..27b461ec53a 100644 --- a/Sources/Services/AWSPaymentCryptography/EndpointResolver.swift +++ b/Sources/Services/AWSPaymentCryptography/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSPaymentCryptographyData/EndpointResolver.swift b/Sources/Services/AWSPaymentCryptographyData/EndpointResolver.swift index 48e372c4a69..40a4b4365cc 100644 --- a/Sources/Services/AWSPaymentCryptographyData/EndpointResolver.swift +++ b/Sources/Services/AWSPaymentCryptographyData/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSPcaConnectorAd/EndpointResolver.swift b/Sources/Services/AWSPcaConnectorAd/EndpointResolver.swift index 68cf5cb200d..41adca461d6 100644 --- a/Sources/Services/AWSPcaConnectorAd/EndpointResolver.swift +++ b/Sources/Services/AWSPcaConnectorAd/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSPersonalize/EndpointResolver.swift b/Sources/Services/AWSPersonalize/EndpointResolver.swift index e146b9958c3..ab3be1c12b9 100644 --- a/Sources/Services/AWSPersonalize/EndpointResolver.swift +++ b/Sources/Services/AWSPersonalize/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSPersonalizeEvents/EndpointResolver.swift b/Sources/Services/AWSPersonalizeEvents/EndpointResolver.swift index 5c3e18495a3..b1f61c17920 100644 --- a/Sources/Services/AWSPersonalizeEvents/EndpointResolver.swift +++ b/Sources/Services/AWSPersonalizeEvents/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSPersonalizeRuntime/EndpointResolver.swift b/Sources/Services/AWSPersonalizeRuntime/EndpointResolver.swift index 2cf422e8394..89b0f9cbc02 100644 --- a/Sources/Services/AWSPersonalizeRuntime/EndpointResolver.swift +++ b/Sources/Services/AWSPersonalizeRuntime/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSPinpoint/EndpointResolver.swift b/Sources/Services/AWSPinpoint/EndpointResolver.swift index ab49c8e5d8e..2b14ab8de93 100644 --- a/Sources/Services/AWSPinpoint/EndpointResolver.swift +++ b/Sources/Services/AWSPinpoint/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSPinpointEmail/EndpointResolver.swift b/Sources/Services/AWSPinpointEmail/EndpointResolver.swift index 36c104085d4..35de2eb9d3c 100644 --- a/Sources/Services/AWSPinpointEmail/EndpointResolver.swift +++ b/Sources/Services/AWSPinpointEmail/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSPinpointSMSVoice/EndpointResolver.swift b/Sources/Services/AWSPinpointSMSVoice/EndpointResolver.swift index a2864ea69a8..253c5fda1d1 100644 --- a/Sources/Services/AWSPinpointSMSVoice/EndpointResolver.swift +++ b/Sources/Services/AWSPinpointSMSVoice/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSPinpointSMSVoiceV2/EndpointResolver.swift b/Sources/Services/AWSPinpointSMSVoiceV2/EndpointResolver.swift index 9eb7cb5d594..4771e5e19fa 100644 --- a/Sources/Services/AWSPinpointSMSVoiceV2/EndpointResolver.swift +++ b/Sources/Services/AWSPinpointSMSVoiceV2/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSPipes/EndpointResolver.swift b/Sources/Services/AWSPipes/EndpointResolver.swift index d680fe8c8e8..e2fc2799224 100644 --- a/Sources/Services/AWSPipes/EndpointResolver.swift +++ b/Sources/Services/AWSPipes/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSPolly/EndpointResolver.swift b/Sources/Services/AWSPolly/EndpointResolver.swift index 5a1b725a913..9f914edf0d2 100644 --- a/Sources/Services/AWSPolly/EndpointResolver.swift +++ b/Sources/Services/AWSPolly/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSPricing/EndpointResolver.swift b/Sources/Services/AWSPricing/EndpointResolver.swift index a18819dce5d..0a0430b353c 100644 --- a/Sources/Services/AWSPricing/EndpointResolver.swift +++ b/Sources/Services/AWSPricing/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSPrivateNetworks/EndpointResolver.swift b/Sources/Services/AWSPrivateNetworks/EndpointResolver.swift index e1e808e5b60..0d04130d358 100644 --- a/Sources/Services/AWSPrivateNetworks/EndpointResolver.swift +++ b/Sources/Services/AWSPrivateNetworks/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSProton/EndpointResolver.swift b/Sources/Services/AWSProton/EndpointResolver.swift index eca1d50fa8f..c514cffb197 100644 --- a/Sources/Services/AWSProton/EndpointResolver.swift +++ b/Sources/Services/AWSProton/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSQBusiness/EndpointResolver.swift b/Sources/Services/AWSQBusiness/EndpointResolver.swift index 87c2793f2b6..56636cd096e 100644 --- a/Sources/Services/AWSQBusiness/EndpointResolver.swift +++ b/Sources/Services/AWSQBusiness/EndpointResolver.swift @@ -121,9 +121,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSQConnect/EndpointResolver.swift b/Sources/Services/AWSQConnect/EndpointResolver.swift index 7d17c32523b..da0938ca214 100644 --- a/Sources/Services/AWSQConnect/EndpointResolver.swift +++ b/Sources/Services/AWSQConnect/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSQLDB/EndpointResolver.swift b/Sources/Services/AWSQLDB/EndpointResolver.swift index 324e36ab066..ebd9b14d18c 100644 --- a/Sources/Services/AWSQLDB/EndpointResolver.swift +++ b/Sources/Services/AWSQLDB/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSQLDBSession/EndpointResolver.swift b/Sources/Services/AWSQLDBSession/EndpointResolver.swift index 01b57705cf6..76cf691cb88 100644 --- a/Sources/Services/AWSQLDBSession/EndpointResolver.swift +++ b/Sources/Services/AWSQLDBSession/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSQuickSight/EndpointResolver.swift b/Sources/Services/AWSQuickSight/EndpointResolver.swift index 579850c6114..e2f4af9c6d9 100644 --- a/Sources/Services/AWSQuickSight/EndpointResolver.swift +++ b/Sources/Services/AWSQuickSight/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSRAM/EndpointResolver.swift b/Sources/Services/AWSRAM/EndpointResolver.swift index 533135c8477..4888842bc40 100644 --- a/Sources/Services/AWSRAM/EndpointResolver.swift +++ b/Sources/Services/AWSRAM/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSRDS/EndpointResolver.swift b/Sources/Services/AWSRDS/EndpointResolver.swift index 48c642ee588..dcc67c30571 100644 --- a/Sources/Services/AWSRDS/EndpointResolver.swift +++ b/Sources/Services/AWSRDS/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSRDSData/EndpointResolver.swift b/Sources/Services/AWSRDSData/EndpointResolver.swift index ff0b6791ec6..59fa992f03e 100644 --- a/Sources/Services/AWSRDSData/EndpointResolver.swift +++ b/Sources/Services/AWSRDSData/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSRUM/EndpointResolver.swift b/Sources/Services/AWSRUM/EndpointResolver.swift index 79415b1b0d5..b69503c62f8 100644 --- a/Sources/Services/AWSRUM/EndpointResolver.swift +++ b/Sources/Services/AWSRUM/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSRbin/EndpointResolver.swift b/Sources/Services/AWSRbin/EndpointResolver.swift index a8613baae1d..1760e11caff 100644 --- a/Sources/Services/AWSRbin/EndpointResolver.swift +++ b/Sources/Services/AWSRbin/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSRedshift/EndpointResolver.swift b/Sources/Services/AWSRedshift/EndpointResolver.swift index d0a15ec2c78..5eb3da77524 100644 --- a/Sources/Services/AWSRedshift/EndpointResolver.swift +++ b/Sources/Services/AWSRedshift/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSRedshiftData/EndpointResolver.swift b/Sources/Services/AWSRedshiftData/EndpointResolver.swift index e43cb11d82e..0bfbc0da6b9 100644 --- a/Sources/Services/AWSRedshiftData/EndpointResolver.swift +++ b/Sources/Services/AWSRedshiftData/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSRedshiftServerless/EndpointResolver.swift b/Sources/Services/AWSRedshiftServerless/EndpointResolver.swift index 2cd5f8ed79a..1aae52d4d45 100644 --- a/Sources/Services/AWSRedshiftServerless/EndpointResolver.swift +++ b/Sources/Services/AWSRedshiftServerless/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSRekognition/EndpointResolver.swift b/Sources/Services/AWSRekognition/EndpointResolver.swift index 907f3ec03c5..7c93b590c40 100644 --- a/Sources/Services/AWSRekognition/EndpointResolver.swift +++ b/Sources/Services/AWSRekognition/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSRepostspace/EndpointResolver.swift b/Sources/Services/AWSRepostspace/EndpointResolver.swift index 21f69b9013a..86d7b06194f 100644 --- a/Sources/Services/AWSRepostspace/EndpointResolver.swift +++ b/Sources/Services/AWSRepostspace/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSResiliencehub/EndpointResolver.swift b/Sources/Services/AWSResiliencehub/EndpointResolver.swift index edbb7f2bc21..293d185ffa6 100644 --- a/Sources/Services/AWSResiliencehub/EndpointResolver.swift +++ b/Sources/Services/AWSResiliencehub/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSResourceExplorer2/EndpointResolver.swift b/Sources/Services/AWSResourceExplorer2/EndpointResolver.swift index d8dd5daab27..a7f9a9713a7 100644 --- a/Sources/Services/AWSResourceExplorer2/EndpointResolver.swift +++ b/Sources/Services/AWSResourceExplorer2/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSResourceGroups/EndpointResolver.swift b/Sources/Services/AWSResourceGroups/EndpointResolver.swift index d496deb5b94..b4430b4fc5f 100644 --- a/Sources/Services/AWSResourceGroups/EndpointResolver.swift +++ b/Sources/Services/AWSResourceGroups/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSResourceGroupsTaggingAPI/EndpointResolver.swift b/Sources/Services/AWSResourceGroupsTaggingAPI/EndpointResolver.swift index fa4040d88c5..fa3a2b344b0 100644 --- a/Sources/Services/AWSResourceGroupsTaggingAPI/EndpointResolver.swift +++ b/Sources/Services/AWSResourceGroupsTaggingAPI/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSRoboMaker/EndpointResolver.swift b/Sources/Services/AWSRoboMaker/EndpointResolver.swift index 256218c43aa..3952d5ab924 100644 --- a/Sources/Services/AWSRoboMaker/EndpointResolver.swift +++ b/Sources/Services/AWSRoboMaker/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSRolesAnywhere/EndpointResolver.swift b/Sources/Services/AWSRolesAnywhere/EndpointResolver.swift index 182bbc76d83..d544f07f6ac 100644 --- a/Sources/Services/AWSRolesAnywhere/EndpointResolver.swift +++ b/Sources/Services/AWSRolesAnywhere/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSRoute53/EndpointResolver.swift b/Sources/Services/AWSRoute53/EndpointResolver.swift index 54c3cf6cfc2..94431034108 100644 --- a/Sources/Services/AWSRoute53/EndpointResolver.swift +++ b/Sources/Services/AWSRoute53/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSRoute53Domains/EndpointResolver.swift b/Sources/Services/AWSRoute53Domains/EndpointResolver.swift index 37b6bf67c38..c0da17d4367 100644 --- a/Sources/Services/AWSRoute53Domains/EndpointResolver.swift +++ b/Sources/Services/AWSRoute53Domains/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSRoute53RecoveryCluster/EndpointResolver.swift b/Sources/Services/AWSRoute53RecoveryCluster/EndpointResolver.swift index 9cab8cd9ed1..47b7ed03f4a 100644 --- a/Sources/Services/AWSRoute53RecoveryCluster/EndpointResolver.swift +++ b/Sources/Services/AWSRoute53RecoveryCluster/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSRoute53RecoveryControlConfig/EndpointResolver.swift b/Sources/Services/AWSRoute53RecoveryControlConfig/EndpointResolver.swift index 91f1dcff478..6d9985df657 100644 --- a/Sources/Services/AWSRoute53RecoveryControlConfig/EndpointResolver.swift +++ b/Sources/Services/AWSRoute53RecoveryControlConfig/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSRoute53RecoveryReadiness/EndpointResolver.swift b/Sources/Services/AWSRoute53RecoveryReadiness/EndpointResolver.swift index d33b56bf4c8..6aa2489fa88 100644 --- a/Sources/Services/AWSRoute53RecoveryReadiness/EndpointResolver.swift +++ b/Sources/Services/AWSRoute53RecoveryReadiness/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSRoute53Resolver/EndpointResolver.swift b/Sources/Services/AWSRoute53Resolver/EndpointResolver.swift index a501cd657c6..502236472af 100644 --- a/Sources/Services/AWSRoute53Resolver/EndpointResolver.swift +++ b/Sources/Services/AWSRoute53Resolver/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSS3/EndpointResolver.swift b/Sources/Services/AWSS3/EndpointResolver.swift index 1e89d98d6bf..ec45b8384fe 100644 --- a/Sources/Services/AWSS3/EndpointResolver.swift +++ b/Sources/Services/AWSS3/EndpointResolver.swift @@ -204,9 +204,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSS3Control/EndpointResolver.swift b/Sources/Services/AWSS3Control/EndpointResolver.swift index 23f77360533..220e7d47049 100644 --- a/Sources/Services/AWSS3Control/EndpointResolver.swift +++ b/Sources/Services/AWSS3Control/EndpointResolver.swift @@ -156,9 +156,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSS3Outposts/EndpointResolver.swift b/Sources/Services/AWSS3Outposts/EndpointResolver.swift index bc34c457c03..1e059295930 100644 --- a/Sources/Services/AWSS3Outposts/EndpointResolver.swift +++ b/Sources/Services/AWSS3Outposts/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSES/EndpointResolver.swift b/Sources/Services/AWSSES/EndpointResolver.swift index 36c104085d4..35de2eb9d3c 100644 --- a/Sources/Services/AWSSES/EndpointResolver.swift +++ b/Sources/Services/AWSSES/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSESv2/EndpointResolver.swift b/Sources/Services/AWSSESv2/EndpointResolver.swift index 36c104085d4..35de2eb9d3c 100644 --- a/Sources/Services/AWSSESv2/EndpointResolver.swift +++ b/Sources/Services/AWSSESv2/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSFN/EndpointResolver.swift b/Sources/Services/AWSSFN/EndpointResolver.swift index e984027de36..e4141eda795 100644 --- a/Sources/Services/AWSSFN/EndpointResolver.swift +++ b/Sources/Services/AWSSFN/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSMS/EndpointResolver.swift b/Sources/Services/AWSSMS/EndpointResolver.swift index ee6ef7eb115..cf6245ca746 100644 --- a/Sources/Services/AWSSMS/EndpointResolver.swift +++ b/Sources/Services/AWSSMS/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSNS/EndpointResolver.swift b/Sources/Services/AWSSNS/EndpointResolver.swift index fb13a45aefc..a1ee57ead19 100644 --- a/Sources/Services/AWSSNS/EndpointResolver.swift +++ b/Sources/Services/AWSSNS/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSQS/EndpointResolver.swift b/Sources/Services/AWSSQS/EndpointResolver.swift index 07722a21b89..230881a4de9 100644 --- a/Sources/Services/AWSSQS/EndpointResolver.swift +++ b/Sources/Services/AWSSQS/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSSM/EndpointResolver.swift b/Sources/Services/AWSSSM/EndpointResolver.swift index 9c4be9cc5d0..e34f7489c7d 100644 --- a/Sources/Services/AWSSSM/EndpointResolver.swift +++ b/Sources/Services/AWSSSM/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSSMContacts/EndpointResolver.swift b/Sources/Services/AWSSSMContacts/EndpointResolver.swift index 81d23c713d0..2b132f4e55f 100644 --- a/Sources/Services/AWSSSMContacts/EndpointResolver.swift +++ b/Sources/Services/AWSSSMContacts/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSSMIncidents/EndpointResolver.swift b/Sources/Services/AWSSSMIncidents/EndpointResolver.swift index 6f9ec6c8268..d4f08006c3f 100644 --- a/Sources/Services/AWSSSMIncidents/EndpointResolver.swift +++ b/Sources/Services/AWSSSMIncidents/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSSO/EndpointResolver.swift b/Sources/Services/AWSSSO/EndpointResolver.swift index 4cbb698f9b0..7a4b7c7f4af 100644 --- a/Sources/Services/AWSSSO/EndpointResolver.swift +++ b/Sources/Services/AWSSSO/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSSOAdmin/EndpointResolver.swift b/Sources/Services/AWSSSOAdmin/EndpointResolver.swift index 52302fbd8b1..ee99ae61b51 100644 --- a/Sources/Services/AWSSSOAdmin/EndpointResolver.swift +++ b/Sources/Services/AWSSSOAdmin/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSSOOIDC/EndpointResolver.swift b/Sources/Services/AWSSSOOIDC/EndpointResolver.swift index 20fe50037cb..35ab5c30d51 100644 --- a/Sources/Services/AWSSSOOIDC/EndpointResolver.swift +++ b/Sources/Services/AWSSSOOIDC/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSTS/EndpointResolver.swift b/Sources/Services/AWSSTS/EndpointResolver.swift index 64cad39708c..54ad64d54b5 100644 --- a/Sources/Services/AWSSTS/EndpointResolver.swift +++ b/Sources/Services/AWSSTS/EndpointResolver.swift @@ -131,9 +131,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSWF/EndpointResolver.swift b/Sources/Services/AWSSWF/EndpointResolver.swift index 44bdefd2cec..b85dabbb69b 100644 --- a/Sources/Services/AWSSWF/EndpointResolver.swift +++ b/Sources/Services/AWSSWF/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSageMaker/EndpointResolver.swift b/Sources/Services/AWSSageMaker/EndpointResolver.swift index f38d3c7fc11..89762995213 100644 --- a/Sources/Services/AWSSageMaker/EndpointResolver.swift +++ b/Sources/Services/AWSSageMaker/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSageMakerA2IRuntime/EndpointResolver.swift b/Sources/Services/AWSSageMakerA2IRuntime/EndpointResolver.swift index 0d5753006f3..8cce1d99777 100644 --- a/Sources/Services/AWSSageMakerA2IRuntime/EndpointResolver.swift +++ b/Sources/Services/AWSSageMakerA2IRuntime/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSageMakerFeatureStoreRuntime/EndpointResolver.swift b/Sources/Services/AWSSageMakerFeatureStoreRuntime/EndpointResolver.swift index a6dc3f7e99a..b717db07dd1 100644 --- a/Sources/Services/AWSSageMakerFeatureStoreRuntime/EndpointResolver.swift +++ b/Sources/Services/AWSSageMakerFeatureStoreRuntime/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSageMakerGeospatial/EndpointResolver.swift b/Sources/Services/AWSSageMakerGeospatial/EndpointResolver.swift index aeb3a0c8c4f..2e571f2084a 100644 --- a/Sources/Services/AWSSageMakerGeospatial/EndpointResolver.swift +++ b/Sources/Services/AWSSageMakerGeospatial/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSageMakerMetrics/EndpointResolver.swift b/Sources/Services/AWSSageMakerMetrics/EndpointResolver.swift index 01e56a1ea35..91b5efb802f 100644 --- a/Sources/Services/AWSSageMakerMetrics/EndpointResolver.swift +++ b/Sources/Services/AWSSageMakerMetrics/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSageMakerRuntime/EndpointResolver.swift b/Sources/Services/AWSSageMakerRuntime/EndpointResolver.swift index 85e3edb7e49..050be16f8a2 100644 --- a/Sources/Services/AWSSageMakerRuntime/EndpointResolver.swift +++ b/Sources/Services/AWSSageMakerRuntime/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSagemakerEdge/EndpointResolver.swift b/Sources/Services/AWSSagemakerEdge/EndpointResolver.swift index 6c658d88ba7..b65cc48fd36 100644 --- a/Sources/Services/AWSSagemakerEdge/EndpointResolver.swift +++ b/Sources/Services/AWSSagemakerEdge/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSavingsplans/EndpointResolver.swift b/Sources/Services/AWSSavingsplans/EndpointResolver.swift index 440b263c14e..2aaa5b5b5e2 100644 --- a/Sources/Services/AWSSavingsplans/EndpointResolver.swift +++ b/Sources/Services/AWSSavingsplans/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSScheduler/EndpointResolver.swift b/Sources/Services/AWSScheduler/EndpointResolver.swift index 8309c541966..2f9b85942d0 100644 --- a/Sources/Services/AWSScheduler/EndpointResolver.swift +++ b/Sources/Services/AWSScheduler/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSchemas/EndpointResolver.swift b/Sources/Services/AWSSchemas/EndpointResolver.swift index ed632ab743c..ee0b6cd3911 100644 --- a/Sources/Services/AWSSchemas/EndpointResolver.swift +++ b/Sources/Services/AWSSchemas/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSecretsManager/EndpointResolver.swift b/Sources/Services/AWSSecretsManager/EndpointResolver.swift index 3fd5fc7741a..1cbaf2ef8e8 100644 --- a/Sources/Services/AWSSecretsManager/EndpointResolver.swift +++ b/Sources/Services/AWSSecretsManager/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSecurityHub/EndpointResolver.swift b/Sources/Services/AWSSecurityHub/EndpointResolver.swift index 3e69e42ea6c..44178007c35 100644 --- a/Sources/Services/AWSSecurityHub/EndpointResolver.swift +++ b/Sources/Services/AWSSecurityHub/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSecurityLake/EndpointResolver.swift b/Sources/Services/AWSSecurityLake/EndpointResolver.swift index 190846452f7..f53d2be67fc 100644 --- a/Sources/Services/AWSSecurityLake/EndpointResolver.swift +++ b/Sources/Services/AWSSecurityLake/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSServerlessApplicationRepository/EndpointResolver.swift b/Sources/Services/AWSServerlessApplicationRepository/EndpointResolver.swift index 245f7fddeaa..f68eab3ad86 100644 --- a/Sources/Services/AWSServerlessApplicationRepository/EndpointResolver.swift +++ b/Sources/Services/AWSServerlessApplicationRepository/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSServiceCatalog/EndpointResolver.swift b/Sources/Services/AWSServiceCatalog/EndpointResolver.swift index 691f2a6c42b..ac5722d1c3c 100644 --- a/Sources/Services/AWSServiceCatalog/EndpointResolver.swift +++ b/Sources/Services/AWSServiceCatalog/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSServiceCatalogAppRegistry/EndpointResolver.swift b/Sources/Services/AWSServiceCatalogAppRegistry/EndpointResolver.swift index c9a978c941c..b783d697066 100644 --- a/Sources/Services/AWSServiceCatalogAppRegistry/EndpointResolver.swift +++ b/Sources/Services/AWSServiceCatalogAppRegistry/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSServiceDiscovery/EndpointResolver.swift b/Sources/Services/AWSServiceDiscovery/EndpointResolver.swift index 9d170bf795d..455a88922ca 100644 --- a/Sources/Services/AWSServiceDiscovery/EndpointResolver.swift +++ b/Sources/Services/AWSServiceDiscovery/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSServiceQuotas/EndpointResolver.swift b/Sources/Services/AWSServiceQuotas/EndpointResolver.swift index 7da507db589..3b974e217a0 100644 --- a/Sources/Services/AWSServiceQuotas/EndpointResolver.swift +++ b/Sources/Services/AWSServiceQuotas/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSShield/EndpointResolver.swift b/Sources/Services/AWSShield/EndpointResolver.swift index 091a018f107..7b778fe0fdd 100644 --- a/Sources/Services/AWSShield/EndpointResolver.swift +++ b/Sources/Services/AWSShield/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSigner/EndpointResolver.swift b/Sources/Services/AWSSigner/EndpointResolver.swift index 2d812708edb..694bfc40439 100644 --- a/Sources/Services/AWSSigner/EndpointResolver.swift +++ b/Sources/Services/AWSSigner/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSimSpaceWeaver/EndpointResolver.swift b/Sources/Services/AWSSimSpaceWeaver/EndpointResolver.swift index cb62d72f469..bf983d24847 100644 --- a/Sources/Services/AWSSimSpaceWeaver/EndpointResolver.swift +++ b/Sources/Services/AWSSimSpaceWeaver/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSnowDeviceManagement/EndpointResolver.swift b/Sources/Services/AWSSnowDeviceManagement/EndpointResolver.swift index 073864fba96..15eb3050085 100644 --- a/Sources/Services/AWSSnowDeviceManagement/EndpointResolver.swift +++ b/Sources/Services/AWSSnowDeviceManagement/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSnowball/EndpointResolver.swift b/Sources/Services/AWSSnowball/EndpointResolver.swift index c71d3f41555..bc16fba319b 100644 --- a/Sources/Services/AWSSnowball/EndpointResolver.swift +++ b/Sources/Services/AWSSnowball/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSsmSap/EndpointResolver.swift b/Sources/Services/AWSSsmSap/EndpointResolver.swift index 60e9a845124..aaab53728e8 100644 --- a/Sources/Services/AWSSsmSap/EndpointResolver.swift +++ b/Sources/Services/AWSSsmSap/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSStorageGateway/EndpointResolver.swift b/Sources/Services/AWSStorageGateway/EndpointResolver.swift index b5c624c87eb..108adf4fd64 100644 --- a/Sources/Services/AWSStorageGateway/EndpointResolver.swift +++ b/Sources/Services/AWSStorageGateway/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSupplyChain/EndpointResolver.swift b/Sources/Services/AWSSupplyChain/EndpointResolver.swift index a808781f156..556b8295226 100644 --- a/Sources/Services/AWSSupplyChain/EndpointResolver.swift +++ b/Sources/Services/AWSSupplyChain/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSupport/EndpointResolver.swift b/Sources/Services/AWSSupport/EndpointResolver.swift index fb965508062..5e2b502b06d 100644 --- a/Sources/Services/AWSSupport/EndpointResolver.swift +++ b/Sources/Services/AWSSupport/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSupportApp/EndpointResolver.swift b/Sources/Services/AWSSupportApp/EndpointResolver.swift index 50c527c05e0..4e4cf74e025 100644 --- a/Sources/Services/AWSSupportApp/EndpointResolver.swift +++ b/Sources/Services/AWSSupportApp/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSSynthetics/EndpointResolver.swift b/Sources/Services/AWSSynthetics/EndpointResolver.swift index 3eaf9db71b8..3daa8a6254e 100644 --- a/Sources/Services/AWSSynthetics/EndpointResolver.swift +++ b/Sources/Services/AWSSynthetics/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSTextract/EndpointResolver.swift b/Sources/Services/AWSTextract/EndpointResolver.swift index dbc30755207..b47919f6bd0 100644 --- a/Sources/Services/AWSTextract/EndpointResolver.swift +++ b/Sources/Services/AWSTextract/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSTimestreamQuery/EndpointResolver.swift b/Sources/Services/AWSTimestreamQuery/EndpointResolver.swift index 5b5a7aa7af2..4a377e92c60 100644 --- a/Sources/Services/AWSTimestreamQuery/EndpointResolver.swift +++ b/Sources/Services/AWSTimestreamQuery/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSTimestreamWrite/EndpointResolver.swift b/Sources/Services/AWSTimestreamWrite/EndpointResolver.swift index df572166a4e..dbf1f0a56c9 100644 --- a/Sources/Services/AWSTimestreamWrite/EndpointResolver.swift +++ b/Sources/Services/AWSTimestreamWrite/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSTnb/EndpointResolver.swift b/Sources/Services/AWSTnb/EndpointResolver.swift index c5b28a543b5..30e3e9592d9 100644 --- a/Sources/Services/AWSTnb/EndpointResolver.swift +++ b/Sources/Services/AWSTnb/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSTranscribe/EndpointResolver.swift b/Sources/Services/AWSTranscribe/EndpointResolver.swift index 8383c140c68..87ad5d2ed89 100644 --- a/Sources/Services/AWSTranscribe/EndpointResolver.swift +++ b/Sources/Services/AWSTranscribe/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSTranscribeStreaming/EndpointResolver.swift b/Sources/Services/AWSTranscribeStreaming/EndpointResolver.swift index 66851ad96bd..e60ff766904 100644 --- a/Sources/Services/AWSTranscribeStreaming/EndpointResolver.swift +++ b/Sources/Services/AWSTranscribeStreaming/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSTransfer/EndpointResolver.swift b/Sources/Services/AWSTransfer/EndpointResolver.swift index e5c170ddb26..16b555c0941 100644 --- a/Sources/Services/AWSTransfer/EndpointResolver.swift +++ b/Sources/Services/AWSTransfer/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSTranslate/EndpointResolver.swift b/Sources/Services/AWSTranslate/EndpointResolver.swift index 1afa5b5c9ea..bac2f9baa3a 100644 --- a/Sources/Services/AWSTranslate/EndpointResolver.swift +++ b/Sources/Services/AWSTranslate/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSTrustedAdvisor/EndpointResolver.swift b/Sources/Services/AWSTrustedAdvisor/EndpointResolver.swift index 97c44b37e5e..a3813e0f535 100644 --- a/Sources/Services/AWSTrustedAdvisor/EndpointResolver.swift +++ b/Sources/Services/AWSTrustedAdvisor/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSVPCLattice/EndpointResolver.swift b/Sources/Services/AWSVPCLattice/EndpointResolver.swift index 279d1b2a656..df66ce67c04 100644 --- a/Sources/Services/AWSVPCLattice/EndpointResolver.swift +++ b/Sources/Services/AWSVPCLattice/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSVerifiedPermissions/EndpointResolver.swift b/Sources/Services/AWSVerifiedPermissions/EndpointResolver.swift index 256207ff3d4..54042d6f0c4 100644 --- a/Sources/Services/AWSVerifiedPermissions/EndpointResolver.swift +++ b/Sources/Services/AWSVerifiedPermissions/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSVoiceID/EndpointResolver.swift b/Sources/Services/AWSVoiceID/EndpointResolver.swift index 9e358b9c350..1a81e73b88f 100644 --- a/Sources/Services/AWSVoiceID/EndpointResolver.swift +++ b/Sources/Services/AWSVoiceID/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSWAF/EndpointResolver.swift b/Sources/Services/AWSWAF/EndpointResolver.swift index 823680617ec..ce97548ebea 100644 --- a/Sources/Services/AWSWAF/EndpointResolver.swift +++ b/Sources/Services/AWSWAF/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSWAFRegional/EndpointResolver.swift b/Sources/Services/AWSWAFRegional/EndpointResolver.swift index 8f71c855a14..7f4fe681459 100644 --- a/Sources/Services/AWSWAFRegional/EndpointResolver.swift +++ b/Sources/Services/AWSWAFRegional/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSWAFV2/EndpointResolver.swift b/Sources/Services/AWSWAFV2/EndpointResolver.swift index b850dd7f7b8..910ba5ea011 100644 --- a/Sources/Services/AWSWAFV2/EndpointResolver.swift +++ b/Sources/Services/AWSWAFV2/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSWellArchitected/EndpointResolver.swift b/Sources/Services/AWSWellArchitected/EndpointResolver.swift index d8b118b628d..5664990f64b 100644 --- a/Sources/Services/AWSWellArchitected/EndpointResolver.swift +++ b/Sources/Services/AWSWellArchitected/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSWisdom/EndpointResolver.swift b/Sources/Services/AWSWisdom/EndpointResolver.swift index da083c896a8..5ca3165ce46 100644 --- a/Sources/Services/AWSWisdom/EndpointResolver.swift +++ b/Sources/Services/AWSWisdom/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSWorkDocs/EndpointResolver.swift b/Sources/Services/AWSWorkDocs/EndpointResolver.swift index 3a533a20be2..c72ac97b7e8 100644 --- a/Sources/Services/AWSWorkDocs/EndpointResolver.swift +++ b/Sources/Services/AWSWorkDocs/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSWorkLink/EndpointResolver.swift b/Sources/Services/AWSWorkLink/EndpointResolver.swift index 80005e1c553..aa1fc7afedd 100644 --- a/Sources/Services/AWSWorkLink/EndpointResolver.swift +++ b/Sources/Services/AWSWorkLink/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSWorkMail/EndpointResolver.swift b/Sources/Services/AWSWorkMail/EndpointResolver.swift index f0346abcc9a..b4e9b5f9735 100644 --- a/Sources/Services/AWSWorkMail/EndpointResolver.swift +++ b/Sources/Services/AWSWorkMail/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSWorkMailMessageFlow/EndpointResolver.swift b/Sources/Services/AWSWorkMailMessageFlow/EndpointResolver.swift index a184bcec332..06b15b16263 100644 --- a/Sources/Services/AWSWorkMailMessageFlow/EndpointResolver.swift +++ b/Sources/Services/AWSWorkMailMessageFlow/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSWorkSpaces/EndpointResolver.swift b/Sources/Services/AWSWorkSpaces/EndpointResolver.swift index 1ecf38c8adb..cedf5f43ba7 100644 --- a/Sources/Services/AWSWorkSpaces/EndpointResolver.swift +++ b/Sources/Services/AWSWorkSpaces/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSWorkSpacesThinClient/EndpointResolver.swift b/Sources/Services/AWSWorkSpacesThinClient/EndpointResolver.swift index e890c45c77c..419c442c214 100644 --- a/Sources/Services/AWSWorkSpacesThinClient/EndpointResolver.swift +++ b/Sources/Services/AWSWorkSpacesThinClient/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSWorkSpacesWeb/EndpointResolver.swift b/Sources/Services/AWSWorkSpacesWeb/EndpointResolver.swift index e8956c99953..308995306be 100644 --- a/Sources/Services/AWSWorkSpacesWeb/EndpointResolver.swift +++ b/Sources/Services/AWSWorkSpacesWeb/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm)) diff --git a/Sources/Services/AWSXRay/EndpointResolver.swift b/Sources/Services/AWSXRay/EndpointResolver.swift index 3678da7de78..4051a250b22 100644 --- a/Sources/Services/AWSXRay/EndpointResolver.swift +++ b/Sources/Services/AWSXRay/EndpointResolver.swift @@ -126,9 +126,11 @@ public struct EndpointResolverMiddleware: ClientRuntime.Mi if let signingRegion = signingRegion { context.attributes.set(key: AttributeKeys.signingRegion, value: signingRegion) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingRegion, value: signingRegion)) } if let signingName = signingName { context.attributes.set(key: AttributeKeys.signingName, value: signingName) + context.attributes.set(key: AttributeKeys.selectedAuthScheme, value: context.getSelectedAuthScheme()?.getCopyWithUpdatedSigningProperty(key: AttributeKeys.signingName, value: signingName)) } if let signingAlgorithm = signingAlgorithm { context.attributes.set(key: AttributeKeys.signingAlgorithm, value: AWSSigningAlgorithm(rawValue: signingAlgorithm))