Expand description
Provides a regional public access block for AMIs. This prevents AMIs from being made publicly accessible. If you already have public AMIs, they will remain publicly available.
NOTE: Deleting this resource does not change the block public access value, the resource in simply removed from state instead.
§Example Usage
ⓘ
use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
let test = image_block_public_access::create(
"test",
ImageBlockPublicAccessArgs::builder().state("block-new-sharing").build_struct(),
);
}
§Import
You cannot import this resource.
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