Class CfnSubnetPropsMixin.BlockPublicAccessStatesProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnSubnetPropsMixin.BlockPublicAccessStatesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubnetPropsMixin.BlockPublicAccessStatesProperty>
- Enclosing interface:
CfnSubnetPropsMixin.BlockPublicAccessStatesProperty
@Stability(Stable)
public static final class CfnSubnetPropsMixin.BlockPublicAccessStatesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSubnetPropsMixin.BlockPublicAccessStatesProperty>
A builder for
CfnSubnetPropsMixin.BlockPublicAccessStatesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.internetGatewayBlockMode(String internetGatewayBlockMode)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
internetGatewayBlockMode
@Stability(Stable) public CfnSubnetPropsMixin.BlockPublicAccessStatesProperty.Builder internetGatewayBlockMode(String internetGatewayBlockMode) - Parameters:
internetGatewayBlockMode- 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.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSubnetPropsMixin.BlockPublicAccessStatesProperty>- Returns:
- a new instance of
CfnSubnetPropsMixin.BlockPublicAccessStatesProperty - Throws:
NullPointerException- if any required attribute was not provided
-