---
type: resource-type
title: VPCBlockPublicAccessExclusion
description: aws resource type AWS::EC2::VPCBlockPublicAccessExclusion
name: VPCBlockPublicAccessExclusion
lexicon: aws
resource_type: AWS::EC2::VPCBlockPublicAccessExclusion
---
`AWS::EC2::VPCBlockPublicAccessExclusion`, a resource type of the aws lexicon.

## Properties

- `InternetGatewayExclusionMode` (`"allow-bidirectional" | "allow-egress"`, required): The desired Block Public Access Exclusion Mode for a specific VPC/Subnet.
- `ExclusionId` (`string`, optional): The ID of the exclusion
- `SubnetId` (`string`, optional): The ID of the subnet. Required only if you don't specify VpcId
- `Tags` (`VPCBlockPublicAccessExclusion_Tag[]`, optional): An array of key-value pairs to apply to this resource.
- `VpcId` (`string`, optional): The ID of the vpc. Required only if you don't specify SubnetId.

## Attributes

- `ExclusionId`
