Class CfnVPCBlockPublicAccessExclusionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnVPCBlockPublicAccessExclusionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPCBlockPublicAccessExclusionMixinProps>
- Enclosing interface:
CfnVPCBlockPublicAccessExclusionMixinProps
@Stability(Stable)
public static final class CfnVPCBlockPublicAccessExclusionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPCBlockPublicAccessExclusionMixinProps>
A builder for
CfnVPCBlockPublicAccessExclusionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.internetGatewayExclusionMode(String internetGatewayExclusionMode) Sets the value ofCfnVPCBlockPublicAccessExclusionMixinProps.getSubnetId()Sets the value ofCfnVPCBlockPublicAccessExclusionMixinProps.getTags()Sets the value ofCfnVPCBlockPublicAccessExclusionMixinProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
internetGatewayExclusionMode
@Stability(Stable) public CfnVPCBlockPublicAccessExclusionMixinProps.Builder internetGatewayExclusionMode(String internetGatewayExclusionMode) - Parameters:
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.
- Returns:
this
-
subnetId
@Stability(Stable) public CfnVPCBlockPublicAccessExclusionMixinProps.Builder subnetId(String subnetId) Sets the value ofCfnVPCBlockPublicAccessExclusionMixinProps.getSubnetId()- Parameters:
subnetId- The ID of the subnet you want to exclude. Required only if you don't specify VpcId.- Returns:
this
-
tags
@Stability(Stable) public CfnVPCBlockPublicAccessExclusionMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnVPCBlockPublicAccessExclusionMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
vpcId
Sets the value ofCfnVPCBlockPublicAccessExclusionMixinProps.getVpcId()- Parameters:
vpcId- The ID of the VPC you want to exclude. Required only if you don't specify SubnetId.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVPCBlockPublicAccessExclusionMixinProps>- Returns:
- a new instance of
CfnVPCBlockPublicAccessExclusionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-