amazonka-ec2-1.4.3: 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.DescribeVPNGateways

Contents

Description

Describes one or more of your virtual private gateways.

For more information about virtual private gateways, see Adding an IPsec Hardware VPN to Your VPC in the Amazon Virtual Private Cloud User Guide.

Synopsis

Creating a Request

describeVPNGateways :: DescribeVPNGateways Source #

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

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

data DescribeVPNGateways Source #

Contains the parameters for DescribeVpnGateways.

See: describeVPNGateways smart constructor.

Instances

Eq DescribeVPNGateways Source # 
Data DescribeVPNGateways Source # 

Methods

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

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

toConstr :: DescribeVPNGateways -> Constr #

dataTypeOf :: DescribeVPNGateways -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeVPNGateways Source # 
Show DescribeVPNGateways Source # 
Generic DescribeVPNGateways Source # 
Hashable DescribeVPNGateways Source # 
NFData DescribeVPNGateways Source # 

Methods

rnf :: DescribeVPNGateways -> () #

AWSRequest DescribeVPNGateways Source # 
ToQuery DescribeVPNGateways Source # 
ToPath DescribeVPNGateways Source # 
ToHeaders DescribeVPNGateways Source # 
type Rep DescribeVPNGateways Source # 
type Rep DescribeVPNGateways = D1 (MetaData "DescribeVPNGateways" "Network.AWS.EC2.DescribeVPNGateways" "amazonka-ec2-1.4.3-IOmvt8owjDkAgcWNrchie1" False) (C1 (MetaCons "DescribeVPNGateways'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dvgsFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Filter]))) ((:*:) (S1 (MetaSel (Just Symbol "_dvgsVPNGatewayIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_dvgsDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))))
type Rs DescribeVPNGateways Source # 

Request Lenses

dvgsFilters :: Lens' DescribeVPNGateways [Filter] Source #

One or more filters.

  • 'attachment.state' - The current state of the attachment between the gateway and the VPC (attaching | attached | detaching | detached).
  • 'attachment.vpc-id' - The ID of an attached VPC.
  • 'availability-zone' - The Availability Zone for the virtual private gateway (if applicable).
  • state - The state of the virtual private gateway (pending | available | deleting | deleted).
  • tag:key=value - The key/value combination of a tag assigned to the resource.
  • '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.
  • 'type' - The type of virtual private gateway. Currently the only supported type is 'ipsec.1'.
  • 'vpn-gateway-id' - The ID of the virtual private gateway.

dvgsVPNGatewayIds :: Lens' DescribeVPNGateways [Text] Source #

One or more virtual private gateway IDs.

Default: Describes all your virtual private gateways.

dvgsDryRun :: Lens' DescribeVPNGateways (Maybe Bool) Source #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Destructuring the Response

describeVPNGatewaysResponse Source #

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

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

data DescribeVPNGatewaysResponse Source #

Contains the output of DescribeVpnGateways.

See: describeVPNGatewaysResponse smart constructor.

Instances

Eq DescribeVPNGatewaysResponse Source # 
Data DescribeVPNGatewaysResponse Source # 

Methods

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

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

toConstr :: DescribeVPNGatewaysResponse -> Constr #

dataTypeOf :: DescribeVPNGatewaysResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeVPNGatewaysResponse Source # 
Show DescribeVPNGatewaysResponse Source # 
Generic DescribeVPNGatewaysResponse Source # 
NFData DescribeVPNGatewaysResponse Source # 
type Rep DescribeVPNGatewaysResponse Source # 
type Rep DescribeVPNGatewaysResponse = D1 (MetaData "DescribeVPNGatewaysResponse" "Network.AWS.EC2.DescribeVPNGateways" "amazonka-ec2-1.4.3-IOmvt8owjDkAgcWNrchie1" False) (C1 (MetaCons "DescribeVPNGatewaysResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dvgrsVPNGateways") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [VPNGateway]))) (S1 (MetaSel (Just Symbol "_dvgrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

dvgrsVPNGateways :: Lens' DescribeVPNGatewaysResponse [VPNGateway] Source #

Information about one or more virtual private gateways.