Class CfnVPCBlockPublicAccessExclusionPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnVPCBlockPublicAccessExclusionPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPCBlockPublicAccessExclusionPropsMixin>
- Enclosing class:
CfnVPCBlockPublicAccessExclusionPropsMixin
@Stability(Stable)
public static final class CfnVPCBlockPublicAccessExclusionPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPCBlockPublicAccessExclusionPropsMixin>
A fluent builder for
CfnVPCBlockPublicAccessExclusionPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) internetGatewayExclusionMode(String internetGatewayExclusionMode) The desired VPC Block Public Access mode for a specific VPC or subnet exclusion.The ID of the subnet you want to exclude.An array of key-value pairs to apply to this resource.The ID of the VPC you want to exclude.
-
Method Details
-
create
@Stability(Stable) public static CfnVPCBlockPublicAccessExclusionPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnVPCBlockPublicAccessExclusionPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnVPCBlockPublicAccessExclusionPropsMixin.Builder.
-
internetGatewayExclusionMode
@Stability(Stable) public CfnVPCBlockPublicAccessExclusionPropsMixin.Builder internetGatewayExclusionMode(String internetGatewayExclusionMode) The desired VPC Block Public Access mode for a specific VPC or subnet exclusion.allow-bidirectional: Allow all internet traffic to and from the excluded VPCs and subnets.allow-egress: Allow outbound internet traffic from the excluded VPCs and subnets. Block inbound internet traffic to the excluded VPCs and subnets. Only applies when VPC Block Public Access is set toblock-bidirectional.
- Parameters:
internetGatewayExclusionMode- The desired VPC Block Public Access mode for a specific VPC or subnet exclusion. This parameter is required.- Returns:
this- See Also:
-
subnetId
@Stability(Stable) public CfnVPCBlockPublicAccessExclusionPropsMixin.Builder subnetId(String subnetId) The ID of the subnet you want to exclude.Required only if you don't specify VpcId.
- Parameters:
subnetId- The ID of the subnet you want to exclude. This parameter is required.- Returns:
this- See Also:
-
tags
@Stability(Stable) public CfnVPCBlockPublicAccessExclusionPropsMixin.Builder tags(List<? extends CfnTag> tags) An array of key-value pairs to apply to this resource.- Parameters:
tags- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this- See Also:
-
vpcId
The ID of the VPC you want to exclude.Required only if you don't specify SubnetId.
- Parameters:
vpcId- The ID of the VPC you want to exclude. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVPCBlockPublicAccessExclusionPropsMixin>- Returns:
- a newly built instance of
CfnVPCBlockPublicAccessExclusionPropsMixin.
-