Class CfnVPCBlockPublicAccessExclusionProps
Properties for defining a CfnVPCBlockPublicAccessExclusion.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnVPCBlockPublicAccessExclusionProps : ICfnVPCBlockPublicAccessExclusionProps
Syntax (vb)
Public Class CfnVPCBlockPublicAccessExclusionProps Implements ICfnVPCBlockPublicAccessExclusionProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var cfnVPCBlockPublicAccessExclusionProps = new CfnVPCBlockPublicAccessExclusionProps {
InternetGatewayExclusionMode = "internetGatewayExclusionMode",
// the properties below are optional
SubnetId = "subnetId",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VpcId = "vpcId"
};
Synopsis
Constructors
| CfnVPCBlockPublicAccessExclusionProps() | Properties for defining a |
Properties
| InternetGatewayExclusionMode | The desired VPC Block Public Access mode for a specific VPC or subnet exclusion. |
| SubnetId | The ID of the subnet you want to exclude. |
| Tags | An array of key-value pairs to apply to this resource. |
| VpcId | The ID of the VPC you want to exclude. |
Constructors
CfnVPCBlockPublicAccessExclusionProps()
Properties for defining a CfnVPCBlockPublicAccessExclusion.
public CfnVPCBlockPublicAccessExclusionProps()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var cfnVPCBlockPublicAccessExclusionProps = new CfnVPCBlockPublicAccessExclusionProps {
InternetGatewayExclusionMode = "internetGatewayExclusionMode",
// the properties below are optional
SubnetId = "subnetId",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VpcId = "vpcId"
};
Properties
InternetGatewayExclusionMode
The desired VPC Block Public Access mode for a specific VPC or subnet exclusion.
public string InternetGatewayExclusionMode { get; set; }
Property Value
Remarks
SubnetId
The ID of the subnet you want to exclude.
public string? SubnetId { get; set; }
Property Value
Remarks
Required only if you don't specify VpcId.
Tags
An array of key-value pairs to apply to this resource.
public ICfnTag[]? Tags { get; set; }
Property Value
ICfnTag[]
Remarks
VpcId
The ID of the VPC you want to exclude.
public string? VpcId { get; set; }
Property Value
Remarks
Required only if you don't specify SubnetId.