Class CfnVPCBlockPublicAccessOptionsMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnVPCBlockPublicAccessOptionsMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPCBlockPublicAccessOptionsMixinProps>
- Enclosing interface:
CfnVPCBlockPublicAccessOptionsMixinProps
@Stability(Stable)
public static final class CfnVPCBlockPublicAccessOptionsMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPCBlockPublicAccessOptionsMixinProps>
A builder for
CfnVPCBlockPublicAccessOptionsMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.internetGatewayBlockMode(String internetGatewayBlockMode) Sets the value ofCfnVPCBlockPublicAccessOptionsMixinProps.getInternetGatewayBlockMode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
internetGatewayBlockMode
@Stability(Stable) public CfnVPCBlockPublicAccessOptionsMixinProps.Builder internetGatewayBlockMode(String internetGatewayBlockMode) Sets the value ofCfnVPCBlockPublicAccessOptionsMixinProps.getInternetGatewayBlockMode()- Parameters:
internetGatewayBlockMode- The desired VPC Block Public Access mode for internet gateways in your account. We do not allow you to create this resource type in an "off" mode since off is the default value.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<CfnVPCBlockPublicAccessOptionsMixinProps>- Returns:
- a new instance of
CfnVPCBlockPublicAccessOptionsMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-