Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Lists all your Direct Connect gateways or only the specified Direct Connect gateway. Deleted Direct Connect gateways are not returned.
This operation returns paginated results.
Synopsis
- data DescribeDirectConnectGateways = DescribeDirectConnectGateways' {}
- newDescribeDirectConnectGateways :: DescribeDirectConnectGateways
- describeDirectConnectGateways_directConnectGatewayId :: Lens' DescribeDirectConnectGateways (Maybe Text)
- describeDirectConnectGateways_nextToken :: Lens' DescribeDirectConnectGateways (Maybe Text)
- describeDirectConnectGateways_maxResults :: Lens' DescribeDirectConnectGateways (Maybe Int)
- data DescribeDirectConnectGatewaysResponse = DescribeDirectConnectGatewaysResponse' {}
- newDescribeDirectConnectGatewaysResponse :: Int -> DescribeDirectConnectGatewaysResponse
- describeDirectConnectGatewaysResponse_directConnectGateways :: Lens' DescribeDirectConnectGatewaysResponse (Maybe [DirectConnectGateway])
- describeDirectConnectGatewaysResponse_nextToken :: Lens' DescribeDirectConnectGatewaysResponse (Maybe Text)
- describeDirectConnectGatewaysResponse_httpStatus :: Lens' DescribeDirectConnectGatewaysResponse Int
Creating a Request
data DescribeDirectConnectGateways Source #
See: newDescribeDirectConnectGateways
smart constructor.
DescribeDirectConnectGateways' | |
|
Instances
newDescribeDirectConnectGateways :: DescribeDirectConnectGateways Source #
Create a value of DescribeDirectConnectGateways
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:directConnectGatewayId:DescribeDirectConnectGateways'
, describeDirectConnectGateways_directConnectGatewayId
- The ID of the Direct Connect gateway.
$sel:nextToken:DescribeDirectConnectGateways'
, describeDirectConnectGateways_nextToken
- The token provided in the previous call to retrieve the next page.
$sel:maxResults:DescribeDirectConnectGateways'
, describeDirectConnectGateways_maxResults
- The maximum number of results to return with a single call. To retrieve
the remaining results, make another call with the returned nextToken
value.
If MaxResults
is given a value larger than 100, only 100 results are
returned.
Request Lenses
describeDirectConnectGateways_directConnectGatewayId :: Lens' DescribeDirectConnectGateways (Maybe Text) Source #
The ID of the Direct Connect gateway.
describeDirectConnectGateways_nextToken :: Lens' DescribeDirectConnectGateways (Maybe Text) Source #
The token provided in the previous call to retrieve the next page.
describeDirectConnectGateways_maxResults :: Lens' DescribeDirectConnectGateways (Maybe Int) Source #
The maximum number of results to return with a single call. To retrieve
the remaining results, make another call with the returned nextToken
value.
If MaxResults
is given a value larger than 100, only 100 results are
returned.
Destructuring the Response
data DescribeDirectConnectGatewaysResponse Source #
See: newDescribeDirectConnectGatewaysResponse
smart constructor.
DescribeDirectConnectGatewaysResponse' | |
|
Instances
newDescribeDirectConnectGatewaysResponse Source #
Create a value of DescribeDirectConnectGatewaysResponse
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:directConnectGateways:DescribeDirectConnectGatewaysResponse'
, describeDirectConnectGatewaysResponse_directConnectGateways
- The Direct Connect gateways.
$sel:nextToken:DescribeDirectConnectGateways'
, describeDirectConnectGatewaysResponse_nextToken
- The token to retrieve the next page.
$sel:httpStatus:DescribeDirectConnectGatewaysResponse'
, describeDirectConnectGatewaysResponse_httpStatus
- The response's http status code.
Response Lenses
describeDirectConnectGatewaysResponse_directConnectGateways :: Lens' DescribeDirectConnectGatewaysResponse (Maybe [DirectConnectGateway]) Source #
The Direct Connect gateways.
describeDirectConnectGatewaysResponse_nextToken :: Lens' DescribeDirectConnectGatewaysResponse (Maybe Text) Source #
The token to retrieve the next page.
describeDirectConnectGatewaysResponse_httpStatus :: Lens' DescribeDirectConnectGatewaysResponse Int Source #
The response's http status code.