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 |
Lists network resources. Add filters to your request to return a more specific list of results. Use filters to match the Amazon Resource Name (ARN) of an order or the status of network resources.
If you specify multiple filters, filters are joined with an OR, and the request returns results that match all of the specified filters.
This operation returns paginated results.
Synopsis
- data ListNetworkResources = ListNetworkResources' {}
- newListNetworkResources :: Text -> ListNetworkResources
- listNetworkResources_filters :: Lens' ListNetworkResources (Maybe (HashMap NetworkResourceFilterKeys [Text]))
- listNetworkResources_maxResults :: Lens' ListNetworkResources (Maybe Natural)
- listNetworkResources_startToken :: Lens' ListNetworkResources (Maybe Text)
- listNetworkResources_networkArn :: Lens' ListNetworkResources Text
- data ListNetworkResourcesResponse = ListNetworkResourcesResponse' {}
- newListNetworkResourcesResponse :: Int -> ListNetworkResourcesResponse
- listNetworkResourcesResponse_networkResources :: Lens' ListNetworkResourcesResponse (Maybe [NetworkResource])
- listNetworkResourcesResponse_nextToken :: Lens' ListNetworkResourcesResponse (Maybe Text)
- listNetworkResourcesResponse_httpStatus :: Lens' ListNetworkResourcesResponse Int
Creating a Request
data ListNetworkResources Source #
See: newListNetworkResources
smart constructor.
ListNetworkResources' | |
|
Instances
newListNetworkResources Source #
Create a value of ListNetworkResources
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:filters:ListNetworkResources'
, listNetworkResources_filters
- The filters.
ORDER
- The Amazon Resource Name (ARN) of the order.STATUS
- The status (AVAILABLE
|DELETED
|DELETING
|PENDING
|PENDING_RETURN
|PROVISIONING
|SHIPPED
).
Filter values are case sensitive. If you specify multiple values for a
filter, the values are joined with an OR
, and the request returns all
results that match any of the specified values.
$sel:maxResults:ListNetworkResources'
, listNetworkResources_maxResults
- The maximum number of results to return.
$sel:startToken:ListNetworkResources'
, listNetworkResources_startToken
- The token for the next page of results.
ListNetworkResources
, listNetworkResources_networkArn
- The Amazon Resource Name (ARN) of the network.
Request Lenses
listNetworkResources_filters :: Lens' ListNetworkResources (Maybe (HashMap NetworkResourceFilterKeys [Text])) Source #
The filters.
ORDER
- The Amazon Resource Name (ARN) of the order.STATUS
- The status (AVAILABLE
|DELETED
|DELETING
|PENDING
|PENDING_RETURN
|PROVISIONING
|SHIPPED
).
Filter values are case sensitive. If you specify multiple values for a
filter, the values are joined with an OR
, and the request returns all
results that match any of the specified values.
listNetworkResources_maxResults :: Lens' ListNetworkResources (Maybe Natural) Source #
The maximum number of results to return.
listNetworkResources_startToken :: Lens' ListNetworkResources (Maybe Text) Source #
The token for the next page of results.
listNetworkResources_networkArn :: Lens' ListNetworkResources Text Source #
The Amazon Resource Name (ARN) of the network.
Destructuring the Response
data ListNetworkResourcesResponse Source #
See: newListNetworkResourcesResponse
smart constructor.
ListNetworkResourcesResponse' | |
|
Instances
newListNetworkResourcesResponse Source #
Create a value of ListNetworkResourcesResponse
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:networkResources:ListNetworkResourcesResponse'
, listNetworkResourcesResponse_networkResources
- Information about network resources.
$sel:nextToken:ListNetworkResourcesResponse'
, listNetworkResourcesResponse_nextToken
- The token for the next page of results.
$sel:httpStatus:ListNetworkResourcesResponse'
, listNetworkResourcesResponse_httpStatus
- The response's http status code.
Response Lenses
listNetworkResourcesResponse_networkResources :: Lens' ListNetworkResourcesResponse (Maybe [NetworkResource]) Source #
Information about network resources.
listNetworkResourcesResponse_nextToken :: Lens' ListNetworkResourcesResponse (Maybe Text) Source #
The token for the next page of results.
listNetworkResourcesResponse_httpStatus :: Lens' ListNetworkResourcesResponse Int Source #
The response's http status code.