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

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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.

This operation returns paginated results.

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:

  • dngNatGatewayIds - One or more NAT gateway IDs.
  • dngNextToken - The token to retrieve the next page of results.
  • dngFilter - 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. * tag :key =value - The keyvalue combination of a tag assigned to the resource. Specify the key of the tag in the filter name and the value of the tag in the filter value. For example, for the tag Purpose=X, specify tag:Purpose for the filter name and X for the filter value. * tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag :key =value/ filter. * tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter. * vpc-id - The ID of the VPC in which the NAT gateway resides.
  • dngMaxResults - 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.

data DescribeNatGateways Source #

Contains the parameters for DescribeNatGateways.

See: describeNatGateways smart constructor.

Instances
Eq DescribeNatGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeNatGateways

Data DescribeNatGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeNatGateways

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeNatGateways -> c DescribeNatGateways #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeNatGateways #

toConstr :: DescribeNatGateways -> Constr #

dataTypeOf :: DescribeNatGateways -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DescribeNatGateways) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeNatGateways) #

gmapT :: (forall b. Data b => b -> b) -> DescribeNatGateways -> DescribeNatGateways #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeNatGateways -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeNatGateways -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeNatGateways -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeNatGateways -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeNatGateways -> m DescribeNatGateways #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeNatGateways -> m DescribeNatGateways #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeNatGateways -> m DescribeNatGateways #

Read DescribeNatGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeNatGateways

Show DescribeNatGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeNatGateways

Generic DescribeNatGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeNatGateways

Associated Types

type Rep DescribeNatGateways :: Type -> Type #

Hashable DescribeNatGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeNatGateways

AWSPager DescribeNatGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeNatGateways

AWSRequest DescribeNatGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeNatGateways

Associated Types

type Rs DescribeNatGateways :: Type #

ToHeaders DescribeNatGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeNatGateways

ToPath DescribeNatGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeNatGateways

ToQuery DescribeNatGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeNatGateways

NFData DescribeNatGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeNatGateways

Methods

rnf :: DescribeNatGateways -> () #

type Rep DescribeNatGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeNatGateways

type Rep DescribeNatGateways = D1 (MetaData "DescribeNatGateways" "Network.AWS.EC2.DescribeNatGateways" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DescribeNatGateways'" PrefixI True) ((S1 (MetaSel (Just "_dngNatGatewayIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_dngNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_dngFilter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Filter])) :*: S1 (MetaSel (Just "_dngMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)))))
type Rs DescribeNatGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeNatGateways

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. * tag :key =value - The keyvalue combination of a tag assigned to the resource. Specify the key of the tag in the filter name and the value of the tag in the filter value. For example, for the tag Purpose=X, specify tag:Purpose for the filter name and X for the filter value. * tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag :key =value/ filter. * tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter. * 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:

data DescribeNatGatewaysResponse Source #

Contains the output of DescribeNatGateways.

See: describeNatGatewaysResponse smart constructor.

Instances
Eq DescribeNatGatewaysResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeNatGateways

Data DescribeNatGatewaysResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeNatGateways

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeNatGatewaysResponse -> c DescribeNatGatewaysResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeNatGatewaysResponse #

toConstr :: DescribeNatGatewaysResponse -> Constr #

dataTypeOf :: DescribeNatGatewaysResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DescribeNatGatewaysResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeNatGatewaysResponse) #

gmapT :: (forall b. Data b => b -> b) -> DescribeNatGatewaysResponse -> DescribeNatGatewaysResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeNatGatewaysResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeNatGatewaysResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeNatGatewaysResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeNatGatewaysResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeNatGatewaysResponse -> m DescribeNatGatewaysResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeNatGatewaysResponse -> m DescribeNatGatewaysResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeNatGatewaysResponse -> m DescribeNatGatewaysResponse #

Read DescribeNatGatewaysResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeNatGateways

Show DescribeNatGatewaysResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeNatGateways

Generic DescribeNatGatewaysResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeNatGateways

Associated Types

type Rep DescribeNatGatewaysResponse :: Type -> Type #

NFData DescribeNatGatewaysResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeNatGateways

type Rep DescribeNatGatewaysResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeNatGateways

type Rep DescribeNatGatewaysResponse = D1 (MetaData "DescribeNatGatewaysResponse" "Network.AWS.EC2.DescribeNatGateways" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DescribeNatGatewaysResponse'" PrefixI True) (S1 (MetaSel (Just "_dngrsNatGateways") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [NatGateway])) :*: (S1 (MetaSel (Just "_dngrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dngrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

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.