| 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 |
Amazonka.Lightsail.GetOperation
Description
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.
Constructors
| GetOperation' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetOperation |
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.
Constructors
| GetOperationResponse' | |
Fields
| |
Instances
newGetOperationResponse Source #
Arguments
| :: Int | |
| -> GetOperationResponse |
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.