Interface CfnVPCBlockPublicAccessExclusionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnVPCBlockPublicAccessExclusionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:09.072Z")
@Stability(Stable)
public interface CfnVPCBlockPublicAccessExclusionProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnVPCBlockPublicAccessExclusion.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
CfnVPCBlockPublicAccessExclusionProps cfnVPCBlockPublicAccessExclusionProps = CfnVPCBlockPublicAccessExclusionProps.builder()
.internetGatewayExclusionMode("internetGatewayExclusionMode")
// the properties below are optional
.subnetId("subnetId")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.vpcId("vpcId")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnVPCBlockPublicAccessExclusionPropsstatic final classAn implementation forCfnVPCBlockPublicAccessExclusionProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The desired VPC Block Public Access mode for a specific VPC or subnet exclusion.default StringThe ID of the subnet you want to exclude.getTags()An array of key-value pairs to apply to this resource.default StringgetVpcId()The ID of the VPC you want to exclude.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInternetGatewayExclusionMode
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.
- See Also:
-
getSubnetId
The ID of the subnet you want to exclude.Required only if you don't specify VpcId.
- See Also:
-
getTags
An array of key-value pairs to apply to this resource.- See Also:
-
getVpcId
The ID of the VPC you want to exclude.Required only if you don't specify SubnetId.
- See Also:
-
builder
-