alicloud_oss_account_public_access_block
更新时间:
Provides a OSS Account Public Access Block resource. Blocking public access at the account level.
For information about OSS Account Public Access Block and how to use it, see What is Account Public Access Block.
-> NOTE: Available since v1.224.0.
Example Usage
Basic Usage
variable "name" {
default = "terraform-example"
}
provider "alicloud" {
region = "cn-hangzhou"
}
resource "alicloud_oss_account_public_access_block" "default" {
block_public_access = true
}
Argument Reference
The following arguments are supported:
block_public_access
- (Required) Whether or not AlibabaCloud OSS should block public bucket policies for buckets in this account is enabled.
Attributes Reference
The following attributes are exported:
id
- The ID of the resource supplied above.The value is formulated as ``.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Account Public Access Block.delete
- (Defaults to 5 mins) Used when delete the Account Public Access Block.update
- (Defaults to 5 mins) Used when update the Account Public Access Block.
Import
OSS Account Public Access Block can be imported using the id, e.g.
$ terraform import alicloud_oss_account_public_access_block.example
文档内容是否对您有帮助?