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

Tech debt: Isolate AWS SDK for Go v1 references #39814

Merged
merged 985 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
985 commits
Select commit Hold shift + click to select a range
ff9cc22
Fix 'ci.semgrep.aws.aws-sdk-go-base-awsv1shim-imports'.
ewbankkit Oct 22, 2024
399e75a
Fix yamllint '[new-line-at-end-of-file] no new line character at the …
ewbankkit Oct 22, 2024
d449cb3
internal/conns: Use partition and regions constants from 'endpoints'.
ewbankkit Oct 22, 2024
bd78d26
Move 'ReverseDNS' from 'names' to 'internal/conns'.
ewbankkit Oct 22, 2024
354b802
Merge commit '9b6b29846ffdd877e9a6fed27f891481c2134e05' into td-isola…
ewbankkit Oct 23, 2024
56cecbe
Merge branch 'main' into td-isolate-aws-sdk-go-references
ewbankkit Oct 23, 2024
c7e12e2
internal/generate/servicepackage: Rename generated endpoint resolver …
ewbankkit Oct 23, 2024
86bf793
Rename endpoint resolver struct type - accessanalyzer.
ewbankkit Oct 23, 2024
43fed3e
Rename endpoint resolver struct type - account.
ewbankkit Oct 23, 2024
4920049
Rename endpoint resolver struct type - acm.
ewbankkit Oct 23, 2024
dbec2e0
Rename endpoint resolver struct type - acmpca.
ewbankkit Oct 23, 2024
3095d68
Rename endpoint resolver struct type - amp.
ewbankkit Oct 23, 2024
e2b4d56
Rename endpoint resolver struct type - amplify.
ewbankkit Oct 23, 2024
743ef2b
Rename endpoint resolver struct type - apigateway.
ewbankkit Oct 23, 2024
006c950
Rename endpoint resolver struct type - apigatewayv2.
ewbankkit Oct 23, 2024
c54453c
Rename endpoint resolver struct type - appautoscaling.
ewbankkit Oct 23, 2024
2181a83
Rename endpoint resolver struct type - appconfig.
ewbankkit Oct 23, 2024
e59151d
Rename endpoint resolver struct type - appfabric.
ewbankkit Oct 23, 2024
a925f78
Rename endpoint resolver struct type - appflow.
ewbankkit Oct 23, 2024
dd8dd1a
Rename endpoint resolver struct type - appintegrations.
ewbankkit Oct 23, 2024
40dcbf8
Rename endpoint resolver struct type - applicationinsights.
ewbankkit Oct 23, 2024
bdfe410
Rename endpoint resolver struct type - applicationsignals.
ewbankkit Oct 23, 2024
eef98d2
Rename endpoint resolver struct type - appmesh.
ewbankkit Oct 23, 2024
f122576
Rename endpoint resolver struct type - apprunner.
ewbankkit Oct 23, 2024
689047c
Rename endpoint resolver struct type - appstream.
ewbankkit Oct 23, 2024
8d72634
Rename endpoint resolver struct type - appsync.
ewbankkit Oct 23, 2024
68cce58
Rename endpoint resolver struct type - athena.
ewbankkit Oct 23, 2024
b727cf6
Rename endpoint resolver struct type - auditmanager.
ewbankkit Oct 23, 2024
b6bc2aa
Rename endpoint resolver struct type - autoscaling.
ewbankkit Oct 23, 2024
f9a5f69
Rename endpoint resolver struct type - autoscalingplans.
ewbankkit Oct 23, 2024
37d80f8
Rename endpoint resolver struct type - backup.
ewbankkit Oct 23, 2024
dda230c
Rename endpoint resolver struct type - batch.
ewbankkit Oct 23, 2024
4e3df4f
Rename endpoint resolver struct type - bcmdataexports.
ewbankkit Oct 23, 2024
0807098
Rename endpoint resolver struct type - bedrock.
ewbankkit Oct 23, 2024
5fe99d0
Rename endpoint resolver struct type - bedrockagent.
ewbankkit Oct 23, 2024
25258b6
Rename endpoint resolver struct type - budgets.
ewbankkit Oct 23, 2024
7f685a2
Rename endpoint resolver struct type - ce.
ewbankkit Oct 23, 2024
9f2e592
Rename endpoint resolver struct type - chatbot.
ewbankkit Oct 23, 2024
1180e8a
Rename endpoint resolver struct type - chime.
ewbankkit Oct 23, 2024
f362d2f
Rename endpoint resolver struct type - chimesdkmediapipelines.
ewbankkit Oct 23, 2024
b953163
Rename endpoint resolver struct type - chimesdkvoice.
ewbankkit Oct 23, 2024
0ab2036
Rename endpoint resolver struct type - cleanrooms.
ewbankkit Oct 23, 2024
328135e
Rename endpoint resolver struct type - cloud9.
ewbankkit Oct 23, 2024
a89c439
Rename endpoint resolver struct type - cloudcontrol.
ewbankkit Oct 23, 2024
850fd65
Rename endpoint resolver struct type - cloudformation.
ewbankkit Oct 23, 2024
886ee91
Rename endpoint resolver struct type - cloudfront.
ewbankkit Oct 23, 2024
61d8eb5
Rename endpoint resolver struct type - cloudfrontkeyvaluestore.
ewbankkit Oct 23, 2024
7fcf88c
Rename endpoint resolver struct type - cloudhsmv2.
ewbankkit Oct 23, 2024
e5c5561
Rename endpoint resolver struct type - cloudsearch.
ewbankkit Oct 23, 2024
e0052b9
Rename endpoint resolver struct type - cloudtrail.
ewbankkit Oct 23, 2024
7db12d9
Rename endpoint resolver struct type - cloudwatch.
ewbankkit Oct 23, 2024
d97a664
Rename endpoint resolver struct type - codeartifact.
ewbankkit Oct 23, 2024
d45a2cc
Rename endpoint resolver struct type - codebuild.
ewbankkit Oct 23, 2024
acd23ca
Rename endpoint resolver struct type - codecatalyst.
ewbankkit Oct 23, 2024
579acee
Rename endpoint resolver struct type - codecommit.
ewbankkit Oct 23, 2024
cb5a4d8
Rename endpoint resolver struct type - codeconnections.
ewbankkit Oct 23, 2024
7e73b02
Rename endpoint resolver struct type - codeguruprofiler.
ewbankkit Oct 23, 2024
d1f5b70
Rename endpoint resolver struct type - codegurureviewer.
ewbankkit Oct 23, 2024
5d93808
Rename endpoint resolver struct type - codepipeline.
ewbankkit Oct 23, 2024
9f8b04a
Rename endpoint resolver struct type - codestarconnections.
ewbankkit Oct 23, 2024
dd5254b
Rename endpoint resolver struct type - codestarnotifications.
ewbankkit Oct 23, 2024
2110952
Rename endpoint resolver struct type - cognitoidentity.
ewbankkit Oct 23, 2024
2bff92a
Rename endpoint resolver struct type - cognitoidp.
ewbankkit Oct 23, 2024
c0375b4
Rename endpoint resolver struct type - comprehend.
ewbankkit Oct 23, 2024
8ebd3c1
Rename endpoint resolver struct type - computeoptimizer.
ewbankkit Oct 23, 2024
63752f2
Rename endpoint resolver struct type - configservice.
ewbankkit Oct 23, 2024
aeeb6f7
Rename endpoint resolver struct type - connect.
ewbankkit Oct 23, 2024
d5aaa4b
Rename endpoint resolver struct type - connectcases.
ewbankkit Oct 23, 2024
8f23e13
Rename endpoint resolver struct type - controltower.
ewbankkit Oct 23, 2024
05ff399
Rename endpoint resolver struct type - costoptimizationhub.
ewbankkit Oct 23, 2024
9a55626
Rename endpoint resolver struct type - cur.
ewbankkit Oct 23, 2024
86b3943
Rename endpoint resolver struct type - customerprofiles.
ewbankkit Oct 23, 2024
02dd95a
Rename endpoint resolver struct type - databrew.
ewbankkit Oct 23, 2024
fbfc3ef
Rename endpoint resolver struct type - dataexchange.
ewbankkit Oct 23, 2024
4f0bc25
Rename endpoint resolver struct type - datapipeline.
ewbankkit Oct 23, 2024
2ce5dbd
Rename endpoint resolver struct type - datasync.
ewbankkit Oct 23, 2024
3969caf
Rename endpoint resolver struct type - datazone.
ewbankkit Oct 23, 2024
5d56c4a
Rename endpoint resolver struct type - dax.
ewbankkit Oct 23, 2024
480929b
Rename endpoint resolver struct type - deploy.
ewbankkit Oct 23, 2024
222da04
Rename endpoint resolver struct type - detective.
ewbankkit Oct 23, 2024
6460d2a
Rename endpoint resolver struct type - devicefarm.
ewbankkit Oct 23, 2024
53df83d
Rename endpoint resolver struct type - devopsguru.
ewbankkit Oct 23, 2024
fe0fbb8
Rename endpoint resolver struct type - directconnect.
ewbankkit Oct 23, 2024
dac2c0b
Rename endpoint resolver struct type - dlm.
ewbankkit Oct 23, 2024
e5aa3f1
Rename endpoint resolver struct type - dms.
ewbankkit Oct 23, 2024
2e8d344
Rename endpoint resolver struct type - docdb.
ewbankkit Oct 23, 2024
1d09b21
Rename endpoint resolver struct type - docdbelastic.
ewbankkit Oct 23, 2024
da14e21
Rename endpoint resolver struct type - drs.
ewbankkit Oct 23, 2024
1c7a8eb
Rename endpoint resolver struct type - ds.
ewbankkit Oct 23, 2024
a1a3146
Rename endpoint resolver struct type - dynamodb.
ewbankkit Oct 23, 2024
c69a9f0
Rename endpoint resolver struct type - ec2.
ewbankkit Oct 23, 2024
90f3a97
Rename endpoint resolver struct type - ecr.
ewbankkit Oct 23, 2024
2d66f2f
Rename endpoint resolver struct type - ecrpublic.
ewbankkit Oct 23, 2024
5f575b8
Rename endpoint resolver struct type - ecs.
ewbankkit Oct 23, 2024
26aaa8c
Rename endpoint resolver struct type - efs.
ewbankkit Oct 23, 2024
0bc4c1f
Rename endpoint resolver struct type - eks.
ewbankkit Oct 23, 2024
d5b0b29
Rename endpoint resolver struct type - elasticache.
ewbankkit Oct 23, 2024
398d1d2
Rename endpoint resolver struct type - elasticbeanstalk.
ewbankkit Oct 23, 2024
99e55a5
Rename endpoint resolver struct type - elasticsearch.
ewbankkit Oct 23, 2024
8b85d47
Rename endpoint resolver struct type - elastictranscoder.
ewbankkit Oct 23, 2024
3be2a7f
Rename endpoint resolver struct type - elb.
ewbankkit Oct 23, 2024
0cf80c3
Rename endpoint resolver struct type - elbv2.
ewbankkit Oct 23, 2024
86188bc
Rename endpoint resolver struct type - emr.
ewbankkit Oct 23, 2024
a0d2ab8
Rename endpoint resolver struct type - emrcontainers.
ewbankkit Oct 23, 2024
0a72c7d
Rename endpoint resolver struct type - emrserverless.
ewbankkit Oct 23, 2024
059d712
Rename endpoint resolver struct type - events.
ewbankkit Oct 23, 2024
dbd379f
Rename endpoint resolver struct type - evidently.
ewbankkit Oct 23, 2024
d214ef6
Rename endpoint resolver struct type - finspace.
ewbankkit Oct 23, 2024
a3f379a
Rename endpoint resolver struct type - firehose.
ewbankkit Oct 23, 2024
7df363c
Rename endpoint resolver struct type - fis.
ewbankkit Oct 23, 2024
6c83d6f
Rename endpoint resolver struct type - fms.
ewbankkit Oct 23, 2024
a69f115
Rename endpoint resolver struct type - fsx.
ewbankkit Oct 23, 2024
74d51d5
Rename endpoint resolver struct type - gamelift.
ewbankkit Oct 23, 2024
90e37d2
Rename endpoint resolver struct type - glacier.
ewbankkit Oct 23, 2024
2ced9c4
Rename endpoint resolver struct type - globalaccelerator.
ewbankkit Oct 23, 2024
a0a709b
Rename endpoint resolver struct type - glue.
ewbankkit Oct 23, 2024
2e9863d
Rename endpoint resolver struct type - grafana.
ewbankkit Oct 23, 2024
6eddff7
Rename endpoint resolver struct type - greengrass.
ewbankkit Oct 23, 2024
3004789
Rename endpoint resolver struct type - groundstation.
ewbankkit Oct 23, 2024
f148dd5
Rename endpoint resolver struct type - guardduty.
ewbankkit Oct 23, 2024
be66484
Rename endpoint resolver struct type - healthlake.
ewbankkit Oct 23, 2024
a653b99
Rename endpoint resolver struct type - iam.
ewbankkit Oct 23, 2024
3d0bb45
Rename endpoint resolver struct type - identitystore.
ewbankkit Oct 23, 2024
d63f9e1
Rename endpoint resolver struct type - imagebuilder.
ewbankkit Oct 23, 2024
e173da8
Rename endpoint resolver struct type - inspector.
ewbankkit Oct 23, 2024
8e3a32a
Rename endpoint resolver struct type - inspector2.
ewbankkit Oct 23, 2024
b8acf33
Rename endpoint resolver struct type - internetmonitor.
ewbankkit Oct 23, 2024
4df6146
Rename endpoint resolver struct type - iot.
ewbankkit Oct 23, 2024
e7e1831
Rename endpoint resolver struct type - iotanalytics.
ewbankkit Oct 23, 2024
831133c
Rename endpoint resolver struct type - iotevents.
ewbankkit Oct 23, 2024
9fdafb3
Rename endpoint resolver struct type - ivs.
ewbankkit Oct 23, 2024
8f1f968
Rename endpoint resolver struct type - ivschat.
ewbankkit Oct 23, 2024
d48046b
Rename endpoint resolver struct type - kafka.
ewbankkit Oct 23, 2024
15ace59
Rename endpoint resolver struct type - kafkaconnect.
ewbankkit Oct 23, 2024
20f3e81
Rename endpoint resolver struct type - kendra.
ewbankkit Oct 23, 2024
c961aa6
Rename endpoint resolver struct type - keyspaces.
ewbankkit Oct 23, 2024
731a467
Rename endpoint resolver struct type - kinesis.
ewbankkit Oct 23, 2024
920b75f
Rename endpoint resolver struct type - kinesisanalytics.
ewbankkit Oct 23, 2024
ce1b05c
Rename endpoint resolver struct type - kinesisanalyticsv2.
ewbankkit Oct 23, 2024
6295200
Rename endpoint resolver struct type - kinesisvideo.
ewbankkit Oct 23, 2024
efc43d8
Rename endpoint resolver struct type - kms.
ewbankkit Oct 23, 2024
f6cb8a5
Rename endpoint resolver struct type - lakeformation.
ewbankkit Oct 23, 2024
e9fa4b0
Rename endpoint resolver struct type - lambda.
ewbankkit Oct 23, 2024
3b6d5a7
Rename endpoint resolver struct type - launchwizard.
ewbankkit Oct 23, 2024
f7e8ada
Rename endpoint resolver struct type - lexmodels.
ewbankkit Oct 23, 2024
c5f0445
Rename endpoint resolver struct type - lexv2models.
ewbankkit Oct 23, 2024
44b290f
Rename endpoint resolver struct type - licensemanager.
ewbankkit Oct 23, 2024
bf4c928
Rename endpoint resolver struct type - lightsail.
ewbankkit Oct 23, 2024
ebe1f52
Rename endpoint resolver struct type - location.
ewbankkit Oct 23, 2024
86dcb7d
Rename endpoint resolver struct type - logs.
ewbankkit Oct 23, 2024
023eced
Rename endpoint resolver struct type - lookoutmetrics.
ewbankkit Oct 23, 2024
f0feb7b
Rename endpoint resolver struct type - m2.
ewbankkit Oct 23, 2024
5292e9c
Rename endpoint resolver struct type - macie2.
ewbankkit Oct 23, 2024
24c953a
Rename endpoint resolver struct type - mediaconnect.
ewbankkit Oct 23, 2024
eacb007
Rename endpoint resolver struct type - mediaconvert.
ewbankkit Oct 23, 2024
0a8d901
Rename endpoint resolver struct type - medialive.
ewbankkit Oct 23, 2024
a3d521c
Rename endpoint resolver struct type - mediapackage.
ewbankkit Oct 23, 2024
98acb03
Rename endpoint resolver struct type - mediapackagev2.
ewbankkit Oct 23, 2024
1db06d4
Rename endpoint resolver struct type - mediastore.
ewbankkit Oct 23, 2024
8c4bf67
Rename endpoint resolver struct type - memorydb.
ewbankkit Oct 23, 2024
ea971f7
Rename endpoint resolver struct type - mq.
ewbankkit Oct 23, 2024
143397d
Rename endpoint resolver struct type - mwaa.
ewbankkit Oct 23, 2024
972521f
Rename endpoint resolver struct type - neptune.
ewbankkit Oct 23, 2024
f33948e
Rename endpoint resolver struct type - neptunegraph.
ewbankkit Oct 23, 2024
7a8c520
Rename endpoint resolver struct type - networkfirewall.
ewbankkit Oct 23, 2024
5652975
Rename endpoint resolver struct type - networkmanager.
ewbankkit Oct 23, 2024
90e4085
Rename endpoint resolver struct type - networkmonitor.
ewbankkit Oct 23, 2024
52be8a5
Rename endpoint resolver struct type - oam.
ewbankkit Oct 23, 2024
101216d
Rename endpoint resolver struct type - opensearch.
ewbankkit Oct 23, 2024
762b5f9
Rename endpoint resolver struct type - opensearchserverless.
ewbankkit Oct 23, 2024
b8f563a
Rename endpoint resolver struct type - opsworks.
ewbankkit Oct 23, 2024
32ec895
Rename endpoint resolver struct type - organizations.
ewbankkit Oct 23, 2024
1a47e38
Rename endpoint resolver struct type - osis.
ewbankkit Oct 23, 2024
ad71cf0
Rename endpoint resolver struct type - outposts.
ewbankkit Oct 23, 2024
a9c110e
Rename endpoint resolver struct type - paymentcryptography.
ewbankkit Oct 23, 2024
a691fbc
Rename endpoint resolver struct type - pcaconnectorad.
ewbankkit Oct 23, 2024
68cf5a6
Rename endpoint resolver struct type - pcs.
ewbankkit Oct 23, 2024
8e32d44
Rename endpoint resolver struct type - pinpoint.
ewbankkit Oct 23, 2024
031a7ec
Rename endpoint resolver struct type - pinpointsmsvoicev2.
ewbankkit Oct 23, 2024
2e4d030
Rename endpoint resolver struct type - pipes.
ewbankkit Oct 23, 2024
9c43f06
Rename endpoint resolver struct type - polly.
ewbankkit Oct 23, 2024
3d0bbf0
Rename endpoint resolver struct type - pricing.
ewbankkit Oct 23, 2024
f51e382
Rename endpoint resolver struct type - qbusiness.
ewbankkit Oct 23, 2024
5220b2b
Rename endpoint resolver struct type - qldb.
ewbankkit Oct 23, 2024
ea60d7c
Rename endpoint resolver struct type - quicksight.
ewbankkit Oct 23, 2024
08d8a7d
Rename endpoint resolver struct type - ram.
ewbankkit Oct 23, 2024
b13777b
Rename endpoint resolver struct type - rbin.
ewbankkit Oct 23, 2024
fa346dc
Rename endpoint resolver struct type - rds.
ewbankkit Oct 23, 2024
eb12c98
Rename endpoint resolver struct type - redshift.
ewbankkit Oct 23, 2024
93f8f66
Rename endpoint resolver struct type - redshiftdata.
ewbankkit Oct 23, 2024
c542117
Rename endpoint resolver struct type - redshiftserverless.
ewbankkit Oct 23, 2024
d856773
Rename endpoint resolver struct type - rekognition.
ewbankkit Oct 23, 2024
f759971
Rename endpoint resolver struct type - resiliencehub.
ewbankkit Oct 23, 2024
7ca55bd
Rename endpoint resolver struct type - resourceexplorer2.
ewbankkit Oct 23, 2024
f8a493e
Rename endpoint resolver struct type - resourcegroups.
ewbankkit Oct 23, 2024
f7b1480
Rename endpoint resolver struct type - resourcegroupstaggingapi.
ewbankkit Oct 23, 2024
bbd8213
Rename endpoint resolver struct type - rolesanywhere.
ewbankkit Oct 23, 2024
36722d3
Rename endpoint resolver struct type - route53.
ewbankkit Oct 23, 2024
0625156
Rename endpoint resolver struct type - route53domains.
ewbankkit Oct 23, 2024
24fbad2
Rename endpoint resolver struct type - route53profiles.
ewbankkit Oct 23, 2024
6e5f6b9
Rename endpoint resolver struct type - route53recoverycontrolconfig.
ewbankkit Oct 23, 2024
20b0b6f
Rename endpoint resolver struct type - route53recoveryreadiness.
ewbankkit Oct 23, 2024
6d3dc15
Rename endpoint resolver struct type - route53resolver.
ewbankkit Oct 23, 2024
e95a55a
Rename endpoint resolver struct type - rum.
ewbankkit Oct 23, 2024
b636976
Rename endpoint resolver struct type - s3.
ewbankkit Oct 23, 2024
079d323
Rename endpoint resolver struct type - s3control.
ewbankkit Oct 23, 2024
deb5c0e
Rename endpoint resolver struct type - s3outposts.
ewbankkit Oct 23, 2024
b7fe401
Rename endpoint resolver struct type - sagemaker.
ewbankkit Oct 23, 2024
619a7eb
Rename endpoint resolver struct type - scheduler.
ewbankkit Oct 23, 2024
af97192
Rename endpoint resolver struct type - schemas.
ewbankkit Oct 23, 2024
7bc34b9
Rename endpoint resolver struct type - secretsmanager.
ewbankkit Oct 23, 2024
01be5f4
Rename endpoint resolver struct type - securityhub.
ewbankkit Oct 23, 2024
ec8a4e1
Rename endpoint resolver struct type - securitylake.
ewbankkit Oct 23, 2024
c2a6de9
Rename endpoint resolver struct type - serverlessrepo.
ewbankkit Oct 23, 2024
e583d7f
Rename endpoint resolver struct type - servicecatalog.
ewbankkit Oct 23, 2024
c497735
Rename endpoint resolver struct type - servicecatalogappregistry.
ewbankkit Oct 23, 2024
3771166
Rename endpoint resolver struct type - servicediscovery.
ewbankkit Oct 23, 2024
ba71a53
Rename endpoint resolver struct type - servicequotas.
ewbankkit Oct 23, 2024
6c38a51
Rename endpoint resolver struct type - ses.
ewbankkit Oct 23, 2024
86bf20e
Rename endpoint resolver struct type - sesv2.
ewbankkit Oct 23, 2024
3b5ea31
Rename endpoint resolver struct type - sfn.
ewbankkit Oct 23, 2024
4b8aac0
Rename endpoint resolver struct type - shield.
ewbankkit Oct 23, 2024
e336d9f
Rename endpoint resolver struct type - signer.
ewbankkit Oct 23, 2024
d67529f
Rename endpoint resolver struct type - sns.
ewbankkit Oct 23, 2024
db0bd45
Rename endpoint resolver struct type - sqs.
ewbankkit Oct 23, 2024
f120905
Rename endpoint resolver struct type - ssm.
ewbankkit Oct 23, 2024
27b34e3
Rename endpoint resolver struct type - ssmcontacts.
ewbankkit Oct 23, 2024
6853d5f
Rename endpoint resolver struct type - ssmincidents.
ewbankkit Oct 23, 2024
93b16c2
Rename endpoint resolver struct type - ssmquicksetup.
ewbankkit Oct 23, 2024
007122f
Rename endpoint resolver struct type - ssmsap.
ewbankkit Oct 23, 2024
71410f9
Rename endpoint resolver struct type - sso.
ewbankkit Oct 23, 2024
727abd1
Rename endpoint resolver struct type - ssoadmin.
ewbankkit Oct 23, 2024
7789096
Rename endpoint resolver struct type - storagegateway.
ewbankkit Oct 23, 2024
78ad3ba
Rename endpoint resolver struct type - sts.
ewbankkit Oct 23, 2024
dddda81
Rename endpoint resolver struct type - swf.
ewbankkit Oct 23, 2024
cf92aa4
Rename endpoint resolver struct type - synthetics.
ewbankkit Oct 23, 2024
658dd16
Rename endpoint resolver struct type - timestreaminfluxdb.
ewbankkit Oct 23, 2024
63544e9
Rename endpoint resolver struct type - timestreamwrite.
ewbankkit Oct 23, 2024
94fbe0a
Rename endpoint resolver struct type - transcribe.
ewbankkit Oct 23, 2024
408ec60
Rename endpoint resolver struct type - transfer.
ewbankkit Oct 23, 2024
b2503d6
Rename endpoint resolver struct type - verifiedpermissions.
ewbankkit Oct 23, 2024
7171eab
Rename endpoint resolver struct type - vpclattice.
ewbankkit Oct 23, 2024
e810a86
Rename endpoint resolver struct type - waf.
ewbankkit Oct 23, 2024
9006ab8
Rename endpoint resolver struct type - wafregional.
ewbankkit Oct 23, 2024
bf60f56
Rename endpoint resolver struct type - wafv2.
ewbankkit Oct 23, 2024
28e44a7
Rename endpoint resolver struct type - wellarchitected.
ewbankkit Oct 23, 2024
acc4656
Rename endpoint resolver struct type - worklink.
ewbankkit Oct 23, 2024
2e5d649
Rename endpoint resolver struct type - workspaces.
ewbankkit Oct 23, 2024
74a1273
Rename endpoint resolver struct type - workspacesweb.
ewbankkit Oct 23, 2024
f439503
Rename endpoint resolver struct type - xray.
ewbankkit Oct 23, 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
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .ci/.semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -337,17 +337,17 @@ rules:
patterns:
- pattern-either:
- pattern: |
aws.TimeValue($X) == $Y
aws.ToTime($X) == $Y
- pattern: |
aws.TimeValue($X) != $Y
aws.ToTime($X) != $Y
- pattern: |
($X : time.Time) == $Y
- pattern: |
($X : time.Time) != $Y
- pattern: |
$X == aws.TimeValue($Y)
$X == aws.ToTime($Y)
- pattern: |
$X != aws.TimeValue($Y)
$X != aws.ToTime($Y)
- pattern: |
$X == ($Y : time.Time)
- pattern: |
Expand Down
9 changes: 0 additions & 9 deletions .ci/semgrep/aws/awserr.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .ci/semgrep/aws/go-sdk-v1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
rules:
- id: aws-sdk-go-imports
languages: [go]
message: Do not use AWS SDK for Go v1
paths:
include:
- internal/
exclude:
- "internal/service/simpledb/*.go"
- "internal/conns/awsclient.go"
patterns:
- pattern: |
import ("$X")
- metavariable-regex:
metavariable: "$X"
regex: '^github.com/aws/aws-sdk-go/.+$'
severity: WARNING

- id: aws-sdk-go-base-awsv1shim-imports
languages: [go]
message: Do not use aws-sdk-go-base AWS SDK for Go v1 shims
paths:
include:
- internal/
exclude:
- "internal/service/simpledb/*.go"
- "internal/conns/config.go"
patterns:
- pattern: |
import ("$X")
- metavariable-regex:
metavariable: "$X"
regex: '^github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2/?.*$'
severity: WARNING
25 changes: 9 additions & 16 deletions .ci/semgrep/aws/go-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,15 @@ rules:
import ("$Y")
- metavariable-regex:
metavariable: "$X"
regex: '^github.com/aws/aws-sdk-go(-v2)?/service/[^/]+$'
regex: '^github.com/aws/aws-sdk-go-v2/service/[^/]+$'
- metavariable-regex:
metavariable: "$Y"
regex: '^github.com/aws/aws-sdk-go/service(-v2)?/[^/]+$'
# wafregional uses a number of resources from waf
- pattern-not: |
import ("github.com/aws/aws-sdk-go/service/waf")
import ("github.com/aws/aws-sdk-go/service/wafregional")
regex: '^github.com/aws/aws-sdk-go-v2/service/[^/]+$'
severity: WARNING

- id: prefer-pointer-conversion-assignment
languages: [go]
message: Prefer AWS Go SDK pointer conversion functions for dereferencing during assignment, e.g. aws.StringValue()
message: Prefer AWS Go SDK pointer conversion functions for dereferencing during assignment, e.g. aws.ToString()
paths:
include:
- internal/service
Expand All @@ -43,7 +39,7 @@ rules:

- id: prefer-pointer-conversion-conditional
languages: [go]
message: Prefer AWS Go SDK pointer conversion functions for dereferencing during conditionals, e.g. aws.StringValue()
message: Prefer AWS Go SDK pointer conversion functions for dereferencing during conditionals, e.g. aws.ToString()
paths:
include:
- internal/service
Expand Down Expand Up @@ -82,9 +78,9 @@ rules:
severity: WARNING

- id: pointer-conversion-ResourceData-SetId
fix: d.SetId(aws.StringValue($VALUE))
fix: d.SetId(aws.ToString($VALUE))
languages: [go]
message: Prefer AWS Go SDK pointer conversion aws.StringValue() function for dereferencing during d.SetId()
message: Prefer AWS Go SDK pointer conversion aws.ToString() function for dereferencing during d.SetId()
paths:
include:
- internal/
Expand All @@ -100,17 +96,14 @@ rules:
- internal/
patterns:
- pattern-either:
- pattern: d.Set($ATTRIBUTE, aws.BoolValue($APIOBJECT))
- pattern: d.Set($ATTRIBUTE, aws.ToBool($APIOBJECT))
- pattern: d.Set($ATTRIBUTE, aws.Float64Value($APIOBJECT))
- pattern: d.Set($ATTRIBUTE, aws.ToFloat32($APIOBJECT))
- pattern: d.Set($ATTRIBUTE, aws.ToFloat64($APIOBJECT))
- pattern: d.Set($ATTRIBUTE, aws.IntValue($APIOBJECT))
- pattern: d.Set($ATTRIBUTE, aws.ToInt($APIOBJECT))
- pattern: d.Set($ATTRIBUTE, aws.Int64Value($APIOBJECT))
- pattern: d.Set($ATTRIBUTE, aws.ToInt32($APIOBJECT))
- pattern: d.Set($ATTRIBUTE, aws.ToInt64($APIOBJECT))
- pattern: d.Set($ATTRIBUTE, int(aws.Int64Value($APIOBJECT)))
- pattern: d.Set($ATTRIBUTE, int(aws.ToInt32($APIOBJECT)))
- pattern: d.Set($ATTRIBUTE, int(aws.ToInt64($APIOBJECT)))
- pattern: d.Set($ATTRIBUTE, aws.StringValue($APIOBJECT))
- pattern: d.Set($ATTRIBUTE, aws.ToString($APIOBJECT))
severity: WARNING

Expand Down
38 changes: 0 additions & 38 deletions .ci/semgrep/migrate/context.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,4 @@
rules:
- id: aws-api-context
languages: [go]
message: All AWS API calls should use the WithContext version
paths:
include:
- internal/service/*
- internal/acctest/*
exclude:
- "internal/service/*/service_package.go"
- "internal/service/*/service_package_gen.go"
patterns:
- pattern: |
$CONN.$API(...)
- metavariable-regex:
metavariable: $CONN
regex: ^(?!conns)\w*([cC]onn)
- metavariable-regex:
metavariable: $API
# This weird construction is to get around greedy matching
regex: ^(?!.*(WithContext|_Values|Paginator)).*$
- pattern-not: |
$CONN.$APIV2(ctx, ...)
- pattern-not: tfcodestarconnections.$API()
- pattern-not: tfconnect.$API(...)
- pattern-not: tfdirectconnect.$API()
- pattern-not: tfkafkaconnect.$API()
- pattern-not: conn.Handlers.$X(...)
- pattern-not: conn.Handlers.$X.$Y(...)
- pattern-not: conn.Options()
- pattern-not: codeconnections_sdkv2.$API()
- pattern-not: codestarconnections_sdkv2.$API()
- pattern-not: connect_sdkv2.$API()
- pattern-not: connectcases_sdkv2.$API()
- pattern-not: directconnect_sdkv2.$API()
- pattern-not: kafkaconnect_sdkv2.$API()
- pattern-not: mediaconnect_sdkv2.$API()
- pattern-not: pcaconnectorad_sdkv2.$API()
severity: ERROR
- id: context-todo
languages: [go]
message: Should not use `context.TODO()`
Expand Down
21 changes: 10 additions & 11 deletions internal/acctest/acctest.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ import (
ssoadmintypes "github.com/aws/aws-sdk-go-v2/service/ssoadmin/types"
"github.com/aws/aws-sdk-go-v2/service/wafv2"
wafv2types "github.com/aws/aws-sdk-go-v2/service/wafv2/types"
tfawserr_sdkv1 "github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2/tfawserr"
"github.com/hashicorp/aws-sdk-go-base/v2/endpoints"
tfawserr_sdkv2 "github.com/hashicorp/aws-sdk-go-base/v2/tfawserr"
"github.com/hashicorp/aws-sdk-go-base/v2/tfawserr"
"github.com/hashicorp/terraform-plugin-go/tfprotov5"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/id"
Expand Down Expand Up @@ -903,7 +902,7 @@ func PartitionDNSSuffix() string {
}

func PartitionReverseDNSPrefix() string {
return names.ReverseDNS(PartitionDNSSuffix())
return conns.ReverseDNS(PartitionDNSSuffix())
}

func alternateRegionPartition() string {
Expand Down Expand Up @@ -1786,31 +1785,31 @@ func PreCheckSkipError(err error) bool {
// GovCloud has endpoints that respond with (no message provided after the error code):
// AccessDeniedException:
// Ignore these API endpoints that exist but are not officially enabled
if tfawserr_sdkv1.ErrCodeEquals(err, "AccessDeniedException") || tfawserr_sdkv2.ErrCodeEquals(err, "AccessDeniedException") {
if tfawserr.ErrCodeEquals(err, "AccessDeniedException") {
return true
}
// Ignore missing API endpoints
if tfawserr_sdkv1.ErrMessageContains(err, "RequestError", "send request failed") || tfawserr_sdkv2.ErrMessageContains(err, "RequestError", "send request failed") {
if tfawserr.ErrMessageContains(err, "RequestError", "send request failed") {
return true
}
// Ignore unsupported API calls
if tfawserr_sdkv1.ErrCodeEquals(err, "UnknownOperationException") || tfawserr_sdkv2.ErrCodeEquals(err, "UnknownOperationException") {
if tfawserr.ErrCodeEquals(err, "UnknownOperationException") {
return true
}
if tfawserr_sdkv1.ErrCodeEquals(err, "UnsupportedOperation") || tfawserr_sdkv2.ErrCodeEquals(err, "UnsupportedOperation") {
if tfawserr.ErrCodeEquals(err, "UnsupportedOperation") {
return true
}
if tfawserr_sdkv1.ErrMessageContains(err, "InvalidInputException", "Unknown operation") || tfawserr_sdkv2.ErrMessageContains(err, "InvalidInputException", "Unknown operation") {
if tfawserr.ErrMessageContains(err, "InvalidInputException", "Unknown operation") {
return true
}
if tfawserr_sdkv1.ErrMessageContains(err, "InvalidAction", "is not valid") || tfawserr_sdkv2.ErrMessageContains(err, "InvalidAction", "is not valid") {
if tfawserr.ErrMessageContains(err, "InvalidAction", "is not valid") {
return true
}
if tfawserr_sdkv1.ErrMessageContains(err, "InvalidAction", "Unavailable Operation") || tfawserr_sdkv2.ErrMessageContains(err, "InvalidAction", "Unavailable Operation") {
if tfawserr.ErrMessageContains(err, "InvalidAction", "Unavailable Operation") {
return true
}
// ignore when not authorized to call API from account
if tfawserr_sdkv1.ErrCodeEquals(err, "ForbiddenException") || tfawserr_sdkv2.ErrCodeEquals(err, "ForbiddenException") {
if tfawserr.ErrCodeEquals(err, "ForbiddenException") {
return true
}
// Ignore missing API endpoints
Expand Down
Loading
Loading