CfnVPCBlockPublicAccessExclusionProps Struct
Properties for defining a CfnVPCBlockPublicAccessExclusion.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnVPCBlockPublicAccessExclusionProps: ec2.CfnVPCBlockPublicAccessExclusionProps = {
internetGatewayExclusionMode: 'internetGatewayExclusionMode',
// the properties below are optional
subnetId: 'subnetId',
tags: [{
key: 'key',
value: 'value',
}],
vpcId: 'vpcId',
};
Properties
internetGatewayExclusionModestringinternet_gateway_exclusion_modestrinternetGatewayExclusionModeStringInternetGatewayExclusionModestringInternetGatewayExclusionMode*stringrequired#The desired VPC Block Public Access mode for a specific VPC or subnet exclusion.
notes
allow-bidirectional: Allow all internet traffic to and from the excluded VPCs and subnets.allow-egress: Allow outbound internet traffic from the excluded VPCs and subnets. Block inbound internet traffic to the excluded VPCs and subnets. Only applies when VPC Block Public Access is set toblock-bidirectional.
The ID of the subnet you want to exclude.
Required only if you don't specify VpcId.
An array of key-value pairs to apply to this resource.
The ID of the VPC you want to exclude.
Required only if you don't specify SubnetId.