Class CfnVPCBlockPublicAccessOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnVPCBlockPublicAccessOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPCBlockPublicAccessOptions>
- Enclosing class:
CfnVPCBlockPublicAccessOptions
@Stability(Stable)
public static final class CfnVPCBlockPublicAccessOptions.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPCBlockPublicAccessOptions>
A fluent builder for
CfnVPCBlockPublicAccessOptions
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
internetGatewayBlockMode
(String internetGatewayBlockMode) The desired VPC Block Public Access mode for internet gateways in your account.
-
Method Details
-
create
@Stability(Stable) public static CfnVPCBlockPublicAccessOptions.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnVPCBlockPublicAccessOptions.Builder
.
-
internetGatewayBlockMode
@Stability(Stable) public CfnVPCBlockPublicAccessOptions.Builder internetGatewayBlockMode(String 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.
- Parameters:
internetGatewayBlockMode
- The desired VPC Block Public Access mode for internet gateways in your account. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVPCBlockPublicAccessOptions>
- Returns:
- a newly built instance of
CfnVPCBlockPublicAccessOptions
.
-