Enables block public access for AMIs at the account level in the specified Amazon Web Services Region
Source:R/ec2_operations.R
ec2_enable_image_block_public_access.RdEnables block public access for AMIs at the account level in the specified Amazon Web Services Region. This prevents the public sharing of your AMIs. However, if you already have public AMIs, they will remain publicly available.
See https://www.paws-r-sdk.com/docs/ec2_enable_image_block_public_access/ for full documentation.
Arguments
- ImageBlockPublicAccessState
[required] Specify
block-new-sharingto enable block public access for AMIs at the account level in the specified Region. This will block any attempt to publicly share your AMIs in the specified Region.- DryRun
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.