Skip to content

Commit

Permalink
Fix golangci-lint 'SA1019: resource.UniqueId is deprecated: Use helpe…
Browse files Browse the repository at this point in the history
…r/id package instead.'.
  • Loading branch information
ewbankkit committed May 4, 2023
1 parent c546e22 commit 6cfe545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/appintegrations/data_integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/aws/aws-sdk-go/service/appintegrationsservice"
"github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2/tfawserr"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/id"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
"github.com/hashicorp/terraform-provider-aws/internal/conns"
Expand Down Expand Up @@ -108,7 +108,7 @@ func resourceDataIntegrationCreate(ctx context.Context, d *schema.ResourceData,

name := d.Get("name").(string)
input := &appintegrationsservice.CreateDataIntegrationInput{
ClientToken: aws.String(resource.UniqueId()),
ClientToken: aws.String(id.UniqueId()),
KmsKey: aws.String(d.Get("kms_key").(string)),
Name: aws.String(name),
ScheduleConfig: expandScheduleConfig(d.Get("schedule_config").([]interface{})),
Expand Down

0 comments on commit 6cfe545

Please sign in to comment.