NatGatewayProps

class aws_cdk.aws_ec2.NatGatewayProps(*, eip_allocation_ids=None)

Bases: object

Properties for a NAT gateway.

Parameters

eip_allocation_ids (Optional[Sequence[str]]) – EIP allocation IDs for the NAT gateways. Default: - No fixed EIPs allocated for the NAT gateways

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

nat_gateway_props = ec2.NatGatewayProps(
    eip_allocation_ids=["eipAllocationIds"]
)

Attributes

eip_allocation_ids

EIP allocation IDs for the NAT gateways.

Default
  • No fixed EIPs allocated for the NAT gateways

Return type

Optional[List[str]]