Skip to content

Commit

Permalink
update resource name mentioned in deprecation msg
Browse files Browse the repository at this point in the history
  • Loading branch information
anGie44 committed Jan 26, 2022
1 parent b131b53 commit 607d816
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .changelog/22614.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```release-note:note
resource/aws_s3_bucket: The `website`, `website_domain`, and `website_endpoints` arguments have been deprecated and are now read-only.
resource/aws_s3_bucket: The `website`, `website_domain`, and `website_endpoints` arguments have been deprecated and are now read-only. Use the `aws_s3_bucket_website_configuration` resource instead when available in a future minor version.
```
14 changes: 7 additions & 7 deletions internal/service/s3/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,31 +164,31 @@ func ResourceBucket() *schema.Resource {
"website": {
Type: schema.TypeList,
Computed: true,
Deprecated: "Use the aws_s3_bucket_website resource instead when available in a future minor version",
Deprecated: "Use the aws_s3_bucket_website_configuration resource instead when available in a future minor version",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"index_document": {
Type: schema.TypeString,
Computed: true,
Deprecated: "Use the aws_s3_bucket_website resource instead when available in a future minor version",
Deprecated: "Use the aws_s3_bucket_website_configuration resource instead when available in a future minor version",
},

"error_document": {
Type: schema.TypeString,
Computed: true,
Deprecated: "Use the aws_s3_bucket_website resource instead when available in a future minor version",
Deprecated: "Use the aws_s3_bucket_website_configuration resource instead when available in a future minor version",
},

"redirect_all_requests_to": {
Type: schema.TypeString,
Computed: true,
Deprecated: "Use the aws_s3_bucket_website resource instead when available in a future minor version",
Deprecated: "Use the aws_s3_bucket_website_configuration resource instead when available in a future minor version",
},

"routing_rules": {
Type: schema.TypeString,
Computed: true,
Deprecated: "Use the aws_s3_bucket_website resource instead when available in a future minor version",
Deprecated: "Use the aws_s3_bucket_website_configuration resource instead when available in a future minor version",
},
},
},
Expand All @@ -207,12 +207,12 @@ func ResourceBucket() *schema.Resource {
"website_endpoint": {
Type: schema.TypeString,
Computed: true,
Deprecated: "Use the aws_s3_bucket_website resource instead when available in a future minor version",
Deprecated: "Use the aws_s3_bucket_website_configuration resource instead when available in a future minor version",
},
"website_domain": {
Type: schema.TypeString,
Computed: true,
Deprecated: "Use the aws_s3_bucket_website resource instead when available in a future minor version",
Deprecated: "Use the aws_s3_bucket_website_configuration resource instead when available in a future minor version",
},

"versioning": {
Expand Down

0 comments on commit 607d816

Please sign in to comment.