Skip to content

Commit

Permalink
r/aws_route53profiles_association: clean up timeout configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jar-b committed Oct 23, 2024
1 parent 57ae43c commit 60e4572
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/route53profiles/association.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func newResourceAssociation(_ context.Context) (resource.ResourceWithConfigure,
r := &resourceAssociation{}

r.SetDefaultCreateTimeout(30 * time.Minute)
r.SetDefaultUpdateTimeout(30 * time.Minute)
r.SetDefaultUpdateTimeout(5 * time.Minute) // tags only
r.SetDefaultDeleteTimeout(30 * time.Minute)

return r, nil
Expand Down Expand Up @@ -119,7 +119,7 @@ func (r *resourceAssociation) Schema(ctx context.Context, req resource.SchemaReq
Blocks: map[string]schema.Block{
names.AttrTimeouts: timeouts.Block(ctx, timeouts.Opts{
Create: true,
Read: true,
Update: true,
Delete: true,
}),
},
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/route53profiles_association.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ This resource exports the following attributes in addition to the arguments abov
[Configuration options](https://developer.hashicorp.com/terraform/language/resources/syntax#operation-timeouts):

* `create` - (Default `30m`)
* `update` - (Default `5m`)
* `delete` - (Default `30m`)

## Import
Expand Down

0 comments on commit 60e4572

Please sign in to comment.