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 |
Retrieves the work units generated by the StartQueryPlanning
operation.
This operation returns paginated results.
Synopsis
- data GetWorkUnits = GetWorkUnits' {}
- newGetWorkUnits :: Text -> GetWorkUnits
- getWorkUnits_nextToken :: Lens' GetWorkUnits (Maybe Text)
- getWorkUnits_pageSize :: Lens' GetWorkUnits (Maybe Int)
- getWorkUnits_queryId :: Lens' GetWorkUnits Text
- data GetWorkUnitsResponse = GetWorkUnitsResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- queryId :: Text
- workUnitRanges :: [WorkUnitRange]
- newGetWorkUnitsResponse :: Int -> Text -> GetWorkUnitsResponse
- getWorkUnitsResponse_nextToken :: Lens' GetWorkUnitsResponse (Maybe Text)
- getWorkUnitsResponse_httpStatus :: Lens' GetWorkUnitsResponse Int
- getWorkUnitsResponse_queryId :: Lens' GetWorkUnitsResponse Text
- getWorkUnitsResponse_workUnitRanges :: Lens' GetWorkUnitsResponse [WorkUnitRange]
Creating a Request
data GetWorkUnits Source #
See: newGetWorkUnits
smart constructor.
GetWorkUnits' | |
|
Instances
Create a value of GetWorkUnits
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:
GetWorkUnits
, getWorkUnits_nextToken
- A continuation token, if this is a continuation call.
$sel:pageSize:GetWorkUnits'
, getWorkUnits_pageSize
- The size of each page to get in the Amazon Web Services service call.
This does not affect the number of items returned in the command's
output. Setting a smaller page size results in more calls to the Amazon
Web Services service, retrieving fewer items in each call. This can help
prevent the Amazon Web Services service calls from timing out.
GetWorkUnits
, getWorkUnits_queryId
- The ID of the plan query operation.
Request Lenses
getWorkUnits_nextToken :: Lens' GetWorkUnits (Maybe Text) Source #
A continuation token, if this is a continuation call.
getWorkUnits_pageSize :: Lens' GetWorkUnits (Maybe Int) Source #
The size of each page to get in the Amazon Web Services service call. This does not affect the number of items returned in the command's output. Setting a smaller page size results in more calls to the Amazon Web Services service, retrieving fewer items in each call. This can help prevent the Amazon Web Services service calls from timing out.
getWorkUnits_queryId :: Lens' GetWorkUnits Text Source #
The ID of the plan query operation.
Destructuring the Response
data GetWorkUnitsResponse Source #
A structure for the output.
See: newGetWorkUnitsResponse
smart constructor.
GetWorkUnitsResponse' | |
|
Instances
newGetWorkUnitsResponse Source #
Create a value of GetWorkUnitsResponse
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:
GetWorkUnits
, getWorkUnitsResponse_nextToken
- A continuation token for paginating the returned list of tokens,
returned if the current segment of the list is not the last.
$sel:httpStatus:GetWorkUnitsResponse'
, getWorkUnitsResponse_httpStatus
- The response's http status code.
GetWorkUnits
, getWorkUnitsResponse_queryId
- The ID of the plan query operation.
$sel:workUnitRanges:GetWorkUnitsResponse'
, getWorkUnitsResponse_workUnitRanges
- A WorkUnitRangeList
object that specifies the valid range of work unit
IDs for querying the execution service.
Response Lenses
getWorkUnitsResponse_nextToken :: Lens' GetWorkUnitsResponse (Maybe Text) Source #
A continuation token for paginating the returned list of tokens, returned if the current segment of the list is not the last.
getWorkUnitsResponse_httpStatus :: Lens' GetWorkUnitsResponse Int Source #
The response's http status code.
getWorkUnitsResponse_queryId :: Lens' GetWorkUnitsResponse Text Source #
The ID of the plan query operation.
getWorkUnitsResponse_workUnitRanges :: Lens' GetWorkUnitsResponse [WorkUnitRange] Source #
A WorkUnitRangeList
object that specifies the valid range of work unit
IDs for querying the execution service.