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
Name | snapshot_block_public_access |
Type | Resource |
Description | Resource Type definition for AWS::EC2::SnapshotBlockPublicAccess |
Id | aws.ec2.snapshot_block_public_access |
Fields
Name | Datatype | Description |
---|---|---|
state | string | The state of EBS Snapshot Block Public Access. |
account_id | string | The identifier for the specified AWS account. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
get_resource | SELECT | data__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