| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.EC2.Types.NatGateway
Description
Synopsis
- data NatGateway = NatGateway' {
- connectivityType :: Maybe ConnectivityType
- createTime :: Maybe ISO8601
- deleteTime :: Maybe ISO8601
- failureCode :: Maybe Text
- failureMessage :: Maybe Text
- natGatewayAddresses :: Maybe [NatGatewayAddress]
- natGatewayId :: Maybe Text
- provisionedBandwidth :: Maybe ProvisionedBandwidth
- state :: Maybe NatGatewayState
- subnetId :: Maybe Text
- tags :: Maybe [Tag]
- vpcId :: Maybe Text
- newNatGateway :: NatGateway
- natGateway_connectivityType :: Lens' NatGateway (Maybe ConnectivityType)
- natGateway_createTime :: Lens' NatGateway (Maybe UTCTime)
- natGateway_deleteTime :: Lens' NatGateway (Maybe UTCTime)
- natGateway_failureCode :: Lens' NatGateway (Maybe Text)
- natGateway_failureMessage :: Lens' NatGateway (Maybe Text)
- natGateway_natGatewayAddresses :: Lens' NatGateway (Maybe [NatGatewayAddress])
- natGateway_natGatewayId :: Lens' NatGateway (Maybe Text)
- natGateway_provisionedBandwidth :: Lens' NatGateway (Maybe ProvisionedBandwidth)
- natGateway_state :: Lens' NatGateway (Maybe NatGatewayState)
- natGateway_subnetId :: Lens' NatGateway (Maybe Text)
- natGateway_tags :: Lens' NatGateway (Maybe [Tag])
- natGateway_vpcId :: Lens' NatGateway (Maybe Text)
Documentation
data NatGateway Source #
Describes a NAT gateway.
See: newNatGateway smart constructor.
Constructors
| NatGateway' | |
Fields
| |
Instances
newNatGateway :: NatGateway Source #
Create a value of NatGateway with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:connectivityType:NatGateway', natGateway_connectivityType - Indicates whether the NAT gateway supports public or private
connectivity.
$sel:createTime:NatGateway', natGateway_createTime - The date and time the NAT gateway was created.
$sel:deleteTime:NatGateway', natGateway_deleteTime - The date and time the NAT gateway was deleted, if applicable.
$sel:failureCode:NatGateway', natGateway_failureCode - If the NAT gateway could not be created, specifies the error code for
the failure. (InsufficientFreeAddressesInSubnet |
Gateway.NotAttached | InvalidAllocationID.NotFound |
Resource.AlreadyAssociated | InternalError |
InvalidSubnetID.NotFound)
$sel:failureMessage:NatGateway', natGateway_failureMessage - If the NAT gateway could not be created, specifies the error message for
the failure, that corresponds to the error code.
- For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free addresses to create this NAT gateway"
- For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway attached"
- For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx could not be associated with this NAT gateway"
- For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx is already associated"
- For InternalError: "Network interface eni-xxxxxxxx, created and used internally by this NAT gateway is in an invalid state. Please try again."
- For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx does not exist or could not be found."
$sel:natGatewayAddresses:NatGateway', natGateway_natGatewayAddresses - Information about the IP addresses and network interface associated with
the NAT gateway.
$sel:natGatewayId:NatGateway', natGateway_natGatewayId - The ID of the NAT gateway.
$sel:provisionedBandwidth:NatGateway', natGateway_provisionedBandwidth - Reserved. If you need to sustain traffic greater than the
documented limits,
contact us through the
Support Center.
$sel:state:NatGateway', natGateway_state - The state of the NAT gateway.
pending: The NAT gateway is being created and is not ready to process traffic.failed: The NAT gateway could not be created. Check thefailureCodeandfailureMessagefields for the reason.available: The NAT gateway is able to process traffic. This status remains until you delete the NAT gateway, and does not indicate the health of the NAT gateway.deleting: The NAT gateway is in the process of being terminated and may still be processing traffic.deleted: The NAT gateway has been terminated and is no longer processing traffic.
$sel:subnetId:NatGateway', natGateway_subnetId - The ID of the subnet in which the NAT gateway is located.
$sel:tags:NatGateway', natGateway_tags - The tags for the NAT gateway.
$sel:vpcId:NatGateway', natGateway_vpcId - The ID of the VPC in which the NAT gateway is located.
natGateway_connectivityType :: Lens' NatGateway (Maybe ConnectivityType) Source #
Indicates whether the NAT gateway supports public or private connectivity.
natGateway_createTime :: Lens' NatGateway (Maybe UTCTime) Source #
The date and time the NAT gateway was created.
natGateway_deleteTime :: Lens' NatGateway (Maybe UTCTime) Source #
The date and time the NAT gateway was deleted, if applicable.
natGateway_failureCode :: Lens' NatGateway (Maybe Text) Source #
If the NAT gateway could not be created, specifies the error code for
the failure. (InsufficientFreeAddressesInSubnet |
Gateway.NotAttached | InvalidAllocationID.NotFound |
Resource.AlreadyAssociated | InternalError |
InvalidSubnetID.NotFound)
natGateway_failureMessage :: Lens' NatGateway (Maybe Text) Source #
If the NAT gateway could not be created, specifies the error message for the failure, that corresponds to the error code.
- For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free addresses to create this NAT gateway"
- For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway attached"
- For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx could not be associated with this NAT gateway"
- For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx is already associated"
- For InternalError: "Network interface eni-xxxxxxxx, created and used internally by this NAT gateway is in an invalid state. Please try again."
- For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx does not exist or could not be found."
natGateway_natGatewayAddresses :: Lens' NatGateway (Maybe [NatGatewayAddress]) Source #
Information about the IP addresses and network interface associated with the NAT gateway.
natGateway_natGatewayId :: Lens' NatGateway (Maybe Text) Source #
The ID of the NAT gateway.
natGateway_provisionedBandwidth :: Lens' NatGateway (Maybe ProvisionedBandwidth) Source #
Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.
natGateway_state :: Lens' NatGateway (Maybe NatGatewayState) Source #
The state of the NAT gateway.
pending: The NAT gateway is being created and is not ready to process traffic.failed: The NAT gateway could not be created. Check thefailureCodeandfailureMessagefields for the reason.available: The NAT gateway is able to process traffic. This status remains until you delete the NAT gateway, and does not indicate the health of the NAT gateway.deleting: The NAT gateway is in the process of being terminated and may still be processing traffic.deleted: The NAT gateway has been terminated and is no longer processing traffic.
natGateway_subnetId :: Lens' NatGateway (Maybe Text) Source #
The ID of the subnet in which the NAT gateway is located.
natGateway_tags :: Lens' NatGateway (Maybe [Tag]) Source #
The tags for the NAT gateway.
natGateway_vpcId :: Lens' NatGateway (Maybe Text) Source #
The ID of the VPC in which the NAT gateway is located.