Class CfnVPCPropsMixin
Specifies a virtual private cloud (VPC).
Implements
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.EC2
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnVPCPropsMixin : Mixin, IMixin
Syntax (vb)
Public Class CfnVPCPropsMixin Inherits Mixin Implements IMixin
Remarks
A VPC must have an associated IPv4 CIDR block. You can specify an IPv4 CIDR block or an IPAM-allocated IPv4 CIDR block. To associate an IPv6 CIDR block with the VPC, see AWS::EC2::VPCCidrBlock .
For more information, see Virtual private clouds (VPC) in the Amazon VPC User Guide .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html
CloudformationResource: AWS::EC2::VPC
Mixin: true
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.CfnPropertyMixins.AWS.EC2;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnVPCPropsMixin = new CfnVPCPropsMixin(new CfnVPCMixinProps {
CidrBlock = "cidrBlock",
EnableDnsHostnames = false,
EnableDnsSupport = false,
InstanceTenancy = "instanceTenancy",
Ipv4IpamPoolId = "ipv4IpamPoolId",
Ipv4NetmaskLength = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Synopsis
Constructors
| CfnVPCPropsMixin(ICfnVPCMixinProps, ICfnPropertyMixinOptions?) | Create a mixin to apply properties to |
Properties
| CFN_PROPERTY_KEYS | Specifies a virtual private cloud (VPC). |
| Props | Specifies a virtual private cloud (VPC). |
| Strategy | Specifies a virtual private cloud (VPC). |
Methods
| ApplyTo(IConstruct) | Apply the mixin properties to the construct. |
| Supports(IConstruct) | Check if this mixin supports the given construct. |
Constructors
CfnVPCPropsMixin(ICfnVPCMixinProps, ICfnPropertyMixinOptions?)
Create a mixin to apply properties to AWS::EC2::VPC.
public CfnVPCPropsMixin(ICfnVPCMixinProps props, ICfnPropertyMixinOptions? options = null)
Parameters
- props ICfnVPCMixinProps
L1 properties to apply.
- options ICfnPropertyMixinOptions
Mixin options.
Remarks
A VPC must have an associated IPv4 CIDR block. You can specify an IPv4 CIDR block or an IPAM-allocated IPv4 CIDR block. To associate an IPv6 CIDR block with the VPC, see AWS::EC2::VPCCidrBlock .
For more information, see Virtual private clouds (VPC) in the Amazon VPC User Guide .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html
CloudformationResource: AWS::EC2::VPC
Mixin: true
ExampleMetadata: fixture=_generated
Properties
CFN_PROPERTY_KEYS
Specifies a virtual private cloud (VPC).
protected static string[] CFN_PROPERTY_KEYS { get; }
Property Value
string[]
Remarks
A VPC must have an associated IPv4 CIDR block. You can specify an IPv4 CIDR block or an IPAM-allocated IPv4 CIDR block. To associate an IPv6 CIDR block with the VPC, see AWS::EC2::VPCCidrBlock .
For more information, see Virtual private clouds (VPC) in the Amazon VPC User Guide .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html
CloudformationResource: AWS::EC2::VPC
Mixin: true
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.CfnPropertyMixins.AWS.EC2;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnVPCPropsMixin = new CfnVPCPropsMixin(new CfnVPCMixinProps {
CidrBlock = "cidrBlock",
EnableDnsHostnames = false,
EnableDnsSupport = false,
InstanceTenancy = "instanceTenancy",
Ipv4IpamPoolId = "ipv4IpamPoolId",
Ipv4NetmaskLength = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Props
Specifies a virtual private cloud (VPC).
protected virtual ICfnVPCMixinProps Props { get; }
Property Value
Remarks
A VPC must have an associated IPv4 CIDR block. You can specify an IPv4 CIDR block or an IPAM-allocated IPv4 CIDR block. To associate an IPv6 CIDR block with the VPC, see AWS::EC2::VPCCidrBlock .
For more information, see Virtual private clouds (VPC) in the Amazon VPC User Guide .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html
CloudformationResource: AWS::EC2::VPC
Mixin: true
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.CfnPropertyMixins.AWS.EC2;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnVPCPropsMixin = new CfnVPCPropsMixin(new CfnVPCMixinProps {
CidrBlock = "cidrBlock",
EnableDnsHostnames = false,
EnableDnsSupport = false,
InstanceTenancy = "instanceTenancy",
Ipv4IpamPoolId = "ipv4IpamPoolId",
Ipv4NetmaskLength = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Strategy
Specifies a virtual private cloud (VPC).
protected virtual IMergeStrategy Strategy { get; }
Property Value
Remarks
A VPC must have an associated IPv4 CIDR block. You can specify an IPv4 CIDR block or an IPAM-allocated IPv4 CIDR block. To associate an IPv6 CIDR block with the VPC, see AWS::EC2::VPCCidrBlock .
For more information, see Virtual private clouds (VPC) in the Amazon VPC User Guide .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html
CloudformationResource: AWS::EC2::VPC
Mixin: true
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.CfnPropertyMixins.AWS.EC2;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnVPCPropsMixin = new CfnVPCPropsMixin(new CfnVPCMixinProps {
CidrBlock = "cidrBlock",
EnableDnsHostnames = false,
EnableDnsSupport = false,
InstanceTenancy = "instanceTenancy",
Ipv4IpamPoolId = "ipv4IpamPoolId",
Ipv4NetmaskLength = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Methods
ApplyTo(IConstruct)
Apply the mixin properties to the construct.
public override void ApplyTo(IConstruct construct)
Parameters
- construct IConstruct
Overrides
Remarks
A VPC must have an associated IPv4 CIDR block. You can specify an IPv4 CIDR block or an IPAM-allocated IPv4 CIDR block. To associate an IPv6 CIDR block with the VPC, see AWS::EC2::VPCCidrBlock .
For more information, see Virtual private clouds (VPC) in the Amazon VPC User Guide .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html
CloudformationResource: AWS::EC2::VPC
Mixin: true
ExampleMetadata: fixture=_generated
Supports(IConstruct)
Check if this mixin supports the given construct.
public override bool Supports(IConstruct construct)
Parameters
- construct IConstruct
Returns
Overrides
Remarks
A VPC must have an associated IPv4 CIDR block. You can specify an IPv4 CIDR block or an IPAM-allocated IPv4 CIDR block. To associate an IPv6 CIDR block with the VPC, see AWS::EC2::VPCCidrBlock .
For more information, see Virtual private clouds (VPC) in the Amazon VPC User Guide .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html
CloudformationResource: AWS::EC2::VPC
Mixin: true
ExampleMetadata: fixture=_generated