interface CfnVPCBlockPublicAccessExclusionProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.CfnVPCBlockPublicAccessExclusionProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnVPCBlockPublicAccessExclusionProps |
Java | software.amazon.awscdk.services.ec2.CfnVPCBlockPublicAccessExclusionProps |
Python | aws_cdk.aws_ec2.CfnVPCBlockPublicAccessExclusionProps |
TypeScript | aws-cdk-lib » aws_ec2 » CfnVPCBlockPublicAccessExclusionProps |
Properties for defining a CfnVPCBlockPublicAccessExclusion.
Example
// 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
| Name | Type | Description |
|---|---|---|
| internet | string | The desired VPC Block Public Access mode for a specific VPC or subnet exclusion. |
| subnet | string | The ID of the subnet you want to exclude. |
| tags? | Cfn[] | An array of key-value pairs to apply to this resource. |
| vpc | string | The ID of the VPC you want to exclude. |
internetGatewayExclusionMode
Type:
string
The desired VPC Block Public Access mode for a specific VPC or subnet exclusion.
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.
subnetId?
Type:
string
(optional)
The ID of the subnet you want to exclude.
Required only if you don't specify VpcId.
tags?
Type:
Cfn[]
(optional)
An array of key-value pairs to apply to this resource.
vpcId?
Type:
string
(optional)
The ID of the VPC you want to exclude.
Required only if you don't specify SubnetId.

.NET
Go
Java
Python
TypeScript