Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace AWS Region metadata from names with endpoints #40335

Merged
merged 304 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
304 commits
Select commit Hold shift + click to select a range
1d91435
Make 'AWSClient.AccountID' a getter - dlm.
ewbankkit Nov 27, 2024
5267499
Make 'AWSClient.AccountID' a getter - dms.
ewbankkit Nov 27, 2024
2dfdd0d
Make 'AWSClient.AccountID' a getter - docdb.
ewbankkit Nov 27, 2024
6b4acfc
Make 'AWSClient.AccountID' a getter - dynamodb.
ewbankkit Nov 27, 2024
35dbb14
Make 'AWSClient.AccountID' a getter - ec2.
ewbankkit Nov 27, 2024
9d60ade
Make 'AWSClient.AccountID' a getter - ecr.
ewbankkit Nov 27, 2024
dc3fa16
Make 'AWSClient.AccountID' a getter - ecrpublic.
ewbankkit Nov 27, 2024
0f039bc
Make 'AWSClient.AccountID' a getter - ecs.
ewbankkit Nov 27, 2024
4758e20
Make 'AWSClient.AccountID' a getter - efs.
ewbankkit Nov 27, 2024
69af5e9
Make 'AWSClient.AccountID' a getter - eks.
ewbankkit Nov 27, 2024
8a06d2f
Make 'AWSClient.AccountID' a getter - elasticache.
ewbankkit Nov 27, 2024
71106b5
Make 'AWSClient.AccountID' a getter - elasticbeanstalk.
ewbankkit Nov 27, 2024
445b874
Make 'AWSClient.AccountID' a getter - elasticsearch.
ewbankkit Nov 27, 2024
ee15e48
Make 'AWSClient.AccountID' a getter - elastictranscoder.
ewbankkit Nov 27, 2024
6068560
Make 'AWSClient.AccountID' a getter - elb.
ewbankkit Nov 27, 2024
bd0354a
Make 'AWSClient.AccountID' a getter - elbv2.
ewbankkit Nov 27, 2024
9df8ca1
Make 'AWSClient.AccountID' a getter - emr.
ewbankkit Nov 27, 2024
2d4a431
Make 'AWSClient.AccountID' a getter - emrserverless.
ewbankkit Nov 27, 2024
7b03cf5
Make 'AWSClient.AccountID' a getter - events.
ewbankkit Nov 27, 2024
6aec0f8
Make 'AWSClient.AccountID' a getter - evidently.
ewbankkit Nov 27, 2024
2eb91ed
Make 'AWSClient.AccountID' a getter - finspace.
ewbankkit Nov 27, 2024
3cd0139
Make 'AWSClient.AccountID' a getter - fis.
ewbankkit Nov 27, 2024
b5577ca
Make 'AWSClient.AccountID' a getter - fms.
ewbankkit Nov 27, 2024
328a1c1
Make 'AWSClient.AccountID' a getter - fsx.
ewbankkit Nov 27, 2024
526091d
Make 'AWSClient.AccountID' a getter - gamelift.
ewbankkit Nov 27, 2024
e748f3e
Make 'AWSClient.AccountID' a getter - glacier.
ewbankkit Nov 27, 2024
b2d5bbc
Make 'AWSClient.AccountID' a getter - globalaccelerator.
ewbankkit Nov 27, 2024
5701704
Make 'AWSClient.AccountID' a getter - glue.
ewbankkit Nov 27, 2024
10c7e2f
Make 'AWSClient.AccountID' a getter - grafana.
ewbankkit Nov 27, 2024
244c357
Make 'AWSClient.AccountID' a getter - guardduty.
ewbankkit Nov 27, 2024
d66f057
Make 'AWSClient.AccountID' a getter - iam.
ewbankkit Nov 27, 2024
865131b
Make 'AWSClient.AccountID' a getter - imagebuilder.
ewbankkit Nov 27, 2024
e82fbfd
Make 'AWSClient.AccountID' a getter - inspector.
ewbankkit Nov 27, 2024
d607a2c
Make 'AWSClient.AccountID' a getter - inspector2.
ewbankkit Nov 27, 2024
0cd9928
Make 'AWSClient.AccountID' a getter - internetmonitor.
ewbankkit Nov 27, 2024
e8d0e57
Make 'AWSClient.AccountID' a getter - iot.
ewbankkit Nov 27, 2024
a112c75
Make 'AWSClient.AccountID' a getter - ivs.
ewbankkit Nov 27, 2024
a59a323
Make 'AWSClient.AccountID' a getter - ivschat.
ewbankkit Nov 27, 2024
845aa20
Make 'AWSClient.AccountID' a getter - kafka.
ewbankkit Nov 27, 2024
1c10311
Make 'AWSClient.AccountID' a getter - kendra.
ewbankkit Nov 27, 2024
7fec454
Make 'AWSClient.AccountID' a getter - keyspaces.
ewbankkit Nov 27, 2024
11d5481
Make 'AWSClient.AccountID' a getter - kinesis.
ewbankkit Nov 27, 2024
9c34d0c
Make 'AWSClient.AccountID' a getter - kinesisanalytics.
ewbankkit Nov 27, 2024
2b7d78c
Make 'AWSClient.AccountID' a getter - kinesisanalyticsv2.
ewbankkit Nov 27, 2024
568d1fc
Make 'AWSClient.AccountID' a getter - kms.
ewbankkit Nov 27, 2024
ef34dad
Make 'AWSClient.AccountID' a getter - lakeformation.
ewbankkit Nov 27, 2024
5a6e630
Make 'AWSClient.AccountID' a getter - lambda.
ewbankkit Nov 27, 2024
16e3601
Make 'AWSClient.AccountID' a getter - lexmodels.
ewbankkit Nov 27, 2024
12df249
Make 'AWSClient.AccountID' a getter - licensemanager.
ewbankkit Nov 27, 2024
85a898b
Make 'AWSClient.AccountID' a getter - lightsail.
ewbankkit Nov 27, 2024
61f2ef4
Make 'AWSClient.AccountID' a getter - location.
ewbankkit Nov 27, 2024
6790d15
Make 'AWSClient.AccountID' a getter - logs.
ewbankkit Nov 27, 2024
f5bfc81
Make 'AWSClient.AccountID' a getter - m2.
ewbankkit Nov 27, 2024
e031f63
Make 'AWSClient.AccountID' a getter - macie2.
ewbankkit Nov 27, 2024
617c341
Make 'AWSClient.AccountID' a getter - mediaconvert.
ewbankkit Nov 27, 2024
58f8dab
Make 'AWSClient.AccountID' a getter - mediapackage.
ewbankkit Nov 27, 2024
9a35250
Make 'AWSClient.AccountID' a getter - memorydb.
ewbankkit Nov 27, 2024
c457358
Make 'AWSClient.AccountID' a getter - mq.
ewbankkit Nov 27, 2024
0e7479b
Make 'AWSClient.AccountID' a getter - mwaa.
ewbankkit Nov 27, 2024
573409e
Make 'AWSClient.AccountID' a getter - neptune.
ewbankkit Nov 27, 2024
0892106
Make 'AWSClient.AccountID' a getter - networkfirewall.
ewbankkit Nov 27, 2024
93e5b2e
Make 'AWSClient.AccountID' a getter - networkmanager.
ewbankkit Nov 27, 2024
a759b2c
Make 'AWSClient.AccountID' a getter - networkmonitor.
ewbankkit Nov 27, 2024
843b043
Make 'AWSClient.AccountID' a getter - oam.
ewbankkit Nov 27, 2024
913b8f8
Make 'AWSClient.AccountID' a getter - opensearch.
ewbankkit Nov 27, 2024
4bbf513
Make 'AWSClient.AccountID' a getter - opsworks.
ewbankkit Nov 27, 2024
8d71184
Make 'AWSClient.AccountID' a getter - organizations.
ewbankkit Nov 27, 2024
2259989
Make 'AWSClient.AccountID' a getter - osis.
ewbankkit Nov 27, 2024
9ddb22f
Make 'AWSClient.AccountID' a getter - outposts.
ewbankkit Nov 27, 2024
46e8304
Make 'AWSClient.AccountID' a getter - paymentcryptography.
ewbankkit Nov 27, 2024
525bc2d
Make 'AWSClient.AccountID' a getter - pipes.
ewbankkit Nov 27, 2024
4fbf22f
Make 'AWSClient.AccountID' a getter - polly.
ewbankkit Nov 27, 2024
ad9ea37
Make 'AWSClient.AccountID' a getter - qldb.
ewbankkit Nov 27, 2024
08d3c19
Make 'AWSClient.AccountID' a getter - quicksight.
ewbankkit Nov 27, 2024
fbf431f
Make 'AWSClient.AccountID' a getter - ram.
ewbankkit Nov 27, 2024
a3c1086
Make 'AWSClient.AccountID' a getter - rbin.
ewbankkit Nov 27, 2024
f604791
Make 'AWSClient.AccountID' a getter - rds.
ewbankkit Nov 27, 2024
0e07c4f
Make 'AWSClient.AccountID' a getter - redshift.
ewbankkit Nov 27, 2024
4ed4b50
Make 'AWSClient.AccountID' a getter - redshiftserverless.
ewbankkit Nov 27, 2024
aee2c04
Make 'AWSClient.AccountID' a getter - resiliencehub.
ewbankkit Nov 27, 2024
7890f35
Make 'AWSClient.AccountID' a getter - resourceexplorer2.
ewbankkit Nov 27, 2024
bb20b4b
Make 'AWSClient.AccountID' a getter - rolesanywhere.
ewbankkit Nov 27, 2024
8ff095c
Make 'AWSClient.AccountID' a getter - route53recoveryreadiness.
ewbankkit Nov 27, 2024
4e3277c
Make 'AWSClient.AccountID' a getter - route53resolver.
ewbankkit Nov 27, 2024
9a06c13
Make 'AWSClient.AccountID' a getter - rum.
ewbankkit Nov 27, 2024
62fc3f2
Make 'AWSClient.AccountID' a getter - s3.
ewbankkit Nov 27, 2024
330f8db
Make 'AWSClient.AccountID' a getter - s3control.
ewbankkit Nov 27, 2024
9ba888e
Make 'AWSClient.AccountID' a getter - s3outposts.
ewbankkit Nov 27, 2024
5f5838d
Make 'AWSClient.AccountID' a getter - sagemaker.
ewbankkit Nov 27, 2024
5664e70
Make 'AWSClient.AccountID' a getter - scheduler.
ewbankkit Nov 27, 2024
9a87f69
Make 'AWSClient.AccountID' a getter - schemas.
ewbankkit Nov 27, 2024
8b8c887
Make 'AWSClient.AccountID' a getter - secretsmanager.
ewbankkit Nov 27, 2024
1563613
Make 'AWSClient.AccountID' a getter - securityhub.
ewbankkit Nov 27, 2024
94e9421
Make 'AWSClient.AccountID' a getter - securitylake.
ewbankkit Nov 27, 2024
f84a852
Make 'AWSClient.AccountID' a getter - servicecatalog.
ewbankkit Nov 27, 2024
8899f81
Make 'AWSClient.AccountID' a getter - servicecatalogappregistry.
ewbankkit Nov 27, 2024
c521373
Make 'AWSClient.AccountID' a getter - servicediscovery.
ewbankkit Nov 27, 2024
5c66d3b
Make 'AWSClient.AccountID' a getter - servicequotas.
ewbankkit Nov 27, 2024
1480f54
Make 'AWSClient.AccountID' a getter - ses.
ewbankkit Nov 27, 2024
0c147b4
Make 'AWSClient.AccountID' a getter - sesv2.
ewbankkit Nov 27, 2024
9985831
Make 'AWSClient.AccountID' a getter - sfn.
ewbankkit Nov 27, 2024
7bf5ec4
Make 'AWSClient.AccountID' a getter - shield.
ewbankkit Nov 27, 2024
a97340c
Make 'AWSClient.AccountID' a getter - sns.
ewbankkit Nov 27, 2024
fff9e03
Make 'AWSClient.AccountID' a getter - sqs.
ewbankkit Nov 27, 2024
c9017be
Make 'AWSClient.AccountID' a getter - ssm.
ewbankkit Nov 27, 2024
a79a831
Make 'AWSClient.AccountID' a getter - ssmcontacts.
ewbankkit Nov 27, 2024
b9b829a
Make 'AWSClient.AccountID' a getter - ssmincidents.
ewbankkit Nov 27, 2024
a792bd7
Make 'AWSClient.AccountID' a getter - ssmquicksetup.
ewbankkit Nov 27, 2024
19aa01c
Make 'AWSClient.AccountID' a getter - ssoadmin.
ewbankkit Nov 27, 2024
2a1f3db
Make 'AWSClient.AccountID' a getter - storagegateway.
ewbankkit Nov 27, 2024
882fb4f
Make 'AWSClient.AccountID' a getter - sts.
ewbankkit Nov 27, 2024
8e3d30f
Make 'AWSClient.AccountID' a getter - swf.
ewbankkit Nov 27, 2024
da41b71
Make 'AWSClient.AccountID' a getter - synthetics.
ewbankkit Nov 27, 2024
bb1b156
Make 'AWSClient.AccountID' a getter - timestreaminfluxdb.
ewbankkit Nov 27, 2024
3941d0b
Make 'AWSClient.AccountID' a getter - timestreamwrite.
ewbankkit Nov 27, 2024
3591071
Make 'AWSClient.AccountID' a getter - transcribe.
ewbankkit Nov 27, 2024
f176f41
Make 'AWSClient.AccountID' a getter - transfer.
ewbankkit Nov 27, 2024
2114c29
Make 'AWSClient.AccountID' a getter - verifiedpermissions.
ewbankkit Nov 27, 2024
dfffa8b
Make 'AWSClient.AccountID' a getter - vpclattice.
ewbankkit Nov 27, 2024
a1258af
Make 'AWSClient.AccountID' a getter - waf.
ewbankkit Nov 27, 2024
1fc5323
Make 'AWSClient.AccountID' a getter - wafregional.
ewbankkit Nov 27, 2024
defc60e
Make 'AWSClient.AccountID' a getter - wafv2.
ewbankkit Nov 27, 2024
92e1b83
Make 'AWSClient.AccountID' a getter - xray.
ewbankkit Nov 27, 2024
29d5050
Make 'AWSClient.Region' a getter.
ewbankkit Nov 27, 2024
274592e
Make 'AWSClient.Region' a getter - amp.
ewbankkit Nov 27, 2024
e35d30f
Make 'AWSClient.Region' a getter - apigateway.
ewbankkit Nov 27, 2024
da0b3b7
Make 'AWSClient.Region' a getter - apigatewayv2.
ewbankkit Nov 27, 2024
93c3675
Make 'AWSClient.Region' a getter - appconfig.
ewbankkit Nov 27, 2024
af7ddc7
Make 'AWSClient.Region' a getter - applicationinsights.
ewbankkit Nov 27, 2024
5c9069f
Make 'AWSClient.Region' a getter - apprunner.
ewbankkit Nov 27, 2024
9bc601f
Make 'AWSClient.Region' a getter - appsync.
ewbankkit Nov 27, 2024
f36b9bd
Make 'AWSClient.Region' a getter - athena.
ewbankkit Nov 27, 2024
4bdab2e
Make 'AWSClient.Region' a getter - auditmanager.
ewbankkit Nov 27, 2024
cbe3c58
Make 'AWSClient.Region' a getter - autoscaling.
ewbankkit Nov 27, 2024
8208e9f
Make 'AWSClient.Region' a getter - backup.
ewbankkit Nov 27, 2024
16f816b
Make 'AWSClient.Region' a getter - bedrock.
ewbankkit Nov 27, 2024
586ed6b
Make 'AWSClient.Region' a getter - chime.
ewbankkit Nov 27, 2024
3104b79
Make 'AWSClient.Region' a getter - cloudformation.
ewbankkit Nov 27, 2024
267053f
Make 'AWSClient.Region' a getter - cloudfront.
ewbankkit Nov 27, 2024
35cc2f4
Make 'AWSClient.Region' a getter - cloudtrail.
ewbankkit Nov 27, 2024
dfa61d0
Make 'AWSClient.Region' a getter - codepipeline.
ewbankkit Nov 27, 2024
434ba4b
Make 'AWSClient.Region' a getter - cognitoidentity.
ewbankkit Nov 27, 2024
17bd866
Make 'AWSClient.Region' a getter - cognitoidp.
ewbankkit Nov 27, 2024
bfce943
Make 'AWSClient.Region' a getter - connect.
ewbankkit Nov 27, 2024
8ef39b9
Make 'AWSClient.Region' a getter - cur.
ewbankkit Nov 27, 2024
fc94acd
Make 'AWSClient.Region' a getter - datasync.
ewbankkit Nov 27, 2024
bc76c50
Make 'AWSClient.Region' a getter - deploy.
ewbankkit Nov 27, 2024
251df1b
Make 'AWSClient.Region' a getter - devopsguru.
ewbankkit Nov 27, 2024
3b1b3fc
Make 'AWSClient.Region' a getter - directconnect.
ewbankkit Nov 27, 2024
24c987b
Make 'AWSClient.Region' a getter - dms.
ewbankkit Nov 27, 2024
ee3587e
Make 'AWSClient.Region' a getter - docdb.
ewbankkit Nov 27, 2024
cf3271c
Make 'AWSClient.Region' a getter - dynamodb.
ewbankkit Nov 27, 2024
24db733
Make 'AWSClient.Region' a getter - ec2.
ewbankkit Nov 27, 2024
8bec6ab
Make 'AWSClient.Region' a getter - ecr.
ewbankkit Nov 27, 2024
e932795
Make 'AWSClient.Region' a getter - ecrpublic.
ewbankkit Nov 27, 2024
dbe862a
Make 'AWSClient.Region' a getter - ecs.
ewbankkit Nov 27, 2024
76feb6c
Make 'AWSClient.Region' a getter - efs.
ewbankkit Nov 27, 2024
00a7a3e
Make 'AWSClient.Region' a getter - eks.
ewbankkit Nov 27, 2024
1277255
Make 'AWSClient.Region' a getter - elasticache.
ewbankkit Nov 27, 2024
f3aac86
Make 'AWSClient.Region' a getter - elasticbeanstalk.
ewbankkit Nov 27, 2024
4861cf1
Make 'AWSClient.Region' a getter - elasticsearch.
ewbankkit Nov 27, 2024
aea8cab
Make 'AWSClient.Region' a getter - elb.
ewbankkit Nov 27, 2024
1eb1cd4
Make 'AWSClient.Region' a getter - elbv2.
ewbankkit Nov 27, 2024
7c2da11
Make 'AWSClient.Region' a getter - finspace.
ewbankkit Nov 27, 2024
ceeb2d4
Make 'AWSClient.Region' a getter - fsx.
ewbankkit Nov 27, 2024
5ac73dc
Make 'AWSClient.Region' a getter - globalaccelerator.
ewbankkit Nov 27, 2024
bec2f7a
Make 'AWSClient.Region' a getter - glue.
ewbankkit Nov 27, 2024
71e11d2
Make 'AWSClient.Region' a getter - grafana.
ewbankkit Nov 27, 2024
3e9ce69
Make 'AWSClient.Region' a getter - guardduty.
ewbankkit Nov 27, 2024
222e22e
Make 'AWSClient.Region' a getter - iam.
ewbankkit Nov 27, 2024
8af7f9d
Make 'AWSClient.Region' a getter - imagebuilder.
ewbankkit Nov 27, 2024
2128180
Make 'AWSClient.Region' a getter - inspector.
ewbankkit Nov 27, 2024
2f2cb8a
Make 'AWSClient.Region' a getter - iot.
ewbankkit Nov 27, 2024
d8036c6
Make 'AWSClient.Region' a getter - kendra.
ewbankkit Nov 27, 2024
1dbd874
Make 'AWSClient.Region' a getter - kms.
ewbankkit Nov 27, 2024
4e11604
Make 'AWSClient.Region' a getter - lambda.
ewbankkit Nov 27, 2024
c238d02
Make 'AWSClient.Region' a getter - lexmodels.
ewbankkit Nov 27, 2024
17c4fbc
Make 'AWSClient.Region' a getter - licensemanager.
ewbankkit Nov 27, 2024
14d6417
Make 'AWSClient.Region' a getter - lightsail.
ewbankkit Nov 27, 2024
ef22db7
Make 'AWSClient.Region' a getter - location.
ewbankkit Nov 27, 2024
3075c00
Make 'AWSClient.Region' a getter - logs.
ewbankkit Nov 27, 2024
0cd944a
Make 'AWSClient.Region' a getter - macie2.
ewbankkit Nov 27, 2024
9e07f21
Make 'AWSClient.Region' a getter - meta.
ewbankkit Nov 27, 2024
7e5b04a
Make 'AWSClient.Region' a getter - mq.
ewbankkit Nov 27, 2024
3736d29
Make 'AWSClient.Region' a getter - neptune.
ewbankkit Nov 27, 2024
db274ff
Make 'AWSClient.Region' a getter - networkmanager.
ewbankkit Nov 27, 2024
f923054
Make 'AWSClient.Region' a getter - oam.
ewbankkit Nov 27, 2024
c29b184
Make 'AWSClient.Region' a getter - opensearch.
ewbankkit Nov 27, 2024
ac6a4ba
Make 'AWSClient.Region' a getter - outposts.
ewbankkit Nov 27, 2024
164fa80
Make 'AWSClient.Region' a getter - rbin.
ewbankkit Nov 27, 2024
bdd1ce3
Make 'AWSClient.Region' a getter - rds.
ewbankkit Nov 27, 2024
4e72944
Make 'AWSClient.Region' a getter - redshift.
ewbankkit Nov 27, 2024
dc6104a
Make 'AWSClient.Region' a getter - route53.
ewbankkit Nov 27, 2024
3d6e5ce
Make 'AWSClient.Region' a getter - route53resolver.
ewbankkit Nov 27, 2024
1cfe351
Make 'AWSClient.Region' a getter - rum.
ewbankkit Nov 27, 2024
1db2926
Make 'AWSClient.Region' a getter - s3.
ewbankkit Nov 27, 2024
9860b9f
Make 'AWSClient.Region' a getter - s3control.
ewbankkit Nov 27, 2024
b01a3c2
Make 'AWSClient.Region' a getter - sagemaker.
ewbankkit Nov 27, 2024
7f1495b
Make 'AWSClient.Region' a getter - secretsmanager.
ewbankkit Nov 27, 2024
b502f95
Make 'AWSClient.Region' a getter - securityhub.
ewbankkit Nov 27, 2024
06792bf
Make 'AWSClient.Region' a getter - securitylake.
ewbankkit Nov 27, 2024
7c70692
Make 'AWSClient.Region' a getter - ses.
ewbankkit Nov 27, 2024
3b28b56
Make 'AWSClient.Region' a getter - sesv2.
ewbankkit Nov 27, 2024
e2b618f
Make 'AWSClient.Region' a getter - sqs.
ewbankkit Nov 27, 2024
771be64
Make 'AWSClient.Region' a getter - ssm.
ewbankkit Nov 27, 2024
6cf82d3
Make 'AWSClient.Region' a getter - ssoadmin.
ewbankkit Nov 27, 2024
5b2879e
Make 'AWSClient.Region' a getter - storagegateway.
ewbankkit Nov 27, 2024
cacc559
Make 'AWSClient.Region' a getter - synthetics.
ewbankkit Nov 27, 2024
45295fd
Make 'AWSClient.Region' a getter - transcribe.
ewbankkit Nov 27, 2024
2f2d699
Make 'AWSClient.Region' a getter - wafregional.
ewbankkit Nov 27, 2024
0e76bd2
Make 'AWSClient.Region' a getter - xray.
ewbankkit Nov 27, 2024
a3524d3
'names.AFSouth1RegionID' -> 'endpoints.AfSouth1RegionID'.
ewbankkit Nov 27, 2024
489fcf1
'names.APEast1RegionID' -> 'endpoints.ApEast1RegionID'.
ewbankkit Nov 27, 2024
dd4294c
'names.APNortheast1RegionID' -> 'endpoints.ApNortheast1RegionID'.
ewbankkit Nov 27, 2024
5a2dc4a
'names.APNortheast2RegionID' -> 'endpoints.ApNortheast2RegionID'.
ewbankkit Nov 27, 2024
43aa2d6
'names.APNortheast3RegionID' -> 'endpoints.ApNortheast3RegionID'.
ewbankkit Nov 27, 2024
2141a76
'names.APSouth1RegionID' -> 'endpoints.ApSouth1RegionID'.
ewbankkit Nov 27, 2024
4a47973
'names.APSouth2RegionID' -> 'endpoints.ApSouth2RegionID'.
ewbankkit Nov 27, 2024
becc919
'names.APSoutheast1RegionID' -> 'endpoints.ApSoutheast1RegionID'.
ewbankkit Nov 27, 2024
69b40c0
'names.APSoutheast2RegionID' -> 'endpoints.ApSoutheast2RegionID'.
ewbankkit Nov 27, 2024
0aa0409
'names.APSoutheast3RegionID' -> 'endpoints.ApSoutheast3RegionID'.
ewbankkit Nov 27, 2024
41b3f93
'names.APSoutheast4RegionID' -> 'endpoints.ApSoutheast4RegionID'.
ewbankkit Nov 27, 2024
aab5e8f
'names.APSoutheast5RegionID' -> 'endpoints.ApSoutheast5RegionID'.
ewbankkit Nov 27, 2024
db72714
'names.CACentral1RegionID' -> 'endpoints.CaCentral1RegionID'.
ewbankkit Nov 27, 2024
eea063a
'names.CAWest1RegionID' -> 'endpoints.CaWest1RegionID'.
ewbankkit Nov 27, 2024
45abf60
'names.EUCentral1RegionID' -> 'endpoints.EuCentral1RegionID'.
ewbankkit Nov 27, 2024
7c01eaa
'names.EUCentral2RegionID' -> 'endpoints.EuCentral2RegionID'.
ewbankkit Nov 27, 2024
6403523
'names.EUNorth1RegionID' -> 'endpoints.EuNorth1RegionID'.
ewbankkit Nov 27, 2024
0c45f15
'names.EUSouth1RegionID' -> 'endpoints.EuSouth1RegionID'.
ewbankkit Nov 27, 2024
79f6f88
'names.EUSouth2RegionID' -> 'endpoints.EuSouth2RegionID'.
ewbankkit Nov 27, 2024
a3fef34
'names.EUWest1RegionID' -> 'endpoints.EuWest1RegionID'.
ewbankkit Nov 27, 2024
06df6bd
'names.EUWest2RegionID' -> 'endpoints.EuWest2RegionID'.
ewbankkit Nov 27, 2024
580fd02
'names.EUWest3RegionID' -> 'endpoints.EuWest3RegionID'.
ewbankkit Nov 27, 2024
50e2dfa
'names.ILCentral1RegionID' -> 'endpoints.IlCentral1RegionID'.
ewbankkit Nov 27, 2024
4e5f582
'names.MECentral1RegionID' -> 'endpoints.MeCentral1RegionID'.
ewbankkit Nov 27, 2024
f6d45e0
'names.MESouth1RegionID' -> 'endpoints.MeSouth1RegionID'.
ewbankkit Nov 27, 2024
ecd947a
'names.SAEast1RegionID' -> 'endpoints.SaEast1RegionID'.
ewbankkit Nov 27, 2024
8b8dcb0
'names.CNNorth1RegionID' -> 'endpoints.CnNorth1RegionID'.
ewbankkit Nov 27, 2024
ec43fc1
'names.CNNorthwest1RegionID' -> 'endpoints.CnNorthwest1RegionID'.
ewbankkit Nov 27, 2024
5022f80
'names.USGovEast1RegionID' -> 'endpoints.UsGovEast1RegionID'.
ewbankkit Nov 27, 2024
535c6a8
'names.USGovWest1RegionID' -> 'endpoints.UsGovWest1RegionID'.
ewbankkit Nov 27, 2024
9ded4c0
'names.USISOEast1RegionID' -> 'endpoints.UsIsoEast1RegionID'.
ewbankkit Nov 27, 2024
dbdc150
'names.USISOWest1RegionID' -> 'endpoints.UsIsoWest1RegionID'.
ewbankkit Nov 27, 2024
9eebd6f
'names.USISOBEast1RegionID' -> 'endpoints.UsIsobEast1RegionID'.
ewbankkit Nov 27, 2024
431c2ad
'names.EUISOEWest1RegionID' -> 'endpoints.EuIsoeWest1RegionID'.
ewbankkit Nov 27, 2024
40b5eec
'names.USEast2RegionID' -> 'endpoints.UsEast2RegionID'.
ewbankkit Nov 27, 2024
b5f6176
'names.USWest1RegionID' -> 'endpoints.UsWest1RegionID'.
ewbankkit Nov 27, 2024
b4ca358
'names.USEast1RegionID' -> 'endpoints.UsEast1RegionID'.
ewbankkit Nov 27, 2024
1b5c15f
'names.USWest2RegionID' -> 'endpoints.UsWest2RegionID'.
ewbankkit Nov 27, 2024
878bb94
Run 'make fmt'.
ewbankkit Nov 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
54 changes: 27 additions & 27 deletions internal/acctest/acctest.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ func PreCheck(ctx context.Context, t *testing.T) {
}

// ProviderAccountID returns the account ID of an AWS provider
func ProviderAccountID(provider *schema.Provider) string {
func ProviderAccountID(ctx context.Context, provider *schema.Provider) string {
if provider == nil {
log.Print("[DEBUG] Unable to read account ID from test provider: empty provider")
return ""
Expand All @@ -335,7 +335,7 @@ func ProviderAccountID(provider *schema.Provider) string {
log.Print("[DEBUG] Unable to read account ID from test provider: non-AWS or unconfigured AWS provider")
return ""
}
return client.AccountID
return client.AccountID(ctx)
}

// CheckDestroyNoop is a TestCheckFunc to be used as a TestCase's CheckDestroy when no such check can be made.
Expand All @@ -355,17 +355,17 @@ func CheckSleep(t *testing.T, d time.Duration) resource.TestCheckFunc {
}

// CheckResourceAttrAccountID ensures the Terraform state exactly matches the account ID
func CheckResourceAttrAccountID(resourceName, attributeName string) resource.TestCheckFunc {
func CheckResourceAttrAccountID(ctx context.Context, resourceName, attributeName string) resource.TestCheckFunc {
return func(s *terraform.State) error {
return resource.TestCheckResourceAttr(resourceName, attributeName, AccountID())(s)
return resource.TestCheckResourceAttr(resourceName, attributeName, AccountID(ctx))(s)
}
}

// CheckResourceAttrRegionalARN ensures the Terraform state exactly matches a formatted ARN with region
func CheckResourceAttrRegionalARN(resourceName, attributeName, arnService, arnResource string) resource.TestCheckFunc {
func CheckResourceAttrRegionalARN(ctx context.Context, resourceName, attributeName, arnService, arnResource string) resource.TestCheckFunc {
return func(s *terraform.State) error {
attributeValue := arn.ARN{
AccountID: AccountID(),
AccountID: AccountID(ctx),
Partition: Partition(),
Region: Region(),
Resource: arnResource,
Expand Down Expand Up @@ -458,10 +458,10 @@ func MatchResourceAttrAccountID(resourceName, attributeName string) resource.Tes
}

// MatchResourceAttrRegionalARN ensures the Terraform state regexp matches a formatted ARN with region
func MatchResourceAttrRegionalARN(resourceName, attributeName, arnService string, arnResourceRegexp *regexp.Regexp) resource.TestCheckFunc {
func MatchResourceAttrRegionalARN(ctx context.Context, resourceName, attributeName, arnService string, arnResourceRegexp *regexp.Regexp) resource.TestCheckFunc {
return func(s *terraform.State) error {
arnRegexp := arn.ARN{
AccountID: AccountID(),
AccountID: AccountID(ctx),
Partition: Partition(),
Region: Region(),
Resource: arnResourceRegexp.String(),
Expand All @@ -479,10 +479,10 @@ func MatchResourceAttrRegionalARN(resourceName, attributeName, arnService string
}

// MatchResourceAttrRegionalARNRegion ensures the Terraform state regexp matches a formatted ARN with the specified region
func MatchResourceAttrRegionalARNRegion(resourceName, attributeName, arnService, region string, arnResourceRegexp *regexp.Regexp) resource.TestCheckFunc {
func MatchResourceAttrRegionalARNRegion(ctx context.Context, resourceName, attributeName, arnService, region string, arnResourceRegexp *regexp.Regexp) resource.TestCheckFunc {
return func(s *terraform.State) error {
arnRegexp := arn.ARN{
AccountID: AccountID(),
AccountID: AccountID(ctx),
Partition: Partition(),
Region: region,
Resource: arnResourceRegexp.String(),
Expand Down Expand Up @@ -570,19 +570,19 @@ func MatchResourceAttrGlobalHostname(resourceName, attributeName, serviceName st
}
}

func globalARNValue(arnService, arnResource string) string {
func globalARNValue(ctx context.Context, arnService, arnResource string) string {
return arn.ARN{
AccountID: AccountID(),
AccountID: AccountID(ctx),
Partition: Partition(),
Resource: arnResource,
Service: arnService,
}.String()
}

// CheckResourceAttrGlobalARN ensures the Terraform state exactly matches a formatted ARN without region
func CheckResourceAttrGlobalARN(resourceName, attributeName, arnService, arnResource string) resource.TestCheckFunc {
func CheckResourceAttrGlobalARN(ctx context.Context, resourceName, attributeName, arnService, arnResource string) resource.TestCheckFunc {
return func(s *terraform.State) error {
return resource.TestCheckResourceAttr(resourceName, attributeName, globalARNValue(arnService, arnResource))(s)
return resource.TestCheckResourceAttr(resourceName, attributeName, globalARNValue(ctx, arnService, arnResource))(s)
}
}

Expand Down Expand Up @@ -612,10 +612,10 @@ func CheckResourceAttrGlobalARNAccountID(resourceName, attributeName, accountID,
}

// MatchResourceAttrGlobalARN ensures the Terraform state regexp matches a formatted ARN without region
func MatchResourceAttrGlobalARN(resourceName, attributeName, arnService string, arnResourceRegexp *regexp.Regexp) resource.TestCheckFunc {
func MatchResourceAttrGlobalARN(ctx context.Context, resourceName, attributeName, arnService string, arnResourceRegexp *regexp.Regexp) resource.TestCheckFunc {
return func(s *terraform.State) error {
arnRegexp := arn.ARN{
AccountID: AccountID(),
AccountID: AccountID(ctx),
Partition: Partition(),
Resource: arnResourceRegexp.String(),
Service: arnService,
Expand Down Expand Up @@ -892,20 +892,20 @@ func PrimaryInstanceState(s *terraform.State, name string) (*terraform.InstanceS

// AccountID returns the account ID of Provider
// Must be used within a resource.TestCheckFunc
func AccountID() string {
return ProviderAccountID(Provider)
func AccountID(ctx context.Context) string {
return ProviderAccountID(ctx, Provider)
}

func Region() string {
return envvar.GetWithDefault(envvar.DefaultRegion, names.USWest2RegionID)
return envvar.GetWithDefault(envvar.DefaultRegion, endpoints.UsWest2RegionID)
}

func AlternateRegion() string {
return envvar.GetWithDefault(envvar.AlternateRegion, names.USEast1RegionID)
return envvar.GetWithDefault(envvar.AlternateRegion, endpoints.UsEast1RegionID)
}

func ThirdRegion() string {
return envvar.GetWithDefault(envvar.ThirdRegion, names.USEast2RegionID)
return envvar.GetWithDefault(envvar.ThirdRegion, endpoints.UsEast2RegionID)
}

func Partition() string {
Expand Down Expand Up @@ -1374,9 +1374,9 @@ func PreCheckWAFV2CloudFrontScope(ctx context.Context, t *testing.T) {

switch Partition() {
case endpoints.AwsPartitionID:
PreCheckRegion(t, names.USEast1RegionID)
PreCheckRegion(t, endpoints.UsEast1RegionID)
case endpoints.AwsCnPartitionID:
PreCheckRegion(t, names.CNNorthwest1RegionID)
PreCheckRegion(t, endpoints.CnNorthwest1RegionID)
}

conn := Provider.Meta().(*conns.AWSClient).WAFV2Client(ctx)
Expand Down Expand Up @@ -1569,7 +1569,7 @@ provider %[1]q {
`, providerName, os.Getenv(envvar.AlternateAccessKeyId), os.Getenv(envvar.AlternateProfile), AlternateRegion(), os.Getenv(envvar.AlternateSecretAccessKey))
}

func RegionProviderFunc(region string, providers *[]*schema.Provider) ProviderFunc {
func RegionProviderFunc(ctx context.Context, region string, providers *[]*schema.Provider) ProviderFunc {
return func() *schema.Provider {
if region == "" {
log.Println("[DEBUG] No region given")
Expand All @@ -1595,7 +1595,7 @@ func RegionProviderFunc(region string, providers *[]*schema.Provider) ProviderFu
continue
}

clientRegion := client.Region
clientRegion := client.Region(ctx)
log.Printf("[DEBUG] Checking AWS provider region %q against %q", clientRegion, region)
if clientRegion == region {
log.Printf("[DEBUG] Found AWS provider with region: %s", region)
Expand Down Expand Up @@ -2624,14 +2624,14 @@ func CheckVPCExists(ctx context.Context, n string, v *ec2types.Vpc) resource.Tes
}
}

func CheckCallerIdentityAccountID(n string) resource.TestCheckFunc {
func CheckCallerIdentityAccountID(ctx context.Context, n string) resource.TestCheckFunc {
return func(s *terraform.State) error {
rs, ok := s.RootModule().Resources[n]
if !ok {
return fmt.Errorf("can't find AccountID resource: %s", n)
}

expected := Provider.Meta().(*conns.AWSClient).AccountID
expected := Provider.Meta().(*conns.AWSClient).AccountID(ctx)
if rs.Primary.Attributes["account_id"] != expected {
return fmt.Errorf("incorrect Account ID: expected %q, got %q", expected, rs.Primary.Attributes["account_id"])
}
Expand Down
5 changes: 3 additions & 2 deletions internal/acctest/known_value.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package acctest

import (
"context"
"fmt"

"github.com/hashicorp/terraform-plugin-testing/knownvalue"
Expand All @@ -23,7 +24,7 @@ func (v globalARNCheck) CheckValue(other any) error {
return fmt.Errorf("expected string value for GlobalARN check, got: %T", other)
}

arnValue := globalARNValue(v.arnService, v.arnResource)
arnValue := globalARNValue(context.Background(), v.arnService, v.arnResource)

if otherVal != arnValue {
return fmt.Errorf("expected value %s for GlobalARN check, got: %s", arnValue, otherVal)
Expand All @@ -34,7 +35,7 @@ func (v globalARNCheck) CheckValue(other any) error {

// String returns the string representation of the value.
func (v globalARNCheck) String() string {
return globalARNValue(v.arnService, v.arnResource)
return globalARNValue(context.Background(), v.arnService, v.arnResource)
}

func GlobalARN(arnService, arnResource string) globalARNCheck {
Expand Down
25 changes: 12 additions & 13 deletions internal/acctest/partition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (

"github.com/hashicorp/aws-sdk-go-base/v2/endpoints"
"github.com/hashicorp/terraform-provider-aws/internal/acctest"
"github.com/hashicorp/terraform-provider-aws/names"
)

func TestIsIsolatedPartition(t *testing.T) {
Expand Down Expand Up @@ -67,27 +66,27 @@ func TestIsIsolatedRegion(t *testing.T) {
expected bool
}{
{
input: names.USEast1RegionID,
input: endpoints.UsEast1RegionID,
expected: false,
},
{
input: names.CNNorth1RegionID,
input: endpoints.CnNorth1RegionID,
expected: false,
},
{
input: names.USGovEast1RegionID,
input: endpoints.UsGovEast1RegionID,
expected: false,
},
{
input: names.USISOEast1RegionID,
input: endpoints.UsIsoEast1RegionID,
expected: true,
},
{
input: names.USISOBEast1RegionID,
input: endpoints.UsIsobEast1RegionID,
expected: true,
},
{
input: names.EUISOEWest1RegionID,
input: endpoints.EuIsoeWest1RegionID,
expected: true,
},
}
Expand Down Expand Up @@ -159,27 +158,27 @@ func TestIsStandardRegion(t *testing.T) {
expected bool
}{
{
input: names.USEast1RegionID,
input: endpoints.UsEast1RegionID,
expected: true,
},
{
input: names.CNNorth1RegionID,
input: endpoints.CnNorth1RegionID,
expected: false,
},
{
input: names.USGovEast1RegionID,
input: endpoints.UsGovEast1RegionID,
expected: false,
},
{
input: names.USISOEast1RegionID,
input: endpoints.UsIsoEast1RegionID,
expected: false,
},
{
input: names.USISOBEast1RegionID,
input: endpoints.UsIsobEast1RegionID,
expected: false,
},
{
input: names.EUISOEWest1RegionID,
input: endpoints.EuIsoeWest1RegionID,
expected: false,
},
}
Expand Down
38 changes: 24 additions & 14 deletions internal/conns/awsclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ import (
)

type AWSClient struct {
AccountID string
defaultTagsConfig *tftags.DefaultConfig
ignoreTagsConfig *tftags.IgnoreConfig
Region string
ServicePackages map[string]ServicePackage
ServicePackages map[string]ServicePackage

accountID string
awsConfig *aws.Config
clients map[string]any
conns map[string]any
defaultTagsConfig *tftags.DefaultConfig
endpoints map[string]string // From provider configuration.
httpClient *http.Client
ignoreTagsConfig *tftags.IgnoreConfig
lock sync.Mutex
logger baselogging.Logger
partition endpoints.Partition
region string
session *session_sdkv1.Session
s3ExpressClient *s3.Client
s3UsePathStyle bool // From provider configuration.
Expand Down Expand Up @@ -76,11 +76,21 @@ func (c *AWSClient) Endpoints(context.Context) map[string]string {
return maps.Clone(c.endpoints)
}

// AccountID returns the configured AWS account ID.
func (c *AWSClient) AccountID(context.Context) string {
return c.accountID
}

// Partition returns the ID of the configured AWS partition.
func (c *AWSClient) Partition(context.Context) string {
return c.partition.ID()
}

// Region returns the ID of the configured AWS Region.
func (c *AWSClient) Region(context.Context) string {
return c.region
}

// PartitionHostname returns a hostname with the provider domain suffix for the partition
// e.g. PREFIX.amazonaws.com
// The prefix should not contain a trailing period.
Expand All @@ -93,8 +103,8 @@ func (c *AWSClient) RegionalARN(ctx context.Context, service, resource string) s
return arn.ARN{
Partition: c.Partition(ctx),
Service: service,
Region: c.Region,
AccountID: c.AccountID,
Region: c.Region(ctx),
AccountID: c.AccountID(ctx),
Resource: resource,
}.String()
}
Expand All @@ -104,7 +114,7 @@ func (c *AWSClient) RegionalARNNoAccount(ctx context.Context, service, resource
return arn.ARN{
Partition: c.Partition(ctx),
Service: service,
Region: c.Region,
Region: c.Region(ctx),
Resource: resource,
}.String()
}
Expand All @@ -113,7 +123,7 @@ func (c *AWSClient) RegionalARNNoAccount(ctx context.Context, service, resource
// e.g. PREFIX.us-west-2.amazonaws.com
// The prefix should not contain a trailing period.
func (c *AWSClient) RegionalHostname(ctx context.Context, prefix string) string {
return fmt.Sprintf("%s.%s.%s", prefix, c.Region, c.DNSSuffix(ctx))
return fmt.Sprintf("%s.%s.%s", prefix, c.Region(ctx), c.DNSSuffix(ctx))
}

// S3ExpressClient returns an AWS SDK for Go v2 S3 API client suitable for use with S3 Express (directory buckets).
Expand Down Expand Up @@ -209,7 +219,7 @@ func (c *AWSClient) DefaultKMSKeyPolicy(ctx context.Context) string {
}
]
}
`, c.Partition(ctx), c.AccountID)
`, c.Partition(ctx), c.AccountID(ctx))
}

// GlobalAcceleratorHostedZoneID returns the Route 53 hosted zone ID
Expand All @@ -234,8 +244,8 @@ func (c *AWSClient) ReverseDNSPrefix(ctx context.Context) string {
}

// EC2RegionalPrivateDNSSuffix returns the EC2 private DNS suffix for the configured AWS Region.
func (c *AWSClient) EC2RegionalPrivateDNSSuffix(context.Context) string {
region := c.Region
func (c *AWSClient) EC2RegionalPrivateDNSSuffix(ctx context.Context) string {
region := c.Region(ctx)
if region == endpoints.UsEast1RegionID {
return "ec2.internal"
}
Expand All @@ -244,8 +254,8 @@ func (c *AWSClient) EC2RegionalPrivateDNSSuffix(context.Context) string {
}

// EC2RegionalPublicDNSSuffix returns the EC2 public DNS suffix for the configured AWS Region.
func (c *AWSClient) EC2RegionalPublicDNSSuffix(context.Context) string {
region := c.Region
func (c *AWSClient) EC2RegionalPublicDNSSuffix(ctx context.Context) string {
region := c.Region(ctx)
if region == endpoints.UsEast1RegionID {
return "compute-1"
}
Expand Down
Loading
Loading