amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.DescribeCustomerGateways

Description

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

Creating a Request

data DescribeCustomerGateways Source #

Contains the parameters for DescribeCustomerGateways.

See: newDescribeCustomerGateways smart constructor.

Constructors

DescribeCustomerGateways' 

Fields

  • customerGatewayIds :: Maybe [Text]

    One or more customer gateway IDs.

    Default: Describes all your customer gateways.

  • dryRun :: Maybe Bool

    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.

  • filters :: Maybe [Filter]

    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 is ipsec.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 key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA 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.

Instances

Instances details
ToHeaders DescribeCustomerGateways Source # 
Instance details

Defined in Amazonka.EC2.DescribeCustomerGateways

ToPath DescribeCustomerGateways Source # 
Instance details

Defined in Amazonka.EC2.DescribeCustomerGateways

ToQuery DescribeCustomerGateways Source # 
Instance details

Defined in Amazonka.EC2.DescribeCustomerGateways

AWSRequest DescribeCustomerGateways Source # 
Instance details

Defined in Amazonka.EC2.DescribeCustomerGateways

Generic DescribeCustomerGateways Source # 
Instance details

Defined in Amazonka.EC2.DescribeCustomerGateways

Associated Types

type Rep DescribeCustomerGateways :: Type -> Type #

Read DescribeCustomerGateways Source # 
Instance details

Defined in Amazonka.EC2.DescribeCustomerGateways

Show DescribeCustomerGateways Source # 
Instance details

Defined in Amazonka.EC2.DescribeCustomerGateways

NFData DescribeCustomerGateways Source # 
Instance details

Defined in Amazonka.EC2.DescribeCustomerGateways

Eq DescribeCustomerGateways Source # 
Instance details

Defined in Amazonka.EC2.DescribeCustomerGateways

Hashable DescribeCustomerGateways Source # 
Instance details

Defined in Amazonka.EC2.DescribeCustomerGateways

type AWSResponse DescribeCustomerGateways Source # 
Instance details

Defined in Amazonka.EC2.DescribeCustomerGateways

type Rep DescribeCustomerGateways Source # 
Instance details

Defined in Amazonka.EC2.DescribeCustomerGateways

type Rep DescribeCustomerGateways = D1 ('MetaData "DescribeCustomerGateways" "Amazonka.EC2.DescribeCustomerGateways" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeCustomerGateways'" 'PrefixI 'True) (S1 ('MetaSel ('Just "customerGatewayIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Filter])))))

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 is ipsec.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 key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA 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 is ipsec.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 key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA 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.

Constructors

DescribeCustomerGatewaysResponse' 

Fields

Instances

Instances details
Generic DescribeCustomerGatewaysResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeCustomerGateways

Associated Types

type Rep DescribeCustomerGatewaysResponse :: Type -> Type #

Read DescribeCustomerGatewaysResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeCustomerGateways

Show DescribeCustomerGatewaysResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeCustomerGateways

NFData DescribeCustomerGatewaysResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeCustomerGateways

Eq DescribeCustomerGatewaysResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeCustomerGateways

type Rep DescribeCustomerGatewaysResponse Source # 
Instance details

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