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 |
Describes one or more of your VPN customer gateways.
For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.
Synopsis
- data DescribeCustomerGateways = DescribeCustomerGateways' {}
- newDescribeCustomerGateways :: DescribeCustomerGateways
- describeCustomerGateways_customerGatewayIds :: Lens' DescribeCustomerGateways (Maybe [Text])
- describeCustomerGateways_dryRun :: Lens' DescribeCustomerGateways (Maybe Bool)
- describeCustomerGateways_filters :: Lens' DescribeCustomerGateways (Maybe [Filter])
- data DescribeCustomerGatewaysResponse = DescribeCustomerGatewaysResponse' {}
- newDescribeCustomerGatewaysResponse :: Int -> DescribeCustomerGatewaysResponse
- describeCustomerGatewaysResponse_customerGateways :: Lens' DescribeCustomerGatewaysResponse (Maybe [CustomerGateway])
- describeCustomerGatewaysResponse_httpStatus :: Lens' DescribeCustomerGatewaysResponse Int
Creating a Request
data DescribeCustomerGateways Source #
Contains the parameters for DescribeCustomerGateways.
See: newDescribeCustomerGateways
smart constructor.
DescribeCustomerGateways' | |
|
Instances
newDescribeCustomerGateways :: DescribeCustomerGateways Source #
Create a value of DescribeCustomerGateways
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:customerGatewayIds:DescribeCustomerGateways'
, describeCustomerGateways_customerGatewayIds
- One or more customer gateway IDs.
Default: Describes all your customer gateways.
$sel:dryRun:DescribeCustomerGateways'
, describeCustomerGateways_dryRun
- 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
.
$sel:filters:DescribeCustomerGateways'
, describeCustomerGateways_filters
- One or more filters.
bgp-asn
- The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).customer-gateway-id
- The ID of the customer gateway.ip-address
- The IP address of the customer gateway device's external interface.state
- The state of the customer gateway (pending
|available
|deleting
|deleted
).type
- The type of customer gateway. Currently, the only supported type isipsec.1
.tag
:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the keyOwner
and the valueTeamA
, specifytag:Owner
for the filter name andTeamA
for the filter value.tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.
Request Lenses
describeCustomerGateways_customerGatewayIds :: Lens' DescribeCustomerGateways (Maybe [Text]) Source #
One or more customer gateway IDs.
Default: Describes all your customer gateways.
describeCustomerGateways_dryRun :: Lens' DescribeCustomerGateways (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
.
describeCustomerGateways_filters :: Lens' DescribeCustomerGateways (Maybe [Filter]) Source #
One or more filters.
bgp-asn
- The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).customer-gateway-id
- The ID of the customer gateway.ip-address
- The IP address of the customer gateway device's external interface.state
- The state of the customer gateway (pending
|available
|deleting
|deleted
).type
- The type of customer gateway. Currently, the only supported type isipsec.1
.tag
:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the keyOwner
and the valueTeamA
, specifytag:Owner
for the filter name andTeamA
for the filter value.tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.
Destructuring the Response
data DescribeCustomerGatewaysResponse Source #
Contains the output of DescribeCustomerGateways.
See: newDescribeCustomerGatewaysResponse
smart constructor.
DescribeCustomerGatewaysResponse' | |
|
Instances
Generic DescribeCustomerGatewaysResponse Source # | |
Read DescribeCustomerGatewaysResponse Source # | |
Show DescribeCustomerGatewaysResponse Source # | |
Defined in Amazonka.EC2.DescribeCustomerGateways | |
NFData DescribeCustomerGatewaysResponse Source # | |
Defined in Amazonka.EC2.DescribeCustomerGateways rnf :: DescribeCustomerGatewaysResponse -> () # | |
Eq DescribeCustomerGatewaysResponse Source # | |
type Rep DescribeCustomerGatewaysResponse Source # | |
Defined in Amazonka.EC2.DescribeCustomerGateways type Rep DescribeCustomerGatewaysResponse = D1 ('MetaData "DescribeCustomerGatewaysResponse" "Amazonka.EC2.DescribeCustomerGateways" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeCustomerGatewaysResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "customerGateways") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [CustomerGateway])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDescribeCustomerGatewaysResponse Source #
Create a value of DescribeCustomerGatewaysResponse
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:customerGateways:DescribeCustomerGatewaysResponse'
, describeCustomerGatewaysResponse_customerGateways
- Information about one or more customer gateways.
$sel:httpStatus:DescribeCustomerGatewaysResponse'
, describeCustomerGatewaysResponse_httpStatus
- The response's http status code.
Response Lenses
describeCustomerGatewaysResponse_customerGateways :: Lens' DescribeCustomerGatewaysResponse (Maybe [CustomerGateway]) Source #
Information about one or more customer gateways.
describeCustomerGatewaysResponse_httpStatus :: Lens' DescribeCustomerGatewaysResponse Int Source #
The response's http status code.