CfnNatGatewayProps

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

Bases: object

Properties for defining a CfnNatGateway.

Parameters
  • subnet_id (str) – The ID of the subnet in which the NAT gateway is located.

  • allocation_id (Optional[str]) – [Public NAT gateway only] The allocation ID of the Elastic IP address that’s associated with the NAT gateway.

  • connectivity_type (Optional[str]) – Indicates whether the NAT gateway supports public or private connectivity.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – The tags for the NAT gateway.

Link

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

ExampleMetadata

fixture=_generated

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

[Public NAT gateway only] The allocation ID of the Elastic IP address that’s associated with the NAT gateway.

Link

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

Return type

Optional[str]

connectivity_type

Indicates whether the NAT gateway supports public or private connectivity.

Link

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

Return type

Optional[str]

subnet_id

The ID of the subnet in which the NAT gateway is located.

Link

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

Return type

str

tags

The tags for the NAT gateway.

Link

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

Return type

Optional[List[CfnTag]]