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 |
Gets information about any operation that returns an operation ID in the
response, such as a CreateService
request.
To get a list of operations that match specified criteria, see ListOperations.
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.
GetOperation' | |
|
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:
$sel:operationId:GetOperation'
, getOperation_operationId
- The ID of the operation that you want to get more information about.
Request Lenses
getOperation_operationId :: Lens' GetOperation Text Source #
The ID of the operation that you want to get more information about.
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
- A complex type that contains information about the operation.
$sel:httpStatus:GetOperationResponse'
, getOperationResponse_httpStatus
- The response's http status code.
Response Lenses
getOperationResponse_operation :: Lens' GetOperationResponse (Maybe Operation) Source #
A complex type that contains information about the operation.
getOperationResponse_httpStatus :: Lens' GetOperationResponse Int Source #
The response's http status code.