| 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 |
Amazonka.AlexaBusiness.ListGateways
Description
Retrieves a list of gateway summaries. Use GetGateway to retrieve details of a specific gateway. An optional gateway group ARN can be provided to only retrieve gateway summaries of gateways that are associated with that gateway group ARN.
Synopsis
- data ListGateways = ListGateways' {}
- newListGateways :: ListGateways
- listGateways_gatewayGroupArn :: Lens' ListGateways (Maybe Text)
- listGateways_maxResults :: Lens' ListGateways (Maybe Natural)
- listGateways_nextToken :: Lens' ListGateways (Maybe Text)
- data ListGatewaysResponse = ListGatewaysResponse' {
- gateways :: Maybe [GatewaySummary]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListGatewaysResponse :: Int -> ListGatewaysResponse
- listGatewaysResponse_gateways :: Lens' ListGatewaysResponse (Maybe [GatewaySummary])
- listGatewaysResponse_nextToken :: Lens' ListGatewaysResponse (Maybe Text)
- listGatewaysResponse_httpStatus :: Lens' ListGatewaysResponse Int
Creating a Request
data ListGateways Source #
See: newListGateways smart constructor.
Constructors
| ListGateways' | |
Fields
| |
Instances
newListGateways :: ListGateways Source #
Create a value of ListGateways 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:
ListGateways, listGateways_gatewayGroupArn - The gateway group ARN for which to list gateways.
$sel:maxResults:ListGateways', listGateways_maxResults - The maximum number of gateway summaries to return. The default is 50.
ListGateways, listGateways_nextToken - The token used to paginate though multiple pages of gateway summaries.
Request Lenses
listGateways_gatewayGroupArn :: Lens' ListGateways (Maybe Text) Source #
The gateway group ARN for which to list gateways.
listGateways_maxResults :: Lens' ListGateways (Maybe Natural) Source #
The maximum number of gateway summaries to return. The default is 50.
listGateways_nextToken :: Lens' ListGateways (Maybe Text) Source #
The token used to paginate though multiple pages of gateway summaries.
Destructuring the Response
data ListGatewaysResponse Source #
See: newListGatewaysResponse smart constructor.
Constructors
| ListGatewaysResponse' | |
Fields
| |
Instances
newListGatewaysResponse Source #
Arguments
| :: Int | |
| -> ListGatewaysResponse |
Create a value of ListGatewaysResponse 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:gateways:ListGatewaysResponse', listGatewaysResponse_gateways - The gateways in the list.
ListGateways, listGatewaysResponse_nextToken - The token used to paginate though multiple pages of gateway summaries.
$sel:httpStatus:ListGatewaysResponse', listGatewaysResponse_httpStatus - The response's http status code.
Response Lenses
listGatewaysResponse_gateways :: Lens' ListGatewaysResponse (Maybe [GatewaySummary]) Source #
The gateways in the list.
listGatewaysResponse_nextToken :: Lens' ListGatewaysResponse (Maybe Text) Source #
The token used to paginate though multiple pages of gateway summaries.
listGatewaysResponse_httpStatus :: Lens' ListGatewaysResponse Int Source #
The response's http status code.