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 |
Gets the details of an operation by specifying the operation ID.
Synopsis
- data GetOperation = GetOperation' {
- operationId :: Text
- newGetOperation :: Text -> GetOperation
- getOperation_operationId :: Lens' GetOperation Text
- data GetOperationResponse = GetOperationResponse' {
- operation :: Maybe Operation
- httpStatus :: Int
- newGetOperationResponse :: Int -> GetOperationResponse
- getOperationResponse_operation :: Lens' GetOperationResponse (Maybe Operation)
- getOperationResponse_httpStatus :: Lens' GetOperationResponse Int
Creating a Request
data GetOperation Source #
See: newGetOperation
smart constructor.
Instances
Create a value of GetOperation
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:
Request Lenses
Destructuring the Response
data GetOperationResponse Source #
See: newGetOperationResponse
smart constructor.
GetOperationResponse' | |
|
Instances
newGetOperationResponse Source #
Create a value of GetOperationResponse
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:operation:GetOperationResponse'
, getOperationResponse_operation
-
$sel:httpStatus:GetOperationResponse'
, getOperationResponse_httpStatus
- The response's http status code.
Response Lenses
getOperationResponse_httpStatus :: Lens' GetOperationResponse Int Source #
The response's http status code.