Class CfnVPCBlockPublicAccessOptionsPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnVPCBlockPublicAccessOptionsPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPCBlockPublicAccessOptionsPropsMixin>
- Enclosing class:
CfnVPCBlockPublicAccessOptionsPropsMixin
@Stability(Stable)
public static final class CfnVPCBlockPublicAccessOptionsPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPCBlockPublicAccessOptionsPropsMixin>
A fluent builder for
CfnVPCBlockPublicAccessOptionsPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) internetGatewayBlockMode(String internetGatewayBlockMode) The desired VPC Block Public Access mode for internet gateways in your account.
-
Method Details
-
create
@Stability(Stable) public static CfnVPCBlockPublicAccessOptionsPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnVPCBlockPublicAccessOptionsPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnVPCBlockPublicAccessOptionsPropsMixin.Builder.
-
internetGatewayBlockMode
@Stability(Stable) public CfnVPCBlockPublicAccessOptionsPropsMixin.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnVPCBlockPublicAccessOptionsPropsMixin>- Returns:
- a newly built instance of
CfnVPCBlockPublicAccessOptionsPropsMixin.
-