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 |
Amazonka.CloudControl.ListResourceRequests
Description
Returns existing resource operation requests. This includes requests of all status types. For more information, see Listing active resource operation requests in the Amazon Web Services Cloud Control API User Guide.
Resource operation requests expire after seven days.
Synopsis
- data ListResourceRequests = ListResourceRequests' {}
- newListResourceRequests :: ListResourceRequests
- listResourceRequests_nextToken :: Lens' ListResourceRequests (Maybe Text)
- listResourceRequests_resourceRequestStatusFilter :: Lens' ListResourceRequests (Maybe ResourceRequestStatusFilter)
- listResourceRequests_maxResults :: Lens' ListResourceRequests (Maybe Natural)
- data ListResourceRequestsResponse = ListResourceRequestsResponse' {}
- newListResourceRequestsResponse :: Int -> ListResourceRequestsResponse
- listResourceRequestsResponse_resourceRequestStatusSummaries :: Lens' ListResourceRequestsResponse (Maybe [ProgressEvent])
- listResourceRequestsResponse_nextToken :: Lens' ListResourceRequestsResponse (Maybe Text)
- listResourceRequestsResponse_httpStatus :: Lens' ListResourceRequestsResponse Int
Creating a Request
data ListResourceRequests Source #
See: newListResourceRequests
smart constructor.
Constructors
ListResourceRequests' | |
Fields
|
Instances
newListResourceRequests :: ListResourceRequests Source #
Create a value of ListResourceRequests
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:nextToken:ListResourceRequests'
, listResourceRequests_nextToken
- If the previous paginated request didn't return all of the remaining
results, the response object's NextToken
parameter value is set to a
token. To retrieve the next set of results, call this action again and
assign that token to the request object's NextToken
parameter. If
there are no remaining results, the previous response object's
NextToken
parameter is set to null
.
$sel:resourceRequestStatusFilter:ListResourceRequests'
, listResourceRequests_resourceRequestStatusFilter
- The filter criteria to apply to the requests returned.
$sel:maxResults:ListResourceRequests'
, listResourceRequests_maxResults
- The maximum number of results to be returned with a single call. If the
number of available results exceeds this maximum, the response includes
a NextToken
value that you can assign to the NextToken
request
parameter to get the next set of results.
The default is 20
.
Request Lenses
listResourceRequests_nextToken :: Lens' ListResourceRequests (Maybe Text) Source #
If the previous paginated request didn't return all of the remaining
results, the response object's NextToken
parameter value is set to a
token. To retrieve the next set of results, call this action again and
assign that token to the request object's NextToken
parameter. If
there are no remaining results, the previous response object's
NextToken
parameter is set to null
.
listResourceRequests_resourceRequestStatusFilter :: Lens' ListResourceRequests (Maybe ResourceRequestStatusFilter) Source #
The filter criteria to apply to the requests returned.
listResourceRequests_maxResults :: Lens' ListResourceRequests (Maybe Natural) Source #
The maximum number of results to be returned with a single call. If the
number of available results exceeds this maximum, the response includes
a NextToken
value that you can assign to the NextToken
request
parameter to get the next set of results.
The default is 20
.
Destructuring the Response
data ListResourceRequestsResponse Source #
See: newListResourceRequestsResponse
smart constructor.
Constructors
ListResourceRequestsResponse' | |
Fields
|
Instances
newListResourceRequestsResponse Source #
Create a value of ListResourceRequestsResponse
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:resourceRequestStatusSummaries:ListResourceRequestsResponse'
, listResourceRequestsResponse_resourceRequestStatusSummaries
- The requests that match the specified filter criteria.
$sel:nextToken:ListResourceRequests'
, listResourceRequestsResponse_nextToken
- If the request doesn't return all of the remaining results, NextToken
is set to a token. To retrieve the next set of results, call
ListResources
again and assign that token to the request object's
NextToken
parameter. If the request returns all results, NextToken
is set to null.
$sel:httpStatus:ListResourceRequestsResponse'
, listResourceRequestsResponse_httpStatus
- The response's http status code.
Response Lenses
listResourceRequestsResponse_resourceRequestStatusSummaries :: Lens' ListResourceRequestsResponse (Maybe [ProgressEvent]) Source #
The requests that match the specified filter criteria.
listResourceRequestsResponse_nextToken :: Lens' ListResourceRequestsResponse (Maybe Text) Source #
If the request doesn't return all of the remaining results, NextToken
is set to a token. To retrieve the next set of results, call
ListResources
again and assign that token to the request object's
NextToken
parameter. If the request returns all results, NextToken
is set to null.
listResourceRequestsResponse_httpStatus :: Lens' ListResourceRequestsResponse Int Source #
The response's http status code.