ec2_enable_image_block_public_access: Enables block public access for AMIs at the account level in...

View source: R/ec2_operations.R

ec2_enable_image_block_public_accessR Documentation

Enables block public access for AMIs at the account level in the specified Amazon Web Services Region

Description

Enables 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.

Usage

ec2_enable_image_block_public_access(
  ImageBlockPublicAccessState,
  DryRun = NULL
)

Arguments

ImageBlockPublicAccessState

[required] Specify block-new-sharing to 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 is UnauthorizedOperation.


paws.compute documentation built on May 29, 2024, 9:16 a.m.