From a5849d4890cc136d1ac58c081ca7a3c5abd8b7d2 Mon Sep 17 00:00:00 2001 From: Luc Talatinian Date: Fri, 1 Dec 2023 11:30:07 -0500 Subject: [PATCH] fix: correct recognition and zeroing of cache-wrapped AnonymousCredentials --- .../c415e1511f46404882c790b8ae819b63.json | 381 ++++++++++++++++++ .../smithy/aws/go/codegen/SdkGoTypes.java | 1 + .../auth/IgnoreAnonymousCredentials.java | 4 +- internal/protocoltest/jsonrpc/options.go | 2 +- service/accessanalyzer/options.go | 2 +- service/account/options.go | 2 +- service/acm/options.go | 2 +- service/acmpca/options.go | 2 +- service/alexaforbusiness/options.go | 2 +- service/amp/options.go | 2 +- service/amplify/options.go | 2 +- service/amplifybackend/options.go | 2 +- service/amplifyuibuilder/options.go | 2 +- service/apigateway/options.go | 2 +- service/apigatewaymanagementapi/options.go | 2 +- service/apigatewayv2/options.go | 2 +- service/appconfig/options.go | 2 +- service/appconfigdata/options.go | 2 +- service/appfabric/options.go | 2 +- service/appflow/options.go | 2 +- service/appintegrations/options.go | 2 +- service/applicationautoscaling/options.go | 2 +- service/applicationcostprofiler/options.go | 2 +- .../applicationdiscoveryservice/options.go | 2 +- service/applicationinsights/options.go | 2 +- service/appmesh/options.go | 2 +- service/apprunner/options.go | 2 +- service/appstream/options.go | 2 +- service/appsync/options.go | 2 +- service/arczonalshift/options.go | 2 +- service/athena/options.go | 2 +- service/auditmanager/options.go | 2 +- service/autoscaling/options.go | 2 +- service/autoscalingplans/options.go | 2 +- service/b2bi/options.go | 2 +- service/backup/options.go | 2 +- service/backupgateway/options.go | 2 +- service/backupstorage/options.go | 2 +- service/batch/options.go | 2 +- service/bcmdataexports/options.go | 2 +- service/bedrock/options.go | 2 +- service/bedrockagent/options.go | 2 +- service/bedrockagentruntime/options.go | 2 +- service/bedrockruntime/options.go | 2 +- service/billingconductor/options.go | 2 +- service/braket/options.go | 2 +- service/budgets/options.go | 2 +- service/chime/options.go | 2 +- service/chimesdkidentity/options.go | 2 +- service/chimesdkmediapipelines/options.go | 2 +- service/chimesdkmeetings/options.go | 2 +- service/chimesdkmessaging/options.go | 2 +- service/chimesdkvoice/options.go | 2 +- service/cleanrooms/options.go | 2 +- service/cleanroomsml/options.go | 2 +- service/cloud9/options.go | 2 +- service/cloudcontrol/options.go | 2 +- service/clouddirectory/options.go | 2 +- service/cloudformation/options.go | 2 +- service/cloudfront/options.go | 2 +- service/cloudfrontkeyvaluestore/options.go | 2 +- service/cloudhsm/options.go | 2 +- service/cloudhsmv2/options.go | 2 +- service/cloudsearch/options.go | 2 +- service/cloudsearchdomain/options.go | 2 +- service/cloudtrail/options.go | 2 +- service/cloudtraildata/options.go | 2 +- service/cloudwatch/options.go | 2 +- service/cloudwatchevents/options.go | 2 +- service/cloudwatchlogs/options.go | 2 +- service/codeartifact/options.go | 2 +- service/codebuild/options.go | 2 +- service/codecommit/options.go | 2 +- service/codedeploy/options.go | 2 +- service/codeguruprofiler/options.go | 2 +- service/codegurureviewer/options.go | 2 +- service/codegurusecurity/options.go | 2 +- service/codepipeline/options.go | 2 +- service/codestar/options.go | 2 +- service/codestarconnections/options.go | 2 +- service/codestarnotifications/options.go | 2 +- service/cognitoidentity/options.go | 2 +- service/cognitoidentityprovider/options.go | 2 +- service/cognitosync/options.go | 2 +- service/comprehend/options.go | 2 +- service/comprehendmedical/options.go | 2 +- service/computeoptimizer/options.go | 2 +- service/configservice/options.go | 2 +- service/connect/options.go | 2 +- service/connectcampaigns/options.go | 2 +- service/connectcases/options.go | 2 +- service/connectcontactlens/options.go | 2 +- service/connectparticipant/options.go | 2 +- service/controltower/options.go | 2 +- service/costandusagereportservice/options.go | 2 +- service/costexplorer/options.go | 2 +- service/costoptimizationhub/options.go | 2 +- service/customerprofiles/options.go | 2 +- service/databasemigrationservice/options.go | 2 +- service/databrew/options.go | 2 +- service/dataexchange/options.go | 2 +- service/datapipeline/options.go | 2 +- service/datasync/options.go | 2 +- service/datazone/options.go | 2 +- service/dax/options.go | 2 +- service/detective/options.go | 2 +- service/devicefarm/options.go | 2 +- service/devopsguru/options.go | 2 +- service/directconnect/options.go | 2 +- service/directoryservice/options.go | 2 +- service/dlm/options.go | 2 +- service/docdb/options.go | 2 +- service/docdbelastic/options.go | 2 +- service/drs/options.go | 2 +- service/dynamodb/options.go | 2 +- service/dynamodbstreams/options.go | 2 +- service/ebs/options.go | 2 +- service/ec2/options.go | 2 +- service/ec2instanceconnect/options.go | 2 +- service/ecr/options.go | 2 +- service/ecrpublic/options.go | 2 +- service/ecs/options.go | 2 +- service/efs/options.go | 2 +- service/eks/options.go | 2 +- service/eksauth/options.go | 2 +- service/elasticache/options.go | 2 +- service/elasticbeanstalk/options.go | 2 +- service/elasticinference/options.go | 2 +- service/elasticloadbalancing/options.go | 2 +- service/elasticloadbalancingv2/options.go | 2 +- service/elasticsearchservice/options.go | 2 +- service/elastictranscoder/options.go | 2 +- service/emr/options.go | 2 +- service/emrcontainers/options.go | 2 +- service/emrserverless/options.go | 2 +- service/entityresolution/options.go | 2 +- service/eventbridge/options.go | 2 +- service/evidently/options.go | 2 +- service/finspace/options.go | 2 +- service/finspacedata/options.go | 2 +- service/firehose/options.go | 2 +- service/fis/options.go | 2 +- service/fms/options.go | 2 +- service/forecast/options.go | 2 +- service/forecastquery/options.go | 2 +- service/frauddetector/options.go | 2 +- service/freetier/options.go | 2 +- service/fsx/options.go | 2 +- service/gamelift/options.go | 2 +- service/glacier/options.go | 2 +- service/globalaccelerator/options.go | 2 +- service/glue/options.go | 2 +- service/grafana/options.go | 2 +- service/greengrass/options.go | 2 +- service/greengrassv2/options.go | 2 +- service/groundstation/options.go | 2 +- service/guardduty/options.go | 2 +- service/health/options.go | 2 +- service/healthlake/options.go | 2 +- service/honeycode/options.go | 2 +- service/iam/options.go | 2 +- service/identitystore/options.go | 2 +- service/imagebuilder/options.go | 2 +- service/inspector/options.go | 2 +- service/inspector2/options.go | 2 +- service/inspectorscan/options.go | 2 +- service/internetmonitor/options.go | 2 +- service/iot/options.go | 2 +- service/iot1clickdevicesservice/options.go | 2 +- service/iot1clickprojects/options.go | 2 +- service/iotanalytics/options.go | 2 +- service/iotdataplane/options.go | 2 +- service/iotdeviceadvisor/options.go | 2 +- service/iotevents/options.go | 2 +- service/ioteventsdata/options.go | 2 +- service/iotfleethub/options.go | 2 +- service/iotfleetwise/options.go | 2 +- service/iotjobsdataplane/options.go | 2 +- service/iotroborunner/options.go | 2 +- service/iotsecuretunneling/options.go | 2 +- service/iotsitewise/options.go | 2 +- service/iotthingsgraph/options.go | 2 +- service/iottwinmaker/options.go | 2 +- service/iotwireless/options.go | 2 +- service/ivs/options.go | 2 +- service/ivschat/options.go | 2 +- service/ivsrealtime/options.go | 2 +- service/kafka/options.go | 2 +- service/kafkaconnect/options.go | 2 +- service/kendra/options.go | 2 +- service/kendraranking/options.go | 2 +- service/keyspaces/options.go | 2 +- service/kinesis/options.go | 2 +- service/kinesisanalytics/options.go | 2 +- service/kinesisanalyticsv2/options.go | 2 +- service/kinesisvideo/options.go | 2 +- service/kinesisvideoarchivedmedia/options.go | 2 +- service/kinesisvideomedia/options.go | 2 +- service/kinesisvideosignaling/options.go | 2 +- service/kinesisvideowebrtcstorage/options.go | 2 +- service/kms/options.go | 2 +- service/lakeformation/options.go | 2 +- service/lambda/options.go | 2 +- service/launchwizard/options.go | 2 +- service/lexmodelbuildingservice/options.go | 2 +- service/lexmodelsv2/options.go | 2 +- service/lexruntimeservice/options.go | 2 +- service/lexruntimev2/options.go | 2 +- service/licensemanager/options.go | 2 +- .../options.go | 2 +- .../options.go | 2 +- service/lightsail/options.go | 2 +- service/location/options.go | 2 +- service/lookoutequipment/options.go | 2 +- service/lookoutmetrics/options.go | 2 +- service/lookoutvision/options.go | 2 +- service/m2/options.go | 2 +- service/machinelearning/options.go | 2 +- service/macie2/options.go | 2 +- service/managedblockchain/options.go | 2 +- service/managedblockchainquery/options.go | 2 +- service/marketplaceagreement/options.go | 2 +- service/marketplacecatalog/options.go | 2 +- .../marketplacecommerceanalytics/options.go | 2 +- service/marketplacedeployment/options.go | 2 +- .../marketplaceentitlementservice/options.go | 2 +- service/marketplacemetering/options.go | 2 +- service/mediaconnect/options.go | 2 +- service/mediaconvert/options.go | 2 +- service/medialive/options.go | 2 +- service/mediapackage/options.go | 2 +- service/mediapackagev2/options.go | 2 +- service/mediapackagevod/options.go | 2 +- service/mediastore/options.go | 2 +- service/mediastoredata/options.go | 2 +- service/mediatailor/options.go | 2 +- service/medicalimaging/options.go | 2 +- service/memorydb/options.go | 2 +- service/mgn/options.go | 2 +- service/migrationhub/options.go | 2 +- service/migrationhubconfig/options.go | 2 +- service/migrationhuborchestrator/options.go | 2 +- service/migrationhubrefactorspaces/options.go | 2 +- service/migrationhubstrategy/options.go | 2 +- service/mobile/options.go | 2 +- service/mq/options.go | 2 +- service/mturk/options.go | 2 +- service/mwaa/options.go | 2 +- service/neptune/options.go | 2 +- service/neptunedata/options.go | 2 +- service/networkfirewall/options.go | 2 +- service/networkmanager/options.go | 2 +- service/nimble/options.go | 2 +- service/oam/options.go | 2 +- service/omics/options.go | 2 +- service/opensearch/options.go | 2 +- service/opensearchserverless/options.go | 2 +- service/opsworks/options.go | 2 +- service/opsworkscm/options.go | 2 +- service/organizations/options.go | 2 +- service/osis/options.go | 2 +- service/outposts/options.go | 2 +- service/panorama/options.go | 2 +- service/paymentcryptography/options.go | 2 +- service/paymentcryptographydata/options.go | 2 +- service/pcaconnectorad/options.go | 2 +- service/personalize/options.go | 2 +- service/personalizeevents/options.go | 2 +- service/personalizeruntime/options.go | 2 +- service/pi/options.go | 2 +- service/pinpoint/options.go | 2 +- service/pinpointemail/options.go | 2 +- service/pinpointsmsvoice/options.go | 2 +- service/pinpointsmsvoicev2/options.go | 2 +- service/pipes/options.go | 2 +- service/polly/options.go | 2 +- service/pricing/options.go | 2 +- service/privatenetworks/options.go | 2 +- service/proton/options.go | 2 +- service/qbusiness/options.go | 2 +- service/qconnect/options.go | 2 +- service/qldb/options.go | 2 +- service/qldbsession/options.go | 2 +- service/quicksight/options.go | 2 +- service/ram/options.go | 2 +- service/rbin/options.go | 2 +- service/rds/options.go | 2 +- service/rdsdata/options.go | 2 +- service/redshift/options.go | 2 +- service/redshiftdata/options.go | 2 +- service/redshiftserverless/options.go | 2 +- service/rekognition/options.go | 2 +- service/repostspace/options.go | 2 +- service/resiliencehub/options.go | 2 +- service/resourceexplorer2/options.go | 2 +- service/resourcegroups/options.go | 2 +- service/resourcegroupstaggingapi/options.go | 2 +- service/robomaker/options.go | 2 +- service/rolesanywhere/options.go | 2 +- service/route53/options.go | 2 +- service/route53domains/options.go | 2 +- service/route53recoverycluster/options.go | 2 +- .../route53recoverycontrolconfig/options.go | 2 +- service/route53recoveryreadiness/options.go | 2 +- service/route53resolver/options.go | 2 +- service/rum/options.go | 2 +- service/s3/options.go | 2 +- service/s3control/options.go | 2 +- service/s3outposts/options.go | 2 +- service/sagemaker/options.go | 2 +- service/sagemakera2iruntime/options.go | 2 +- service/sagemakeredge/options.go | 2 +- .../sagemakerfeaturestoreruntime/options.go | 2 +- service/sagemakergeospatial/options.go | 2 +- service/sagemakermetrics/options.go | 2 +- service/sagemakerruntime/options.go | 2 +- service/savingsplans/options.go | 2 +- service/scheduler/options.go | 2 +- service/schemas/options.go | 2 +- service/secretsmanager/options.go | 2 +- service/securityhub/options.go | 2 +- service/securitylake/options.go | 2 +- .../options.go | 2 +- service/servicecatalog/options.go | 2 +- service/servicecatalogappregistry/options.go | 2 +- service/servicediscovery/options.go | 2 +- service/servicequotas/options.go | 2 +- service/ses/options.go | 2 +- service/sesv2/options.go | 2 +- service/sfn/options.go | 2 +- service/shield/options.go | 2 +- service/signer/options.go | 2 +- service/simspaceweaver/options.go | 2 +- service/sms/options.go | 2 +- service/snowball/options.go | 2 +- service/snowdevicemanagement/options.go | 2 +- service/sns/options.go | 2 +- service/sqs/options.go | 2 +- service/ssm/options.go | 2 +- service/ssmcontacts/options.go | 2 +- service/ssmincidents/options.go | 2 +- service/ssmsap/options.go | 2 +- service/sso/options.go | 2 +- service/ssoadmin/options.go | 2 +- service/ssooidc/options.go | 2 +- service/storagegateway/options.go | 2 +- service/sts/options.go | 2 +- service/support/options.go | 2 +- service/supportapp/options.go | 2 +- service/swf/options.go | 2 +- service/synthetics/options.go | 2 +- service/textract/options.go | 2 +- service/timestreamquery/options.go | 2 +- service/timestreamwrite/options.go | 2 +- service/tnb/options.go | 2 +- service/transcribe/options.go | 2 +- service/transcribestreaming/options.go | 2 +- service/transfer/options.go | 2 +- service/translate/options.go | 2 +- service/trustedadvisor/options.go | 2 +- service/verifiedpermissions/options.go | 2 +- service/voiceid/options.go | 2 +- service/vpclattice/options.go | 2 +- service/waf/options.go | 2 +- service/wafregional/options.go | 2 +- service/wafv2/options.go | 2 +- service/wellarchitected/options.go | 2 +- service/wisdom/options.go | 2 +- service/workdocs/options.go | 2 +- service/worklink/options.go | 2 +- service/workmail/options.go | 2 +- service/workmailmessageflow/options.go | 2 +- service/workspaces/options.go | 2 +- service/workspacesthinclient/options.go | 2 +- service/workspacesweb/options.go | 2 +- service/xray/options.go | 2 +- 376 files changed, 757 insertions(+), 375 deletions(-) create mode 100644 .changelog/c415e1511f46404882c790b8ae819b63.json diff --git a/.changelog/c415e1511f46404882c790b8ae819b63.json b/.changelog/c415e1511f46404882c790b8ae819b63.json new file mode 100644 index 00000000000..0656affdc7c --- /dev/null +++ b/.changelog/c415e1511f46404882c790b8ae819b63.json @@ -0,0 +1,381 @@ +{ + "id": "c415e151-1f46-4048-82c7-90b8ae819b63", + "type": "bugfix", + "collapse": true, + "description": "Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction.", + "modules": [ + "internal/protocoltest/jsonrpc", + "service/accessanalyzer", + "service/account", + "service/acm", + "service/acmpca", + "service/alexaforbusiness", + "service/amp", + "service/amplify", + "service/amplifybackend", + "service/amplifyuibuilder", + "service/apigateway", + "service/apigatewaymanagementapi", + "service/apigatewayv2", + "service/appconfig", + "service/appconfigdata", + "service/appfabric", + "service/appflow", + "service/appintegrations", + "service/applicationautoscaling", + "service/applicationcostprofiler", + "service/applicationdiscoveryservice", + "service/applicationinsights", + "service/appmesh", + "service/apprunner", + "service/appstream", + "service/appsync", + "service/arczonalshift", + "service/athena", + "service/auditmanager", + "service/autoscaling", + "service/autoscalingplans", + "service/b2bi", + "service/backup", + "service/backupgateway", + "service/backupstorage", + "service/batch", + "service/bcmdataexports", + "service/bedrock", + "service/bedrockagent", + "service/bedrockagentruntime", + "service/bedrockruntime", + "service/billingconductor", + "service/braket", + "service/budgets", + "service/chime", + "service/chimesdkidentity", + "service/chimesdkmediapipelines", + "service/chimesdkmeetings", + "service/chimesdkmessaging", + "service/chimesdkvoice", + "service/cleanrooms", + "service/cleanroomsml", + "service/cloud9", + "service/cloudcontrol", + "service/clouddirectory", + "service/cloudformation", + "service/cloudfront", + "service/cloudfrontkeyvaluestore", + "service/cloudhsm", + "service/cloudhsmv2", + "service/cloudsearch", + "service/cloudsearchdomain", + "service/cloudtrail", + "service/cloudtraildata", + "service/cloudwatch", + "service/cloudwatchevents", + "service/cloudwatchlogs", + "service/codeartifact", + "service/codebuild", + "service/codecommit", + "service/codedeploy", + "service/codeguruprofiler", + "service/codegurureviewer", + "service/codegurusecurity", + "service/codepipeline", + "service/codestar", + "service/codestarconnections", + "service/codestarnotifications", + "service/cognitoidentity", + "service/cognitoidentityprovider", + "service/cognitosync", + "service/comprehend", + "service/comprehendmedical", + "service/computeoptimizer", + "service/configservice", + "service/connect", + "service/connectcampaigns", + "service/connectcases", + "service/connectcontactlens", + "service/connectparticipant", + "service/controltower", + "service/costandusagereportservice", + "service/costexplorer", + "service/costoptimizationhub", + "service/customerprofiles", + "service/databasemigrationservice", + "service/databrew", + "service/dataexchange", + "service/datapipeline", + "service/datasync", + "service/datazone", + "service/dax", + "service/detective", + "service/devicefarm", + "service/devopsguru", + "service/directconnect", + "service/directoryservice", + "service/dlm", + "service/docdb", + "service/docdbelastic", + "service/drs", + "service/dynamodb", + "service/dynamodbstreams", + "service/ebs", + "service/ec2", + "service/ec2instanceconnect", + "service/ecr", + "service/ecrpublic", + "service/ecs", + "service/efs", + "service/eks", + "service/eksauth", + "service/elasticache", + "service/elasticbeanstalk", + "service/elasticinference", + "service/elasticloadbalancing", + "service/elasticloadbalancingv2", + "service/elasticsearchservice", + "service/elastictranscoder", + "service/emr", + "service/emrcontainers", + "service/emrserverless", + "service/entityresolution", + "service/eventbridge", + "service/evidently", + "service/finspace", + "service/finspacedata", + "service/firehose", + "service/fis", + "service/fms", + "service/forecast", + "service/forecastquery", + "service/frauddetector", + "service/freetier", + "service/fsx", + "service/gamelift", + "service/glacier", + "service/globalaccelerator", + "service/glue", + "service/grafana", + "service/greengrass", + "service/greengrassv2", + "service/groundstation", + "service/guardduty", + "service/health", + "service/healthlake", + "service/honeycode", + "service/iam", + "service/identitystore", + "service/imagebuilder", + "service/inspector", + "service/inspector2", + "service/inspectorscan", + "service/internetmonitor", + "service/iot", + "service/iot1clickdevicesservice", + "service/iot1clickprojects", + "service/iotanalytics", + "service/iotdataplane", + "service/iotdeviceadvisor", + "service/iotevents", + "service/ioteventsdata", + "service/iotfleethub", + "service/iotfleetwise", + "service/iotjobsdataplane", + "service/iotroborunner", + "service/iotsecuretunneling", + "service/iotsitewise", + "service/iotthingsgraph", + "service/iottwinmaker", + "service/iotwireless", + "service/ivs", + "service/ivschat", + "service/ivsrealtime", + "service/kafka", + "service/kafkaconnect", + "service/kendra", + "service/kendraranking", + "service/keyspaces", + "service/kinesis", + "service/kinesisanalytics", + "service/kinesisanalyticsv2", + "service/kinesisvideo", + "service/kinesisvideoarchivedmedia", + "service/kinesisvideomedia", + "service/kinesisvideosignaling", + "service/kinesisvideowebrtcstorage", + "service/kms", + "service/lakeformation", + "service/lambda", + "service/launchwizard", + "service/lexmodelbuildingservice", + "service/lexmodelsv2", + "service/lexruntimeservice", + "service/lexruntimev2", + "service/licensemanager", + "service/licensemanagerlinuxsubscriptions", + "service/licensemanagerusersubscriptions", + "service/lightsail", + "service/location", + "service/lookoutequipment", + "service/lookoutmetrics", + "service/lookoutvision", + "service/m2", + "service/machinelearning", + "service/macie2", + "service/managedblockchain", + "service/managedblockchainquery", + "service/marketplaceagreement", + "service/marketplacecatalog", + "service/marketplacecommerceanalytics", + "service/marketplacedeployment", + "service/marketplaceentitlementservice", + "service/marketplacemetering", + "service/mediaconnect", + "service/mediaconvert", + "service/medialive", + "service/mediapackage", + "service/mediapackagev2", + "service/mediapackagevod", + "service/mediastore", + "service/mediastoredata", + "service/mediatailor", + "service/medicalimaging", + "service/memorydb", + "service/mgn", + "service/migrationhub", + "service/migrationhubconfig", + "service/migrationhuborchestrator", + "service/migrationhubrefactorspaces", + "service/migrationhubstrategy", + "service/mobile", + "service/mq", + "service/mturk", + "service/mwaa", + "service/neptune", + "service/neptunedata", + "service/networkfirewall", + "service/networkmanager", + "service/nimble", + "service/oam", + "service/omics", + "service/opensearch", + "service/opensearchserverless", + "service/opsworks", + "service/opsworkscm", + "service/organizations", + "service/osis", + "service/outposts", + "service/panorama", + "service/paymentcryptography", + "service/paymentcryptographydata", + "service/pcaconnectorad", + "service/personalize", + "service/personalizeevents", + "service/personalizeruntime", + "service/pi", + "service/pinpoint", + "service/pinpointemail", + "service/pinpointsmsvoice", + "service/pinpointsmsvoicev2", + "service/pipes", + "service/polly", + "service/pricing", + "service/privatenetworks", + "service/proton", + "service/qbusiness", + "service/qconnect", + "service/qldb", + "service/qldbsession", + "service/quicksight", + "service/ram", + "service/rbin", + "service/rds", + "service/rdsdata", + "service/redshift", + "service/redshiftdata", + "service/redshiftserverless", + "service/rekognition", + "service/repostspace", + "service/resiliencehub", + "service/resourceexplorer2", + "service/resourcegroups", + "service/resourcegroupstaggingapi", + "service/robomaker", + "service/rolesanywhere", + "service/route53", + "service/route53domains", + "service/route53recoverycluster", + "service/route53recoverycontrolconfig", + "service/route53recoveryreadiness", + "service/route53resolver", + "service/rum", + "service/s3", + "service/s3control", + "service/s3outposts", + "service/sagemaker", + "service/sagemakera2iruntime", + "service/sagemakeredge", + "service/sagemakerfeaturestoreruntime", + "service/sagemakergeospatial", + "service/sagemakermetrics", + "service/sagemakerruntime", + "service/savingsplans", + "service/scheduler", + "service/schemas", + "service/secretsmanager", + "service/securityhub", + "service/securitylake", + "service/serverlessapplicationrepository", + "service/servicecatalog", + "service/servicecatalogappregistry", + "service/servicediscovery", + "service/servicequotas", + "service/ses", + "service/sesv2", + "service/sfn", + "service/shield", + "service/signer", + "service/simspaceweaver", + "service/sms", + "service/snowball", + "service/snowdevicemanagement", + "service/sns", + "service/sqs", + "service/ssm", + "service/ssmcontacts", + "service/ssmincidents", + "service/ssmsap", + "service/sso", + "service/ssoadmin", + "service/ssooidc", + "service/storagegateway", + "service/sts", + "service/support", + "service/supportapp", + "service/swf", + "service/synthetics", + "service/textract", + "service/timestreamquery", + "service/timestreamwrite", + "service/tnb", + "service/transcribe", + "service/transcribestreaming", + "service/transfer", + "service/translate", + "service/trustedadvisor", + "service/verifiedpermissions", + "service/voiceid", + "service/vpclattice", + "service/waf", + "service/wafregional", + "service/wafv2", + "service/wellarchitected", + "service/wisdom", + "service/workdocs", + "service/worklink", + "service/workmail", + "service/workmailmessageflow", + "service/workspaces", + "service/workspacesthinclient", + "service/workspacesweb", + "service/xray" + ] +} \ No newline at end of file diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/SdkGoTypes.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/SdkGoTypes.java index 9ef37ee873c..437372a1ec0 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/SdkGoTypes.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/SdkGoTypes.java @@ -31,6 +31,7 @@ public static final class Aws { public static final Symbol FIPSEndpointStateEnabled = AwsGoDependency.AWS_CORE.valueSymbol("FIPSEndpointStateEnabled"); public static final Symbol DualStackEndpointStateEnabled = AwsGoDependency.AWS_CORE.valueSymbol("DualStackEndpointStateEnabled"); + public static final Symbol IsCredentialsProvider = AwsGoDependency.AWS_CORE.valueSymbol("IsCredentialsProvider"); public static final Symbol AnonymousCredentials = AwsGoDependency.AWS_CORE.pointableSymbol("AnonymousCredentials"); public static final class Middleware { diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/auth/IgnoreAnonymousCredentials.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/auth/IgnoreAnonymousCredentials.java index e30f879c23c..bd51b8f3a5d 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/auth/IgnoreAnonymousCredentials.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/auth/IgnoreAnonymousCredentials.java @@ -70,10 +70,10 @@ public void writeAdditionalFiles( private GoWriter.Writable generateResolver() { return goTemplate(""" func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.($T); ok { + if $T(options.Credentials, ($P)(nil)) { options.Credentials = nil } } - """, SdkGoTypes.Aws.AnonymousCredentials); + """, SdkGoTypes.Aws.IsCredentialsProvider, SdkGoTypes.Aws.AnonymousCredentials); } } diff --git a/internal/protocoltest/jsonrpc/options.go b/internal/protocoltest/jsonrpc/options.go index 881ecd9b447..10a34932600 100644 --- a/internal/protocoltest/jsonrpc/options.go +++ b/internal/protocoltest/jsonrpc/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/accessanalyzer/options.go b/service/accessanalyzer/options.go index c94c5c30ce8..c974c390cf3 100644 --- a/service/accessanalyzer/options.go +++ b/service/accessanalyzer/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/account/options.go b/service/account/options.go index 70fd633ad7d..ac766c6e7a8 100644 --- a/service/account/options.go +++ b/service/account/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/acm/options.go b/service/acm/options.go index 57a458e668c..38e0fcffb29 100644 --- a/service/acm/options.go +++ b/service/acm/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/acmpca/options.go b/service/acmpca/options.go index 75916ee78ec..4f100a8919f 100644 --- a/service/acmpca/options.go +++ b/service/acmpca/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/alexaforbusiness/options.go b/service/alexaforbusiness/options.go index 26d0934cab6..99d69ee43bb 100644 --- a/service/alexaforbusiness/options.go +++ b/service/alexaforbusiness/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/amp/options.go b/service/amp/options.go index dbdf8835b2b..beb555a72bf 100644 --- a/service/amp/options.go +++ b/service/amp/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/amplify/options.go b/service/amplify/options.go index fed5bb8ce76..a1186111ff3 100644 --- a/service/amplify/options.go +++ b/service/amplify/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/amplifybackend/options.go b/service/amplifybackend/options.go index fc4850de334..9962b349e30 100644 --- a/service/amplifybackend/options.go +++ b/service/amplifybackend/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/amplifyuibuilder/options.go b/service/amplifyuibuilder/options.go index 4c9743711a7..fdbb02a4e20 100644 --- a/service/amplifyuibuilder/options.go +++ b/service/amplifyuibuilder/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/apigateway/options.go b/service/apigateway/options.go index 8cacbcd5e23..56bb46790bb 100644 --- a/service/apigateway/options.go +++ b/service/apigateway/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/apigatewaymanagementapi/options.go b/service/apigatewaymanagementapi/options.go index 7846d7b6867..a1e983f28d1 100644 --- a/service/apigatewaymanagementapi/options.go +++ b/service/apigatewaymanagementapi/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/apigatewayv2/options.go b/service/apigatewayv2/options.go index 24bcbccb8e4..e47bff6bb48 100644 --- a/service/apigatewayv2/options.go +++ b/service/apigatewayv2/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/appconfig/options.go b/service/appconfig/options.go index 32a6e152c1c..6d9871341e4 100644 --- a/service/appconfig/options.go +++ b/service/appconfig/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/appconfigdata/options.go b/service/appconfigdata/options.go index d9ebd404f07..28f6e4bc7ae 100644 --- a/service/appconfigdata/options.go +++ b/service/appconfigdata/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/appfabric/options.go b/service/appfabric/options.go index 02cefcf2035..17a46d604cb 100644 --- a/service/appfabric/options.go +++ b/service/appfabric/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/appflow/options.go b/service/appflow/options.go index 6946ba3014c..69fa42c815f 100644 --- a/service/appflow/options.go +++ b/service/appflow/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/appintegrations/options.go b/service/appintegrations/options.go index 0d7f13e6f75..b392e68c3f4 100644 --- a/service/appintegrations/options.go +++ b/service/appintegrations/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/applicationautoscaling/options.go b/service/applicationautoscaling/options.go index 4dd612645df..d7f07c47c99 100644 --- a/service/applicationautoscaling/options.go +++ b/service/applicationautoscaling/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/applicationcostprofiler/options.go b/service/applicationcostprofiler/options.go index 28c8651435b..036c3d711d7 100644 --- a/service/applicationcostprofiler/options.go +++ b/service/applicationcostprofiler/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/applicationdiscoveryservice/options.go b/service/applicationdiscoveryservice/options.go index fd7bde331dc..f3243c4210b 100644 --- a/service/applicationdiscoveryservice/options.go +++ b/service/applicationdiscoveryservice/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/applicationinsights/options.go b/service/applicationinsights/options.go index c5f55d5abdf..881b0552fc1 100644 --- a/service/applicationinsights/options.go +++ b/service/applicationinsights/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/appmesh/options.go b/service/appmesh/options.go index cb9cb6eca42..9a2ace7d992 100644 --- a/service/appmesh/options.go +++ b/service/appmesh/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/apprunner/options.go b/service/apprunner/options.go index 65374947a64..4f3741a09a9 100644 --- a/service/apprunner/options.go +++ b/service/apprunner/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/appstream/options.go b/service/appstream/options.go index 5619fe4e9a8..24237ac9514 100644 --- a/service/appstream/options.go +++ b/service/appstream/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/appsync/options.go b/service/appsync/options.go index 8c8a3c67e9c..8b6b06cf28f 100644 --- a/service/appsync/options.go +++ b/service/appsync/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/arczonalshift/options.go b/service/arczonalshift/options.go index 5cf64002189..033da0c2d2f 100644 --- a/service/arczonalshift/options.go +++ b/service/arczonalshift/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/athena/options.go b/service/athena/options.go index a84436662f1..73f834130c0 100644 --- a/service/athena/options.go +++ b/service/athena/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/auditmanager/options.go b/service/auditmanager/options.go index a1b9fd357a8..1967bce1f94 100644 --- a/service/auditmanager/options.go +++ b/service/auditmanager/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/autoscaling/options.go b/service/autoscaling/options.go index 53e11b6fad6..049bac57942 100644 --- a/service/autoscaling/options.go +++ b/service/autoscaling/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/autoscalingplans/options.go b/service/autoscalingplans/options.go index 3c7d3bcca76..40dc129b6d9 100644 --- a/service/autoscalingplans/options.go +++ b/service/autoscalingplans/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/b2bi/options.go b/service/b2bi/options.go index 39d08cac7d0..676eb81bd15 100644 --- a/service/b2bi/options.go +++ b/service/b2bi/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/backup/options.go b/service/backup/options.go index 42ea267d357..09a5be872a9 100644 --- a/service/backup/options.go +++ b/service/backup/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/backupgateway/options.go b/service/backupgateway/options.go index 9f57b721aee..3dabc9dbace 100644 --- a/service/backupgateway/options.go +++ b/service/backupgateway/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/backupstorage/options.go b/service/backupstorage/options.go index 7a158e631a4..6f1a7ff35dd 100644 --- a/service/backupstorage/options.go +++ b/service/backupstorage/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/batch/options.go b/service/batch/options.go index 8d0affc3a3d..5ea41de094d 100644 --- a/service/batch/options.go +++ b/service/batch/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/bcmdataexports/options.go b/service/bcmdataexports/options.go index f3c5cafe320..784cf9cbdba 100644 --- a/service/bcmdataexports/options.go +++ b/service/bcmdataexports/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/bedrock/options.go b/service/bedrock/options.go index 546be55a58d..1daf0338f0b 100644 --- a/service/bedrock/options.go +++ b/service/bedrock/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/bedrockagent/options.go b/service/bedrockagent/options.go index b52f7c2bd95..9e43686ae36 100644 --- a/service/bedrockagent/options.go +++ b/service/bedrockagent/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/bedrockagentruntime/options.go b/service/bedrockagentruntime/options.go index 1c8693acce7..88048cc3427 100644 --- a/service/bedrockagentruntime/options.go +++ b/service/bedrockagentruntime/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/bedrockruntime/options.go b/service/bedrockruntime/options.go index 3a6e323628c..a9a1d1eea7a 100644 --- a/service/bedrockruntime/options.go +++ b/service/bedrockruntime/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/billingconductor/options.go b/service/billingconductor/options.go index 6930a333b5a..7940bd28c9c 100644 --- a/service/billingconductor/options.go +++ b/service/billingconductor/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/braket/options.go b/service/braket/options.go index 5ca3cce2c66..9ef3bc46bb7 100644 --- a/service/braket/options.go +++ b/service/braket/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/budgets/options.go b/service/budgets/options.go index 05db02b5342..213c58004b8 100644 --- a/service/budgets/options.go +++ b/service/budgets/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/chime/options.go b/service/chime/options.go index ab84c7c7f03..7b9550b7284 100644 --- a/service/chime/options.go +++ b/service/chime/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/chimesdkidentity/options.go b/service/chimesdkidentity/options.go index 2a456cc337c..111a3896973 100644 --- a/service/chimesdkidentity/options.go +++ b/service/chimesdkidentity/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/chimesdkmediapipelines/options.go b/service/chimesdkmediapipelines/options.go index 4f83387e322..3a413538674 100644 --- a/service/chimesdkmediapipelines/options.go +++ b/service/chimesdkmediapipelines/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/chimesdkmeetings/options.go b/service/chimesdkmeetings/options.go index 6e95578b549..d43f27c1106 100644 --- a/service/chimesdkmeetings/options.go +++ b/service/chimesdkmeetings/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/chimesdkmessaging/options.go b/service/chimesdkmessaging/options.go index 7fbd2327c32..737fbba7ae2 100644 --- a/service/chimesdkmessaging/options.go +++ b/service/chimesdkmessaging/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/chimesdkvoice/options.go b/service/chimesdkvoice/options.go index bea94ed1c5a..231e2d4d796 100644 --- a/service/chimesdkvoice/options.go +++ b/service/chimesdkvoice/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cleanrooms/options.go b/service/cleanrooms/options.go index cc28e9e22db..e2984872643 100644 --- a/service/cleanrooms/options.go +++ b/service/cleanrooms/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cleanroomsml/options.go b/service/cleanroomsml/options.go index 111e3fb3ab7..316ffadcadc 100644 --- a/service/cleanroomsml/options.go +++ b/service/cleanroomsml/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloud9/options.go b/service/cloud9/options.go index 825e88347cc..8ff679193cd 100644 --- a/service/cloud9/options.go +++ b/service/cloud9/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudcontrol/options.go b/service/cloudcontrol/options.go index 140e6f17d60..61fc759a181 100644 --- a/service/cloudcontrol/options.go +++ b/service/cloudcontrol/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/clouddirectory/options.go b/service/clouddirectory/options.go index 6ac618738b0..713ad3a8653 100644 --- a/service/clouddirectory/options.go +++ b/service/clouddirectory/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudformation/options.go b/service/cloudformation/options.go index bc3e4745896..47fc19be5ff 100644 --- a/service/cloudformation/options.go +++ b/service/cloudformation/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudfront/options.go b/service/cloudfront/options.go index b0821518a6e..e44018250c7 100644 --- a/service/cloudfront/options.go +++ b/service/cloudfront/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudfrontkeyvaluestore/options.go b/service/cloudfrontkeyvaluestore/options.go index 72f1c83cd65..42b2c109c3a 100644 --- a/service/cloudfrontkeyvaluestore/options.go +++ b/service/cloudfrontkeyvaluestore/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudhsm/options.go b/service/cloudhsm/options.go index 98c07fe2a37..f9bb2777067 100644 --- a/service/cloudhsm/options.go +++ b/service/cloudhsm/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudhsmv2/options.go b/service/cloudhsmv2/options.go index 7fa290364da..87e421bb578 100644 --- a/service/cloudhsmv2/options.go +++ b/service/cloudhsmv2/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudsearch/options.go b/service/cloudsearch/options.go index 3b268cb1488..21f6c9d39f1 100644 --- a/service/cloudsearch/options.go +++ b/service/cloudsearch/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudsearchdomain/options.go b/service/cloudsearchdomain/options.go index 5d607366b95..f38c1e9acb4 100644 --- a/service/cloudsearchdomain/options.go +++ b/service/cloudsearchdomain/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudtrail/options.go b/service/cloudtrail/options.go index 8c03de615a2..0e7ddf1137b 100644 --- a/service/cloudtrail/options.go +++ b/service/cloudtrail/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudtraildata/options.go b/service/cloudtraildata/options.go index 0e826fa100d..95faf33ad90 100644 --- a/service/cloudtraildata/options.go +++ b/service/cloudtraildata/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudwatch/options.go b/service/cloudwatch/options.go index 86683c242f6..ad28771a6e9 100644 --- a/service/cloudwatch/options.go +++ b/service/cloudwatch/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudwatchevents/options.go b/service/cloudwatchevents/options.go index 46ff6dc34cb..c73b183f00c 100644 --- a/service/cloudwatchevents/options.go +++ b/service/cloudwatchevents/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudwatchlogs/options.go b/service/cloudwatchlogs/options.go index d6d08cee804..87f8c97dd52 100644 --- a/service/cloudwatchlogs/options.go +++ b/service/cloudwatchlogs/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/codeartifact/options.go b/service/codeartifact/options.go index 0e06819a2f8..b2761a75414 100644 --- a/service/codeartifact/options.go +++ b/service/codeartifact/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/codebuild/options.go b/service/codebuild/options.go index 83121a3d7c8..632ff39e2fc 100644 --- a/service/codebuild/options.go +++ b/service/codebuild/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/codecommit/options.go b/service/codecommit/options.go index 4dee753b10c..b8366d5c39b 100644 --- a/service/codecommit/options.go +++ b/service/codecommit/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/codedeploy/options.go b/service/codedeploy/options.go index 326f7c3250a..e118eed09ba 100644 --- a/service/codedeploy/options.go +++ b/service/codedeploy/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/codeguruprofiler/options.go b/service/codeguruprofiler/options.go index 25dce397d7a..6ea9de22b5d 100644 --- a/service/codeguruprofiler/options.go +++ b/service/codeguruprofiler/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/codegurureviewer/options.go b/service/codegurureviewer/options.go index 0b86f8d54fd..61c72bb8ee4 100644 --- a/service/codegurureviewer/options.go +++ b/service/codegurureviewer/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/codegurusecurity/options.go b/service/codegurusecurity/options.go index f1e47ebc373..cf2c2b618c5 100644 --- a/service/codegurusecurity/options.go +++ b/service/codegurusecurity/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/codepipeline/options.go b/service/codepipeline/options.go index 9f05ed4bd06..56223a36146 100644 --- a/service/codepipeline/options.go +++ b/service/codepipeline/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/codestar/options.go b/service/codestar/options.go index 2862e5859c8..bc184a0209e 100644 --- a/service/codestar/options.go +++ b/service/codestar/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/codestarconnections/options.go b/service/codestarconnections/options.go index be3984db7d8..6910f3816c5 100644 --- a/service/codestarconnections/options.go +++ b/service/codestarconnections/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/codestarnotifications/options.go b/service/codestarnotifications/options.go index 7d95b520a96..7c3cf5d9ff6 100644 --- a/service/codestarnotifications/options.go +++ b/service/codestarnotifications/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cognitoidentity/options.go b/service/cognitoidentity/options.go index b7ff231e73d..e33e070cc88 100644 --- a/service/cognitoidentity/options.go +++ b/service/cognitoidentity/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cognitoidentityprovider/options.go b/service/cognitoidentityprovider/options.go index ca29c836a91..8f7598eabd3 100644 --- a/service/cognitoidentityprovider/options.go +++ b/service/cognitoidentityprovider/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cognitosync/options.go b/service/cognitosync/options.go index 16e91c843b9..dd58e3fbf6f 100644 --- a/service/cognitosync/options.go +++ b/service/cognitosync/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/comprehend/options.go b/service/comprehend/options.go index a8f7a0fb6d4..b629fee4580 100644 --- a/service/comprehend/options.go +++ b/service/comprehend/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/comprehendmedical/options.go b/service/comprehendmedical/options.go index de51f21cabf..731c2b1d308 100644 --- a/service/comprehendmedical/options.go +++ b/service/comprehendmedical/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/computeoptimizer/options.go b/service/computeoptimizer/options.go index b493675999e..40a0d88c8fd 100644 --- a/service/computeoptimizer/options.go +++ b/service/computeoptimizer/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/configservice/options.go b/service/configservice/options.go index 445bb614fd3..b0ba55a36f3 100644 --- a/service/configservice/options.go +++ b/service/configservice/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/connect/options.go b/service/connect/options.go index a252c38d215..22a86938bf8 100644 --- a/service/connect/options.go +++ b/service/connect/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/connectcampaigns/options.go b/service/connectcampaigns/options.go index ffd05f2789d..5d4b41c0d45 100644 --- a/service/connectcampaigns/options.go +++ b/service/connectcampaigns/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/connectcases/options.go b/service/connectcases/options.go index dc74c5558e0..ca167e7055e 100644 --- a/service/connectcases/options.go +++ b/service/connectcases/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/connectcontactlens/options.go b/service/connectcontactlens/options.go index 0f551a399a0..28455ee762f 100644 --- a/service/connectcontactlens/options.go +++ b/service/connectcontactlens/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/connectparticipant/options.go b/service/connectparticipant/options.go index 0b0eecce656..30aa3a9591a 100644 --- a/service/connectparticipant/options.go +++ b/service/connectparticipant/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/controltower/options.go b/service/controltower/options.go index 5676a287bef..1e46739d68f 100644 --- a/service/controltower/options.go +++ b/service/controltower/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/costandusagereportservice/options.go b/service/costandusagereportservice/options.go index f014baf42a7..7c4169b1b75 100644 --- a/service/costandusagereportservice/options.go +++ b/service/costandusagereportservice/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/costexplorer/options.go b/service/costexplorer/options.go index 9c29fec05bd..05922092123 100644 --- a/service/costexplorer/options.go +++ b/service/costexplorer/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/costoptimizationhub/options.go b/service/costoptimizationhub/options.go index 5b9b16540f9..39941255691 100644 --- a/service/costoptimizationhub/options.go +++ b/service/costoptimizationhub/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/customerprofiles/options.go b/service/customerprofiles/options.go index d526725ba2f..c90f1ea0318 100644 --- a/service/customerprofiles/options.go +++ b/service/customerprofiles/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/databasemigrationservice/options.go b/service/databasemigrationservice/options.go index 98a5d05463d..9df0bb93e4e 100644 --- a/service/databasemigrationservice/options.go +++ b/service/databasemigrationservice/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/databrew/options.go b/service/databrew/options.go index 8caddf5f417..2a825c21f79 100644 --- a/service/databrew/options.go +++ b/service/databrew/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/dataexchange/options.go b/service/dataexchange/options.go index 1b742999637..2454169c899 100644 --- a/service/dataexchange/options.go +++ b/service/dataexchange/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/datapipeline/options.go b/service/datapipeline/options.go index 1a3086daa8f..727fb49d5d3 100644 --- a/service/datapipeline/options.go +++ b/service/datapipeline/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/datasync/options.go b/service/datasync/options.go index abb2d07f548..3b8c1675a95 100644 --- a/service/datasync/options.go +++ b/service/datasync/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/datazone/options.go b/service/datazone/options.go index 013299152ea..a8b27c4a8f9 100644 --- a/service/datazone/options.go +++ b/service/datazone/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/dax/options.go b/service/dax/options.go index 61c8157df53..e07ae364ddc 100644 --- a/service/dax/options.go +++ b/service/dax/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/detective/options.go b/service/detective/options.go index 5f3387b809e..392cb3b24a0 100644 --- a/service/detective/options.go +++ b/service/detective/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/devicefarm/options.go b/service/devicefarm/options.go index 6f85194f02b..037aecc00d1 100644 --- a/service/devicefarm/options.go +++ b/service/devicefarm/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/devopsguru/options.go b/service/devopsguru/options.go index 2073ce52d4a..8e8082ac588 100644 --- a/service/devopsguru/options.go +++ b/service/devopsguru/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/directconnect/options.go b/service/directconnect/options.go index 62b817a7d92..33cc83020c3 100644 --- a/service/directconnect/options.go +++ b/service/directconnect/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/directoryservice/options.go b/service/directoryservice/options.go index 0cb5b846415..5879887d4e7 100644 --- a/service/directoryservice/options.go +++ b/service/directoryservice/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/dlm/options.go b/service/dlm/options.go index bcae965f8a8..29b8571233e 100644 --- a/service/dlm/options.go +++ b/service/dlm/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/docdb/options.go b/service/docdb/options.go index a0180ea06c1..a9ad411ea5a 100644 --- a/service/docdb/options.go +++ b/service/docdb/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/docdbelastic/options.go b/service/docdbelastic/options.go index 9ee42867161..f305f3640fc 100644 --- a/service/docdbelastic/options.go +++ b/service/docdbelastic/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/drs/options.go b/service/drs/options.go index 800fd27e758..10caa52299e 100644 --- a/service/drs/options.go +++ b/service/drs/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/dynamodb/options.go b/service/dynamodb/options.go index 4ebd9ce0d98..ee8897f83c5 100644 --- a/service/dynamodb/options.go +++ b/service/dynamodb/options.go @@ -228,7 +228,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/dynamodbstreams/options.go b/service/dynamodbstreams/options.go index 8583825e819..f5a191832f1 100644 --- a/service/dynamodbstreams/options.go +++ b/service/dynamodbstreams/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ebs/options.go b/service/ebs/options.go index 804ead17893..8ae34c5423a 100644 --- a/service/ebs/options.go +++ b/service/ebs/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ec2/options.go b/service/ec2/options.go index 574692f9be2..171ecd009f3 100644 --- a/service/ec2/options.go +++ b/service/ec2/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ec2instanceconnect/options.go b/service/ec2instanceconnect/options.go index 9c35c0333b0..0e863c7eaec 100644 --- a/service/ec2instanceconnect/options.go +++ b/service/ec2instanceconnect/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ecr/options.go b/service/ecr/options.go index 1e295f16818..356747f13ee 100644 --- a/service/ecr/options.go +++ b/service/ecr/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ecrpublic/options.go b/service/ecrpublic/options.go index 2e576d21346..43e516a33e5 100644 --- a/service/ecrpublic/options.go +++ b/service/ecrpublic/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ecs/options.go b/service/ecs/options.go index cb42e5b8633..c991e0a5df9 100644 --- a/service/ecs/options.go +++ b/service/ecs/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/efs/options.go b/service/efs/options.go index d33cf29d03c..85aa3e5e86f 100644 --- a/service/efs/options.go +++ b/service/efs/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/eks/options.go b/service/eks/options.go index 36ee3dffccf..ee1fae70615 100644 --- a/service/eks/options.go +++ b/service/eks/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/eksauth/options.go b/service/eksauth/options.go index a5f0adb1df2..eb71ce5f467 100644 --- a/service/eksauth/options.go +++ b/service/eksauth/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/elasticache/options.go b/service/elasticache/options.go index 589c3a29521..7dbadf7e2ea 100644 --- a/service/elasticache/options.go +++ b/service/elasticache/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/elasticbeanstalk/options.go b/service/elasticbeanstalk/options.go index 724fc81b6c4..c92838e98f4 100644 --- a/service/elasticbeanstalk/options.go +++ b/service/elasticbeanstalk/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/elasticinference/options.go b/service/elasticinference/options.go index 7d79133adec..42c5d83a8db 100644 --- a/service/elasticinference/options.go +++ b/service/elasticinference/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/elasticloadbalancing/options.go b/service/elasticloadbalancing/options.go index 2707142645c..894327e7119 100644 --- a/service/elasticloadbalancing/options.go +++ b/service/elasticloadbalancing/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/elasticloadbalancingv2/options.go b/service/elasticloadbalancingv2/options.go index 3d4d091dce8..9e8fdb5aec8 100644 --- a/service/elasticloadbalancingv2/options.go +++ b/service/elasticloadbalancingv2/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/elasticsearchservice/options.go b/service/elasticsearchservice/options.go index 978c574ad1f..65170862fdb 100644 --- a/service/elasticsearchservice/options.go +++ b/service/elasticsearchservice/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/elastictranscoder/options.go b/service/elastictranscoder/options.go index e9da3076fce..7686a2f0cb0 100644 --- a/service/elastictranscoder/options.go +++ b/service/elastictranscoder/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/emr/options.go b/service/emr/options.go index aed8b35b911..34fe982daa6 100644 --- a/service/emr/options.go +++ b/service/emr/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/emrcontainers/options.go b/service/emrcontainers/options.go index 2b741f4f042..9bedd3f10a0 100644 --- a/service/emrcontainers/options.go +++ b/service/emrcontainers/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/emrserverless/options.go b/service/emrserverless/options.go index 5aac7fe3eca..77182470f7c 100644 --- a/service/emrserverless/options.go +++ b/service/emrserverless/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/entityresolution/options.go b/service/entityresolution/options.go index 2237c870183..2b03b82546a 100644 --- a/service/entityresolution/options.go +++ b/service/entityresolution/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/eventbridge/options.go b/service/eventbridge/options.go index 71d3f46ed09..bd92d1a31f4 100644 --- a/service/eventbridge/options.go +++ b/service/eventbridge/options.go @@ -261,7 +261,7 @@ func WithSigV4ASigningRegions(regions []string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/evidently/options.go b/service/evidently/options.go index 22ad0b4c1cf..45695851784 100644 --- a/service/evidently/options.go +++ b/service/evidently/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/finspace/options.go b/service/finspace/options.go index 7be03a775f1..7431bc9a1e3 100644 --- a/service/finspace/options.go +++ b/service/finspace/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/finspacedata/options.go b/service/finspacedata/options.go index 1bf80b639ca..a43803a6333 100644 --- a/service/finspacedata/options.go +++ b/service/finspacedata/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/firehose/options.go b/service/firehose/options.go index eadcf8d6489..a25da4fcad2 100644 --- a/service/firehose/options.go +++ b/service/firehose/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/fis/options.go b/service/fis/options.go index 987d2008139..16bb3680b6f 100644 --- a/service/fis/options.go +++ b/service/fis/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/fms/options.go b/service/fms/options.go index 0cfbe0bc87b..fffcf95b3f4 100644 --- a/service/fms/options.go +++ b/service/fms/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/forecast/options.go b/service/forecast/options.go index 681f63ad450..1264f451689 100644 --- a/service/forecast/options.go +++ b/service/forecast/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/forecastquery/options.go b/service/forecastquery/options.go index 22427f41b15..156f6066201 100644 --- a/service/forecastquery/options.go +++ b/service/forecastquery/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/frauddetector/options.go b/service/frauddetector/options.go index 5688836c679..c8d88a52aaf 100644 --- a/service/frauddetector/options.go +++ b/service/frauddetector/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/freetier/options.go b/service/freetier/options.go index 66cceb79bd0..3517d989c67 100644 --- a/service/freetier/options.go +++ b/service/freetier/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/fsx/options.go b/service/fsx/options.go index 947414c3e50..ad3e7b0f896 100644 --- a/service/fsx/options.go +++ b/service/fsx/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/gamelift/options.go b/service/gamelift/options.go index 45ff7071592..36e75fd5be8 100644 --- a/service/gamelift/options.go +++ b/service/gamelift/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/glacier/options.go b/service/glacier/options.go index 5c979f6210c..841f87e2f6c 100644 --- a/service/glacier/options.go +++ b/service/glacier/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/globalaccelerator/options.go b/service/globalaccelerator/options.go index a203bc0e804..f1b6a63f9e8 100644 --- a/service/globalaccelerator/options.go +++ b/service/globalaccelerator/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/glue/options.go b/service/glue/options.go index 94d1ad38833..6afeed444e7 100644 --- a/service/glue/options.go +++ b/service/glue/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/grafana/options.go b/service/grafana/options.go index bbe5e475250..2ba89e44622 100644 --- a/service/grafana/options.go +++ b/service/grafana/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/greengrass/options.go b/service/greengrass/options.go index 1e13065b674..b52006133ce 100644 --- a/service/greengrass/options.go +++ b/service/greengrass/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/greengrassv2/options.go b/service/greengrassv2/options.go index fa6b57543bf..a55cda59f18 100644 --- a/service/greengrassv2/options.go +++ b/service/greengrassv2/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/groundstation/options.go b/service/groundstation/options.go index cdb9264f952..3f4e9938823 100644 --- a/service/groundstation/options.go +++ b/service/groundstation/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/guardduty/options.go b/service/guardduty/options.go index f972ada307f..9b5f0cdd64f 100644 --- a/service/guardduty/options.go +++ b/service/guardduty/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/health/options.go b/service/health/options.go index 582dfc43310..620b052aa5a 100644 --- a/service/health/options.go +++ b/service/health/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/healthlake/options.go b/service/healthlake/options.go index af761758abf..dc8dd288c34 100644 --- a/service/healthlake/options.go +++ b/service/healthlake/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/honeycode/options.go b/service/honeycode/options.go index d57ea8c8dda..d1a70b9ca32 100644 --- a/service/honeycode/options.go +++ b/service/honeycode/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iam/options.go b/service/iam/options.go index 2861cb10f9b..e95e9851252 100644 --- a/service/iam/options.go +++ b/service/iam/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/identitystore/options.go b/service/identitystore/options.go index 60bf384c13b..278ca3b7fb2 100644 --- a/service/identitystore/options.go +++ b/service/identitystore/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/imagebuilder/options.go b/service/imagebuilder/options.go index 395463a5922..7c1adcd85f3 100644 --- a/service/imagebuilder/options.go +++ b/service/imagebuilder/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/inspector/options.go b/service/inspector/options.go index 602fc33cf16..edb6290e3d5 100644 --- a/service/inspector/options.go +++ b/service/inspector/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/inspector2/options.go b/service/inspector2/options.go index 241aec4e3d5..72ec2a36b08 100644 --- a/service/inspector2/options.go +++ b/service/inspector2/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/inspectorscan/options.go b/service/inspectorscan/options.go index 37d349c1715..8403491a573 100644 --- a/service/inspectorscan/options.go +++ b/service/inspectorscan/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/internetmonitor/options.go b/service/internetmonitor/options.go index ce36fc6d680..fbb26f955af 100644 --- a/service/internetmonitor/options.go +++ b/service/internetmonitor/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iot/options.go b/service/iot/options.go index 85db4034e27..33b3e2fac4b 100644 --- a/service/iot/options.go +++ b/service/iot/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iot1clickdevicesservice/options.go b/service/iot1clickdevicesservice/options.go index ee381a7d022..db81768461d 100644 --- a/service/iot1clickdevicesservice/options.go +++ b/service/iot1clickdevicesservice/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iot1clickprojects/options.go b/service/iot1clickprojects/options.go index 136d232f550..3eb8ff9d7b6 100644 --- a/service/iot1clickprojects/options.go +++ b/service/iot1clickprojects/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotanalytics/options.go b/service/iotanalytics/options.go index 961d2b2c87f..c1829e5162b 100644 --- a/service/iotanalytics/options.go +++ b/service/iotanalytics/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotdataplane/options.go b/service/iotdataplane/options.go index f6ec0905e59..33acd92838c 100644 --- a/service/iotdataplane/options.go +++ b/service/iotdataplane/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotdeviceadvisor/options.go b/service/iotdeviceadvisor/options.go index 145eb601f1d..ba7fb3ffee5 100644 --- a/service/iotdeviceadvisor/options.go +++ b/service/iotdeviceadvisor/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotevents/options.go b/service/iotevents/options.go index 0cbe4f25049..d3d39579f74 100644 --- a/service/iotevents/options.go +++ b/service/iotevents/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ioteventsdata/options.go b/service/ioteventsdata/options.go index 649340dc0da..d171eeec5b3 100644 --- a/service/ioteventsdata/options.go +++ b/service/ioteventsdata/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotfleethub/options.go b/service/iotfleethub/options.go index 769b76d19bc..fb2d5b63829 100644 --- a/service/iotfleethub/options.go +++ b/service/iotfleethub/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotfleetwise/options.go b/service/iotfleetwise/options.go index 339bc0c7734..adc67277582 100644 --- a/service/iotfleetwise/options.go +++ b/service/iotfleetwise/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotjobsdataplane/options.go b/service/iotjobsdataplane/options.go index 68b93c5bcd8..f2434d18afb 100644 --- a/service/iotjobsdataplane/options.go +++ b/service/iotjobsdataplane/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotroborunner/options.go b/service/iotroborunner/options.go index 6f4bb87d370..e60af1f18ad 100644 --- a/service/iotroborunner/options.go +++ b/service/iotroborunner/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotsecuretunneling/options.go b/service/iotsecuretunneling/options.go index 5fd3539b7a7..3b6023d9cd7 100644 --- a/service/iotsecuretunneling/options.go +++ b/service/iotsecuretunneling/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotsitewise/options.go b/service/iotsitewise/options.go index 06fec1c2553..35fe799a7e6 100644 --- a/service/iotsitewise/options.go +++ b/service/iotsitewise/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotthingsgraph/options.go b/service/iotthingsgraph/options.go index 773cf1bccd6..514ad73f7cb 100644 --- a/service/iotthingsgraph/options.go +++ b/service/iotthingsgraph/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iottwinmaker/options.go b/service/iottwinmaker/options.go index a87d2acab0f..c090b42fc02 100644 --- a/service/iottwinmaker/options.go +++ b/service/iottwinmaker/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotwireless/options.go b/service/iotwireless/options.go index 662b83cad18..68fe6fa1303 100644 --- a/service/iotwireless/options.go +++ b/service/iotwireless/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ivs/options.go b/service/ivs/options.go index 07cd7cc3f2e..c506c324986 100644 --- a/service/ivs/options.go +++ b/service/ivs/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ivschat/options.go b/service/ivschat/options.go index f76ae21fc74..a2cd7ba0531 100644 --- a/service/ivschat/options.go +++ b/service/ivschat/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ivsrealtime/options.go b/service/ivsrealtime/options.go index 4d6e31be7f9..f90f51e9302 100644 --- a/service/ivsrealtime/options.go +++ b/service/ivsrealtime/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kafka/options.go b/service/kafka/options.go index d55d09605f4..cb635b007d2 100644 --- a/service/kafka/options.go +++ b/service/kafka/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kafkaconnect/options.go b/service/kafkaconnect/options.go index a54eef4bb59..eb8b2012732 100644 --- a/service/kafkaconnect/options.go +++ b/service/kafkaconnect/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kendra/options.go b/service/kendra/options.go index 56e27755a34..d5466823c1e 100644 --- a/service/kendra/options.go +++ b/service/kendra/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kendraranking/options.go b/service/kendraranking/options.go index 99331b4f1cb..d271f00d698 100644 --- a/service/kendraranking/options.go +++ b/service/kendraranking/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/keyspaces/options.go b/service/keyspaces/options.go index 29dc2d87d0a..b29b44f7f76 100644 --- a/service/keyspaces/options.go +++ b/service/keyspaces/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kinesis/options.go b/service/kinesis/options.go index 49966202865..0922b8ad14c 100644 --- a/service/kinesis/options.go +++ b/service/kinesis/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kinesisanalytics/options.go b/service/kinesisanalytics/options.go index 25a02ffad5a..0d6b91ba68d 100644 --- a/service/kinesisanalytics/options.go +++ b/service/kinesisanalytics/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kinesisanalyticsv2/options.go b/service/kinesisanalyticsv2/options.go index 35635b36210..983bcd11d07 100644 --- a/service/kinesisanalyticsv2/options.go +++ b/service/kinesisanalyticsv2/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kinesisvideo/options.go b/service/kinesisvideo/options.go index 33d912fb913..76fd2aad82f 100644 --- a/service/kinesisvideo/options.go +++ b/service/kinesisvideo/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kinesisvideoarchivedmedia/options.go b/service/kinesisvideoarchivedmedia/options.go index 50af73df704..ddf3cf2814f 100644 --- a/service/kinesisvideoarchivedmedia/options.go +++ b/service/kinesisvideoarchivedmedia/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kinesisvideomedia/options.go b/service/kinesisvideomedia/options.go index 9c789fc01a1..4abaa356be6 100644 --- a/service/kinesisvideomedia/options.go +++ b/service/kinesisvideomedia/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kinesisvideosignaling/options.go b/service/kinesisvideosignaling/options.go index a00f1c011f8..7f8f3c8bbe6 100644 --- a/service/kinesisvideosignaling/options.go +++ b/service/kinesisvideosignaling/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kinesisvideowebrtcstorage/options.go b/service/kinesisvideowebrtcstorage/options.go index e44b407327b..0ce1464a114 100644 --- a/service/kinesisvideowebrtcstorage/options.go +++ b/service/kinesisvideowebrtcstorage/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kms/options.go b/service/kms/options.go index 0f959bb795d..b4057f7eb59 100644 --- a/service/kms/options.go +++ b/service/kms/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/lakeformation/options.go b/service/lakeformation/options.go index b70bdf704e1..32ad2d97d3c 100644 --- a/service/lakeformation/options.go +++ b/service/lakeformation/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/lambda/options.go b/service/lambda/options.go index c3067ac9cb9..4db32eeafbe 100644 --- a/service/lambda/options.go +++ b/service/lambda/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/launchwizard/options.go b/service/launchwizard/options.go index 032e3e7ab09..57067d3d50a 100644 --- a/service/launchwizard/options.go +++ b/service/launchwizard/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/lexmodelbuildingservice/options.go b/service/lexmodelbuildingservice/options.go index 687a54f9c82..89866c75ccc 100644 --- a/service/lexmodelbuildingservice/options.go +++ b/service/lexmodelbuildingservice/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/lexmodelsv2/options.go b/service/lexmodelsv2/options.go index 7a7714a2c1b..0b787a3e1d8 100644 --- a/service/lexmodelsv2/options.go +++ b/service/lexmodelsv2/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/lexruntimeservice/options.go b/service/lexruntimeservice/options.go index 4f4a474847d..8b99c119b6e 100644 --- a/service/lexruntimeservice/options.go +++ b/service/lexruntimeservice/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/lexruntimev2/options.go b/service/lexruntimev2/options.go index 01c32791c4e..a9f34b8c03b 100644 --- a/service/lexruntimev2/options.go +++ b/service/lexruntimev2/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/licensemanager/options.go b/service/licensemanager/options.go index 0564588de2d..f525b33ca7f 100644 --- a/service/licensemanager/options.go +++ b/service/licensemanager/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/licensemanagerlinuxsubscriptions/options.go b/service/licensemanagerlinuxsubscriptions/options.go index a282d3ae431..46b5673b683 100644 --- a/service/licensemanagerlinuxsubscriptions/options.go +++ b/service/licensemanagerlinuxsubscriptions/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/licensemanagerusersubscriptions/options.go b/service/licensemanagerusersubscriptions/options.go index c0934e0c93d..d051a41e877 100644 --- a/service/licensemanagerusersubscriptions/options.go +++ b/service/licensemanagerusersubscriptions/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/lightsail/options.go b/service/lightsail/options.go index 54438cc265c..cad1bc173ae 100644 --- a/service/lightsail/options.go +++ b/service/lightsail/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/location/options.go b/service/location/options.go index 34d067f8e7f..811a297e4de 100644 --- a/service/location/options.go +++ b/service/location/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/lookoutequipment/options.go b/service/lookoutequipment/options.go index fbeb6bee445..0b15ee266d8 100644 --- a/service/lookoutequipment/options.go +++ b/service/lookoutequipment/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/lookoutmetrics/options.go b/service/lookoutmetrics/options.go index 911ed351bd2..aa787b0a1ce 100644 --- a/service/lookoutmetrics/options.go +++ b/service/lookoutmetrics/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/lookoutvision/options.go b/service/lookoutvision/options.go index a439a437339..1819cef6163 100644 --- a/service/lookoutvision/options.go +++ b/service/lookoutvision/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/m2/options.go b/service/m2/options.go index e33519ce4f6..6f17c1df54e 100644 --- a/service/m2/options.go +++ b/service/m2/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/machinelearning/options.go b/service/machinelearning/options.go index d786171bbae..6e158adba6d 100644 --- a/service/machinelearning/options.go +++ b/service/machinelearning/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/macie2/options.go b/service/macie2/options.go index 23ffa7a9c45..6cd8edf85d3 100644 --- a/service/macie2/options.go +++ b/service/macie2/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/managedblockchain/options.go b/service/managedblockchain/options.go index bff29798cbc..82c9a944680 100644 --- a/service/managedblockchain/options.go +++ b/service/managedblockchain/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/managedblockchainquery/options.go b/service/managedblockchainquery/options.go index 0d4489f8ea6..12b0058ad1f 100644 --- a/service/managedblockchainquery/options.go +++ b/service/managedblockchainquery/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/marketplaceagreement/options.go b/service/marketplaceagreement/options.go index 140d6f8c452..fbc4c361f95 100644 --- a/service/marketplaceagreement/options.go +++ b/service/marketplaceagreement/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/marketplacecatalog/options.go b/service/marketplacecatalog/options.go index 40ee55dce3a..10d21ee2f45 100644 --- a/service/marketplacecatalog/options.go +++ b/service/marketplacecatalog/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/marketplacecommerceanalytics/options.go b/service/marketplacecommerceanalytics/options.go index 21bd57057db..d9790aa4853 100644 --- a/service/marketplacecommerceanalytics/options.go +++ b/service/marketplacecommerceanalytics/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/marketplacedeployment/options.go b/service/marketplacedeployment/options.go index e134683fb5e..3b4a96805ce 100644 --- a/service/marketplacedeployment/options.go +++ b/service/marketplacedeployment/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/marketplaceentitlementservice/options.go b/service/marketplaceentitlementservice/options.go index 707872ef2c8..66bed9b8d99 100644 --- a/service/marketplaceentitlementservice/options.go +++ b/service/marketplaceentitlementservice/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/marketplacemetering/options.go b/service/marketplacemetering/options.go index 2d9127e3893..7793f1c2131 100644 --- a/service/marketplacemetering/options.go +++ b/service/marketplacemetering/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mediaconnect/options.go b/service/mediaconnect/options.go index 651312bdc86..2c7fd89ebcc 100644 --- a/service/mediaconnect/options.go +++ b/service/mediaconnect/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mediaconvert/options.go b/service/mediaconvert/options.go index 5a40ec72150..992224ebd72 100644 --- a/service/mediaconvert/options.go +++ b/service/mediaconvert/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/medialive/options.go b/service/medialive/options.go index 191ad618488..bdf61d9fb59 100644 --- a/service/medialive/options.go +++ b/service/medialive/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mediapackage/options.go b/service/mediapackage/options.go index 57af07cde94..455a87dfad8 100644 --- a/service/mediapackage/options.go +++ b/service/mediapackage/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mediapackagev2/options.go b/service/mediapackagev2/options.go index ddfd9002eac..7f2aa7d0814 100644 --- a/service/mediapackagev2/options.go +++ b/service/mediapackagev2/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mediapackagevod/options.go b/service/mediapackagevod/options.go index a40cda08b36..87c6e1655e6 100644 --- a/service/mediapackagevod/options.go +++ b/service/mediapackagevod/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mediastore/options.go b/service/mediastore/options.go index 59d7687fea9..5732e4a2c9c 100644 --- a/service/mediastore/options.go +++ b/service/mediastore/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mediastoredata/options.go b/service/mediastoredata/options.go index 37bf82715dd..c016b8ff710 100644 --- a/service/mediastoredata/options.go +++ b/service/mediastoredata/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mediatailor/options.go b/service/mediatailor/options.go index 5cf914ce598..ca9c1618c28 100644 --- a/service/mediatailor/options.go +++ b/service/mediatailor/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/medicalimaging/options.go b/service/medicalimaging/options.go index 1e57adf3159..d76f87724e4 100644 --- a/service/medicalimaging/options.go +++ b/service/medicalimaging/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/memorydb/options.go b/service/memorydb/options.go index 1012e9e5156..a70680960cc 100644 --- a/service/memorydb/options.go +++ b/service/memorydb/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mgn/options.go b/service/mgn/options.go index 6dc1745a125..693fa0a4cd8 100644 --- a/service/mgn/options.go +++ b/service/mgn/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/migrationhub/options.go b/service/migrationhub/options.go index de16a95eea0..094ad6e146f 100644 --- a/service/migrationhub/options.go +++ b/service/migrationhub/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/migrationhubconfig/options.go b/service/migrationhubconfig/options.go index 9aa15662a9b..434f09c868b 100644 --- a/service/migrationhubconfig/options.go +++ b/service/migrationhubconfig/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/migrationhuborchestrator/options.go b/service/migrationhuborchestrator/options.go index eb92a17c001..dc7275d42c3 100644 --- a/service/migrationhuborchestrator/options.go +++ b/service/migrationhuborchestrator/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/migrationhubrefactorspaces/options.go b/service/migrationhubrefactorspaces/options.go index 933cc55803c..586aac02845 100644 --- a/service/migrationhubrefactorspaces/options.go +++ b/service/migrationhubrefactorspaces/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/migrationhubstrategy/options.go b/service/migrationhubstrategy/options.go index 58b93600d82..7030a6ebcc2 100644 --- a/service/migrationhubstrategy/options.go +++ b/service/migrationhubstrategy/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mobile/options.go b/service/mobile/options.go index c48b38edb91..bda4edd6aa8 100644 --- a/service/mobile/options.go +++ b/service/mobile/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mq/options.go b/service/mq/options.go index fb9f50d1df5..ec4d26257d5 100644 --- a/service/mq/options.go +++ b/service/mq/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mturk/options.go b/service/mturk/options.go index be67756bf74..f5bc27043c9 100644 --- a/service/mturk/options.go +++ b/service/mturk/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mwaa/options.go b/service/mwaa/options.go index 94e70fc9c5a..83a977cb721 100644 --- a/service/mwaa/options.go +++ b/service/mwaa/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/neptune/options.go b/service/neptune/options.go index 3b0312fdbf9..67458766bcf 100644 --- a/service/neptune/options.go +++ b/service/neptune/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/neptunedata/options.go b/service/neptunedata/options.go index b4f61742693..4c759b09efd 100644 --- a/service/neptunedata/options.go +++ b/service/neptunedata/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/networkfirewall/options.go b/service/networkfirewall/options.go index ebb02958702..edfcbede0dd 100644 --- a/service/networkfirewall/options.go +++ b/service/networkfirewall/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/networkmanager/options.go b/service/networkmanager/options.go index 945050c4b39..a29cc28de5b 100644 --- a/service/networkmanager/options.go +++ b/service/networkmanager/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/nimble/options.go b/service/nimble/options.go index 1ed156dc598..66d7d02f577 100644 --- a/service/nimble/options.go +++ b/service/nimble/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/oam/options.go b/service/oam/options.go index 7a8180235c4..2c27435937a 100644 --- a/service/oam/options.go +++ b/service/oam/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/omics/options.go b/service/omics/options.go index fcda1f3a932..8ebeb9089bc 100644 --- a/service/omics/options.go +++ b/service/omics/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/opensearch/options.go b/service/opensearch/options.go index 475e8866d6f..30fb0030f38 100644 --- a/service/opensearch/options.go +++ b/service/opensearch/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/opensearchserverless/options.go b/service/opensearchserverless/options.go index f94bf5c614a..2055e36f3b0 100644 --- a/service/opensearchserverless/options.go +++ b/service/opensearchserverless/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/opsworks/options.go b/service/opsworks/options.go index 37bf6f9a6f2..c393cbb0735 100644 --- a/service/opsworks/options.go +++ b/service/opsworks/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/opsworkscm/options.go b/service/opsworkscm/options.go index 59e090935fb..7aff3026d53 100644 --- a/service/opsworkscm/options.go +++ b/service/opsworkscm/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/organizations/options.go b/service/organizations/options.go index e9a2c1480a9..60ef27824ba 100644 --- a/service/organizations/options.go +++ b/service/organizations/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/osis/options.go b/service/osis/options.go index a83f1c84f7c..9af297ad134 100644 --- a/service/osis/options.go +++ b/service/osis/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/outposts/options.go b/service/outposts/options.go index 3c07adfcae1..c25ff0e9955 100644 --- a/service/outposts/options.go +++ b/service/outposts/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/panorama/options.go b/service/panorama/options.go index d39d3adac08..3a17ba1de43 100644 --- a/service/panorama/options.go +++ b/service/panorama/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/paymentcryptography/options.go b/service/paymentcryptography/options.go index bc25e88e053..790184916fa 100644 --- a/service/paymentcryptography/options.go +++ b/service/paymentcryptography/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/paymentcryptographydata/options.go b/service/paymentcryptographydata/options.go index f986f9add2d..540f59f4d6d 100644 --- a/service/paymentcryptographydata/options.go +++ b/service/paymentcryptographydata/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/pcaconnectorad/options.go b/service/pcaconnectorad/options.go index c79caa1d5d4..405f7ea7cbc 100644 --- a/service/pcaconnectorad/options.go +++ b/service/pcaconnectorad/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/personalize/options.go b/service/personalize/options.go index c397f469ff0..22ef323edfc 100644 --- a/service/personalize/options.go +++ b/service/personalize/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/personalizeevents/options.go b/service/personalizeevents/options.go index d97e763f3f4..c84a1b199e8 100644 --- a/service/personalizeevents/options.go +++ b/service/personalizeevents/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/personalizeruntime/options.go b/service/personalizeruntime/options.go index 72b3a00508f..09714196fc8 100644 --- a/service/personalizeruntime/options.go +++ b/service/personalizeruntime/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/pi/options.go b/service/pi/options.go index 2c3d626aa26..1d3cbbe4415 100644 --- a/service/pi/options.go +++ b/service/pi/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/pinpoint/options.go b/service/pinpoint/options.go index 80ed772776f..70acddb379e 100644 --- a/service/pinpoint/options.go +++ b/service/pinpoint/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/pinpointemail/options.go b/service/pinpointemail/options.go index 5ccc3e82fa6..97c27ddf49c 100644 --- a/service/pinpointemail/options.go +++ b/service/pinpointemail/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/pinpointsmsvoice/options.go b/service/pinpointsmsvoice/options.go index e71dcf9d001..cdf2dbc1bae 100644 --- a/service/pinpointsmsvoice/options.go +++ b/service/pinpointsmsvoice/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/pinpointsmsvoicev2/options.go b/service/pinpointsmsvoicev2/options.go index 00d56a6f96a..11927e81d99 100644 --- a/service/pinpointsmsvoicev2/options.go +++ b/service/pinpointsmsvoicev2/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/pipes/options.go b/service/pipes/options.go index 43db880bac4..9b5edfbe05c 100644 --- a/service/pipes/options.go +++ b/service/pipes/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/polly/options.go b/service/polly/options.go index 50ac243433f..0f3ab554a86 100644 --- a/service/polly/options.go +++ b/service/polly/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/pricing/options.go b/service/pricing/options.go index 3d65d8fc781..56457cc8a76 100644 --- a/service/pricing/options.go +++ b/service/pricing/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/privatenetworks/options.go b/service/privatenetworks/options.go index 3718d63dd22..8302431fa1d 100644 --- a/service/privatenetworks/options.go +++ b/service/privatenetworks/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/proton/options.go b/service/proton/options.go index c60be03dce6..24da38215d0 100644 --- a/service/proton/options.go +++ b/service/proton/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/qbusiness/options.go b/service/qbusiness/options.go index 1af710d376c..4689343b19b 100644 --- a/service/qbusiness/options.go +++ b/service/qbusiness/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/qconnect/options.go b/service/qconnect/options.go index 15e94a27b4d..c6dfe4f788a 100644 --- a/service/qconnect/options.go +++ b/service/qconnect/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/qldb/options.go b/service/qldb/options.go index c99b81e7ca8..4d55212e48e 100644 --- a/service/qldb/options.go +++ b/service/qldb/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/qldbsession/options.go b/service/qldbsession/options.go index 9e9e36e45a8..4e096d3c0ca 100644 --- a/service/qldbsession/options.go +++ b/service/qldbsession/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/quicksight/options.go b/service/quicksight/options.go index 75bae595244..e1a51552b3c 100644 --- a/service/quicksight/options.go +++ b/service/quicksight/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ram/options.go b/service/ram/options.go index a650a6e03fe..734335bbf51 100644 --- a/service/ram/options.go +++ b/service/ram/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/rbin/options.go b/service/rbin/options.go index 8622b6c1c48..b57ab844be2 100644 --- a/service/rbin/options.go +++ b/service/rbin/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/rds/options.go b/service/rds/options.go index 497e9323126..efbcab1d673 100644 --- a/service/rds/options.go +++ b/service/rds/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/rdsdata/options.go b/service/rdsdata/options.go index 3539c14e1b2..899c68fc6a7 100644 --- a/service/rdsdata/options.go +++ b/service/rdsdata/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/redshift/options.go b/service/redshift/options.go index 79697f717d1..b5a923af944 100644 --- a/service/redshift/options.go +++ b/service/redshift/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/redshiftdata/options.go b/service/redshiftdata/options.go index 5408e7eb4a1..02b3ceaeb5c 100644 --- a/service/redshiftdata/options.go +++ b/service/redshiftdata/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/redshiftserverless/options.go b/service/redshiftserverless/options.go index 26b01044e24..c9e21327870 100644 --- a/service/redshiftserverless/options.go +++ b/service/redshiftserverless/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/rekognition/options.go b/service/rekognition/options.go index 237785b5016..01edbea3e9b 100644 --- a/service/rekognition/options.go +++ b/service/rekognition/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/repostspace/options.go b/service/repostspace/options.go index 204a6f04486..65b185d6bd5 100644 --- a/service/repostspace/options.go +++ b/service/repostspace/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/resiliencehub/options.go b/service/resiliencehub/options.go index 0330fbf7120..2644cd5d02e 100644 --- a/service/resiliencehub/options.go +++ b/service/resiliencehub/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/resourceexplorer2/options.go b/service/resourceexplorer2/options.go index 900d27587d9..e3964198555 100644 --- a/service/resourceexplorer2/options.go +++ b/service/resourceexplorer2/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/resourcegroups/options.go b/service/resourcegroups/options.go index 368d5c79899..1d876494ca4 100644 --- a/service/resourcegroups/options.go +++ b/service/resourcegroups/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/resourcegroupstaggingapi/options.go b/service/resourcegroupstaggingapi/options.go index b9cb38f2998..0ba2eec2145 100644 --- a/service/resourcegroupstaggingapi/options.go +++ b/service/resourcegroupstaggingapi/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/robomaker/options.go b/service/robomaker/options.go index 6db241d7b6a..e29c16b7965 100644 --- a/service/robomaker/options.go +++ b/service/robomaker/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/rolesanywhere/options.go b/service/rolesanywhere/options.go index 26e04597ce0..8e9c1fe0a72 100644 --- a/service/rolesanywhere/options.go +++ b/service/rolesanywhere/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/route53/options.go b/service/route53/options.go index 2f23ccaaf19..40915658e1b 100644 --- a/service/route53/options.go +++ b/service/route53/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/route53domains/options.go b/service/route53domains/options.go index eb4d187864e..add9bf73e78 100644 --- a/service/route53domains/options.go +++ b/service/route53domains/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/route53recoverycluster/options.go b/service/route53recoverycluster/options.go index a09e6a85137..1e26e668a17 100644 --- a/service/route53recoverycluster/options.go +++ b/service/route53recoverycluster/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/route53recoverycontrolconfig/options.go b/service/route53recoverycontrolconfig/options.go index d33758c80d7..61d05316858 100644 --- a/service/route53recoverycontrolconfig/options.go +++ b/service/route53recoverycontrolconfig/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/route53recoveryreadiness/options.go b/service/route53recoveryreadiness/options.go index 3b729fa9048..732cdc8fbae 100644 --- a/service/route53recoveryreadiness/options.go +++ b/service/route53recoveryreadiness/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/route53resolver/options.go b/service/route53resolver/options.go index c47dc082c5f..997265caa99 100644 --- a/service/route53resolver/options.go +++ b/service/route53resolver/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/rum/options.go b/service/rum/options.go index e7d5a4ea48c..b9c154dac11 100644 --- a/service/rum/options.go +++ b/service/rum/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/s3/options.go b/service/s3/options.go index a63d04a134c..271aaecdc5f 100644 --- a/service/s3/options.go +++ b/service/s3/options.go @@ -303,7 +303,7 @@ func WithSigV4ASigningRegions(regions []string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/s3control/options.go b/service/s3control/options.go index 17672144305..782456d2a4a 100644 --- a/service/s3control/options.go +++ b/service/s3control/options.go @@ -227,7 +227,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/s3outposts/options.go b/service/s3outposts/options.go index b3e94f4ccf8..c70413a79a5 100644 --- a/service/s3outposts/options.go +++ b/service/s3outposts/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sagemaker/options.go b/service/sagemaker/options.go index 6908ef7d1af..42976a9ca64 100644 --- a/service/sagemaker/options.go +++ b/service/sagemaker/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sagemakera2iruntime/options.go b/service/sagemakera2iruntime/options.go index 7265c228e48..f59b25a3e29 100644 --- a/service/sagemakera2iruntime/options.go +++ b/service/sagemakera2iruntime/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sagemakeredge/options.go b/service/sagemakeredge/options.go index 1b2a81f6368..1a33afda5aa 100644 --- a/service/sagemakeredge/options.go +++ b/service/sagemakeredge/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sagemakerfeaturestoreruntime/options.go b/service/sagemakerfeaturestoreruntime/options.go index b233eb1e608..c94ba8cb45a 100644 --- a/service/sagemakerfeaturestoreruntime/options.go +++ b/service/sagemakerfeaturestoreruntime/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sagemakergeospatial/options.go b/service/sagemakergeospatial/options.go index fa181bc31c4..b91d65735af 100644 --- a/service/sagemakergeospatial/options.go +++ b/service/sagemakergeospatial/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sagemakermetrics/options.go b/service/sagemakermetrics/options.go index a780737646b..c42db56ac8c 100644 --- a/service/sagemakermetrics/options.go +++ b/service/sagemakermetrics/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sagemakerruntime/options.go b/service/sagemakerruntime/options.go index 58b437df847..650242cec76 100644 --- a/service/sagemakerruntime/options.go +++ b/service/sagemakerruntime/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/savingsplans/options.go b/service/savingsplans/options.go index 968ff423a4e..661413e6c29 100644 --- a/service/savingsplans/options.go +++ b/service/savingsplans/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/scheduler/options.go b/service/scheduler/options.go index 2f0f42b7c13..568c8b676b4 100644 --- a/service/scheduler/options.go +++ b/service/scheduler/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/schemas/options.go b/service/schemas/options.go index c79802dc664..b8a81cdfac6 100644 --- a/service/schemas/options.go +++ b/service/schemas/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/secretsmanager/options.go b/service/secretsmanager/options.go index 637e413078d..2bfb24e63bb 100644 --- a/service/secretsmanager/options.go +++ b/service/secretsmanager/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/securityhub/options.go b/service/securityhub/options.go index dab1fd54b4b..bd3aff68b0a 100644 --- a/service/securityhub/options.go +++ b/service/securityhub/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/securitylake/options.go b/service/securitylake/options.go index 32d4571e113..86840e6525b 100644 --- a/service/securitylake/options.go +++ b/service/securitylake/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/serverlessapplicationrepository/options.go b/service/serverlessapplicationrepository/options.go index 102af863ef2..f43651ffceb 100644 --- a/service/serverlessapplicationrepository/options.go +++ b/service/serverlessapplicationrepository/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/servicecatalog/options.go b/service/servicecatalog/options.go index 180bf8f8bfe..e2f8eb272aa 100644 --- a/service/servicecatalog/options.go +++ b/service/servicecatalog/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/servicecatalogappregistry/options.go b/service/servicecatalogappregistry/options.go index 78f3628f9ee..5c07a398c37 100644 --- a/service/servicecatalogappregistry/options.go +++ b/service/servicecatalogappregistry/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/servicediscovery/options.go b/service/servicediscovery/options.go index 65217ef1397..50e5583d874 100644 --- a/service/servicediscovery/options.go +++ b/service/servicediscovery/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/servicequotas/options.go b/service/servicequotas/options.go index 85dedc71985..2a9cce0c15e 100644 --- a/service/servicequotas/options.go +++ b/service/servicequotas/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ses/options.go b/service/ses/options.go index a45203ad335..f378e84ad8b 100644 --- a/service/ses/options.go +++ b/service/ses/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sesv2/options.go b/service/sesv2/options.go index 3f0244e0c14..df69133da94 100644 --- a/service/sesv2/options.go +++ b/service/sesv2/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sfn/options.go b/service/sfn/options.go index 950a484f09e..544cc7f2038 100644 --- a/service/sfn/options.go +++ b/service/sfn/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/shield/options.go b/service/shield/options.go index 4119b3f1c8f..dd72f86e676 100644 --- a/service/shield/options.go +++ b/service/shield/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/signer/options.go b/service/signer/options.go index 7ae3d1bfd58..c31a4ded2fd 100644 --- a/service/signer/options.go +++ b/service/signer/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/simspaceweaver/options.go b/service/simspaceweaver/options.go index 93b0768b12b..b6fd2295b29 100644 --- a/service/simspaceweaver/options.go +++ b/service/simspaceweaver/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sms/options.go b/service/sms/options.go index a810ab6a4e9..39d602566b1 100644 --- a/service/sms/options.go +++ b/service/sms/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/snowball/options.go b/service/snowball/options.go index e8fd8bb3527..1dd6b373300 100644 --- a/service/snowball/options.go +++ b/service/snowball/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/snowdevicemanagement/options.go b/service/snowdevicemanagement/options.go index 5a6d79eb58f..e52f4d89efb 100644 --- a/service/snowdevicemanagement/options.go +++ b/service/snowdevicemanagement/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sns/options.go b/service/sns/options.go index 238ceb78bce..460da0ac00b 100644 --- a/service/sns/options.go +++ b/service/sns/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sqs/options.go b/service/sqs/options.go index 9db2cb7eed4..a540b03551a 100644 --- a/service/sqs/options.go +++ b/service/sqs/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ssm/options.go b/service/ssm/options.go index 0f02a659896..ed72e5ebf34 100644 --- a/service/ssm/options.go +++ b/service/ssm/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ssmcontacts/options.go b/service/ssmcontacts/options.go index 6baf60fcd6f..d70ea4b6771 100644 --- a/service/ssmcontacts/options.go +++ b/service/ssmcontacts/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ssmincidents/options.go b/service/ssmincidents/options.go index 40c55a3a773..ae219cc0b5f 100644 --- a/service/ssmincidents/options.go +++ b/service/ssmincidents/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ssmsap/options.go b/service/ssmsap/options.go index c4693fd1841..5ddb9a0ec11 100644 --- a/service/ssmsap/options.go +++ b/service/ssmsap/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sso/options.go b/service/sso/options.go index 555f383de32..ddc5c0df369 100644 --- a/service/sso/options.go +++ b/service/sso/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ssoadmin/options.go b/service/ssoadmin/options.go index 05d5b28ee2f..762cc1d9413 100644 --- a/service/ssoadmin/options.go +++ b/service/ssoadmin/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ssooidc/options.go b/service/ssooidc/options.go index c1ba5619bbe..f338f7d6857 100644 --- a/service/ssooidc/options.go +++ b/service/ssooidc/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/storagegateway/options.go b/service/storagegateway/options.go index 79a98d6e62d..d2fe242348e 100644 --- a/service/storagegateway/options.go +++ b/service/storagegateway/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sts/options.go b/service/sts/options.go index 1736c8355c6..2c7a03701c8 100644 --- a/service/sts/options.go +++ b/service/sts/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/support/options.go b/service/support/options.go index 5e98a69c011..53280949844 100644 --- a/service/support/options.go +++ b/service/support/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/supportapp/options.go b/service/supportapp/options.go index 6c3aed6f979..8f19d86e0e9 100644 --- a/service/supportapp/options.go +++ b/service/supportapp/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/swf/options.go b/service/swf/options.go index fee1c08312e..9140fc3eebe 100644 --- a/service/swf/options.go +++ b/service/swf/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/synthetics/options.go b/service/synthetics/options.go index 770816d5c88..4acc32e16c2 100644 --- a/service/synthetics/options.go +++ b/service/synthetics/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/textract/options.go b/service/textract/options.go index 8e050630287..42ef82af690 100644 --- a/service/textract/options.go +++ b/service/textract/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/timestreamquery/options.go b/service/timestreamquery/options.go index 552163e6d1a..95c40b0dbb4 100644 --- a/service/timestreamquery/options.go +++ b/service/timestreamquery/options.go @@ -220,7 +220,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/timestreamwrite/options.go b/service/timestreamwrite/options.go index 76d820384d2..33a2025ea3b 100644 --- a/service/timestreamwrite/options.go +++ b/service/timestreamwrite/options.go @@ -220,7 +220,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/tnb/options.go b/service/tnb/options.go index 35563f93e07..aca79f4d3a1 100644 --- a/service/tnb/options.go +++ b/service/tnb/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/transcribe/options.go b/service/transcribe/options.go index a1c8801f156..d7953fcc4a0 100644 --- a/service/transcribe/options.go +++ b/service/transcribe/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/transcribestreaming/options.go b/service/transcribestreaming/options.go index e9b73a2ea5e..62e70551a7d 100644 --- a/service/transcribestreaming/options.go +++ b/service/transcribestreaming/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/transfer/options.go b/service/transfer/options.go index ee599a355c2..05aeb6405fa 100644 --- a/service/transfer/options.go +++ b/service/transfer/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/translate/options.go b/service/translate/options.go index 538d8f9cc67..b31fa375122 100644 --- a/service/translate/options.go +++ b/service/translate/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/trustedadvisor/options.go b/service/trustedadvisor/options.go index 5044644b248..e4e944e10a2 100644 --- a/service/trustedadvisor/options.go +++ b/service/trustedadvisor/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/verifiedpermissions/options.go b/service/verifiedpermissions/options.go index 49eab55714c..4d5576ce0aa 100644 --- a/service/verifiedpermissions/options.go +++ b/service/verifiedpermissions/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/voiceid/options.go b/service/voiceid/options.go index 72f6cfebdd5..5c5a179a169 100644 --- a/service/voiceid/options.go +++ b/service/voiceid/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/vpclattice/options.go b/service/vpclattice/options.go index 79428617017..1fcdc3b9bb3 100644 --- a/service/vpclattice/options.go +++ b/service/vpclattice/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/waf/options.go b/service/waf/options.go index 287bb4c3787..05ddf0f615d 100644 --- a/service/waf/options.go +++ b/service/waf/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/wafregional/options.go b/service/wafregional/options.go index 2e06b7ac32a..b1d1938c0ca 100644 --- a/service/wafregional/options.go +++ b/service/wafregional/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/wafv2/options.go b/service/wafv2/options.go index aadd70f906a..90cff51ac47 100644 --- a/service/wafv2/options.go +++ b/service/wafv2/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/wellarchitected/options.go b/service/wellarchitected/options.go index d6692664efa..54a42690c9d 100644 --- a/service/wellarchitected/options.go +++ b/service/wellarchitected/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/wisdom/options.go b/service/wisdom/options.go index 86966f88740..b74b5b74bd5 100644 --- a/service/wisdom/options.go +++ b/service/wisdom/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/workdocs/options.go b/service/workdocs/options.go index 96292c726e2..a0f0d5ecba8 100644 --- a/service/workdocs/options.go +++ b/service/workdocs/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/worklink/options.go b/service/worklink/options.go index f1ad59d522d..8e95bde1adb 100644 --- a/service/worklink/options.go +++ b/service/worklink/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/workmail/options.go b/service/workmail/options.go index ee931d38d7b..e76b4940b82 100644 --- a/service/workmail/options.go +++ b/service/workmail/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/workmailmessageflow/options.go b/service/workmailmessageflow/options.go index 1d92a66ad6f..2cb23f9defb 100644 --- a/service/workmailmessageflow/options.go +++ b/service/workmailmessageflow/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/workspaces/options.go b/service/workspaces/options.go index c28a076775a..a4054298bfe 100644 --- a/service/workspaces/options.go +++ b/service/workspaces/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/workspacesthinclient/options.go b/service/workspacesthinclient/options.go index 5de8f7f6a0e..f573ccf9e30 100644 --- a/service/workspacesthinclient/options.go +++ b/service/workspacesthinclient/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/workspacesweb/options.go b/service/workspacesweb/options.go index 40c031182e7..91e7d3202ed 100644 --- a/service/workspacesweb/options.go +++ b/service/workspacesweb/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/xray/options.go b/service/xray/options.go index 11ecdd21b54..c5669aafef8 100644 --- a/service/xray/options.go +++ b/service/xray/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } }