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

Migrate Redshift resources to AWS SDK v2 #38892

Merged
merged 267 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
267 commits
Select commit Hold shift + click to select a range
289e2db
feat: migrated r/resource_policy to sdkv2
DanielRieske Aug 15, 2024
0a4abf6
feat: migrated r/scheduled_action to sdkv2
DanielRieske Aug 15, 2024
3c11857
feat: migrated r/snapshot_copy_grant to sdkv2
DanielRieske Aug 15, 2024
b04bbe5
feat: migrated r/snapshot_schedule_association to sdkv2
DanielRieske Aug 15, 2024
231da72
feat: migrated r/snapshot_schedule to sdkv2
DanielRieske Aug 15, 2024
9d066b7
feat: migrated r/subnet_group to sdkv2
DanielRieske Aug 15, 2024
9231331
feat: migrated d/subnet_group to sdkv2
DanielRieske Aug 15, 2024
e4d47df
feat: migrated r/usage_limit to sdkv2
DanielRieske Aug 15, 2024
f8d311d
feat: migrate sweepers to sdkv2
DanielRieske Aug 15, 2024
f4504e3
chore: move functions and remove `flex` file
DanielRieske Aug 15, 2024
7eeaf87
chore: cleanup existing v2 resource
DanielRieske Aug 15, 2024
9b18267
feat: migrate `wait`, `status` and `find` functions
DanielRieske Aug 15, 2024
595e843
Merge branch 'main' into f/migrate-redshift-sdkv2
DanielRieske Aug 15, 2024
f020fa6
chore: run `make clean-tidy`
DanielRieske Aug 15, 2024
82e0ff1
chore: run `make gen`
DanielRieske Aug 15, 2024
f1ec407
fix: export loop ref
DanielRieske Aug 15, 2024
eeb2f8d
fix: `TestAccRedshiftClusterIAMRoles_disappears`
DanielRieske Aug 16, 2024
a5fa6c8
fix: returns in partner and cluster resource
DanielRieske Aug 16, 2024
f66b341
Fix 'TestAccRedshiftEndpointAuthorization_disappears_cluster'.
ewbankkit Aug 16, 2024
c4d5241
Fix 'TestAccRedshiftPartner_disappears_cluster'.
ewbankkit Aug 16, 2024
6e9aa09
Merge commit 'c4d524112d237801c075eec1d4f97aa6fdadf135' into HEAD
ewbankkit Aug 16, 2024
dac8cb7
Merge branch 'main' into HEAD
ewbankkit Aug 16, 2024
6b06236
Fix 'TestAccRedshiftCluster_snapshotCopy'.
ewbankkit Aug 16, 2024
7bcb766
go get github.com/aws/aws-sdk-go-v2.
ewbankkit Aug 16, 2024
970f33e
go get github.com/aws/aws-sdk-go-v2/config.
ewbankkit Aug 16, 2024
96af8b7
go get github.com/aws/aws-sdk-go-v2/feature/s3/manager.
ewbankkit Aug 16, 2024
450d4b2
go get github.com/aws/aws-sdk-go-v2/service/accessanalyzer.
ewbankkit Aug 16, 2024
632c287
go get github.com/aws/aws-sdk-go-v2/service/account.
ewbankkit Aug 16, 2024
0c17f47
go get github.com/aws/aws-sdk-go-v2/service/acm.
ewbankkit Aug 16, 2024
36c88f4
go get github.com/aws/aws-sdk-go-v2/service/acmpca.
ewbankkit Aug 16, 2024
be6eafa
go get github.com/aws/aws-sdk-go-v2/service/amp.
ewbankkit Aug 16, 2024
4ca75cd
go get github.com/aws/aws-sdk-go-v2/service/amplify.
ewbankkit Aug 16, 2024
98a9317
go get github.com/aws/aws-sdk-go-v2/service/apigateway.
ewbankkit Aug 16, 2024
603922e
go get github.com/aws/aws-sdk-go-v2/service/apigatewayv2.
ewbankkit Aug 16, 2024
ea41dcc
go get github.com/aws/aws-sdk-go-v2/service/appconfig.
ewbankkit Aug 16, 2024
cdd6e57
go get github.com/aws/aws-sdk-go-v2/service/appfabric.
ewbankkit Aug 16, 2024
7b30b4e
go get github.com/aws/aws-sdk-go-v2/service/appflow.
ewbankkit Aug 16, 2024
89990c7
go get github.com/aws/aws-sdk-go-v2/service/appintegrations.
ewbankkit Aug 16, 2024
c23ab9b
go get github.com/aws/aws-sdk-go-v2/service/applicationautoscaling.
ewbankkit Aug 16, 2024
ae82472
go get github.com/aws/aws-sdk-go-v2/service/applicationinsights.
ewbankkit Aug 16, 2024
a2d5d0f
go get github.com/aws/aws-sdk-go-v2/service/applicationsignals.
ewbankkit Aug 16, 2024
6a95626
go get github.com/aws/aws-sdk-go-v2/service/appmesh.
ewbankkit Aug 16, 2024
177d5f5
go get github.com/aws/aws-sdk-go-v2/service/apprunner.
ewbankkit Aug 16, 2024
d3b6494
go get github.com/aws/aws-sdk-go-v2/service/appstream.
ewbankkit Aug 16, 2024
3028bab
go get github.com/aws/aws-sdk-go-v2/service/appsync.
ewbankkit Aug 16, 2024
f264f13
go get github.com/aws/aws-sdk-go-v2/service/athena.
ewbankkit Aug 16, 2024
1d1d7f8
go get github.com/aws/aws-sdk-go-v2/service/auditmanager.
ewbankkit Aug 16, 2024
b74f155
go get github.com/aws/aws-sdk-go-v2/service/autoscaling.
ewbankkit Aug 16, 2024
a89e4a6
go get github.com/aws/aws-sdk-go-v2/service/autoscalingplans.
ewbankkit Aug 16, 2024
7042be5
go get github.com/aws/aws-sdk-go-v2/service/backup.
ewbankkit Aug 16, 2024
b245903
go get github.com/aws/aws-sdk-go-v2/service/batch.
ewbankkit Aug 16, 2024
69e3610
go get github.com/aws/aws-sdk-go-v2/service/bcmdataexports.
ewbankkit Aug 16, 2024
7b98c55
go get github.com/aws/aws-sdk-go-v2/service/bedrock.
ewbankkit Aug 16, 2024
b29babe
go get github.com/aws/aws-sdk-go-v2/service/bedrockagent.
ewbankkit Aug 16, 2024
685a6fb
go get github.com/aws/aws-sdk-go-v2/service/budgets.
ewbankkit Aug 16, 2024
2678e98
go get github.com/aws/aws-sdk-go-v2/service/chatbot.
ewbankkit Aug 16, 2024
43831ea
go get github.com/aws/aws-sdk-go-v2/service/chime.
ewbankkit Aug 16, 2024
0115e6f
go get github.com/aws/aws-sdk-go-v2/service/chimesdkmediapipelines.
ewbankkit Aug 16, 2024
8292aa7
go get github.com/aws/aws-sdk-go-v2/service/chimesdkvoice.
ewbankkit Aug 16, 2024
4deab5e
go get github.com/aws/aws-sdk-go-v2/service/cleanrooms.
ewbankkit Aug 16, 2024
f979f4b
go get github.com/aws/aws-sdk-go-v2/service/cloud9.
ewbankkit Aug 16, 2024
933009d
go get github.com/aws/aws-sdk-go-v2/service/cloudcontrol.
ewbankkit Aug 16, 2024
5fbbc4c
go get github.com/aws/aws-sdk-go-v2/service/cloudformation.
ewbankkit Aug 16, 2024
72fd01a
go get github.com/aws/aws-sdk-go-v2/service/cloudfront.
ewbankkit Aug 16, 2024
9429b17
go get github.com/aws/aws-sdk-go-v2/service/cloudfrontkeyvaluestore.
ewbankkit Aug 16, 2024
b9e738f
go get github.com/aws/aws-sdk-go-v2/service/cloudhsmv2.
ewbankkit Aug 16, 2024
cbeaaab
go get github.com/aws/aws-sdk-go-v2/service/cloudsearch.
ewbankkit Aug 16, 2024
2c8cd46
go get github.com/aws/aws-sdk-go-v2/service/cloudtrail.
ewbankkit Aug 16, 2024
43a37f7
go get github.com/aws/aws-sdk-go-v2/service/cloudwatch.
ewbankkit Aug 16, 2024
448f40f
go get github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs.
ewbankkit Aug 16, 2024
f8140be
go get github.com/aws/aws-sdk-go-v2/service/codeartifact.
ewbankkit Aug 16, 2024
87ea30f
go get github.com/aws/aws-sdk-go-v2/service/codebuild.
ewbankkit Aug 16, 2024
b915303
go get github.com/aws/aws-sdk-go-v2/service/codecatalyst.
ewbankkit Aug 16, 2024
ff87587
go get github.com/aws/aws-sdk-go-v2/service/codecommit.
ewbankkit Aug 16, 2024
cc092d6
go get github.com/aws/aws-sdk-go-v2/service/codedeploy.
ewbankkit Aug 16, 2024
ae1b3a5
go get github.com/aws/aws-sdk-go-v2/service/codeguruprofiler.
ewbankkit Aug 16, 2024
2ea5c24
go get github.com/aws/aws-sdk-go-v2/service/codegurureviewer.
ewbankkit Aug 16, 2024
20eea9a
go get github.com/aws/aws-sdk-go-v2/service/codepipeline.
ewbankkit Aug 16, 2024
f6bfc1b
go get github.com/aws/aws-sdk-go-v2/service/codestarconnections.
ewbankkit Aug 16, 2024
8890993
go get github.com/aws/aws-sdk-go-v2/service/codestarnotifications.
ewbankkit Aug 16, 2024
544b478
go get github.com/aws/aws-sdk-go-v2/service/cognitoidentity.
ewbankkit Aug 16, 2024
1514300
go get github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider.
ewbankkit Aug 16, 2024
bf7bfb9
go get github.com/aws/aws-sdk-go-v2/service/comprehend.
ewbankkit Aug 16, 2024
0880a7c
go get github.com/aws/aws-sdk-go-v2/service/computeoptimizer.
ewbankkit Aug 16, 2024
3e2c8a0
go get github.com/aws/aws-sdk-go-v2/service/configservice.
ewbankkit Aug 16, 2024
381f3ad
go get github.com/aws/aws-sdk-go-v2/service/connectcases.
ewbankkit Aug 16, 2024
78d25a4
go get github.com/aws/aws-sdk-go-v2/service/controltower.
ewbankkit Aug 16, 2024
fa0d2fd
go get github.com/aws/aws-sdk-go-v2/service/costandusagereportservice.
ewbankkit Aug 16, 2024
fceb0da
go get github.com/aws/aws-sdk-go-v2/service/costexplorer.
ewbankkit Aug 16, 2024
6761252
go get github.com/aws/aws-sdk-go-v2/service/costoptimizationhub.
ewbankkit Aug 16, 2024
9a3d7dc
go get github.com/aws/aws-sdk-go-v2/service/customerprofiles.
ewbankkit Aug 16, 2024
6fec3fe
go get github.com/aws/aws-sdk-go-v2/service/databasemigrationservice.
ewbankkit Aug 16, 2024
2472df4
go get github.com/aws/aws-sdk-go-v2/service/databrew.
ewbankkit Aug 16, 2024
4210972
go get github.com/aws/aws-sdk-go-v2/service/dataexchange.
ewbankkit Aug 16, 2024
76af393
go get github.com/aws/aws-sdk-go-v2/service/datapipeline.
ewbankkit Aug 16, 2024
b43ce1a
go get github.com/aws/aws-sdk-go-v2/service/datasync.
ewbankkit Aug 16, 2024
fe19d19
go get github.com/aws/aws-sdk-go-v2/service/datazone.
ewbankkit Aug 16, 2024
cf51cfb
go get github.com/aws/aws-sdk-go-v2/service/dax.
ewbankkit Aug 16, 2024
533a7f2
go get github.com/aws/aws-sdk-go-v2/service/detective.
ewbankkit Aug 16, 2024
157559b
go get github.com/aws/aws-sdk-go-v2/service/devicefarm.
ewbankkit Aug 16, 2024
5253f32
go get github.com/aws/aws-sdk-go-v2/service/devopsguru.
ewbankkit Aug 16, 2024
2763ac0
go get github.com/aws/aws-sdk-go-v2/service/directconnect.
ewbankkit Aug 16, 2024
cca2e46
go get github.com/aws/aws-sdk-go-v2/service/directoryservice.
ewbankkit Aug 16, 2024
96b15d4
go get github.com/aws/aws-sdk-go-v2/service/dlm.
ewbankkit Aug 16, 2024
e29944c
go get github.com/aws/aws-sdk-go-v2/service/docdb.
ewbankkit Aug 16, 2024
107b673
go get github.com/aws/aws-sdk-go-v2/service/docdbelastic.
ewbankkit Aug 16, 2024
112a5f8
go get github.com/aws/aws-sdk-go-v2/service/drs.
ewbankkit Aug 16, 2024
ced26db
go get github.com/aws/aws-sdk-go-v2/service/dynamodb.
ewbankkit Aug 16, 2024
3bafd93
go get github.com/aws/aws-sdk-go-v2/service/ec2.
ewbankkit Aug 16, 2024
9372eb0
go get github.com/aws/aws-sdk-go-v2/service/ecr.
ewbankkit Aug 16, 2024
63d477b
go get github.com/aws/aws-sdk-go-v2/service/ecrpublic.
ewbankkit Aug 16, 2024
936708f
go get github.com/aws/aws-sdk-go-v2/service/ecs.
ewbankkit Aug 16, 2024
fa9dbdc
go get github.com/aws/aws-sdk-go-v2/service/efs.
ewbankkit Aug 16, 2024
d23ede8
go get github.com/aws/aws-sdk-go-v2/service/eks.
ewbankkit Aug 16, 2024
b320de6
go get github.com/aws/aws-sdk-go-v2/service/elasticache.
ewbankkit Aug 16, 2024
e5b4c4f
go get github.com/aws/aws-sdk-go-v2/service/elasticbeanstalk.
ewbankkit Aug 16, 2024
72e321f
go get github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing.
ewbankkit Aug 16, 2024
b15f12c
go get github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2.
ewbankkit Aug 16, 2024
d56ac05
go get github.com/aws/aws-sdk-go-v2/service/elastictranscoder.
ewbankkit Aug 16, 2024
55b3284
go get github.com/aws/aws-sdk-go-v2/service/emr.
ewbankkit Aug 16, 2024
2efcfb9
go get github.com/aws/aws-sdk-go-v2/service/emrcontainers.
ewbankkit Aug 16, 2024
7d0bcb9
go get github.com/aws/aws-sdk-go-v2/service/emrserverless.
ewbankkit Aug 16, 2024
4bb48b3
go get github.com/aws/aws-sdk-go-v2/service/eventbridge.
ewbankkit Aug 16, 2024
52a57b6
go get github.com/aws/aws-sdk-go-v2/service/evidently.
ewbankkit Aug 16, 2024
f80a80a
go get github.com/aws/aws-sdk-go-v2/service/finspace.
ewbankkit Aug 16, 2024
f1a3fc4
go get github.com/aws/aws-sdk-go-v2/service/firehose.
ewbankkit Aug 16, 2024
986f2dc
go get github.com/aws/aws-sdk-go-v2/service/fis.
ewbankkit Aug 16, 2024
69409dd
go get github.com/aws/aws-sdk-go-v2/service/fms.
ewbankkit Aug 16, 2024
bda7c48
go get github.com/aws/aws-sdk-go-v2/service/fsx.
ewbankkit Aug 16, 2024
8a86007
go get github.com/aws/aws-sdk-go-v2/service/gamelift.
ewbankkit Aug 16, 2024
6ef1152
go get github.com/aws/aws-sdk-go-v2/service/glacier.
ewbankkit Aug 16, 2024
74e5b7c
go get github.com/aws/aws-sdk-go-v2/service/globalaccelerator.
ewbankkit Aug 16, 2024
317dd11
go get github.com/aws/aws-sdk-go-v2/service/glue.
ewbankkit Aug 16, 2024
50fc985
go get github.com/aws/aws-sdk-go-v2/service/grafana.
ewbankkit Aug 16, 2024
7243d3b
go get github.com/aws/aws-sdk-go-v2/service/greengrass.
ewbankkit Aug 16, 2024
35ac10c
go get github.com/aws/aws-sdk-go-v2/service/groundstation.
ewbankkit Aug 16, 2024
642aed7
go get github.com/aws/aws-sdk-go-v2/service/guardduty.
ewbankkit Aug 16, 2024
5de0b2c
go get github.com/aws/aws-sdk-go-v2/service/healthlake.
ewbankkit Aug 16, 2024
722112a
go get github.com/aws/aws-sdk-go-v2/service/iam.
ewbankkit Aug 16, 2024
cf49844
go get github.com/aws/aws-sdk-go-v2/service/identitystore.
ewbankkit Aug 16, 2024
775f102
go get github.com/aws/aws-sdk-go-v2/service/inspector.
ewbankkit Aug 16, 2024
8d32998
go get github.com/aws/aws-sdk-go-v2/service/inspector2.
ewbankkit Aug 16, 2024
34d81ee
go get github.com/aws/aws-sdk-go-v2/service/internetmonitor.
ewbankkit Aug 16, 2024
54d66ca
go get github.com/aws/aws-sdk-go-v2/service/iot.
ewbankkit Aug 16, 2024
0117710
go get github.com/aws/aws-sdk-go-v2/service/iotanalytics.
ewbankkit Aug 16, 2024
0aaebc1
go get github.com/aws/aws-sdk-go-v2/service/iotevents.
ewbankkit Aug 16, 2024
d2b9dbb
go get github.com/aws/aws-sdk-go-v2/service/ivs.
ewbankkit Aug 16, 2024
aa3b694
go get github.com/aws/aws-sdk-go-v2/service/ivschat.
ewbankkit Aug 16, 2024
c205b7f
go get github.com/aws/aws-sdk-go-v2/service/kafka.
ewbankkit Aug 16, 2024
4c05b04
go get github.com/aws/aws-sdk-go-v2/service/kafkaconnect.
ewbankkit Aug 16, 2024
f095466
go get github.com/aws/aws-sdk-go-v2/service/kendra.
ewbankkit Aug 16, 2024
531c000
go get github.com/aws/aws-sdk-go-v2/service/keyspaces.
ewbankkit Aug 16, 2024
64b7c10
go get github.com/aws/aws-sdk-go-v2/service/kinesis.
ewbankkit Aug 16, 2024
b5022b0
go get github.com/aws/aws-sdk-go-v2/service/kinesisanalytics.
ewbankkit Aug 16, 2024
62e11b5
go get github.com/aws/aws-sdk-go-v2/service/kinesisanalyticsv2.
ewbankkit Aug 16, 2024
75f21b0
go get github.com/aws/aws-sdk-go-v2/service/kinesisvideo.
ewbankkit Aug 16, 2024
4b0d948
go get github.com/aws/aws-sdk-go-v2/service/kms.
ewbankkit Aug 16, 2024
36e5564
go get github.com/aws/aws-sdk-go-v2/service/lakeformation.
ewbankkit Aug 16, 2024
649748d
go get github.com/aws/aws-sdk-go-v2/service/lambda.
ewbankkit Aug 16, 2024
69e310f
go get github.com/aws/aws-sdk-go-v2/service/launchwizard.
ewbankkit Aug 16, 2024
f403b91
go get github.com/aws/aws-sdk-go-v2/service/lexmodelsv2.
ewbankkit Aug 16, 2024
5b979b1
go get github.com/aws/aws-sdk-go-v2/service/licensemanager.
ewbankkit Aug 16, 2024
46565d1
go get github.com/aws/aws-sdk-go-v2/service/lightsail.
ewbankkit Aug 16, 2024
791a421
go get github.com/aws/aws-sdk-go-v2/service/location.
ewbankkit Aug 16, 2024
c7e5f72
go get github.com/aws/aws-sdk-go-v2/service/lookoutmetrics.
ewbankkit Aug 16, 2024
7ba1c12
go get github.com/aws/aws-sdk-go-v2/service/m2.
ewbankkit Aug 16, 2024
50c0df2
go get github.com/aws/aws-sdk-go-v2/service/mediaconnect.
ewbankkit Aug 16, 2024
437c5a1
go get github.com/aws/aws-sdk-go-v2/service/mediaconvert.
ewbankkit Aug 16, 2024
1bb7881
go get github.com/aws/aws-sdk-go-v2/service/medialive.
ewbankkit Aug 16, 2024
83f61b9
go get github.com/aws/aws-sdk-go-v2/service/mediapackage.
ewbankkit Aug 16, 2024
1e7d088
go get github.com/aws/aws-sdk-go-v2/service/mediapackagev2.
ewbankkit Aug 16, 2024
d161731
go get github.com/aws/aws-sdk-go-v2/service/mediastore.
ewbankkit Aug 16, 2024
df3d74f
go get github.com/aws/aws-sdk-go-v2/service/memorydb.
ewbankkit Aug 16, 2024
87e36fb
go get github.com/aws/aws-sdk-go-v2/service/mq.
ewbankkit Aug 16, 2024
8a03eb1
go get github.com/aws/aws-sdk-go-v2/service/mwaa.
ewbankkit Aug 16, 2024
14319e6
go get github.com/aws/aws-sdk-go-v2/service/neptunegraph.
ewbankkit Aug 16, 2024
c81fd6e
go get github.com/aws/aws-sdk-go-v2/service/networkfirewall.
ewbankkit Aug 16, 2024
8b022b6
go get github.com/aws/aws-sdk-go-v2/service/networkmonitor.
ewbankkit Aug 16, 2024
79a8742
go get github.com/aws/aws-sdk-go-v2/service/oam.
ewbankkit Aug 16, 2024
cb55fc3
go get github.com/aws/aws-sdk-go-v2/service/opensearchserverless.
ewbankkit Aug 16, 2024
c352e1b
go get github.com/aws/aws-sdk-go-v2/service/organizations.
ewbankkit Aug 16, 2024
ddcc5c9
go get github.com/aws/aws-sdk-go-v2/service/osis.
ewbankkit Aug 16, 2024
4559846
go get github.com/aws/aws-sdk-go-v2/service/paymentcryptography.
ewbankkit Aug 16, 2024
a721a23
go get github.com/aws/aws-sdk-go-v2/service/pcaconnectorad.
ewbankkit Aug 16, 2024
f797dbc
go get github.com/aws/aws-sdk-go-v2/service/pinpoint.
ewbankkit Aug 16, 2024
0b6178a
go get github.com/aws/aws-sdk-go-v2/service/pipes.
ewbankkit Aug 16, 2024
dcb1ae8
go get github.com/aws/aws-sdk-go-v2/service/polly.
ewbankkit Aug 16, 2024
5550b9d
go get github.com/aws/aws-sdk-go-v2/service/pricing.
ewbankkit Aug 16, 2024
62ac661
go get github.com/aws/aws-sdk-go-v2/service/qbusiness.
ewbankkit Aug 16, 2024
f54518d
go get github.com/aws/aws-sdk-go-v2/service/qldb.
ewbankkit Aug 16, 2024
8ec9fc9
go get github.com/aws/aws-sdk-go-v2/service/ram.
ewbankkit Aug 16, 2024
3e96062
go get github.com/aws/aws-sdk-go-v2/service/rbin.
ewbankkit Aug 16, 2024
1e1bdbe
go get github.com/aws/aws-sdk-go-v2/service/rds.
ewbankkit Aug 16, 2024
6f972c5
go get github.com/aws/aws-sdk-go-v2/service/redshift.
ewbankkit Aug 16, 2024
848fa82
go get github.com/aws/aws-sdk-go-v2/service/redshiftdata.
ewbankkit Aug 16, 2024
b1363eb
go get github.com/aws/aws-sdk-go-v2/service/redshiftserverless.
ewbankkit Aug 16, 2024
e643889
go get github.com/aws/aws-sdk-go-v2/service/rekognition.
ewbankkit Aug 16, 2024
4fcf2bf
go get github.com/aws/aws-sdk-go-v2/service/resiliencehub.
ewbankkit Aug 16, 2024
745f187
go get github.com/aws/aws-sdk-go-v2/service/resourceexplorer2.
ewbankkit Aug 16, 2024
d3b3c55
go get github.com/aws/aws-sdk-go-v2/service/resourcegroups.
ewbankkit Aug 16, 2024
3302a6d
go get github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi.
ewbankkit Aug 16, 2024
d55d3ff
go get github.com/aws/aws-sdk-go-v2/service/rolesanywhere.
ewbankkit Aug 16, 2024
613cdcb
go get github.com/aws/aws-sdk-go-v2/service/route53.
ewbankkit Aug 16, 2024
f5809d0
go get github.com/aws/aws-sdk-go-v2/service/route53domains.
ewbankkit Aug 16, 2024
c7c2b9d
go get github.com/aws/aws-sdk-go-v2/service/route53profiles.
ewbankkit Aug 16, 2024
ca6ad80
go get github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolcon…
ewbankkit Aug 16, 2024
e8bb3ed
go get github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness.
ewbankkit Aug 16, 2024
9a42821
go get github.com/aws/aws-sdk-go-v2/service/route53resolver.
ewbankkit Aug 16, 2024
667621f
go get github.com/aws/aws-sdk-go-v2/service/rum.
ewbankkit Aug 16, 2024
bb7d722
go get github.com/aws/aws-sdk-go-v2/service/s3control.
ewbankkit Aug 16, 2024
9cf91da
go get github.com/aws/aws-sdk-go-v2/service/s3outposts.
ewbankkit Aug 16, 2024
5e09c07
go get github.com/aws/aws-sdk-go-v2/service/sagemaker.
ewbankkit Aug 16, 2024
a9a8c7d
go get github.com/aws/aws-sdk-go-v2/service/scheduler.
ewbankkit Aug 16, 2024
09e9596
go get github.com/aws/aws-sdk-go-v2/service/schemas.
ewbankkit Aug 16, 2024
f856966
go get github.com/aws/aws-sdk-go-v2/service/secretsmanager.
ewbankkit Aug 16, 2024
586f97d
go get github.com/aws/aws-sdk-go-v2/service/securityhub.
ewbankkit Aug 16, 2024
34e73b6
go get github.com/aws/aws-sdk-go-v2/service/securitylake.
ewbankkit Aug 16, 2024
2b8fd0d
go get github.com/aws/aws-sdk-go-v2/service/serverlessapplicationrepo…
ewbankkit Aug 16, 2024
1001a39
go get github.com/aws/aws-sdk-go-v2/service/servicecatalog.
ewbankkit Aug 16, 2024
755018a
go get github.com/aws/aws-sdk-go-v2/service/servicecatalogappregistry.
ewbankkit Aug 16, 2024
05cfd56
go get github.com/aws/aws-sdk-go-v2/service/servicediscovery.
ewbankkit Aug 16, 2024
f307883
go get github.com/aws/aws-sdk-go-v2/service/servicequotas.
ewbankkit Aug 16, 2024
1f7c156
go get github.com/aws/aws-sdk-go-v2/service/ses.
ewbankkit Aug 16, 2024
58bed80
go get github.com/aws/aws-sdk-go-v2/service/sesv2.
ewbankkit Aug 16, 2024
3671f55
go get github.com/aws/aws-sdk-go-v2/service/sfn.
ewbankkit Aug 16, 2024
26cd9ea
go get github.com/aws/aws-sdk-go-v2/service/shield.
ewbankkit Aug 16, 2024
8595c5c
go get github.com/aws/aws-sdk-go-v2/service/signer.
ewbankkit Aug 16, 2024
3e1b320
go get github.com/aws/aws-sdk-go-v2/service/sns.
ewbankkit Aug 16, 2024
622162b
go get github.com/aws/aws-sdk-go-v2/service/sqs.
ewbankkit Aug 16, 2024
ba1194b
go get github.com/aws/aws-sdk-go-v2/service/ssm.
ewbankkit Aug 16, 2024
3bed6cf
go get github.com/aws/aws-sdk-go-v2/service/ssmcontacts.
ewbankkit Aug 16, 2024
4cbccb5
go get github.com/aws/aws-sdk-go-v2/service/ssmincidents.
ewbankkit Aug 16, 2024
ab161c0
go get github.com/aws/aws-sdk-go-v2/service/ssmsap.
ewbankkit Aug 16, 2024
ce0dc24
go get github.com/aws/aws-sdk-go-v2/service/ssoadmin.
ewbankkit Aug 16, 2024
e3060a0
go get github.com/aws/aws-sdk-go-v2/service/storagegateway.
ewbankkit Aug 16, 2024
a83d4d7
go get github.com/aws/aws-sdk-go-v2/service/swf.
ewbankkit Aug 16, 2024
76ec800
go get github.com/aws/aws-sdk-go-v2/service/synthetics.
ewbankkit Aug 16, 2024
7d47f6f
go get github.com/aws/aws-sdk-go-v2/service/timestreaminfluxdb.
ewbankkit Aug 16, 2024
a293a27
go get github.com/aws/aws-sdk-go-v2/service/timestreamwrite.
ewbankkit Aug 16, 2024
5b818a9
go get github.com/aws/aws-sdk-go-v2/service/transcribe.
ewbankkit Aug 16, 2024
0debfab
go get github.com/aws/aws-sdk-go-v2/service/transfer.
ewbankkit Aug 16, 2024
b77ff79
go get github.com/aws/aws-sdk-go-v2/service/verifiedpermissions.
ewbankkit Aug 16, 2024
afdaa15
go get github.com/aws/aws-sdk-go-v2/service/vpclattice.
ewbankkit Aug 16, 2024
9048a2c
go get github.com/aws/aws-sdk-go-v2/service/waf.
ewbankkit Aug 16, 2024
e4a9ccf
go get github.com/aws/aws-sdk-go-v2/service/wafregional.
ewbankkit Aug 16, 2024
aa0b419
go get github.com/aws/aws-sdk-go-v2/service/wafv2.
ewbankkit Aug 16, 2024
c40c171
go get github.com/aws/aws-sdk-go-v2/service/wellarchitected.
ewbankkit Aug 16, 2024
4c90d7c
go get github.com/aws/aws-sdk-go-v2/service/workspaces.
ewbankkit Aug 16, 2024
0c9c8b2
go get github.com/aws/aws-sdk-go-v2/service/workspacesweb.
ewbankkit Aug 16, 2024
0f1bef4
go get github.com/aws/aws-sdk-go-v2/service/xray.
ewbankkit Aug 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
486 changes: 243 additions & 243 deletions go.mod

Large diffs are not rendered by default.

972 changes: 486 additions & 486 deletions go.sum

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions internal/conns/awsclient_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 13 additions & 12 deletions internal/service/redshift/authentication_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ import (
"context"
"log"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/redshift"
"github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2/tfawserr"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/redshift"
awstypes "github.com/aws/aws-sdk-go-v2/service/redshift/types"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/structure"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
"github.com/hashicorp/terraform-provider-aws/internal/conns"
"github.com/hashicorp/terraform-provider-aws/internal/errs"
"github.com/hashicorp/terraform-provider-aws/internal/errs/sdkdiag"
"github.com/hashicorp/terraform-provider-aws/internal/tfresource"
"github.com/hashicorp/terraform-provider-aws/internal/verify"
Expand Down Expand Up @@ -54,7 +55,7 @@ func resourceAuthenticationProfile() *schema.Resource {

func resourceAuthenticationProfileCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
var diags diag.Diagnostics
conn := meta.(*conns.AWSClient).RedshiftConn(ctx)
conn := meta.(*conns.AWSClient).RedshiftClient(ctx)

authProfileName := d.Get("authentication_profile_name").(string)

Expand All @@ -63,20 +64,20 @@ func resourceAuthenticationProfileCreate(ctx context.Context, d *schema.Resource
AuthenticationProfileContent: aws.String(d.Get("authentication_profile_content").(string)),
}

out, err := conn.CreateAuthenticationProfileWithContext(ctx, &input)
out, err := conn.CreateAuthenticationProfile(ctx, &input)

if err != nil {
return sdkdiag.AppendErrorf(diags, "creating Redshift Authentication Profile (%s): %s", authProfileName, err)
}

d.SetId(aws.StringValue(out.AuthenticationProfileName))
d.SetId(aws.ToString(out.AuthenticationProfileName))

return append(diags, resourceAuthenticationProfileRead(ctx, d, meta)...)
}

func resourceAuthenticationProfileRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
var diags diag.Diagnostics
conn := meta.(*conns.AWSClient).RedshiftConn(ctx)
conn := meta.(*conns.AWSClient).RedshiftClient(ctx)

out, err := findAuthenticationProfileByID(ctx, conn, d.Id())

Expand All @@ -98,14 +99,14 @@ func resourceAuthenticationProfileRead(ctx context.Context, d *schema.ResourceDa

func resourceAuthenticationProfileUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
var diags diag.Diagnostics
conn := meta.(*conns.AWSClient).RedshiftConn(ctx)
conn := meta.(*conns.AWSClient).RedshiftClient(ctx)

input := &redshift.ModifyAuthenticationProfileInput{
AuthenticationProfileName: aws.String(d.Id()),
AuthenticationProfileContent: aws.String(d.Get("authentication_profile_content").(string)),
}

_, err := conn.ModifyAuthenticationProfileWithContext(ctx, input)
_, err := conn.ModifyAuthenticationProfile(ctx, input)

if err != nil {
return sdkdiag.AppendErrorf(diags, "modifying Redshift Authentication Profile (%s): %s", d.Id(), err)
Expand All @@ -116,17 +117,17 @@ func resourceAuthenticationProfileUpdate(ctx context.Context, d *schema.Resource

func resourceAuthenticationProfileDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
var diags diag.Diagnostics
conn := meta.(*conns.AWSClient).RedshiftConn(ctx)
conn := meta.(*conns.AWSClient).RedshiftClient(ctx)

deleteInput := redshift.DeleteAuthenticationProfileInput{
AuthenticationProfileName: aws.String(d.Id()),
}

log.Printf("[DEBUG] Deleting Redshift Authentication Profile: %s", d.Id())
_, err := conn.DeleteAuthenticationProfileWithContext(ctx, &deleteInput)
_, err := conn.DeleteAuthenticationProfile(ctx, &deleteInput)

if err != nil {
if tfawserr.ErrCodeEquals(err, redshift.ErrCodeAuthenticationProfileNotFoundFault) {
if errs.IsA[*awstypes.AuthenticationProfileNotFoundFault](err) {
return diags
}
return sdkdiag.AppendErrorf(diags, "deleting Redshift Authentication Profile (%s): %s", d.Id(), err)
Expand Down
4 changes: 2 additions & 2 deletions internal/service/redshift/authentication_profile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func TestAccRedshiftAuthenticationProfile_disappears(t *testing.T) {

func testAccCheckAuthenticationProfileDestroy(ctx context.Context) resource.TestCheckFunc {
return func(s *terraform.State) error {
conn := acctest.Provider.Meta().(*conns.AWSClient).RedshiftConn(ctx)
conn := acctest.Provider.Meta().(*conns.AWSClient).RedshiftClient(ctx)

for _, rs := range s.RootModule().Resources {
if rs.Type != "aws_redshift_authentication_profile" {
Expand Down Expand Up @@ -113,7 +113,7 @@ func testAccCheckAuthenticationProfileExists(ctx context.Context, name string) r
return fmt.Errorf("Authentication Profile ID is not set")
}

conn := acctest.Provider.Meta().(*conns.AWSClient).RedshiftConn(ctx)
conn := acctest.Provider.Meta().(*conns.AWSClient).RedshiftClient(ctx)

_, err := tfredshift.FindAuthenticationProfileByID(ctx, conn, rs.Primary.ID)

Expand Down
Loading
Loading