interface BlockPublicAccessStatesProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.EC2.Mixins.CfnSubnetPropsMixin.BlockPublicAccessStatesProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsec2/mixins#CfnSubnetPropsMixin_BlockPublicAccessStatesProperty |
Java | software.amazon.awscdk.mixins.preview.services.ec2.mixins.CfnSubnetPropsMixin.BlockPublicAccessStatesProperty |
Python | aws_cdk.mixins_preview.aws_ec2.mixins.CfnSubnetPropsMixin.BlockPublicAccessStatesProperty |
TypeScript | @aws-cdk/mixins-preview » aws_ec2 » mixins » CfnSubnetPropsMixin » BlockPublicAccessStatesProperty |
Specifies the state of VPC Block Public Access (BPA).
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as ec2_mixins } from '@aws-cdk/mixins-preview/aws-ec2';
const blockPublicAccessStatesProperty: ec2_mixins.CfnSubnetPropsMixin.BlockPublicAccessStatesProperty = {
internetGatewayBlockMode: 'internetGatewayBlockMode',
};
Properties
| Name | Type | Description |
|---|---|---|
| internet | string | The mode of VPC BPA. |
internetGatewayBlockMode?
Type:
string
(optional)
The mode of VPC BPA.
off: VPC BPA is not enabled and traffic is allowed to and from internet gateways and egress-only internet gateways in this Region.block-bidirectional: Block all traffic to and from internet gateways and egress-only internet gateways in this Region (except for excluded VPCs and subnets).block-ingress: Block all internet traffic to the VPCs in this Region (except for VPCs or subnets which are excluded). Only traffic to and from NAT gateways and egress-only internet gateways is allowed because these gateways only allow outbound connections to be established.

.NET
Go
Java
Python
TypeScript