Interface CfnVPCBlockPublicAccessExclusionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnVPCBlockPublicAccessExclusionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-15T21:09:18.054Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnVPCBlockPublicAccessExclusionProps
static final class
An implementation forCfnVPCBlockPublicAccessExclusionProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The desired VPC Block Public Access mode for a specific VPC or subnet exclusion.default String
The ID of the subnet you want to exclude.getTags()
An array of key-value pairs to apply to this resource.default String
getVpcId()
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
-