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