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 |
Get an existing workload.
Synopsis
- data GetWorkload = GetWorkload' {
- workloadId :: Text
- newGetWorkload :: Text -> GetWorkload
- getWorkload_workloadId :: Lens' GetWorkload Text
- data GetWorkloadResponse = GetWorkloadResponse' {
- workload :: Maybe Workload
- httpStatus :: Int
- newGetWorkloadResponse :: Int -> GetWorkloadResponse
- getWorkloadResponse_workload :: Lens' GetWorkloadResponse (Maybe Workload)
- getWorkloadResponse_httpStatus :: Lens' GetWorkloadResponse Int
Creating a Request
data GetWorkload Source #
Input to get a workload.
See: newGetWorkload
smart constructor.
Instances
Create a value of GetWorkload
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:workloadId:GetWorkload'
, getWorkload_workloadId
- Undocumented member.
Request Lenses
getWorkload_workloadId :: Lens' GetWorkload Text Source #
Undocumented member.
Destructuring the Response
data GetWorkloadResponse Source #
Output of a get workload call.
See: newGetWorkloadResponse
smart constructor.
GetWorkloadResponse' | |
|
Instances
newGetWorkloadResponse Source #
Create a value of GetWorkloadResponse
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:workload:GetWorkloadResponse'
, getWorkloadResponse_workload
- Undocumented member.
$sel:httpStatus:GetWorkloadResponse'
, getWorkloadResponse_httpStatus
- The response's http status code.
Response Lenses
getWorkloadResponse_workload :: Lens' GetWorkloadResponse (Maybe Workload) Source #
Undocumented member.
getWorkloadResponse_httpStatus :: Lens' GetWorkloadResponse Int Source #
The response's http status code.