Skip to main content

snapshot_block_public_access

Gets or updates an individual snapshot_block_public_access resource, use snapshot_block_public_accesses to retrieve a list of resources or to create or delete a resource.

Overview

Namesnapshot_block_public_access
TypeResource
DescriptionResource Type definition for AWS::EC2::SnapshotBlockPublicAccess
Idaws.ec2.snapshot_block_public_access

Fields

NameDatatypeDescription
statestringThe state of EBS Snapshot Block Public Access.
account_idstringThe identifier for the specified AWS account.
regionstringAWS region.

Methods

NameAccessible byRequired Params
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
get_resourceSELECTdata__Identifier, region

SELECT Example

SELECT
region,
state,
account_id
FROM aws.ec2.snapshot_block_public_access
WHERE region = 'us-east-1' AND data__Identifier = '<AccountId>';

Permissions

To operate on the snapshot_block_public_access resource, the following permissions are required:

Read

ec2:GetSnapshotBlockPublicAccessState

Update

ec2:EnableSnapshotBlockPublicAccess,
ec2:GetSnapshotBlockPublicAccessState