Expand description
Manages S3 account-level Public Access Block configuration. For more information about these settings, see the AWS S3 Block Public Access documentation.
NOTE: Each AWS account may only have one S3 Public Access Block configuration. Multiple configurations of the resource against the same AWS account will cause a perpetual difference.
Advanced usage: To use a custom API endpoint for this resource, use the
s3control
endpoint provider configuration, not thes3
endpoint provider configuration.
§Example Usage
ⓘ
use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
let example = account_public_access_block::create(
"example",
AccountPublicAccessBlockArgs::builder()
.block_public_acls(true)
.block_public_policy(true)
.build_struct(),
);
}
§Import
Using pulumi import
, import aws_s3_account_public_access_block
using the AWS account ID. For example:
$ pulumi import aws:s3/accountPublicAccessBlock:AccountPublicAccessBlock example 123456789012
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments