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.DescribeVPNGateways

Contents

Description

Describes one or more of your virtual private gateways.

For more information about virtual private gateways, see AWS Managed VPN Connections 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:

  • dvgsFilters - One or more filters. * amazon-side-asn - The Autonomous System Number (ASN) for the Amazon side of the gateway. * 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 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. * 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 - One or more virtual private gateway IDs. Default: Describes all your virtual private gateways.
  • dvgsDryRun - 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 .

data DescribeVPNGateways Source #

Contains the parameters for DescribeVpnGateways.

See: describeVPNGateways smart constructor.

Instances
Eq DescribeVPNGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeVPNGateways

Data DescribeVPNGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeVPNGateways

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 # 
Instance details

Defined in Network.AWS.EC2.DescribeVPNGateways

Show DescribeVPNGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeVPNGateways

Generic DescribeVPNGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeVPNGateways

Associated Types

type Rep DescribeVPNGateways :: Type -> Type #

Hashable DescribeVPNGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeVPNGateways

AWSRequest DescribeVPNGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeVPNGateways

Associated Types

type Rs DescribeVPNGateways :: Type #

ToHeaders DescribeVPNGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeVPNGateways

ToPath DescribeVPNGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeVPNGateways

ToQuery DescribeVPNGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeVPNGateways

NFData DescribeVPNGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeVPNGateways

Methods

rnf :: DescribeVPNGateways -> () #

type Rep DescribeVPNGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeVPNGateways

type Rep DescribeVPNGateways = D1 (MetaData "DescribeVPNGateways" "Network.AWS.EC2.DescribeVPNGateways" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DescribeVPNGateways'" PrefixI True) (S1 (MetaSel (Just "_dvgsFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Filter])) :*: (S1 (MetaSel (Just "_dvgsVPNGatewayIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_dvgsDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))))
type Rs DescribeVPNGateways Source # 
Instance details

Defined in Network.AWS.EC2.DescribeVPNGateways

Request Lenses

dvgsFilters :: Lens' DescribeVPNGateways [Filter] Source #

One or more filters. * amazon-side-asn - The Autonomous System Number (ASN) for the Amazon side of the gateway. * 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 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. * 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 # 
Instance details

Defined in Network.AWS.EC2.DescribeVPNGateways

Data DescribeVPNGatewaysResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeVPNGateways

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 # 
Instance details

Defined in Network.AWS.EC2.DescribeVPNGateways

Show DescribeVPNGatewaysResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeVPNGateways

Generic DescribeVPNGatewaysResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeVPNGateways

Associated Types

type Rep DescribeVPNGatewaysResponse :: Type -> Type #

NFData DescribeVPNGatewaysResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeVPNGateways

type Rep DescribeVPNGatewaysResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeVPNGateways

type Rep DescribeVPNGatewaysResponse = D1 (MetaData "DescribeVPNGatewaysResponse" "Network.AWS.EC2.DescribeVPNGateways" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DescribeVPNGatewaysResponse'" PrefixI True) (S1 (MetaSel (Just "_dvgrsVPNGateways") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [VPNGateway])) :*: S1 (MetaSel (Just "_dvgrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

dvgrsVPNGateways :: Lens' DescribeVPNGatewaysResponse [VPNGateway] Source #

Information about one or more virtual private gateways.