amazonka-ec2-1.4.0: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.DescribeNatGateways

Contents

Description

Describes one or more of the your NAT gateways.

Synopsis

Creating a Request

describeNatGateways :: DescribeNatGateways Source

Creates a value of DescribeNatGateways with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

dngNatGatewayIds :: Lens' DescribeNatGateways [Text] Source

One or more NAT gateway IDs.

dngNextToken :: Lens' DescribeNatGateways (Maybe Text) Source

The token to retrieve the next page of results.

dngFilter :: Lens' DescribeNatGateways [Filter] Source

One or more filters.

  • 'nat-gateway-id' - The ID of the NAT gateway.
  • state - The state of the NAT gateway (pending | failed | available | deleting | deleted).
  • 'subnet-id' - The ID of the subnet in which the NAT gateway resides.
  • 'vpc-id' - The ID of the VPC in which the NAT gateway resides.

dngMaxResults :: Lens' DescribeNatGateways (Maybe Int) Source

The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

Constraint: If the value specified is greater than 1000, we return only 1000 items.

Destructuring the Response

describeNatGatewaysResponse Source

Creates a value of DescribeNatGatewaysResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

dngrsNatGateways :: Lens' DescribeNatGatewaysResponse [NatGateway] Source

Information about the NAT gateways.

dngrsNextToken :: Lens' DescribeNatGatewaysResponse (Maybe Text) Source

The token to use to retrieve the next page of results. This value is null when there are no more results to return.