Skip to content

Commit 50e8ff8

Browse files
committed
s3vectors
1 parent e6d6677 commit 50e8ff8

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

internal/service/s3vectors/index.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ import (
1717
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
1818
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
1919
"github.com/hashicorp/terraform-plugin-framework/types"
20-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"
2120
"github.com/hashicorp/terraform-provider-aws/internal/errs"
2221
"github.com/hashicorp/terraform-provider-aws/internal/errs/fwdiag"
2322
"github.com/hashicorp/terraform-provider-aws/internal/framework"
2423
fwflex "github.com/hashicorp/terraform-provider-aws/internal/framework/flex"
2524
fwtypes "github.com/hashicorp/terraform-provider-aws/internal/framework/types"
25+
"github.com/hashicorp/terraform-provider-aws/internal/retry"
2626
tftags "github.com/hashicorp/terraform-provider-aws/internal/tags"
2727
"github.com/hashicorp/terraform-provider-aws/internal/tfresource"
2828
"github.com/hashicorp/terraform-provider-aws/names"
@@ -230,8 +230,7 @@ func findIndex(ctx context.Context, conn *s3vectors.Client, input *s3vectors.Get
230230

231231
if errs.IsA[*awstypes.NotFoundException](err) {
232232
return nil, &retry.NotFoundError{
233-
LastError: err,
234-
LastRequest: input,
233+
LastError: err,
235234
}
236235
}
237236

internal/service/s3vectors/vector_bucket.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ import (
2020
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
2121
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
2222
"github.com/hashicorp/terraform-plugin-framework/types"
23-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"
2423
"github.com/hashicorp/terraform-provider-aws/internal/errs"
2524
"github.com/hashicorp/terraform-provider-aws/internal/errs/fwdiag"
2625
"github.com/hashicorp/terraform-provider-aws/internal/framework"
2726
fwflex "github.com/hashicorp/terraform-provider-aws/internal/framework/flex"
2827
fwtypes "github.com/hashicorp/terraform-provider-aws/internal/framework/types"
2928
tfstringvalidator "github.com/hashicorp/terraform-provider-aws/internal/framework/validators/stringvalidator"
29+
"github.com/hashicorp/terraform-provider-aws/internal/retry"
3030
tftags "github.com/hashicorp/terraform-provider-aws/internal/tags"
3131
"github.com/hashicorp/terraform-provider-aws/internal/tfresource"
3232
"github.com/hashicorp/terraform-provider-aws/names"
@@ -242,8 +242,7 @@ func findVectorBucket(ctx context.Context, conn *s3vectors.Client, input *s3vect
242242

243243
if errs.IsA[*awstypes.NotFoundException](err) {
244244
return nil, &retry.NotFoundError{
245-
LastError: err,
246-
LastRequest: input,
245+
LastError: err,
247246
}
248247
}
249248

internal/service/s3vectors/vector_bucket_policy.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ import (
1414
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
1515
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
1616
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
17-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry"
1817
"github.com/hashicorp/terraform-provider-aws/internal/errs"
1918
"github.com/hashicorp/terraform-provider-aws/internal/errs/fwdiag"
2019
"github.com/hashicorp/terraform-provider-aws/internal/framework"
2120
fwflex "github.com/hashicorp/terraform-provider-aws/internal/framework/flex"
2221
fwtypes "github.com/hashicorp/terraform-provider-aws/internal/framework/types"
22+
"github.com/hashicorp/terraform-provider-aws/internal/retry"
2323
"github.com/hashicorp/terraform-provider-aws/internal/tfresource"
2424
"github.com/hashicorp/terraform-provider-aws/names"
2525
)
@@ -188,8 +188,7 @@ func findVectorBucketPolicy(ctx context.Context, conn *s3vectors.Client, input *
188188

189189
if errs.IsA[*awstypes.NotFoundException](err) {
190190
return nil, &retry.NotFoundError{
191-
LastError: err,
192-
LastRequest: input,
191+
LastError: err,
193192
}
194193
}
195194

0 commit comments

Comments
 (0)