AWS Fundamentals Logo
AWS Fundamentals
AWS::EC2::VPCBlockPublicAccessOptions

EC2 VPCBlockPublicAccessOptions

Resource Type definition for AWS::EC2::VPCBlockPublicAccessOptions

Properties

1 configurable property. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
InternetGatewayBlockMode
string
Required

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
AccountIdstringThe identifier for the specified AWS account.
ExclusionsAllowedstringDetermines if exclusions are allowed. If you have enabled VPC BPA at the Organization level, exclusions may be not-allowed. Otherwise, they are allowed.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::VPCBlockPublicAccessOptions

Resources:
  MyResource:
    Type: AWS::EC2::VPCBlockPublicAccessOptions
    Properties:
      InternetGatewayBlockMode: "block-bidirectional"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

ec2:DescribeVpcBlockPublicAccessOptionsec2:ModifyVpcBlockPublicAccessOptions

read

ec2:DescribeVpcBlockPublicAccessOptions

update

ec2:DescribeVpcBlockPublicAccessOptionsec2:ModifyVpcBlockPublicAccessOptions

delete

ec2:DescribeVpcBlockPublicAccessOptionsec2:ModifyVpcBlockPublicAccessOptions

Get the EC2 Cheat Sheet

Everything you need to know about EC2 on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceEC2
Properties3
Required1
TaggingNot supported
Primary IDAccountId

Supported Operations

CreateReadUpdateDelete

External Links