Skip to content

Commit dcbc1df

Browse files
committed
xray
1 parent 5927ae8 commit dcbc1df

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

internal/service/xray/encryption_config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/aws/aws-sdk-go-v2/service/xray"
1313
"github.com/aws/aws-sdk-go-v2/service/xray/types"
1414
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
15-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"
15+
sdkretry "github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"
1616
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
1717
"github.com/hashicorp/terraform-provider-aws/internal/conns"
1818
"github.com/hashicorp/terraform-provider-aws/internal/enum"
@@ -115,7 +115,7 @@ func findEncryptionConfig(ctx context.Context, conn *xray.Client) (*types.Encryp
115115
return output.EncryptionConfig, nil
116116
}
117117

118-
func statusEncryptionConfig(ctx context.Context, conn *xray.Client) retry.StateRefreshFunc {
118+
func statusEncryptionConfig(ctx context.Context, conn *xray.Client) sdkretry.StateRefreshFunc {
119119
return func() (any, string, error) {
120120
output, err := findEncryptionConfig(ctx, conn)
121121

@@ -135,7 +135,7 @@ func waitEncryptionConfigAvailable(ctx context.Context, conn *xray.Client) (*typ
135135
const (
136136
timeout = 15 * time.Minute
137137
)
138-
stateConf := &retry.StateChangeConf{
138+
stateConf := &sdkretry.StateChangeConf{
139139
Pending: enum.Slice(types.EncryptionStatusUpdating),
140140
Target: enum.Slice(types.EncryptionStatusActive),
141141
Refresh: statusEncryptionConfig(ctx, conn),

internal/service/xray/group.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/aws/aws-sdk-go-v2/service/xray"
1212
"github.com/aws/aws-sdk-go-v2/service/xray/types"
1313
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
14-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"
14+
sdkretry "github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"
1515
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
1616
"github.com/hashicorp/terraform-provider-aws/internal/conns"
1717
"github.com/hashicorp/terraform-provider-aws/internal/errs"
@@ -178,7 +178,7 @@ func findGroupByARN(ctx context.Context, conn *xray.Client, arn string) (*types.
178178
output, err := conn.GetGroup(ctx, &input)
179179

180180
if errs.IsAErrorMessageContains[*types.InvalidRequestException](err, "Group not found") {
181-
return nil, &retry.NotFoundError{
181+
return nil, &sdkretry.NotFoundError{
182182
LastError: err,
183183
LastRequest: input,
184184
}

internal/service/xray/resource_policy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"github.com/hashicorp/terraform-plugin-framework/resource"
1717
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
1818
"github.com/hashicorp/terraform-plugin-framework/types"
19-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"
19+
sdkretry "github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"
2020
"github.com/hashicorp/terraform-provider-aws/internal/create"
2121
"github.com/hashicorp/terraform-provider-aws/internal/errs"
2222
"github.com/hashicorp/terraform-provider-aws/internal/framework"
@@ -212,7 +212,7 @@ func findResourcePolicies(ctx context.Context, conn *xray.Client, input *xray.Li
212212
page, err := pages.NextPage(ctx)
213213

214214
if errs.IsA[*awstypes.ResourceNotFoundException](err) {
215-
return nil, &retry.NotFoundError{
215+
return nil, &sdkretry.NotFoundError{
216216
LastError: err,
217217
LastRequest: input,
218218
}

internal/service/xray/sampling_rule.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/aws/aws-sdk-go-v2/service/xray"
1212
"github.com/aws/aws-sdk-go-v2/service/xray/types"
1313
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
14-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"
14+
sdkretry "github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"
1515
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
1616
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
1717
"github.com/hashicorp/terraform-provider-aws/internal/conns"
@@ -258,5 +258,5 @@ func findSamplingRuleByName(ctx context.Context, conn *xray.Client, name string)
258258
}
259259
}
260260

261-
return nil, &retry.NotFoundError{}
261+
return nil, &sdkretry.NotFoundError{}
262262
}

0 commit comments

Comments
 (0)