CfnNatGatewayProps

class aws_cdk.aws_ec2.CfnNatGatewayProps(*, allocation_id=None, connectivity_type=None, subnet_id, tags=None)

Bases: object

Properties for defining a AWS::EC2::NatGateway.

Parameters
  • allocation_id (Optional[str]) – AWS::EC2::NatGateway.AllocationId.

  • connectivity_type (Optional[str]) – AWS::EC2::NatGateway.ConnectivityType.

  • subnet_id (str) – AWS::EC2::NatGateway.SubnetId.

  • tags (Optional[Sequence[CfnTag]]) – AWS::EC2::NatGateway.Tags.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-natgateway.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

cfn_nat_gateway_props = ec2.CfnNatGatewayProps(
    subnet_id="subnetId",

    # the properties below are optional
    allocation_id="allocationId",
    connectivity_type="connectivityType",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

allocation_id

AWS::EC2::NatGateway.AllocationId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-natgateway.html#cfn-ec2-natgateway-allocationid

Return type

Optional[str]

connectivity_type

AWS::EC2::NatGateway.ConnectivityType.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-natgateway.html#cfn-ec2-natgateway-connectivitytype

Return type

Optional[str]

subnet_id

AWS::EC2::NatGateway.SubnetId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-natgateway.html#cfn-ec2-natgateway-subnetid

Return type

str

tags

AWS::EC2::NatGateway.Tags.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-natgateway.html#cfn-ec2-natgateway-tags

Return type

Optional[List[CfnTag]]