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 |
Returns information about a specific operation. Operations include events such as when you create an instance, allocate a static IP, attach a static IP, and so on.
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
- A GUID used to identify the operation.
Request Lenses
getOperation_operationId :: Lens' GetOperation Text Source #
A GUID used to identify the operation.
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
- An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
$sel:httpStatus:GetOperationResponse'
, getOperationResponse_httpStatus
- The response's http status code.
Response Lenses
getOperationResponse_operation :: Lens' GetOperationResponse (Maybe Operation) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
getOperationResponse_httpStatus :: Lens' GetOperationResponse Int Source #
The response's http status code.