AWS::EC2::SnapshotBlockPublicAccessResource Type definition for AWS::EC2::SnapshotBlockPublicAccess
1 configurable property. 1 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
State | string | Required |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
AccountId | string | The identifier for the specified AWS account. |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::SnapshotBlockPublicAccess
Resources:
MyResource:
Type: AWS::EC2::SnapshotBlockPublicAccess
Properties:
State: "block-all-sharing"Permissions CloudFormation needs in your IAM role to manage this resource.
ec2:EnableSnapshotBlockPublicAccessec2:GetSnapshotBlockPublicAccessStateec2:GetSnapshotBlockPublicAccessStateec2:EnableSnapshotBlockPublicAccessec2:GetSnapshotBlockPublicAccessStateec2:DisableSnapshotBlockPublicAccessec2:GetSnapshotBlockPublicAccessStateec2:GetSnapshotBlockPublicAccessStateEverything you need to know about EC2 on one page. HD quality, print-friendly.
Download Free InfographicAccountId