diff --git a/internal/generate/servicepackage/file.tmpl b/internal/generate/servicepackage/file.tmpl index 38a0d1c83f4..948264e32e5 100644 --- a/internal/generate/servicepackage/file.tmpl +++ b/internal/generate/servicepackage/file.tmpl @@ -16,6 +16,7 @@ import ( {{ .GoV2Package }}_sdkv2 "github.com/aws/aws-sdk-go-v2/service/{{ .GoV2Package }}" {{- end }} {{- end }} + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" {{- if ne .ProviderPackage "meta" }} "github.com/hashicorp/terraform-provider-aws/names" @@ -150,4 +151,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( {{- end }} {{- end }} -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/generate/servicepackages/file.tmpl b/internal/generate/servicepackages/file.tmpl index 4832fd02f3d..cc7f14aee80 100644 --- a/internal/generate/servicepackages/file.tmpl +++ b/internal/generate/servicepackages/file.tmpl @@ -12,10 +12,10 @@ import ( "golang.org/x/exp/slices" ) -func servicePackages(context.Context) []conns.ServicePackage { +func servicePackages(ctx context.Context) []conns.ServicePackage { v := []conns.ServicePackage{ {{- range .Services }} - {{ .ProviderPackage }}.ServicePackage, + {{ .ProviderPackage }}.ServicePackage(ctx), {{- end }} } diff --git a/internal/provider/service_packages_gen.go b/internal/provider/service_packages_gen.go index 5927e1aa609..a02d01dfaf9 100644 --- a/internal/provider/service_packages_gen.go +++ b/internal/provider/service_packages_gen.go @@ -211,210 +211,210 @@ import ( "golang.org/x/exp/slices" ) -func servicePackages(context.Context) []conns.ServicePackage { +func servicePackages(ctx context.Context) []conns.ServicePackage { v := []conns.ServicePackage{ - accessanalyzer.ServicePackage, - account.ServicePackage, - acm.ServicePackage, - acmpca.ServicePackage, - amp.ServicePackage, - amplify.ServicePackage, - apigateway.ServicePackage, - apigatewayv2.ServicePackage, - appautoscaling.ServicePackage, - appconfig.ServicePackage, - appflow.ServicePackage, - appintegrations.ServicePackage, - applicationinsights.ServicePackage, - appmesh.ServicePackage, - apprunner.ServicePackage, - appstream.ServicePackage, - appsync.ServicePackage, - athena.ServicePackage, - auditmanager.ServicePackage, - autoscaling.ServicePackage, - autoscalingplans.ServicePackage, - backup.ServicePackage, - batch.ServicePackage, - budgets.ServicePackage, - ce.ServicePackage, - chime.ServicePackage, - chimesdkmediapipelines.ServicePackage, - chimesdkvoice.ServicePackage, - cleanrooms.ServicePackage, - cloud9.ServicePackage, - cloudcontrol.ServicePackage, - cloudformation.ServicePackage, - cloudfront.ServicePackage, - cloudhsmv2.ServicePackage, - cloudsearch.ServicePackage, - cloudtrail.ServicePackage, - cloudwatch.ServicePackage, - codeartifact.ServicePackage, - codebuild.ServicePackage, - codecommit.ServicePackage, - codegurureviewer.ServicePackage, - codepipeline.ServicePackage, - codestarconnections.ServicePackage, - codestarnotifications.ServicePackage, - cognitoidentity.ServicePackage, - cognitoidp.ServicePackage, - comprehend.ServicePackage, - computeoptimizer.ServicePackage, - configservice.ServicePackage, - connect.ServicePackage, - controltower.ServicePackage, - cur.ServicePackage, - dataexchange.ServicePackage, - datapipeline.ServicePackage, - datasync.ServicePackage, - dax.ServicePackage, - deploy.ServicePackage, - detective.ServicePackage, - devicefarm.ServicePackage, - directconnect.ServicePackage, - dlm.ServicePackage, - dms.ServicePackage, - docdb.ServicePackage, - docdbelastic.ServicePackage, - ds.ServicePackage, - dynamodb.ServicePackage, - ec2.ServicePackage, - ecr.ServicePackage, - ecrpublic.ServicePackage, - ecs.ServicePackage, - efs.ServicePackage, - eks.ServicePackage, - elasticache.ServicePackage, - elasticbeanstalk.ServicePackage, - elasticsearch.ServicePackage, - elastictranscoder.ServicePackage, - elb.ServicePackage, - elbv2.ServicePackage, - emr.ServicePackage, - emrcontainers.ServicePackage, - emrserverless.ServicePackage, - events.ServicePackage, - evidently.ServicePackage, - finspace.ServicePackage, - firehose.ServicePackage, - fis.ServicePackage, - fms.ServicePackage, - fsx.ServicePackage, - gamelift.ServicePackage, - glacier.ServicePackage, - globalaccelerator.ServicePackage, - glue.ServicePackage, - grafana.ServicePackage, - greengrass.ServicePackage, - guardduty.ServicePackage, - healthlake.ServicePackage, - iam.ServicePackage, - identitystore.ServicePackage, - imagebuilder.ServicePackage, - inspector.ServicePackage, - inspector2.ServicePackage, - internetmonitor.ServicePackage, - iot.ServicePackage, - iotanalytics.ServicePackage, - iotevents.ServicePackage, - ivs.ServicePackage, - ivschat.ServicePackage, - kafka.ServicePackage, - kafkaconnect.ServicePackage, - kendra.ServicePackage, - keyspaces.ServicePackage, - kinesis.ServicePackage, - kinesisanalytics.ServicePackage, - kinesisanalyticsv2.ServicePackage, - kinesisvideo.ServicePackage, - kms.ServicePackage, - lakeformation.ServicePackage, - lambda.ServicePackage, - lexmodels.ServicePackage, - licensemanager.ServicePackage, - lightsail.ServicePackage, - location.ServicePackage, - logs.ServicePackage, - macie2.ServicePackage, - mediaconnect.ServicePackage, - mediaconvert.ServicePackage, - medialive.ServicePackage, - mediapackage.ServicePackage, - mediastore.ServicePackage, - memorydb.ServicePackage, - meta.ServicePackage, - mq.ServicePackage, - mwaa.ServicePackage, - neptune.ServicePackage, - networkfirewall.ServicePackage, - networkmanager.ServicePackage, - oam.ServicePackage, - opensearch.ServicePackage, - opensearchserverless.ServicePackage, - opsworks.ServicePackage, - organizations.ServicePackage, - outposts.ServicePackage, - pinpoint.ServicePackage, - pipes.ServicePackage, - pricing.ServicePackage, - qldb.ServicePackage, - quicksight.ServicePackage, - ram.ServicePackage, - rbin.ServicePackage, - rds.ServicePackage, - redshift.ServicePackage, - redshiftdata.ServicePackage, - redshiftserverless.ServicePackage, - resourceexplorer2.ServicePackage, - resourcegroups.ServicePackage, - resourcegroupstaggingapi.ServicePackage, - rolesanywhere.ServicePackage, - route53.ServicePackage, - route53domains.ServicePackage, - route53recoverycontrolconfig.ServicePackage, - route53recoveryreadiness.ServicePackage, - route53resolver.ServicePackage, - rum.ServicePackage, - s3.ServicePackage, - s3control.ServicePackage, - s3outposts.ServicePackage, - sagemaker.ServicePackage, - scheduler.ServicePackage, - schemas.ServicePackage, - secretsmanager.ServicePackage, - securityhub.ServicePackage, - securitylake.ServicePackage, - serverlessrepo.ServicePackage, - servicecatalog.ServicePackage, - servicediscovery.ServicePackage, - servicequotas.ServicePackage, - ses.ServicePackage, - sesv2.ServicePackage, - sfn.ServicePackage, - shield.ServicePackage, - signer.ServicePackage, - simpledb.ServicePackage, - sns.ServicePackage, - sqs.ServicePackage, - ssm.ServicePackage, - ssmcontacts.ServicePackage, - ssmincidents.ServicePackage, - ssoadmin.ServicePackage, - storagegateway.ServicePackage, - sts.ServicePackage, - swf.ServicePackage, - synthetics.ServicePackage, - timestreamwrite.ServicePackage, - transcribe.ServicePackage, - transfer.ServicePackage, - vpclattice.ServicePackage, - waf.ServicePackage, - wafregional.ServicePackage, - wafv2.ServicePackage, - worklink.ServicePackage, - workspaces.ServicePackage, - xray.ServicePackage, + accessanalyzer.ServicePackage(ctx), + account.ServicePackage(ctx), + acm.ServicePackage(ctx), + acmpca.ServicePackage(ctx), + amp.ServicePackage(ctx), + amplify.ServicePackage(ctx), + apigateway.ServicePackage(ctx), + apigatewayv2.ServicePackage(ctx), + appautoscaling.ServicePackage(ctx), + appconfig.ServicePackage(ctx), + appflow.ServicePackage(ctx), + appintegrations.ServicePackage(ctx), + applicationinsights.ServicePackage(ctx), + appmesh.ServicePackage(ctx), + apprunner.ServicePackage(ctx), + appstream.ServicePackage(ctx), + appsync.ServicePackage(ctx), + athena.ServicePackage(ctx), + auditmanager.ServicePackage(ctx), + autoscaling.ServicePackage(ctx), + autoscalingplans.ServicePackage(ctx), + backup.ServicePackage(ctx), + batch.ServicePackage(ctx), + budgets.ServicePackage(ctx), + ce.ServicePackage(ctx), + chime.ServicePackage(ctx), + chimesdkmediapipelines.ServicePackage(ctx), + chimesdkvoice.ServicePackage(ctx), + cleanrooms.ServicePackage(ctx), + cloud9.ServicePackage(ctx), + cloudcontrol.ServicePackage(ctx), + cloudformation.ServicePackage(ctx), + cloudfront.ServicePackage(ctx), + cloudhsmv2.ServicePackage(ctx), + cloudsearch.ServicePackage(ctx), + cloudtrail.ServicePackage(ctx), + cloudwatch.ServicePackage(ctx), + codeartifact.ServicePackage(ctx), + codebuild.ServicePackage(ctx), + codecommit.ServicePackage(ctx), + codegurureviewer.ServicePackage(ctx), + codepipeline.ServicePackage(ctx), + codestarconnections.ServicePackage(ctx), + codestarnotifications.ServicePackage(ctx), + cognitoidentity.ServicePackage(ctx), + cognitoidp.ServicePackage(ctx), + comprehend.ServicePackage(ctx), + computeoptimizer.ServicePackage(ctx), + configservice.ServicePackage(ctx), + connect.ServicePackage(ctx), + controltower.ServicePackage(ctx), + cur.ServicePackage(ctx), + dataexchange.ServicePackage(ctx), + datapipeline.ServicePackage(ctx), + datasync.ServicePackage(ctx), + dax.ServicePackage(ctx), + deploy.ServicePackage(ctx), + detective.ServicePackage(ctx), + devicefarm.ServicePackage(ctx), + directconnect.ServicePackage(ctx), + dlm.ServicePackage(ctx), + dms.ServicePackage(ctx), + docdb.ServicePackage(ctx), + docdbelastic.ServicePackage(ctx), + ds.ServicePackage(ctx), + dynamodb.ServicePackage(ctx), + ec2.ServicePackage(ctx), + ecr.ServicePackage(ctx), + ecrpublic.ServicePackage(ctx), + ecs.ServicePackage(ctx), + efs.ServicePackage(ctx), + eks.ServicePackage(ctx), + elasticache.ServicePackage(ctx), + elasticbeanstalk.ServicePackage(ctx), + elasticsearch.ServicePackage(ctx), + elastictranscoder.ServicePackage(ctx), + elb.ServicePackage(ctx), + elbv2.ServicePackage(ctx), + emr.ServicePackage(ctx), + emrcontainers.ServicePackage(ctx), + emrserverless.ServicePackage(ctx), + events.ServicePackage(ctx), + evidently.ServicePackage(ctx), + finspace.ServicePackage(ctx), + firehose.ServicePackage(ctx), + fis.ServicePackage(ctx), + fms.ServicePackage(ctx), + fsx.ServicePackage(ctx), + gamelift.ServicePackage(ctx), + glacier.ServicePackage(ctx), + globalaccelerator.ServicePackage(ctx), + glue.ServicePackage(ctx), + grafana.ServicePackage(ctx), + greengrass.ServicePackage(ctx), + guardduty.ServicePackage(ctx), + healthlake.ServicePackage(ctx), + iam.ServicePackage(ctx), + identitystore.ServicePackage(ctx), + imagebuilder.ServicePackage(ctx), + inspector.ServicePackage(ctx), + inspector2.ServicePackage(ctx), + internetmonitor.ServicePackage(ctx), + iot.ServicePackage(ctx), + iotanalytics.ServicePackage(ctx), + iotevents.ServicePackage(ctx), + ivs.ServicePackage(ctx), + ivschat.ServicePackage(ctx), + kafka.ServicePackage(ctx), + kafkaconnect.ServicePackage(ctx), + kendra.ServicePackage(ctx), + keyspaces.ServicePackage(ctx), + kinesis.ServicePackage(ctx), + kinesisanalytics.ServicePackage(ctx), + kinesisanalyticsv2.ServicePackage(ctx), + kinesisvideo.ServicePackage(ctx), + kms.ServicePackage(ctx), + lakeformation.ServicePackage(ctx), + lambda.ServicePackage(ctx), + lexmodels.ServicePackage(ctx), + licensemanager.ServicePackage(ctx), + lightsail.ServicePackage(ctx), + location.ServicePackage(ctx), + logs.ServicePackage(ctx), + macie2.ServicePackage(ctx), + mediaconnect.ServicePackage(ctx), + mediaconvert.ServicePackage(ctx), + medialive.ServicePackage(ctx), + mediapackage.ServicePackage(ctx), + mediastore.ServicePackage(ctx), + memorydb.ServicePackage(ctx), + meta.ServicePackage(ctx), + mq.ServicePackage(ctx), + mwaa.ServicePackage(ctx), + neptune.ServicePackage(ctx), + networkfirewall.ServicePackage(ctx), + networkmanager.ServicePackage(ctx), + oam.ServicePackage(ctx), + opensearch.ServicePackage(ctx), + opensearchserverless.ServicePackage(ctx), + opsworks.ServicePackage(ctx), + organizations.ServicePackage(ctx), + outposts.ServicePackage(ctx), + pinpoint.ServicePackage(ctx), + pipes.ServicePackage(ctx), + pricing.ServicePackage(ctx), + qldb.ServicePackage(ctx), + quicksight.ServicePackage(ctx), + ram.ServicePackage(ctx), + rbin.ServicePackage(ctx), + rds.ServicePackage(ctx), + redshift.ServicePackage(ctx), + redshiftdata.ServicePackage(ctx), + redshiftserverless.ServicePackage(ctx), + resourceexplorer2.ServicePackage(ctx), + resourcegroups.ServicePackage(ctx), + resourcegroupstaggingapi.ServicePackage(ctx), + rolesanywhere.ServicePackage(ctx), + route53.ServicePackage(ctx), + route53domains.ServicePackage(ctx), + route53recoverycontrolconfig.ServicePackage(ctx), + route53recoveryreadiness.ServicePackage(ctx), + route53resolver.ServicePackage(ctx), + rum.ServicePackage(ctx), + s3.ServicePackage(ctx), + s3control.ServicePackage(ctx), + s3outposts.ServicePackage(ctx), + sagemaker.ServicePackage(ctx), + scheduler.ServicePackage(ctx), + schemas.ServicePackage(ctx), + secretsmanager.ServicePackage(ctx), + securityhub.ServicePackage(ctx), + securitylake.ServicePackage(ctx), + serverlessrepo.ServicePackage(ctx), + servicecatalog.ServicePackage(ctx), + servicediscovery.ServicePackage(ctx), + servicequotas.ServicePackage(ctx), + ses.ServicePackage(ctx), + sesv2.ServicePackage(ctx), + sfn.ServicePackage(ctx), + shield.ServicePackage(ctx), + signer.ServicePackage(ctx), + simpledb.ServicePackage(ctx), + sns.ServicePackage(ctx), + sqs.ServicePackage(ctx), + ssm.ServicePackage(ctx), + ssmcontacts.ServicePackage(ctx), + ssmincidents.ServicePackage(ctx), + ssoadmin.ServicePackage(ctx), + storagegateway.ServicePackage(ctx), + sts.ServicePackage(ctx), + swf.ServicePackage(ctx), + synthetics.ServicePackage(ctx), + timestreamwrite.ServicePackage(ctx), + transcribe.ServicePackage(ctx), + transfer.ServicePackage(ctx), + vpclattice.ServicePackage(ctx), + waf.ServicePackage(ctx), + wafregional.ServicePackage(ctx), + wafv2.ServicePackage(ctx), + worklink.ServicePackage(ctx), + workspaces.ServicePackage(ctx), + xray.ServicePackage(ctx), } return slices.Clone(v) diff --git a/internal/service/accessanalyzer/service_package_gen.go b/internal/service/accessanalyzer/service_package_gen.go index fc872199638..2f7eff23109 100644 --- a/internal/service/accessanalyzer/service_package_gen.go +++ b/internal/service/accessanalyzer/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" accessanalyzer_sdkv2 "github.com/aws/aws-sdk-go-v2/service/accessanalyzer" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -57,4 +58,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/account/service_package_gen.go b/internal/service/account/service_package_gen.go index c0a1788de24..8cb1145b3c3 100644 --- a/internal/service/account/service_package_gen.go +++ b/internal/service/account/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" account_sdkv2 "github.com/aws/aws-sdk-go-v2/service/account" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -53,4 +54,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/acm/service_package_gen.go b/internal/service/acm/service_package_gen.go index b89eead0baf..ebc0ad8b532 100644 --- a/internal/service/acm/service_package_gen.go +++ b/internal/service/acm/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" acm_sdkv2 "github.com/aws/aws-sdk-go-v2/service/acm" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -62,4 +63,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/acmpca/service_package_gen.go b/internal/service/acmpca/service_package_gen.go index b164d82b565..04a2de126a2 100644 --- a/internal/service/acmpca/service_package_gen.go +++ b/internal/service/acmpca/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" acmpca_sdkv1 "github.com/aws/aws-sdk-go/service/acmpca" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -75,4 +76,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*a return acmpca_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/amp/service_package_gen.go b/internal/service/amp/service_package_gen.go index 840c4c60f18..cdd2b57d67b 100644 --- a/internal/service/amp/service_package_gen.go +++ b/internal/service/amp/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" prometheusservice_sdkv1 "github.com/aws/aws-sdk-go/service/prometheusservice" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -67,4 +68,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*p return prometheusservice_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/amplify/service_package_gen.go b/internal/service/amplify/service_package_gen.go index 97d49ca90f6..aba2fab07a2 100644 --- a/internal/service/amplify/service_package_gen.go +++ b/internal/service/amplify/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" amplify_sdkv1 "github.com/aws/aws-sdk-go/service/amplify" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -70,4 +71,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*a return amplify_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/apigateway/service_package_gen.go b/internal/service/apigateway/service_package_gen.go index 8ff68616341..d72af166fc4 100644 --- a/internal/service/apigateway/service_package_gen.go +++ b/internal/service/apigateway/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" apigateway_sdkv1 "github.com/aws/aws-sdk-go/service/apigateway" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -203,4 +204,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*a return apigateway_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/apigatewayv2/service_package_gen.go b/internal/service/apigatewayv2/service_package_gen.go index 8783423c513..b5b05c23a73 100644 --- a/internal/service/apigatewayv2/service_package_gen.go +++ b/internal/service/apigatewayv2/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" apigatewayv2_sdkv1 "github.com/aws/aws-sdk-go/service/apigatewayv2" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -119,4 +120,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*a return apigatewayv2_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/appautoscaling/service_package_gen.go b/internal/service/appautoscaling/service_package_gen.go index 56f13dcdc28..b3afc60b206 100644 --- a/internal/service/appautoscaling/service_package_gen.go +++ b/internal/service/appautoscaling/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" applicationautoscaling_sdkv1 "github.com/aws/aws-sdk-go/service/applicationautoscaling" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -58,4 +59,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*a return applicationautoscaling_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/appconfig/service_package_gen.go b/internal/service/appconfig/service_package_gen.go index c436e4d1fcf..89f4cec7046 100644 --- a/internal/service/appconfig/service_package_gen.go +++ b/internal/service/appconfig/service_package_gen.go @@ -10,6 +10,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" appconfig_sdkv1 "github.com/aws/aws-sdk-go/service/appconfig" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -127,4 +128,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/appflow/service_package_gen.go b/internal/service/appflow/service_package_gen.go index fc77242a1f2..ee3fd7b58fa 100644 --- a/internal/service/appflow/service_package_gen.go +++ b/internal/service/appflow/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" appflow_sdkv1 "github.com/aws/aws-sdk-go/service/appflow" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -54,4 +55,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*a return appflow_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/appintegrations/service_package_gen.go b/internal/service/appintegrations/service_package_gen.go index db99e1aa938..0ad4dcc869a 100644 --- a/internal/service/appintegrations/service_package_gen.go +++ b/internal/service/appintegrations/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" appintegrationsservice_sdkv1 "github.com/aws/aws-sdk-go/service/appintegrationsservice" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -64,4 +65,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*a return appintegrationsservice_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/applicationinsights/service_package_gen.go b/internal/service/applicationinsights/service_package_gen.go index fae777a1d23..d00b8577f36 100644 --- a/internal/service/applicationinsights/service_package_gen.go +++ b/internal/service/applicationinsights/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" applicationinsights_sdkv1 "github.com/aws/aws-sdk-go/service/applicationinsights" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -50,4 +51,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*a return applicationinsights_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/appmesh/service_package_gen.go b/internal/service/appmesh/service_package_gen.go index eccfd2dd027..a09059d9d56 100644 --- a/internal/service/appmesh/service_package_gen.go +++ b/internal/service/appmesh/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" appmesh_sdkv1 "github.com/aws/aws-sdk-go/service/appmesh" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -127,4 +128,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*a return appmesh_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/apprunner/service_package_gen.go b/internal/service/apprunner/service_package_gen.go index 62a5757e086..01609e9fab0 100644 --- a/internal/service/apprunner/service_package_gen.go +++ b/internal/service/apprunner/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" apprunner_sdkv1 "github.com/aws/aws-sdk-go/service/apprunner" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -94,4 +95,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*a return apprunner_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/appstream/service_package_gen.go b/internal/service/appstream/service_package_gen.go index 4c860223bb8..e3855c290f3 100644 --- a/internal/service/appstream/service_package_gen.go +++ b/internal/service/appstream/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" appstream_sdkv1 "github.com/aws/aws-sdk-go/service/appstream" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -82,4 +83,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*a return appstream_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/appsync/service_package_gen.go b/internal/service/appsync/service_package_gen.go index bb4ba69f37a..b60257c11df 100644 --- a/internal/service/appsync/service_package_gen.go +++ b/internal/service/appsync/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" appsync_sdkv1 "github.com/aws/aws-sdk-go/service/appsync" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -82,4 +83,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*a return appsync_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/athena/service_package_gen.go b/internal/service/athena/service_package_gen.go index 3bf02ee904d..27c10fdde17 100644 --- a/internal/service/athena/service_package_gen.go +++ b/internal/service/athena/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" athena_sdkv1 "github.com/aws/aws-sdk-go/service/athena" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -66,4 +67,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*a return athena_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/auditmanager/service_package_gen.go b/internal/service/auditmanager/service_package_gen.go index b5c2f31ceb6..dab9768f826 100644 --- a/internal/service/auditmanager/service_package_gen.go +++ b/internal/service/auditmanager/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" auditmanager_sdkv2 "github.com/aws/aws-sdk-go-v2/service/auditmanager" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -88,4 +89,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/autoscaling/service_package_gen.go b/internal/service/autoscaling/service_package_gen.go index 80fd2e081b4..8abf7846587 100644 --- a/internal/service/autoscaling/service_package_gen.go +++ b/internal/service/autoscaling/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" autoscaling_sdkv1 "github.com/aws/aws-sdk-go/service/autoscaling" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -91,4 +92,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*a return autoscaling_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/autoscalingplans/service_package_gen.go b/internal/service/autoscalingplans/service_package_gen.go index 7484abfc9a0..c428380f24a 100644 --- a/internal/service/autoscalingplans/service_package_gen.go +++ b/internal/service/autoscalingplans/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" autoscalingplans_sdkv1 "github.com/aws/aws-sdk-go/service/autoscalingplans" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -46,4 +47,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*a return autoscalingplans_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/backup/service_package_gen.go b/internal/service/backup/service_package_gen.go index 8f4e3d725f2..0e8ed95b223 100644 --- a/internal/service/backup/service_package_gen.go +++ b/internal/service/backup/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" backup_sdkv1 "github.com/aws/aws-sdk-go/service/backup" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -119,4 +120,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*b return backup_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/batch/service_package_gen.go b/internal/service/batch/service_package_gen.go index 6957a812278..1d1ddd2209f 100644 --- a/internal/service/batch/service_package_gen.go +++ b/internal/service/batch/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" batch_sdkv1 "github.com/aws/aws-sdk-go/service/batch" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -87,4 +88,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*b return batch_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/budgets/service_package_gen.go b/internal/service/budgets/service_package_gen.go index 37daeaafd49..a8aaaebfde5 100644 --- a/internal/service/budgets/service_package_gen.go +++ b/internal/service/budgets/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" budgets_sdkv1 "github.com/aws/aws-sdk-go/service/budgets" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -55,4 +56,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*b return budgets_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/ce/service_package_gen.go b/internal/service/ce/service_package_gen.go index f1e80a509e5..2dde43272d5 100644 --- a/internal/service/ce/service_package_gen.go +++ b/internal/service/ce/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" costexplorer_sdkv1 "github.com/aws/aws-sdk-go/service/costexplorer" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -79,4 +80,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return costexplorer_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/chime/service_package_gen.go b/internal/service/chime/service_package_gen.go index edb1877db1e..e875959ddac 100644 --- a/internal/service/chime/service_package_gen.go +++ b/internal/service/chime/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" chime_sdkv1 "github.com/aws/aws-sdk-go/service/chime" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -74,4 +75,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return chime_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/chimesdkmediapipelines/service_package_gen.go b/internal/service/chimesdkmediapipelines/service_package_gen.go index 4b082f105d2..cd672f57a57 100644 --- a/internal/service/chimesdkmediapipelines/service_package_gen.go +++ b/internal/service/chimesdkmediapipelines/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" chimesdkmediapipelines_sdkv1 "github.com/aws/aws-sdk-go/service/chimesdkmediapipelines" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -50,4 +51,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return chimesdkmediapipelines_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/chimesdkvoice/service_package_gen.go b/internal/service/chimesdkvoice/service_package_gen.go index 1f3659a1bb3..3fd5a5cfe6a 100644 --- a/internal/service/chimesdkvoice/service_package_gen.go +++ b/internal/service/chimesdkvoice/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" chimesdkvoice_sdkv1 "github.com/aws/aws-sdk-go/service/chimesdkvoice" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -67,4 +68,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return chimesdkvoice_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/cleanrooms/service_package_gen.go b/internal/service/cleanrooms/service_package_gen.go index 015dab1440d..6a160ab531f 100644 --- a/internal/service/cleanrooms/service_package_gen.go +++ b/internal/service/cleanrooms/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" cleanrooms_sdkv2 "github.com/aws/aws-sdk-go-v2/service/cleanrooms" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -44,4 +45,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/cloud9/service_package_gen.go b/internal/service/cloud9/service_package_gen.go index 200e2aff385..a399df9b48a 100644 --- a/internal/service/cloud9/service_package_gen.go +++ b/internal/service/cloud9/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" cloud9_sdkv1 "github.com/aws/aws-sdk-go/service/cloud9" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -54,4 +55,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return cloud9_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/cloudcontrol/service_package_gen.go b/internal/service/cloudcontrol/service_package_gen.go index 6eae1cc05b6..21b97cfdf01 100644 --- a/internal/service/cloudcontrol/service_package_gen.go +++ b/internal/service/cloudcontrol/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" cloudcontrol_sdkv2 "github.com/aws/aws-sdk-go-v2/service/cloudcontrol" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -54,4 +55,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/cloudformation/service_package_gen.go b/internal/service/cloudformation/service_package_gen.go index ae85d870402..e046d9e5475 100644 --- a/internal/service/cloudformation/service_package_gen.go +++ b/internal/service/cloudformation/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" cloudformation_sdkv1 "github.com/aws/aws-sdk-go/service/cloudformation" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -75,4 +76,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return cloudformation_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/cloudfront/service_package_gen.go b/internal/service/cloudfront/service_package_gen.go index 75da6e06989..267e772027c 100644 --- a/internal/service/cloudfront/service_package_gen.go +++ b/internal/service/cloudfront/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" cloudfront_sdkv1 "github.com/aws/aws-sdk-go/service/cloudfront" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -135,4 +136,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return cloudfront_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/cloudhsmv2/service_package_gen.go b/internal/service/cloudhsmv2/service_package_gen.go index 1e49a0fb360..06f30cc5c0e 100644 --- a/internal/service/cloudhsmv2/service_package_gen.go +++ b/internal/service/cloudhsmv2/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" cloudhsmv2_sdkv1 "github.com/aws/aws-sdk-go/service/cloudhsmv2" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -59,4 +60,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return cloudhsmv2_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/cloudsearch/service_package_gen.go b/internal/service/cloudsearch/service_package_gen.go index 4d9a0d49a63..0d18b71f5a8 100644 --- a/internal/service/cloudsearch/service_package_gen.go +++ b/internal/service/cloudsearch/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" cloudsearch_sdkv1 "github.com/aws/aws-sdk-go/service/cloudsearch" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -50,4 +51,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return cloudsearch_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/cloudtrail/service_package_gen.go b/internal/service/cloudtrail/service_package_gen.go index 88d8c959101..8d39defce07 100644 --- a/internal/service/cloudtrail/service_package_gen.go +++ b/internal/service/cloudtrail/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" cloudtrail_sdkv1 "github.com/aws/aws-sdk-go/service/cloudtrail" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -63,4 +64,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return cloudtrail_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/cloudwatch/service_package_gen.go b/internal/service/cloudwatch/service_package_gen.go index 613a13adb82..608f2fb673a 100644 --- a/internal/service/cloudwatch/service_package_gen.go +++ b/internal/service/cloudwatch/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" cloudwatch_sdkv1 "github.com/aws/aws-sdk-go/service/cloudwatch" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -70,4 +71,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return cloudwatch_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/codeartifact/service_package_gen.go b/internal/service/codeartifact/service_package_gen.go index f4429259f13..2a18ec34189 100644 --- a/internal/service/codeartifact/service_package_gen.go +++ b/internal/service/codeartifact/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" codeartifact_sdkv1 "github.com/aws/aws-sdk-go/service/codeartifact" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -75,4 +76,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return codeartifact_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/codebuild/service_package_gen.go b/internal/service/codebuild/service_package_gen.go index cbccb4851c9..7f2fef33260 100644 --- a/internal/service/codebuild/service_package_gen.go +++ b/internal/service/codebuild/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" codebuild_sdkv1 "github.com/aws/aws-sdk-go/service/codebuild" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -66,4 +67,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return codebuild_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/codecommit/service_package_gen.go b/internal/service/codecommit/service_package_gen.go index 69a2b37c4df..e63566ac80e 100644 --- a/internal/service/codecommit/service_package_gen.go +++ b/internal/service/codecommit/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" codecommit_sdkv1 "github.com/aws/aws-sdk-go/service/codecommit" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -71,4 +72,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return codecommit_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/codegurureviewer/service_package_gen.go b/internal/service/codegurureviewer/service_package_gen.go index 69188438dac..422603b711d 100644 --- a/internal/service/codegurureviewer/service_package_gen.go +++ b/internal/service/codegurureviewer/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" codegurureviewer_sdkv1 "github.com/aws/aws-sdk-go/service/codegurureviewer" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -50,4 +51,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return codegurureviewer_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/codepipeline/service_package_gen.go b/internal/service/codepipeline/service_package_gen.go index b029d782833..7906ed8b3e3 100644 --- a/internal/service/codepipeline/service_package_gen.go +++ b/internal/service/codepipeline/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" codepipeline_sdkv1 "github.com/aws/aws-sdk-go/service/codepipeline" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -66,4 +67,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return codepipeline_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/codestarconnections/service_package_gen.go b/internal/service/codestarconnections/service_package_gen.go index 0fbba91819b..425b7c4d75f 100644 --- a/internal/service/codestarconnections/service_package_gen.go +++ b/internal/service/codestarconnections/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" codestarconnections_sdkv1 "github.com/aws/aws-sdk-go/service/codestarconnections" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -59,4 +60,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return codestarconnections_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/codestarnotifications/service_package_gen.go b/internal/service/codestarnotifications/service_package_gen.go index 41142931413..2987a26aaae 100644 --- a/internal/service/codestarnotifications/service_package_gen.go +++ b/internal/service/codestarnotifications/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" codestarnotifications_sdkv1 "github.com/aws/aws-sdk-go/service/codestarnotifications" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -50,4 +51,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return codestarnotifications_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/cognitoidentity/service_package_gen.go b/internal/service/cognitoidentity/service_package_gen.go index 35ed8d4c5ad..4c4bf00d555 100644 --- a/internal/service/cognitoidentity/service_package_gen.go +++ b/internal/service/cognitoidentity/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" cognitoidentity_sdkv1 "github.com/aws/aws-sdk-go/service/cognitoidentity" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -58,4 +59,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return cognitoidentity_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/cognitoidp/service_package_gen.go b/internal/service/cognitoidp/service_package_gen.go index d0a10a34bd8..f3f2acbbb89 100644 --- a/internal/service/cognitoidp/service_package_gen.go +++ b/internal/service/cognitoidp/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" cognitoidentityprovider_sdkv1 "github.com/aws/aws-sdk-go/service/cognitoidentityprovider" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -104,4 +105,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return cognitoidentityprovider_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/comprehend/service_package_gen.go b/internal/service/comprehend/service_package_gen.go index a4d3ee74c32..9afb3f16b58 100644 --- a/internal/service/comprehend/service_package_gen.go +++ b/internal/service/comprehend/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" comprehend_sdkv2 "github.com/aws/aws-sdk-go-v2/service/comprehend" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -61,4 +62,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/computeoptimizer/service_package_gen.go b/internal/service/computeoptimizer/service_package_gen.go index 6701cdb1f54..39403ff3ba9 100644 --- a/internal/service/computeoptimizer/service_package_gen.go +++ b/internal/service/computeoptimizer/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" computeoptimizer_sdkv2 "github.com/aws/aws-sdk-go-v2/service/computeoptimizer" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -44,4 +45,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/configservice/service_package_gen.go b/internal/service/configservice/service_package_gen.go index 92d971943c6..42f7adae36b 100644 --- a/internal/service/configservice/service_package_gen.go +++ b/internal/service/configservice/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" configservice_sdkv1 "github.com/aws/aws-sdk-go/service/configservice" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -102,4 +103,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return configservice_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/connect/service_package_gen.go b/internal/service/connect/service_package_gen.go index fb4ee84d3c2..459fcde327f 100644 --- a/internal/service/connect/service_package_gen.go +++ b/internal/service/connect/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" connect_sdkv1 "github.com/aws/aws-sdk-go/service/connect" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -215,4 +216,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return connect_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/controltower/service_package_gen.go b/internal/service/controltower/service_package_gen.go index 275f665c57e..02e9a984e42 100644 --- a/internal/service/controltower/service_package_gen.go +++ b/internal/service/controltower/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" controltower_sdkv1 "github.com/aws/aws-sdk-go/service/controltower" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -51,4 +52,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return controltower_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/cur/service_package_gen.go b/internal/service/cur/service_package_gen.go index e9e001aa003..581ffce2872 100644 --- a/internal/service/cur/service_package_gen.go +++ b/internal/service/cur/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" costandusagereportservice_sdkv1 "github.com/aws/aws-sdk-go/service/costandusagereportservice" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -51,4 +52,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return costandusagereportservice_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/dataexchange/service_package_gen.go b/internal/service/dataexchange/service_package_gen.go index d19c1f125e3..dac6b0d8820 100644 --- a/internal/service/dataexchange/service_package_gen.go +++ b/internal/service/dataexchange/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" dataexchange_sdkv1 "github.com/aws/aws-sdk-go/service/dataexchange" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -58,4 +59,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*d return dataexchange_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/datapipeline/service_package_gen.go b/internal/service/datapipeline/service_package_gen.go index 47b807a4582..e82b85ef161 100644 --- a/internal/service/datapipeline/service_package_gen.go +++ b/internal/service/datapipeline/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" datapipeline_sdkv1 "github.com/aws/aws-sdk-go/service/datapipeline" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -63,4 +64,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*d return datapipeline_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/datasync/service_package_gen.go b/internal/service/datasync/service_package_gen.go index 8b0c2ceb39a..543a1c3a17d 100644 --- a/internal/service/datasync/service_package_gen.go +++ b/internal/service/datasync/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" datasync_sdkv1 "github.com/aws/aws-sdk-go/service/datasync" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -130,4 +131,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*d return datasync_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/dax/service_package_gen.go b/internal/service/dax/service_package_gen.go index 6b007f7a4f5..b6d0267c154 100644 --- a/internal/service/dax/service_package_gen.go +++ b/internal/service/dax/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" dax_sdkv1 "github.com/aws/aws-sdk-go/service/dax" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -58,4 +59,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*d return dax_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/deploy/service_package_gen.go b/internal/service/deploy/service_package_gen.go index 7326a6de937..d6b5f03cecb 100644 --- a/internal/service/deploy/service_package_gen.go +++ b/internal/service/deploy/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" codedeploy_sdkv1 "github.com/aws/aws-sdk-go/service/codedeploy" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -62,4 +63,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return codedeploy_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/detective/service_package_gen.go b/internal/service/detective/service_package_gen.go index df937e09b10..bfe36c55e9a 100644 --- a/internal/service/detective/service_package_gen.go +++ b/internal/service/detective/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" detective_sdkv1 "github.com/aws/aws-sdk-go/service/detective" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -58,4 +59,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*d return detective_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/devicefarm/service_package_gen.go b/internal/service/devicefarm/service_package_gen.go index 99a065a5bb6..073777ea9ac 100644 --- a/internal/service/devicefarm/service_package_gen.go +++ b/internal/service/devicefarm/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" devicefarm_sdkv1 "github.com/aws/aws-sdk-go/service/devicefarm" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -86,4 +87,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*d return devicefarm_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/directconnect/service_package_gen.go b/internal/service/directconnect/service_package_gen.go index 06080a199b9..df3792aa21c 100644 --- a/internal/service/directconnect/service_package_gen.go +++ b/internal/service/directconnect/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" directconnect_sdkv1 "github.com/aws/aws-sdk-go/service/directconnect" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -171,4 +172,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*d return directconnect_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/dlm/service_package_gen.go b/internal/service/dlm/service_package_gen.go index 10ea5ababf6..9ebd35cd101 100644 --- a/internal/service/dlm/service_package_gen.go +++ b/internal/service/dlm/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" dlm_sdkv1 "github.com/aws/aws-sdk-go/service/dlm" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -50,4 +51,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*d return dlm_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/dms/service_package_gen.go b/internal/service/dms/service_package_gen.go index 58032ac713c..3df3cff8dea 100644 --- a/internal/service/dms/service_package_gen.go +++ b/internal/service/dms/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" databasemigrationservice_sdkv1 "github.com/aws/aws-sdk-go/service/databasemigrationservice" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -119,4 +120,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*d return databasemigrationservice_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/docdb/service_package_gen.go b/internal/service/docdb/service_package_gen.go index 91a06beab17..b7f3ec3f39a 100644 --- a/internal/service/docdb/service_package_gen.go +++ b/internal/service/docdb/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" docdb_sdkv1 "github.com/aws/aws-sdk-go/service/docdb" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -99,4 +100,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*d return docdb_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/docdbelastic/service_package_gen.go b/internal/service/docdbelastic/service_package_gen.go index 5f99a57c6a9..b19fb04264b 100644 --- a/internal/service/docdbelastic/service_package_gen.go +++ b/internal/service/docdbelastic/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" docdbelastic_sdkv2 "github.com/aws/aws-sdk-go-v2/service/docdbelastic" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -44,4 +45,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/ds/service_package_gen.go b/internal/service/ds/service_package_gen.go index 3a472c623eb..4d82399a36c 100644 --- a/internal/service/ds/service_package_gen.go +++ b/internal/service/ds/service_package_gen.go @@ -10,6 +10,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" directoryservice_sdkv1 "github.com/aws/aws-sdk-go/service/directoryservice" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -98,4 +99,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/dynamodb/service_package_gen.go b/internal/service/dynamodb/service_package_gen.go index 9034465bb8e..59299d79838 100644 --- a/internal/service/dynamodb/service_package_gen.go +++ b/internal/service/dynamodb/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" dynamodb_sdkv1 "github.com/aws/aws-sdk-go/service/dynamodb" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -85,4 +86,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*d return dynamodb_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/ec2/service_package_gen.go b/internal/service/ec2/service_package_gen.go index d83fcf8be71..faaf064a7c7 100644 --- a/internal/service/ec2/service_package_gen.go +++ b/internal/service/ec2/service_package_gen.go @@ -10,6 +10,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" ec2_sdkv1 "github.com/aws/aws-sdk-go/service/ec2" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -1145,4 +1146,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/ecr/service_package_gen.go b/internal/service/ecr/service_package_gen.go index 80aa8515137..21c06cb21fe 100644 --- a/internal/service/ecr/service_package_gen.go +++ b/internal/service/ecr/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" ecr_sdkv1 "github.com/aws/aws-sdk-go/service/ecr" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -91,4 +92,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*e return ecr_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/ecrpublic/service_package_gen.go b/internal/service/ecrpublic/service_package_gen.go index 6fa0f91e370..08cc778d7b9 100644 --- a/internal/service/ecrpublic/service_package_gen.go +++ b/internal/service/ecrpublic/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" ecrpublic_sdkv1 "github.com/aws/aws-sdk-go/service/ecrpublic" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -59,4 +60,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*e return ecrpublic_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/ecs/service_package_gen.go b/internal/service/ecs/service_package_gen.go index 484f062430d..1f800c59c81 100644 --- a/internal/service/ecs/service_package_gen.go +++ b/internal/service/ecs/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" ecs_sdkv1 "github.com/aws/aws-sdk-go/service/ecs" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -115,4 +116,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*e return ecs_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/efs/service_package_gen.go b/internal/service/efs/service_package_gen.go index 9904b0d73ee..1a99347b981 100644 --- a/internal/service/efs/service_package_gen.go +++ b/internal/service/efs/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" efs_sdkv1 "github.com/aws/aws-sdk-go/service/efs" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -91,4 +92,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*e return efs_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/eks/service_package_gen.go b/internal/service/eks/service_package_gen.go index 33b6ca1bc1c..9e6d4ad9270 100644 --- a/internal/service/eks/service_package_gen.go +++ b/internal/service/eks/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" eks_sdkv1 "github.com/aws/aws-sdk-go/service/eks" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -111,4 +112,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*e return eks_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/elasticache/service_package_gen.go b/internal/service/elasticache/service_package_gen.go index 8eeb1b4b032..3845f2843fc 100644 --- a/internal/service/elasticache/service_package_gen.go +++ b/internal/service/elasticache/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" elasticache_sdkv1 "github.com/aws/aws-sdk-go/service/elasticache" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -115,4 +116,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*e return elasticache_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/elasticbeanstalk/service_package_gen.go b/internal/service/elasticbeanstalk/service_package_gen.go index 5efea7b68f5..d469473a98c 100644 --- a/internal/service/elasticbeanstalk/service_package_gen.go +++ b/internal/service/elasticbeanstalk/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" elasticbeanstalk_sdkv1 "github.com/aws/aws-sdk-go/service/elasticbeanstalk" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -83,4 +84,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*e return elasticbeanstalk_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/elasticsearch/service_package_gen.go b/internal/service/elasticsearch/service_package_gen.go index b5faa318f52..ffa1d40cafc 100644 --- a/internal/service/elasticsearch/service_package_gen.go +++ b/internal/service/elasticsearch/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" elasticsearchservice_sdkv1 "github.com/aws/aws-sdk-go/service/elasticsearchservice" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -63,4 +64,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*e return elasticsearchservice_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/elastictranscoder/service_package_gen.go b/internal/service/elastictranscoder/service_package_gen.go index a6b0742a2a4..18c4a859477 100644 --- a/internal/service/elastictranscoder/service_package_gen.go +++ b/internal/service/elastictranscoder/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" elastictranscoder_sdkv1 "github.com/aws/aws-sdk-go/service/elastictranscoder" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -50,4 +51,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*e return elastictranscoder_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/elb/service_package_gen.go b/internal/service/elb/service_package_gen.go index bf69c5e893a..6c32ff38fe7 100644 --- a/internal/service/elb/service_package_gen.go +++ b/internal/service/elb/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" elb_sdkv1 "github.com/aws/aws-sdk-go/service/elb" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -95,4 +96,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*e return elb_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/elbv2/service_package_gen.go b/internal/service/elbv2/service_package_gen.go index b461f1e5a7f..57e5abc0a71 100644 --- a/internal/service/elbv2/service_package_gen.go +++ b/internal/service/elbv2/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" elbv2_sdkv1 "github.com/aws/aws-sdk-go/service/elbv2" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -155,4 +156,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*e return elbv2_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/emr/service_package_gen.go b/internal/service/emr/service_package_gen.go index 4f32a9edf1b..94d5db4633c 100644 --- a/internal/service/emr/service_package_gen.go +++ b/internal/service/emr/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" emr_sdkv1 "github.com/aws/aws-sdk-go/service/emr" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -87,4 +88,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*e return emr_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/emrcontainers/service_package_gen.go b/internal/service/emrcontainers/service_package_gen.go index ae5d3579e84..20072a6650a 100644 --- a/internal/service/emrcontainers/service_package_gen.go +++ b/internal/service/emrcontainers/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" emrcontainers_sdkv1 "github.com/aws/aws-sdk-go/service/emrcontainers" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -63,4 +64,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*e return emrcontainers_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/emrserverless/service_package_gen.go b/internal/service/emrserverless/service_package_gen.go index 40938bf1ad8..09f435ba15e 100644 --- a/internal/service/emrserverless/service_package_gen.go +++ b/internal/service/emrserverless/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" emrserverless_sdkv1 "github.com/aws/aws-sdk-go/service/emrserverless" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -50,4 +51,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*e return emrserverless_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/events/service_package_gen.go b/internal/service/events/service_package_gen.go index 82339085e7a..727fc83c172 100644 --- a/internal/service/events/service_package_gen.go +++ b/internal/service/events/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" eventbridge_sdkv1 "github.com/aws/aws-sdk-go/service/eventbridge" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -100,4 +101,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*e return eventbridge_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/evidently/service_package_gen.go b/internal/service/evidently/service_package_gen.go index 41bf4860883..4de7208b9cf 100644 --- a/internal/service/evidently/service_package_gen.go +++ b/internal/service/evidently/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" cloudwatchevidently_sdkv1 "github.com/aws/aws-sdk-go/service/cloudwatchevidently" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -74,4 +75,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return cloudwatchevidently_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/finspace/service_package_gen.go b/internal/service/finspace/service_package_gen.go index b0e1258e97c..3df139ef5b4 100644 --- a/internal/service/finspace/service_package_gen.go +++ b/internal/service/finspace/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" finspace_sdkv2 "github.com/aws/aws-sdk-go-v2/service/finspace" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -77,4 +78,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/firehose/service_package_gen.go b/internal/service/firehose/service_package_gen.go index 977486bba2a..2453db4b3d6 100644 --- a/internal/service/firehose/service_package_gen.go +++ b/internal/service/firehose/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" firehose_sdkv1 "github.com/aws/aws-sdk-go/service/firehose" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -55,4 +56,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*f return firehose_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/fis/service_package_gen.go b/internal/service/fis/service_package_gen.go index 2d3d0c108ee..b631b934677 100644 --- a/internal/service/fis/service_package_gen.go +++ b/internal/service/fis/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" fis_sdkv2 "github.com/aws/aws-sdk-go-v2/service/fis" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -51,4 +52,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/fms/service_package_gen.go b/internal/service/fms/service_package_gen.go index 7fbf282a95e..089b55274f9 100644 --- a/internal/service/fms/service_package_gen.go +++ b/internal/service/fms/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" fms_sdkv1 "github.com/aws/aws-sdk-go/service/fms" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -54,4 +55,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*f return fms_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/fsx/service_package_gen.go b/internal/service/fsx/service_package_gen.go index a4ec1aac224..38d735af0a8 100644 --- a/internal/service/fsx/service_package_gen.go +++ b/internal/service/fsx/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" fsx_sdkv1 "github.com/aws/aws-sdk-go/service/fsx" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -139,4 +140,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*f return fsx_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/gamelift/service_package_gen.go b/internal/service/gamelift/service_package_gen.go index ecd791e3fde..dee7fa2a2c9 100644 --- a/internal/service/gamelift/service_package_gen.go +++ b/internal/service/gamelift/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" gamelift_sdkv1 "github.com/aws/aws-sdk-go/service/gamelift" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -90,4 +91,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*g return gamelift_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/glacier/service_package_gen.go b/internal/service/glacier/service_package_gen.go index 480c97e2abe..b14b0b60b79 100644 --- a/internal/service/glacier/service_package_gen.go +++ b/internal/service/glacier/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" glacier_sdkv2 "github.com/aws/aws-sdk-go-v2/service/glacier" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -57,4 +58,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/globalaccelerator/service_package_gen.go b/internal/service/globalaccelerator/service_package_gen.go index 4dc8fca71e4..ee841fd98c6 100644 --- a/internal/service/globalaccelerator/service_package_gen.go +++ b/internal/service/globalaccelerator/service_package_gen.go @@ -5,6 +5,7 @@ package globalaccelerator import ( "context" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -73,4 +74,6 @@ func (p *servicePackage) ServicePackageName() string { return names.GlobalAccelerator } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/glue/service_package_gen.go b/internal/service/glue/service_package_gen.go index 2d1f82d619f..781259dd492 100644 --- a/internal/service/glue/service_package_gen.go +++ b/internal/service/glue/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" glue_sdkv1 "github.com/aws/aws-sdk-go/service/glue" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -179,4 +180,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*g return glue_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/grafana/service_package_gen.go b/internal/service/grafana/service_package_gen.go index 450f52d0b02..1eceaa2c05a 100644 --- a/internal/service/grafana/service_package_gen.go +++ b/internal/service/grafana/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" managedgrafana_sdkv1 "github.com/aws/aws-sdk-go/service/managedgrafana" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -71,4 +72,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*m return managedgrafana_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/greengrass/service_package_gen.go b/internal/service/greengrass/service_package_gen.go index fb3b2660201..8ed2f760003 100644 --- a/internal/service/greengrass/service_package_gen.go +++ b/internal/service/greengrass/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" greengrass_sdkv1 "github.com/aws/aws-sdk-go/service/greengrass" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -41,4 +42,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*g return greengrass_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/guardduty/service_package_gen.go b/internal/service/guardduty/service_package_gen.go index 94430415ed6..bcd3713e47f 100644 --- a/internal/service/guardduty/service_package_gen.go +++ b/internal/service/guardduty/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" guardduty_sdkv1 "github.com/aws/aws-sdk-go/service/guardduty" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -104,4 +105,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*g return guardduty_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/healthlake/service_package_gen.go b/internal/service/healthlake/service_package_gen.go index a2004b1f0e8..ef5392e2045 100644 --- a/internal/service/healthlake/service_package_gen.go +++ b/internal/service/healthlake/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" healthlake_sdkv2 "github.com/aws/aws-sdk-go-v2/service/healthlake" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -44,4 +45,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/iam/service_package_gen.go b/internal/service/iam/service_package_gen.go index 453874dda85..2d02e382157 100644 --- a/internal/service/iam/service_package_gen.go +++ b/internal/service/iam/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" iam_sdkv1 "github.com/aws/aws-sdk-go/service/iam" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -233,4 +234,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*i return iam_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/identitystore/service_package_gen.go b/internal/service/identitystore/service_package_gen.go index 5dd6c292a4a..e0d9ea2f365 100644 --- a/internal/service/identitystore/service_package_gen.go +++ b/internal/service/identitystore/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" identitystore_sdkv2 "github.com/aws/aws-sdk-go-v2/service/identitystore" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -66,4 +67,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/imagebuilder/service_package_gen.go b/internal/service/imagebuilder/service_package_gen.go index 4958c775d9c..353f7600a04 100644 --- a/internal/service/imagebuilder/service_package_gen.go +++ b/internal/service/imagebuilder/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" imagebuilder_sdkv1 "github.com/aws/aws-sdk-go/service/imagebuilder" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -151,4 +152,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*i return imagebuilder_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/inspector/service_package_gen.go b/internal/service/inspector/service_package_gen.go index d17a199b209..ff84ea15222 100644 --- a/internal/service/inspector/service_package_gen.go +++ b/internal/service/inspector/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" inspector_sdkv1 "github.com/aws/aws-sdk-go/service/inspector" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -63,4 +64,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*i return inspector_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/inspector2/service_package_gen.go b/internal/service/inspector2/service_package_gen.go index 3b4e16d6814..fb51a10b399 100644 --- a/internal/service/inspector2/service_package_gen.go +++ b/internal/service/inspector2/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" inspector2_sdkv2 "github.com/aws/aws-sdk-go-v2/service/inspector2" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -61,4 +62,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/internetmonitor/service_package_gen.go b/internal/service/internetmonitor/service_package_gen.go index 00a914b158c..d478f2a9cf6 100644 --- a/internal/service/internetmonitor/service_package_gen.go +++ b/internal/service/internetmonitor/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" internetmonitor_sdkv1 "github.com/aws/aws-sdk-go/service/internetmonitor" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -50,4 +51,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*i return internetmonitor_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/iot/service_package_gen.go b/internal/service/iot/service_package_gen.go index f6c88a06569..2577b9f4945 100644 --- a/internal/service/iot/service_package_gen.go +++ b/internal/service/iot/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" iot_sdkv1 "github.com/aws/aws-sdk-go/service/iot" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -123,4 +124,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*i return iot_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/iotanalytics/service_package_gen.go b/internal/service/iotanalytics/service_package_gen.go index a305077f876..6ef6bc9a53e 100644 --- a/internal/service/iotanalytics/service_package_gen.go +++ b/internal/service/iotanalytics/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" iotanalytics_sdkv1 "github.com/aws/aws-sdk-go/service/iotanalytics" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -41,4 +42,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*i return iotanalytics_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/iotevents/service_package_gen.go b/internal/service/iotevents/service_package_gen.go index b8f1cc6f8e2..5586b9e6aee 100644 --- a/internal/service/iotevents/service_package_gen.go +++ b/internal/service/iotevents/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" iotevents_sdkv1 "github.com/aws/aws-sdk-go/service/iotevents" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -41,4 +42,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*i return iotevents_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/ivs/service_package_gen.go b/internal/service/ivs/service_package_gen.go index f29d93c3f4b..8269a7e1e1b 100644 --- a/internal/service/ivs/service_package_gen.go +++ b/internal/service/ivs/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" ivs_sdkv1 "github.com/aws/aws-sdk-go/service/ivs" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -71,4 +72,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*i return ivs_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/ivschat/service_package_gen.go b/internal/service/ivschat/service_package_gen.go index b7e3a56eeba..f143014048d 100644 --- a/internal/service/ivschat/service_package_gen.go +++ b/internal/service/ivschat/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" ivschat_sdkv2 "github.com/aws/aws-sdk-go-v2/service/ivschat" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -61,4 +62,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/kafka/service_package_gen.go b/internal/service/kafka/service_package_gen.go index 5be97a44da5..0ab9223d549 100644 --- a/internal/service/kafka/service_package_gen.go +++ b/internal/service/kafka/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" kafka_sdkv1 "github.com/aws/aws-sdk-go/service/kafka" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -83,4 +84,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*k return kafka_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/kafkaconnect/service_package_gen.go b/internal/service/kafkaconnect/service_package_gen.go index 327b05a6e65..43e36b2f4e1 100644 --- a/internal/service/kafkaconnect/service_package_gen.go +++ b/internal/service/kafkaconnect/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" kafkaconnect_sdkv1 "github.com/aws/aws-sdk-go/service/kafkaconnect" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -67,4 +68,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*k return kafkaconnect_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/kendra/service_package_gen.go b/internal/service/kendra/service_package_gen.go index c0d7e9fd010..f4e3cc3ca9e 100644 --- a/internal/service/kendra/service_package_gen.go +++ b/internal/service/kendra/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" kendra_sdkv2 "github.com/aws/aws-sdk-go-v2/service/kendra" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -110,4 +111,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/keyspaces/service_package_gen.go b/internal/service/keyspaces/service_package_gen.go index 2aef7d7cb69..00e73069e50 100644 --- a/internal/service/keyspaces/service_package_gen.go +++ b/internal/service/keyspaces/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" keyspaces_sdkv1 "github.com/aws/aws-sdk-go/service/keyspaces" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -58,4 +59,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*k return keyspaces_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/kinesis/service_package_gen.go b/internal/service/kinesis/service_package_gen.go index bec5ce1a39d..e06dde0bcba 100644 --- a/internal/service/kinesis/service_package_gen.go +++ b/internal/service/kinesis/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" kinesis_sdkv1 "github.com/aws/aws-sdk-go/service/kinesis" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -63,4 +64,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*k return kinesis_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/kinesisanalytics/service_package_gen.go b/internal/service/kinesisanalytics/service_package_gen.go index 8840ca5dac4..87507d228f3 100644 --- a/internal/service/kinesisanalytics/service_package_gen.go +++ b/internal/service/kinesisanalytics/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" kinesisanalytics_sdkv1 "github.com/aws/aws-sdk-go/service/kinesisanalytics" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -50,4 +51,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*k return kinesisanalytics_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/kinesisanalyticsv2/service_package_gen.go b/internal/service/kinesisanalyticsv2/service_package_gen.go index 9addf5c2324..c023ff61869 100644 --- a/internal/service/kinesisanalyticsv2/service_package_gen.go +++ b/internal/service/kinesisanalyticsv2/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" kinesisanalyticsv2_sdkv1 "github.com/aws/aws-sdk-go/service/kinesisanalyticsv2" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -54,4 +55,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*k return kinesisanalyticsv2_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/kinesisvideo/service_package_gen.go b/internal/service/kinesisvideo/service_package_gen.go index 2416aab82c5..43426de01a1 100644 --- a/internal/service/kinesisvideo/service_package_gen.go +++ b/internal/service/kinesisvideo/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" kinesisvideo_sdkv1 "github.com/aws/aws-sdk-go/service/kinesisvideo" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -50,4 +51,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*k return kinesisvideo_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/kms/service_package_gen.go b/internal/service/kms/service_package_gen.go index 2968b36e8e1..1f126fed777 100644 --- a/internal/service/kms/service_package_gen.go +++ b/internal/service/kms/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" kms_sdkv1 "github.com/aws/aws-sdk-go/service/kms" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -123,4 +124,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*k return kms_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/lakeformation/service_package_gen.go b/internal/service/lakeformation/service_package_gen.go index ffa64254579..b6396ca6763 100644 --- a/internal/service/lakeformation/service_package_gen.go +++ b/internal/service/lakeformation/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" lakeformation_sdkv1 "github.com/aws/aws-sdk-go/service/lakeformation" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -75,4 +76,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*l return lakeformation_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/lambda/service_package_gen.go b/internal/service/lambda/service_package_gen.go index 051b4ecbd0d..c3ea4260980 100644 --- a/internal/service/lambda/service_package_gen.go +++ b/internal/service/lambda/service_package_gen.go @@ -10,6 +10,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" lambda_sdkv1 "github.com/aws/aws-sdk-go/service/lambda" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -132,4 +133,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/lexmodels/service_package_gen.go b/internal/service/lexmodels/service_package_gen.go index 91054d021d1..7280e8b0290 100644 --- a/internal/service/lexmodels/service_package_gen.go +++ b/internal/service/lexmodels/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" lexmodelbuildingservice_sdkv1 "github.com/aws/aws-sdk-go/service/lexmodelbuildingservice" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -75,4 +76,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*l return lexmodelbuildingservice_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/licensemanager/service_package_gen.go b/internal/service/licensemanager/service_package_gen.go index b5744e60f44..2f102119151 100644 --- a/internal/service/licensemanager/service_package_gen.go +++ b/internal/service/licensemanager/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" licensemanager_sdkv1 "github.com/aws/aws-sdk-go/service/licensemanager" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -75,4 +76,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*l return licensemanager_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/lightsail/service_package_gen.go b/internal/service/lightsail/service_package_gen.go index 45c69a465cd..a0cdc9da6ec 100644 --- a/internal/service/lightsail/service_package_gen.go +++ b/internal/service/lightsail/service_package_gen.go @@ -5,6 +5,7 @@ package lightsail import ( "context" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -156,4 +157,6 @@ func (p *servicePackage) ServicePackageName() string { return names.Lightsail } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/location/service_package_gen.go b/internal/service/location/service_package_gen.go index 882fdc62bd4..e913d27b0bc 100644 --- a/internal/service/location/service_package_gen.go +++ b/internal/service/location/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" locationservice_sdkv1 "github.com/aws/aws-sdk-go/service/locationservice" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -115,4 +116,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*l return locationservice_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/logs/service_package_gen.go b/internal/service/logs/service_package_gen.go index 35d5240f102..9afe91f33ed 100644 --- a/internal/service/logs/service_package_gen.go +++ b/internal/service/logs/service_package_gen.go @@ -10,6 +10,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" cloudwatchlogs_sdkv1 "github.com/aws/aws-sdk-go/service/cloudwatchlogs" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -110,4 +111,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/macie2/service_package_gen.go b/internal/service/macie2/service_package_gen.go index 6c102aee852..1cb66d10e4c 100644 --- a/internal/service/macie2/service_package_gen.go +++ b/internal/service/macie2/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" macie2_sdkv1 "github.com/aws/aws-sdk-go/service/macie2" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -82,4 +83,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*m return macie2_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/mediaconnect/service_package_gen.go b/internal/service/mediaconnect/service_package_gen.go index a86377a8895..7adaa5c29b9 100644 --- a/internal/service/mediaconnect/service_package_gen.go +++ b/internal/service/mediaconnect/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" mediaconnect_sdkv1 "github.com/aws/aws-sdk-go/service/mediaconnect" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -41,4 +42,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*m return mediaconnect_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/mediaconvert/service_package_gen.go b/internal/service/mediaconvert/service_package_gen.go index 8860055afc3..1f1ec934266 100644 --- a/internal/service/mediaconvert/service_package_gen.go +++ b/internal/service/mediaconvert/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" mediaconvert_sdkv1 "github.com/aws/aws-sdk-go/service/mediaconvert" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -48,4 +49,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*m return mediaconvert_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/medialive/service_package_gen.go b/internal/service/medialive/service_package_gen.go index f7453c214a4..1c62c7b4423 100644 --- a/internal/service/medialive/service_package_gen.go +++ b/internal/service/medialive/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" medialive_sdkv2 "github.com/aws/aws-sdk-go-v2/service/medialive" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -81,4 +82,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/mediapackage/service_package_gen.go b/internal/service/mediapackage/service_package_gen.go index 5746c9b10b8..67792ffc21d 100644 --- a/internal/service/mediapackage/service_package_gen.go +++ b/internal/service/mediapackage/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" mediapackage_sdkv1 "github.com/aws/aws-sdk-go/service/mediapackage" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -50,4 +51,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*m return mediapackage_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/mediastore/service_package_gen.go b/internal/service/mediastore/service_package_gen.go index fd88ed31fc1..15af80f5a96 100644 --- a/internal/service/mediastore/service_package_gen.go +++ b/internal/service/mediastore/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" mediastore_sdkv1 "github.com/aws/aws-sdk-go/service/mediastore" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -54,4 +55,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*m return mediastore_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/memorydb/service_package_gen.go b/internal/service/memorydb/service_package_gen.go index a16432afdd3..4ca4e1251be 100644 --- a/internal/service/memorydb/service_package_gen.go +++ b/internal/service/memorydb/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" memorydb_sdkv1 "github.com/aws/aws-sdk-go/service/memorydb" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -115,4 +116,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*m return memorydb_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/meta/service_package_gen.go b/internal/service/meta/service_package_gen.go index 6bbd72b1a5b..caec02b9caf 100644 --- a/internal/service/meta/service_package_gen.go +++ b/internal/service/meta/service_package_gen.go @@ -5,6 +5,7 @@ package meta import ( "context" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" ) @@ -55,4 +56,6 @@ func (p *servicePackage) ServicePackageName() string { return "meta" } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/mq/service_package_gen.go b/internal/service/mq/service_package_gen.go index fc88051d5b1..65642098572 100644 --- a/internal/service/mq/service_package_gen.go +++ b/internal/service/mq/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" mq_sdkv1 "github.com/aws/aws-sdk-go/service/mq" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -67,4 +68,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*m return mq_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/mwaa/service_package_gen.go b/internal/service/mwaa/service_package_gen.go index c0cc9472d74..7c91da7df51 100644 --- a/internal/service/mwaa/service_package_gen.go +++ b/internal/service/mwaa/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" mwaa_sdkv1 "github.com/aws/aws-sdk-go/service/mwaa" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -50,4 +51,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*m return mwaa_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/neptune/service_package_gen.go b/internal/service/neptune/service_package_gen.go index 4c37698b121..76972ef6539 100644 --- a/internal/service/neptune/service_package_gen.go +++ b/internal/service/neptune/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" neptune_sdkv1 "github.com/aws/aws-sdk-go/service/neptune" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -115,4 +116,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*n return neptune_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/networkfirewall/service_package_gen.go b/internal/service/networkfirewall/service_package_gen.go index a8e10f94098..3b7562c45b4 100644 --- a/internal/service/networkfirewall/service_package_gen.go +++ b/internal/service/networkfirewall/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" networkfirewall_sdkv1 "github.com/aws/aws-sdk-go/service/networkfirewall" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -87,4 +88,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*n return networkfirewall_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/networkmanager/service_package_gen.go b/internal/service/networkmanager/service_package_gen.go index 82776695884..66504591086 100644 --- a/internal/service/networkmanager/service_package_gen.go +++ b/internal/service/networkmanager/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" networkmanager_sdkv1 "github.com/aws/aws-sdk-go/service/networkmanager" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -207,4 +208,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*n return networkmanager_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/oam/service_package_gen.go b/internal/service/oam/service_package_gen.go index da13e14d511..a90a68d3992 100644 --- a/internal/service/oam/service_package_gen.go +++ b/internal/service/oam/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" oam_sdkv2 "github.com/aws/aws-sdk-go-v2/service/oam" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -82,4 +83,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/opensearch/service_package_gen.go b/internal/service/opensearch/service_package_gen.go index 390dc6b9499..96f66fa6e58 100644 --- a/internal/service/opensearch/service_package_gen.go +++ b/internal/service/opensearch/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" opensearchservice_sdkv1 "github.com/aws/aws-sdk-go/service/opensearchservice" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -71,4 +72,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*o return opensearchservice_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/opensearchserverless/service_package_gen.go b/internal/service/opensearchserverless/service_package_gen.go index 1a5aae00d61..9aa3052f44a 100644 --- a/internal/service/opensearchserverless/service_package_gen.go +++ b/internal/service/opensearchserverless/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" opensearchserverless_sdkv2 "github.com/aws/aws-sdk-go-v2/service/opensearchserverless" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -64,4 +65,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/opsworks/service_package_gen.go b/internal/service/opsworks/service_package_gen.go index ee05a19fdb1..a310f3c4a5e 100644 --- a/internal/service/opsworks/service_package_gen.go +++ b/internal/service/opsworks/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" opsworks_sdkv1 "github.com/aws/aws-sdk-go/service/opsworks" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -156,4 +157,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*o return opsworks_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/organizations/service_package_gen.go b/internal/service/organizations/service_package_gen.go index 4980f6d99b2..9280482fe70 100644 --- a/internal/service/organizations/service_package_gen.go +++ b/internal/service/organizations/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" organizations_sdkv1 "github.com/aws/aws-sdk-go/service/organizations" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -127,4 +128,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*o return organizations_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/outposts/service_package_gen.go b/internal/service/outposts/service_package_gen.go index f87af12276a..5176468c563 100644 --- a/internal/service/outposts/service_package_gen.go +++ b/internal/service/outposts/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" outposts_sdkv1 "github.com/aws/aws-sdk-go/service/outposts" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -74,4 +75,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*o return outposts_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/pinpoint/service_package_gen.go b/internal/service/pinpoint/service_package_gen.go index 7f5e65ddb7d..a2b2db28301 100644 --- a/internal/service/pinpoint/service_package_gen.go +++ b/internal/service/pinpoint/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" pinpoint_sdkv1 "github.com/aws/aws-sdk-go/service/pinpoint" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -90,4 +91,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*p return pinpoint_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/pipes/service_package_gen.go b/internal/service/pipes/service_package_gen.go index e4857ee5701..97266e520c2 100644 --- a/internal/service/pipes/service_package_gen.go +++ b/internal/service/pipes/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" pipes_sdkv2 "github.com/aws/aws-sdk-go-v2/service/pipes" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -53,4 +54,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/pricing/service_package_gen.go b/internal/service/pricing/service_package_gen.go index 0ccc6560d20..d25b09b46a3 100644 --- a/internal/service/pricing/service_package_gen.go +++ b/internal/service/pricing/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" pricing_sdkv2 "github.com/aws/aws-sdk-go-v2/service/pricing" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -49,4 +50,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/qldb/service_package_gen.go b/internal/service/qldb/service_package_gen.go index 0bdbe1fedcd..98e9268effd 100644 --- a/internal/service/qldb/service_package_gen.go +++ b/internal/service/qldb/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" qldb_sdkv1 "github.com/aws/aws-sdk-go/service/qldb" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -63,4 +64,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*q return qldb_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/quicksight/service_package_gen.go b/internal/service/quicksight/service_package_gen.go index 383bb9bddf7..c1388eddb16 100644 --- a/internal/service/quicksight/service_package_gen.go +++ b/internal/service/quicksight/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" quicksight_sdkv1 "github.com/aws/aws-sdk-go/service/quicksight" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -174,4 +175,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*q return quicksight_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/ram/service_package_gen.go b/internal/service/ram/service_package_gen.go index 967561ec057..5d39c6bbca6 100644 --- a/internal/service/ram/service_package_gen.go +++ b/internal/service/ram/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" ram_sdkv1 "github.com/aws/aws-sdk-go/service/ram" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -67,4 +68,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*r return ram_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/rbin/service_package_gen.go b/internal/service/rbin/service_package_gen.go index 501cdf4750d..af10f9c6dff 100644 --- a/internal/service/rbin/service_package_gen.go +++ b/internal/service/rbin/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" rbin_sdkv2 "github.com/aws/aws-sdk-go-v2/service/rbin" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -53,4 +54,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/rds/service_package_gen.go b/internal/service/rds/service_package_gen.go index 74e5c3192cc..09a27cab8fb 100644 --- a/internal/service/rds/service_package_gen.go +++ b/internal/service/rds/service_package_gen.go @@ -10,6 +10,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" rds_sdkv1 "github.com/aws/aws-sdk-go/service/rds" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -260,4 +261,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/redshift/service_package_gen.go b/internal/service/redshift/service_package_gen.go index 0bdb811f775..f19d90cd576 100644 --- a/internal/service/redshift/service_package_gen.go +++ b/internal/service/redshift/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" redshift_sdkv1 "github.com/aws/aws-sdk-go/service/redshift" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -171,4 +172,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*r return redshift_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/redshiftdata/service_package_gen.go b/internal/service/redshiftdata/service_package_gen.go index e4c1cf40dca..3c625e94bcd 100644 --- a/internal/service/redshiftdata/service_package_gen.go +++ b/internal/service/redshiftdata/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" redshiftdataapiservice_sdkv1 "github.com/aws/aws-sdk-go/service/redshiftdataapiservice" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -46,4 +47,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*r return redshiftdataapiservice_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/redshiftserverless/service_package_gen.go b/internal/service/redshiftserverless/service_package_gen.go index c1a197b3a12..5bcc73bf89c 100644 --- a/internal/service/redshiftserverless/service_package_gen.go +++ b/internal/service/redshiftserverless/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" redshiftserverless_sdkv1 "github.com/aws/aws-sdk-go/service/redshiftserverless" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -87,4 +88,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*r return redshiftserverless_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/resourceexplorer2/service_package_gen.go b/internal/service/resourceexplorer2/service_package_gen.go index 1561aa55661..693c97a02e4 100644 --- a/internal/service/resourceexplorer2/service_package_gen.go +++ b/internal/service/resourceexplorer2/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" resourceexplorer2_sdkv2 "github.com/aws/aws-sdk-go-v2/service/resourceexplorer2" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -59,4 +60,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/resourcegroups/service_package_gen.go b/internal/service/resourcegroups/service_package_gen.go index d205db40a44..3ec6f581b29 100644 --- a/internal/service/resourcegroups/service_package_gen.go +++ b/internal/service/resourcegroups/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" resourcegroups_sdkv1 "github.com/aws/aws-sdk-go/service/resourcegroups" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -55,4 +56,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*r return resourcegroups_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/resourcegroupstaggingapi/service_package_gen.go b/internal/service/resourcegroupstaggingapi/service_package_gen.go index b54a019b7d9..df9a805c4eb 100644 --- a/internal/service/resourcegroupstaggingapi/service_package_gen.go +++ b/internal/service/resourcegroupstaggingapi/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" resourcegroupstaggingapi_sdkv1 "github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -46,4 +47,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*r return resourcegroupstaggingapi_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/rolesanywhere/service_package_gen.go b/internal/service/rolesanywhere/service_package_gen.go index 2ef9b9f3019..1784ea7bc86 100644 --- a/internal/service/rolesanywhere/service_package_gen.go +++ b/internal/service/rolesanywhere/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" rolesanywhere_sdkv2 "github.com/aws/aws-sdk-go-v2/service/rolesanywhere" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -61,4 +62,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/route53/service_package_gen.go b/internal/service/route53/service_package_gen.go index 2d723164070..f2709931fa4 100644 --- a/internal/service/route53/service_package_gen.go +++ b/internal/service/route53/service_package_gen.go @@ -5,6 +5,7 @@ package route53 import ( "context" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -106,4 +107,6 @@ func (p *servicePackage) ServicePackageName() string { return names.Route53 } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/route53domains/service_package_gen.go b/internal/service/route53domains/service_package_gen.go index 4933e771fda..1ee5bc5e3ef 100644 --- a/internal/service/route53domains/service_package_gen.go +++ b/internal/service/route53domains/service_package_gen.go @@ -5,6 +5,7 @@ package route53domains import ( "context" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -40,4 +41,6 @@ func (p *servicePackage) ServicePackageName() string { return names.Route53Domains } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/route53recoverycontrolconfig/service_package_gen.go b/internal/service/route53recoverycontrolconfig/service_package_gen.go index 3cadff05d46..5aeb51c243a 100644 --- a/internal/service/route53recoverycontrolconfig/service_package_gen.go +++ b/internal/service/route53recoverycontrolconfig/service_package_gen.go @@ -5,6 +5,7 @@ package route53recoverycontrolconfig import ( "context" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -48,4 +49,6 @@ func (p *servicePackage) ServicePackageName() string { return names.Route53RecoveryControlConfig } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/route53recoveryreadiness/service_package_gen.go b/internal/service/route53recoveryreadiness/service_package_gen.go index f5beaed0d97..ef438d19c70 100644 --- a/internal/service/route53recoveryreadiness/service_package_gen.go +++ b/internal/service/route53recoveryreadiness/service_package_gen.go @@ -5,6 +5,7 @@ package route53recoveryreadiness import ( "context" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -64,4 +65,6 @@ func (p *servicePackage) ServicePackageName() string { return names.Route53RecoveryReadiness } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/route53resolver/service_package_gen.go b/internal/service/route53resolver/service_package_gen.go index 71048820415..3ea6052b4fd 100644 --- a/internal/service/route53resolver/service_package_gen.go +++ b/internal/service/route53resolver/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" route53resolver_sdkv1 "github.com/aws/aws-sdk-go/service/route53resolver" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -151,4 +152,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*r return route53resolver_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/rum/service_package_gen.go b/internal/service/rum/service_package_gen.go index 3525ae29741..572ef869ee9 100644 --- a/internal/service/rum/service_package_gen.go +++ b/internal/service/rum/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" cloudwatchrum_sdkv1 "github.com/aws/aws-sdk-go/service/cloudwatchrum" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -54,4 +55,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*c return cloudwatchrum_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/s3/service_package_gen.go b/internal/service/s3/service_package_gen.go index b76355c4031..2e89cb39789 100644 --- a/internal/service/s3/service_package_gen.go +++ b/internal/service/s3/service_package_gen.go @@ -5,6 +5,7 @@ package s3 import ( "context" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -161,4 +162,6 @@ func (p *servicePackage) ServicePackageName() string { return names.S3 } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/s3control/service_package_gen.go b/internal/service/s3control/service_package_gen.go index 74f502e77bb..6831c57983f 100644 --- a/internal/service/s3control/service_package_gen.go +++ b/internal/service/s3control/service_package_gen.go @@ -10,6 +10,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" s3control_sdkv1 "github.com/aws/aws-sdk-go/service/s3control" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -112,4 +113,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/s3outposts/service_package_gen.go b/internal/service/s3outposts/service_package_gen.go index 25bb437399f..74b107c3dfe 100644 --- a/internal/service/s3outposts/service_package_gen.go +++ b/internal/service/s3outposts/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" s3outposts_sdkv1 "github.com/aws/aws-sdk-go/service/s3outposts" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -46,4 +47,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*s return s3outposts_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/sagemaker/service_package_gen.go b/internal/service/sagemaker/service_package_gen.go index 9b676fb7a19..6ea2603d7d3 100644 --- a/internal/service/sagemaker/service_package_gen.go +++ b/internal/service/sagemaker/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" sagemaker_sdkv1 "github.com/aws/aws-sdk-go/service/sagemaker" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -238,4 +239,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*s return sagemaker_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/scheduler/service_package_gen.go b/internal/service/scheduler/service_package_gen.go index 6ddbf33ca40..b1f84560464 100644 --- a/internal/service/scheduler/service_package_gen.go +++ b/internal/service/scheduler/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" scheduler_sdkv2 "github.com/aws/aws-sdk-go-v2/service/scheduler" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -57,4 +58,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/schemas/service_package_gen.go b/internal/service/schemas/service_package_gen.go index 21ed784aab2..111d632ba89 100644 --- a/internal/service/schemas/service_package_gen.go +++ b/internal/service/schemas/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" schemas_sdkv1 "github.com/aws/aws-sdk-go/service/schemas" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -70,4 +71,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*s return schemas_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/secretsmanager/service_package_gen.go b/internal/service/secretsmanager/service_package_gen.go index ed65ddd6652..93068a3ee7b 100644 --- a/internal/service/secretsmanager/service_package_gen.go +++ b/internal/service/secretsmanager/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" secretsmanager_sdkv1 "github.com/aws/aws-sdk-go/service/secretsmanager" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -83,4 +84,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*s return secretsmanager_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/securityhub/service_package_gen.go b/internal/service/securityhub/service_package_gen.go index ef3839227ba..b9b5a844b4c 100644 --- a/internal/service/securityhub/service_package_gen.go +++ b/internal/service/securityhub/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" securityhub_sdkv1 "github.com/aws/aws-sdk-go/service/securityhub" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -86,4 +87,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*s return securityhub_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/securitylake/service_package_gen.go b/internal/service/securitylake/service_package_gen.go index dad643c2ae4..49d5d8ed0a3 100644 --- a/internal/service/securitylake/service_package_gen.go +++ b/internal/service/securitylake/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" securitylake_sdkv2 "github.com/aws/aws-sdk-go-v2/service/securitylake" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -44,4 +45,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/serverlessrepo/service_package_gen.go b/internal/service/serverlessrepo/service_package_gen.go index e75d41be1b0..3639a275c06 100644 --- a/internal/service/serverlessrepo/service_package_gen.go +++ b/internal/service/serverlessrepo/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" serverlessapplicationrepository_sdkv1 "github.com/aws/aws-sdk-go/service/serverlessapplicationrepository" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -53,4 +54,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*s return serverlessapplicationrepository_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/servicecatalog/service_package_gen.go b/internal/service/servicecatalog/service_package_gen.go index a544277c40c..bb0eb4609cd 100644 --- a/internal/service/servicecatalog/service_package_gen.go +++ b/internal/service/servicecatalog/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" servicecatalog_sdkv1 "github.com/aws/aws-sdk-go/service/servicecatalog" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -125,4 +126,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*s return servicecatalog_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/servicediscovery/service_package_gen.go b/internal/service/servicediscovery/service_package_gen.go index ce5a718a8cd..fdc70ea5e12 100644 --- a/internal/service/servicediscovery/service_package_gen.go +++ b/internal/service/servicediscovery/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" servicediscovery_sdkv1 "github.com/aws/aws-sdk-go/service/servicediscovery" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -91,4 +92,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*s return servicediscovery_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/servicequotas/service_package_gen.go b/internal/service/servicequotas/service_package_gen.go index 2b2a6943d27..5f2630a6e04 100644 --- a/internal/service/servicequotas/service_package_gen.go +++ b/internal/service/servicequotas/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" servicequotas_sdkv1 "github.com/aws/aws-sdk-go/service/servicequotas" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -55,4 +56,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*s return servicequotas_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/ses/service_package_gen.go b/internal/service/ses/service_package_gen.go index aa2d1dcc822..1bf148b99b6 100644 --- a/internal/service/ses/service_package_gen.go +++ b/internal/service/ses/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" ses_sdkv1 "github.com/aws/aws-sdk-go/service/ses" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -111,4 +112,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*s return ses_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/sesv2/service_package_gen.go b/internal/service/sesv2/service_package_gen.go index 8c2ebe58935..b211e0901b8 100644 --- a/internal/service/sesv2/service_package_gen.go +++ b/internal/service/sesv2/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" sesv2_sdkv2 "github.com/aws/aws-sdk-go-v2/service/sesv2" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -113,4 +114,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/sfn/service_package_gen.go b/internal/service/sfn/service_package_gen.go index b46f65a5f8a..cd4acc1acea 100644 --- a/internal/service/sfn/service_package_gen.go +++ b/internal/service/sfn/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" sfn_sdkv1 "github.com/aws/aws-sdk-go/service/sfn" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -67,4 +68,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*s return sfn_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/shield/service_package_gen.go b/internal/service/shield/service_package_gen.go index 4e0318f9796..91d134d2748 100644 --- a/internal/service/shield/service_package_gen.go +++ b/internal/service/shield/service_package_gen.go @@ -5,6 +5,7 @@ package shield import ( "context" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -52,4 +53,6 @@ func (p *servicePackage) ServicePackageName() string { return names.Shield } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/signer/service_package_gen.go b/internal/service/signer/service_package_gen.go index 142043429a6..464cb866823 100644 --- a/internal/service/signer/service_package_gen.go +++ b/internal/service/signer/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" signer_sdkv1 "github.com/aws/aws-sdk-go/service/signer" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -67,4 +68,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*s return signer_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/simpledb/service_package_gen.go b/internal/service/simpledb/service_package_gen.go index 28209ff2c05..3bb1625ebd7 100644 --- a/internal/service/simpledb/service_package_gen.go +++ b/internal/service/simpledb/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" simpledb_sdkv1 "github.com/aws/aws-sdk-go/service/simpledb" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -45,4 +46,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*s return simpledb_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/sns/service_package_gen.go b/internal/service/sns/service_package_gen.go index d189c22e138..4c2126a82b0 100644 --- a/internal/service/sns/service_package_gen.go +++ b/internal/service/sns/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" sns_sdkv1 "github.com/aws/aws-sdk-go/service/sns" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -75,4 +76,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*s return sns_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/sqs/service_package_gen.go b/internal/service/sqs/service_package_gen.go index 5c4cccce8aa..235612d3bff 100644 --- a/internal/service/sqs/service_package_gen.go +++ b/internal/service/sqs/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" sqs_sdkv1 "github.com/aws/aws-sdk-go/service/sqs" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -71,4 +72,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*s return sqs_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/ssm/service_package_gen.go b/internal/service/ssm/service_package_gen.go index 838c63ca62e..1ce65459ab2 100644 --- a/internal/service/ssm/service_package_gen.go +++ b/internal/service/ssm/service_package_gen.go @@ -10,6 +10,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" ssm_sdkv1 "github.com/aws/aws-sdk-go/service/ssm" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -150,4 +151,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/ssmcontacts/service_package_gen.go b/internal/service/ssmcontacts/service_package_gen.go index 370086ab765..971fb749add 100644 --- a/internal/service/ssmcontacts/service_package_gen.go +++ b/internal/service/ssmcontacts/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" ssmcontacts_sdkv2 "github.com/aws/aws-sdk-go-v2/service/ssmcontacts" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -76,4 +77,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/ssmincidents/service_package_gen.go b/internal/service/ssmincidents/service_package_gen.go index bb3822446a3..758bcb8f00d 100644 --- a/internal/service/ssmincidents/service_package_gen.go +++ b/internal/service/ssmincidents/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" ssmincidents_sdkv2 "github.com/aws/aws-sdk-go-v2/service/ssmincidents" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -70,4 +71,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/ssoadmin/service_package_gen.go b/internal/service/ssoadmin/service_package_gen.go index e197309cb6a..449c444a0ef 100644 --- a/internal/service/ssoadmin/service_package_gen.go +++ b/internal/service/ssoadmin/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" ssoadmin_sdkv1 "github.com/aws/aws-sdk-go/service/ssoadmin" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -81,4 +82,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*s return ssoadmin_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/storagegateway/service_package_gen.go b/internal/service/storagegateway/service_package_gen.go index 855d9d391ee..0cf1748bd0d 100644 --- a/internal/service/storagegateway/service_package_gen.go +++ b/internal/service/storagegateway/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" storagegateway_sdkv1 "github.com/aws/aws-sdk-go/service/storagegateway" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -115,4 +116,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*s return storagegateway_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/sts/service_package_gen.go b/internal/service/sts/service_package_gen.go index 295656d10f8..87d193deb30 100644 --- a/internal/service/sts/service_package_gen.go +++ b/internal/service/sts/service_package_gen.go @@ -5,6 +5,7 @@ package sts import ( "context" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -35,4 +36,6 @@ func (p *servicePackage) ServicePackageName() string { return names.STS } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/swf/service_package_gen.go b/internal/service/swf/service_package_gen.go index 75794904ce8..ea1aca666d7 100644 --- a/internal/service/swf/service_package_gen.go +++ b/internal/service/swf/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" swf_sdkv2 "github.com/aws/aws-sdk-go-v2/service/swf" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -53,4 +54,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/synthetics/service_package_gen.go b/internal/service/synthetics/service_package_gen.go index 3b2d1ed037b..4e14ba3a5f1 100644 --- a/internal/service/synthetics/service_package_gen.go +++ b/internal/service/synthetics/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" synthetics_sdkv1 "github.com/aws/aws-sdk-go/service/synthetics" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -63,4 +64,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*s return synthetics_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/timestreamwrite/service_package_gen.go b/internal/service/timestreamwrite/service_package_gen.go index 5017c5dc648..e1a514577f9 100644 --- a/internal/service/timestreamwrite/service_package_gen.go +++ b/internal/service/timestreamwrite/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" timestreamwrite_sdkv1 "github.com/aws/aws-sdk-go/service/timestreamwrite" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -58,4 +59,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*t return timestreamwrite_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/transcribe/service_package_gen.go b/internal/service/transcribe/service_package_gen.go index bafbaa72c0d..2dc96453ab1 100644 --- a/internal/service/transcribe/service_package_gen.go +++ b/internal/service/transcribe/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" transcribe_sdkv2 "github.com/aws/aws-sdk-go-v2/service/transcribe" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -77,4 +78,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/transfer/service_package_gen.go b/internal/service/transfer/service_package_gen.go index 8807cb6d878..b96e4b3032e 100644 --- a/internal/service/transfer/service_package_gen.go +++ b/internal/service/transfer/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" transfer_sdkv1 "github.com/aws/aws-sdk-go/service/transfer" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -83,4 +84,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*t return transfer_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/vpclattice/service_package_gen.go b/internal/service/vpclattice/service_package_gen.go index 1416cc260c2..dd682c2fd80 100644 --- a/internal/service/vpclattice/service_package_gen.go +++ b/internal/service/vpclattice/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" vpclattice_sdkv2 "github.com/aws/aws-sdk-go-v2/service/vpclattice" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -147,4 +148,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/waf/service_package_gen.go b/internal/service/waf/service_package_gen.go index 32b49f0454b..215fcb2c743 100644 --- a/internal/service/waf/service_package_gen.go +++ b/internal/service/waf/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" waf_sdkv1 "github.com/aws/aws-sdk-go/service/waf" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -127,4 +128,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*w return waf_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/wafregional/service_package_gen.go b/internal/service/wafregional/service_package_gen.go index 92b484e9012..2fc3536c951 100644 --- a/internal/service/wafregional/service_package_gen.go +++ b/internal/service/wafregional/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" wafregional_sdkv1 "github.com/aws/aws-sdk-go/service/wafregional" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -131,4 +132,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*w return wafregional_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/wafv2/service_package_gen.go b/internal/service/wafv2/service_package_gen.go index 9a041c3add0..e9ce0dfe4cd 100644 --- a/internal/service/wafv2/service_package_gen.go +++ b/internal/service/wafv2/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" wafv2_sdkv1 "github.com/aws/aws-sdk-go/service/wafv2" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -99,4 +100,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*w return wafv2_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/worklink/service_package_gen.go b/internal/service/worklink/service_package_gen.go index ad7119b0d96..5c5e8b0041b 100644 --- a/internal/service/worklink/service_package_gen.go +++ b/internal/service/worklink/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" worklink_sdkv1 "github.com/aws/aws-sdk-go/service/worklink" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -50,4 +51,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*w return worklink_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/workspaces/service_package_gen.go b/internal/service/workspaces/service_package_gen.go index ef701f6e5f1..009e78f7db8 100644 --- a/internal/service/workspaces/service_package_gen.go +++ b/internal/service/workspaces/service_package_gen.go @@ -8,6 +8,7 @@ import ( aws_sdkv1 "github.com/aws/aws-sdk-go/aws" session_sdkv1 "github.com/aws/aws-sdk-go/aws/session" workspaces_sdkv1 "github.com/aws/aws-sdk-go/service/workspaces" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -83,4 +84,6 @@ func (p *servicePackage) NewConn(ctx context.Context, config map[string]any) (*w return workspaces_sdkv1.New(sess.Copy(&aws_sdkv1.Config{Endpoint: aws_sdkv1.String(config["endpoint"].(string))})), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/service/xray/service_package_gen.go b/internal/service/xray/service_package_gen.go index 6ff2a4a43cf..def73f6ae7d 100644 --- a/internal/service/xray/service_package_gen.go +++ b/internal/service/xray/service_package_gen.go @@ -7,6 +7,7 @@ import ( aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" xray_sdkv2 "github.com/aws/aws-sdk-go-v2/service/xray" + "github.com/hashicorp/terraform-provider-aws/internal/conns" "github.com/hashicorp/terraform-provider-aws/internal/types" "github.com/hashicorp/terraform-provider-aws/names" ) @@ -65,4 +66,6 @@ func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) ( }), nil } -var ServicePackage = &servicePackage{} +func ServicePackage(ctx context.Context) conns.ServicePackage { + return &servicePackage{} +} diff --git a/internal/sweep/service_packages_gen_test.go b/internal/sweep/service_packages_gen_test.go index c056ae1cf1f..4fe11f47a79 100644 --- a/internal/sweep/service_packages_gen_test.go +++ b/internal/sweep/service_packages_gen_test.go @@ -211,210 +211,210 @@ import ( "golang.org/x/exp/slices" ) -func servicePackages(context.Context) []conns.ServicePackage { +func servicePackages(ctx context.Context) []conns.ServicePackage { v := []conns.ServicePackage{ - accessanalyzer.ServicePackage, - account.ServicePackage, - acm.ServicePackage, - acmpca.ServicePackage, - amp.ServicePackage, - amplify.ServicePackage, - apigateway.ServicePackage, - apigatewayv2.ServicePackage, - appautoscaling.ServicePackage, - appconfig.ServicePackage, - appflow.ServicePackage, - appintegrations.ServicePackage, - applicationinsights.ServicePackage, - appmesh.ServicePackage, - apprunner.ServicePackage, - appstream.ServicePackage, - appsync.ServicePackage, - athena.ServicePackage, - auditmanager.ServicePackage, - autoscaling.ServicePackage, - autoscalingplans.ServicePackage, - backup.ServicePackage, - batch.ServicePackage, - budgets.ServicePackage, - ce.ServicePackage, - chime.ServicePackage, - chimesdkmediapipelines.ServicePackage, - chimesdkvoice.ServicePackage, - cleanrooms.ServicePackage, - cloud9.ServicePackage, - cloudcontrol.ServicePackage, - cloudformation.ServicePackage, - cloudfront.ServicePackage, - cloudhsmv2.ServicePackage, - cloudsearch.ServicePackage, - cloudtrail.ServicePackage, - cloudwatch.ServicePackage, - codeartifact.ServicePackage, - codebuild.ServicePackage, - codecommit.ServicePackage, - codegurureviewer.ServicePackage, - codepipeline.ServicePackage, - codestarconnections.ServicePackage, - codestarnotifications.ServicePackage, - cognitoidentity.ServicePackage, - cognitoidp.ServicePackage, - comprehend.ServicePackage, - computeoptimizer.ServicePackage, - configservice.ServicePackage, - connect.ServicePackage, - controltower.ServicePackage, - cur.ServicePackage, - dataexchange.ServicePackage, - datapipeline.ServicePackage, - datasync.ServicePackage, - dax.ServicePackage, - deploy.ServicePackage, - detective.ServicePackage, - devicefarm.ServicePackage, - directconnect.ServicePackage, - dlm.ServicePackage, - dms.ServicePackage, - docdb.ServicePackage, - docdbelastic.ServicePackage, - ds.ServicePackage, - dynamodb.ServicePackage, - ec2.ServicePackage, - ecr.ServicePackage, - ecrpublic.ServicePackage, - ecs.ServicePackage, - efs.ServicePackage, - eks.ServicePackage, - elasticache.ServicePackage, - elasticbeanstalk.ServicePackage, - elasticsearch.ServicePackage, - elastictranscoder.ServicePackage, - elb.ServicePackage, - elbv2.ServicePackage, - emr.ServicePackage, - emrcontainers.ServicePackage, - emrserverless.ServicePackage, - events.ServicePackage, - evidently.ServicePackage, - finspace.ServicePackage, - firehose.ServicePackage, - fis.ServicePackage, - fms.ServicePackage, - fsx.ServicePackage, - gamelift.ServicePackage, - glacier.ServicePackage, - globalaccelerator.ServicePackage, - glue.ServicePackage, - grafana.ServicePackage, - greengrass.ServicePackage, - guardduty.ServicePackage, - healthlake.ServicePackage, - iam.ServicePackage, - identitystore.ServicePackage, - imagebuilder.ServicePackage, - inspector.ServicePackage, - inspector2.ServicePackage, - internetmonitor.ServicePackage, - iot.ServicePackage, - iotanalytics.ServicePackage, - iotevents.ServicePackage, - ivs.ServicePackage, - ivschat.ServicePackage, - kafka.ServicePackage, - kafkaconnect.ServicePackage, - kendra.ServicePackage, - keyspaces.ServicePackage, - kinesis.ServicePackage, - kinesisanalytics.ServicePackage, - kinesisanalyticsv2.ServicePackage, - kinesisvideo.ServicePackage, - kms.ServicePackage, - lakeformation.ServicePackage, - lambda.ServicePackage, - lexmodels.ServicePackage, - licensemanager.ServicePackage, - lightsail.ServicePackage, - location.ServicePackage, - logs.ServicePackage, - macie2.ServicePackage, - mediaconnect.ServicePackage, - mediaconvert.ServicePackage, - medialive.ServicePackage, - mediapackage.ServicePackage, - mediastore.ServicePackage, - memorydb.ServicePackage, - meta.ServicePackage, - mq.ServicePackage, - mwaa.ServicePackage, - neptune.ServicePackage, - networkfirewall.ServicePackage, - networkmanager.ServicePackage, - oam.ServicePackage, - opensearch.ServicePackage, - opensearchserverless.ServicePackage, - opsworks.ServicePackage, - organizations.ServicePackage, - outposts.ServicePackage, - pinpoint.ServicePackage, - pipes.ServicePackage, - pricing.ServicePackage, - qldb.ServicePackage, - quicksight.ServicePackage, - ram.ServicePackage, - rbin.ServicePackage, - rds.ServicePackage, - redshift.ServicePackage, - redshiftdata.ServicePackage, - redshiftserverless.ServicePackage, - resourceexplorer2.ServicePackage, - resourcegroups.ServicePackage, - resourcegroupstaggingapi.ServicePackage, - rolesanywhere.ServicePackage, - route53.ServicePackage, - route53domains.ServicePackage, - route53recoverycontrolconfig.ServicePackage, - route53recoveryreadiness.ServicePackage, - route53resolver.ServicePackage, - rum.ServicePackage, - s3.ServicePackage, - s3control.ServicePackage, - s3outposts.ServicePackage, - sagemaker.ServicePackage, - scheduler.ServicePackage, - schemas.ServicePackage, - secretsmanager.ServicePackage, - securityhub.ServicePackage, - securitylake.ServicePackage, - serverlessrepo.ServicePackage, - servicecatalog.ServicePackage, - servicediscovery.ServicePackage, - servicequotas.ServicePackage, - ses.ServicePackage, - sesv2.ServicePackage, - sfn.ServicePackage, - shield.ServicePackage, - signer.ServicePackage, - simpledb.ServicePackage, - sns.ServicePackage, - sqs.ServicePackage, - ssm.ServicePackage, - ssmcontacts.ServicePackage, - ssmincidents.ServicePackage, - ssoadmin.ServicePackage, - storagegateway.ServicePackage, - sts.ServicePackage, - swf.ServicePackage, - synthetics.ServicePackage, - timestreamwrite.ServicePackage, - transcribe.ServicePackage, - transfer.ServicePackage, - vpclattice.ServicePackage, - waf.ServicePackage, - wafregional.ServicePackage, - wafv2.ServicePackage, - worklink.ServicePackage, - workspaces.ServicePackage, - xray.ServicePackage, + accessanalyzer.ServicePackage(ctx), + account.ServicePackage(ctx), + acm.ServicePackage(ctx), + acmpca.ServicePackage(ctx), + amp.ServicePackage(ctx), + amplify.ServicePackage(ctx), + apigateway.ServicePackage(ctx), + apigatewayv2.ServicePackage(ctx), + appautoscaling.ServicePackage(ctx), + appconfig.ServicePackage(ctx), + appflow.ServicePackage(ctx), + appintegrations.ServicePackage(ctx), + applicationinsights.ServicePackage(ctx), + appmesh.ServicePackage(ctx), + apprunner.ServicePackage(ctx), + appstream.ServicePackage(ctx), + appsync.ServicePackage(ctx), + athena.ServicePackage(ctx), + auditmanager.ServicePackage(ctx), + autoscaling.ServicePackage(ctx), + autoscalingplans.ServicePackage(ctx), + backup.ServicePackage(ctx), + batch.ServicePackage(ctx), + budgets.ServicePackage(ctx), + ce.ServicePackage(ctx), + chime.ServicePackage(ctx), + chimesdkmediapipelines.ServicePackage(ctx), + chimesdkvoice.ServicePackage(ctx), + cleanrooms.ServicePackage(ctx), + cloud9.ServicePackage(ctx), + cloudcontrol.ServicePackage(ctx), + cloudformation.ServicePackage(ctx), + cloudfront.ServicePackage(ctx), + cloudhsmv2.ServicePackage(ctx), + cloudsearch.ServicePackage(ctx), + cloudtrail.ServicePackage(ctx), + cloudwatch.ServicePackage(ctx), + codeartifact.ServicePackage(ctx), + codebuild.ServicePackage(ctx), + codecommit.ServicePackage(ctx), + codegurureviewer.ServicePackage(ctx), + codepipeline.ServicePackage(ctx), + codestarconnections.ServicePackage(ctx), + codestarnotifications.ServicePackage(ctx), + cognitoidentity.ServicePackage(ctx), + cognitoidp.ServicePackage(ctx), + comprehend.ServicePackage(ctx), + computeoptimizer.ServicePackage(ctx), + configservice.ServicePackage(ctx), + connect.ServicePackage(ctx), + controltower.ServicePackage(ctx), + cur.ServicePackage(ctx), + dataexchange.ServicePackage(ctx), + datapipeline.ServicePackage(ctx), + datasync.ServicePackage(ctx), + dax.ServicePackage(ctx), + deploy.ServicePackage(ctx), + detective.ServicePackage(ctx), + devicefarm.ServicePackage(ctx), + directconnect.ServicePackage(ctx), + dlm.ServicePackage(ctx), + dms.ServicePackage(ctx), + docdb.ServicePackage(ctx), + docdbelastic.ServicePackage(ctx), + ds.ServicePackage(ctx), + dynamodb.ServicePackage(ctx), + ec2.ServicePackage(ctx), + ecr.ServicePackage(ctx), + ecrpublic.ServicePackage(ctx), + ecs.ServicePackage(ctx), + efs.ServicePackage(ctx), + eks.ServicePackage(ctx), + elasticache.ServicePackage(ctx), + elasticbeanstalk.ServicePackage(ctx), + elasticsearch.ServicePackage(ctx), + elastictranscoder.ServicePackage(ctx), + elb.ServicePackage(ctx), + elbv2.ServicePackage(ctx), + emr.ServicePackage(ctx), + emrcontainers.ServicePackage(ctx), + emrserverless.ServicePackage(ctx), + events.ServicePackage(ctx), + evidently.ServicePackage(ctx), + finspace.ServicePackage(ctx), + firehose.ServicePackage(ctx), + fis.ServicePackage(ctx), + fms.ServicePackage(ctx), + fsx.ServicePackage(ctx), + gamelift.ServicePackage(ctx), + glacier.ServicePackage(ctx), + globalaccelerator.ServicePackage(ctx), + glue.ServicePackage(ctx), + grafana.ServicePackage(ctx), + greengrass.ServicePackage(ctx), + guardduty.ServicePackage(ctx), + healthlake.ServicePackage(ctx), + iam.ServicePackage(ctx), + identitystore.ServicePackage(ctx), + imagebuilder.ServicePackage(ctx), + inspector.ServicePackage(ctx), + inspector2.ServicePackage(ctx), + internetmonitor.ServicePackage(ctx), + iot.ServicePackage(ctx), + iotanalytics.ServicePackage(ctx), + iotevents.ServicePackage(ctx), + ivs.ServicePackage(ctx), + ivschat.ServicePackage(ctx), + kafka.ServicePackage(ctx), + kafkaconnect.ServicePackage(ctx), + kendra.ServicePackage(ctx), + keyspaces.ServicePackage(ctx), + kinesis.ServicePackage(ctx), + kinesisanalytics.ServicePackage(ctx), + kinesisanalyticsv2.ServicePackage(ctx), + kinesisvideo.ServicePackage(ctx), + kms.ServicePackage(ctx), + lakeformation.ServicePackage(ctx), + lambda.ServicePackage(ctx), + lexmodels.ServicePackage(ctx), + licensemanager.ServicePackage(ctx), + lightsail.ServicePackage(ctx), + location.ServicePackage(ctx), + logs.ServicePackage(ctx), + macie2.ServicePackage(ctx), + mediaconnect.ServicePackage(ctx), + mediaconvert.ServicePackage(ctx), + medialive.ServicePackage(ctx), + mediapackage.ServicePackage(ctx), + mediastore.ServicePackage(ctx), + memorydb.ServicePackage(ctx), + meta.ServicePackage(ctx), + mq.ServicePackage(ctx), + mwaa.ServicePackage(ctx), + neptune.ServicePackage(ctx), + networkfirewall.ServicePackage(ctx), + networkmanager.ServicePackage(ctx), + oam.ServicePackage(ctx), + opensearch.ServicePackage(ctx), + opensearchserverless.ServicePackage(ctx), + opsworks.ServicePackage(ctx), + organizations.ServicePackage(ctx), + outposts.ServicePackage(ctx), + pinpoint.ServicePackage(ctx), + pipes.ServicePackage(ctx), + pricing.ServicePackage(ctx), + qldb.ServicePackage(ctx), + quicksight.ServicePackage(ctx), + ram.ServicePackage(ctx), + rbin.ServicePackage(ctx), + rds.ServicePackage(ctx), + redshift.ServicePackage(ctx), + redshiftdata.ServicePackage(ctx), + redshiftserverless.ServicePackage(ctx), + resourceexplorer2.ServicePackage(ctx), + resourcegroups.ServicePackage(ctx), + resourcegroupstaggingapi.ServicePackage(ctx), + rolesanywhere.ServicePackage(ctx), + route53.ServicePackage(ctx), + route53domains.ServicePackage(ctx), + route53recoverycontrolconfig.ServicePackage(ctx), + route53recoveryreadiness.ServicePackage(ctx), + route53resolver.ServicePackage(ctx), + rum.ServicePackage(ctx), + s3.ServicePackage(ctx), + s3control.ServicePackage(ctx), + s3outposts.ServicePackage(ctx), + sagemaker.ServicePackage(ctx), + scheduler.ServicePackage(ctx), + schemas.ServicePackage(ctx), + secretsmanager.ServicePackage(ctx), + securityhub.ServicePackage(ctx), + securitylake.ServicePackage(ctx), + serverlessrepo.ServicePackage(ctx), + servicecatalog.ServicePackage(ctx), + servicediscovery.ServicePackage(ctx), + servicequotas.ServicePackage(ctx), + ses.ServicePackage(ctx), + sesv2.ServicePackage(ctx), + sfn.ServicePackage(ctx), + shield.ServicePackage(ctx), + signer.ServicePackage(ctx), + simpledb.ServicePackage(ctx), + sns.ServicePackage(ctx), + sqs.ServicePackage(ctx), + ssm.ServicePackage(ctx), + ssmcontacts.ServicePackage(ctx), + ssmincidents.ServicePackage(ctx), + ssoadmin.ServicePackage(ctx), + storagegateway.ServicePackage(ctx), + sts.ServicePackage(ctx), + swf.ServicePackage(ctx), + synthetics.ServicePackage(ctx), + timestreamwrite.ServicePackage(ctx), + transcribe.ServicePackage(ctx), + transfer.ServicePackage(ctx), + vpclattice.ServicePackage(ctx), + waf.ServicePackage(ctx), + wafregional.ServicePackage(ctx), + wafv2.ServicePackage(ctx), + worklink.ServicePackage(ctx), + workspaces.ServicePackage(ctx), + xray.ServicePackage(ctx), } return slices.Clone(v)