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 the state of a specific instance. Works on one instance at a time.
Synopsis
- data GetInstanceState = GetInstanceState' {
- instanceName :: Text
- newGetInstanceState :: Text -> GetInstanceState
- getInstanceState_instanceName :: Lens' GetInstanceState Text
- data GetInstanceStateResponse = GetInstanceStateResponse' {
- state :: Maybe InstanceState
- httpStatus :: Int
- newGetInstanceStateResponse :: Int -> GetInstanceStateResponse
- getInstanceStateResponse_state :: Lens' GetInstanceStateResponse (Maybe InstanceState)
- getInstanceStateResponse_httpStatus :: Lens' GetInstanceStateResponse Int
Creating a Request
data GetInstanceState Source #
See: newGetInstanceState
smart constructor.
GetInstanceState' | |
|
Instances
Create a value of GetInstanceState
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:instanceName:GetInstanceState'
, getInstanceState_instanceName
- The name of the instance to get state information about.
Request Lenses
getInstanceState_instanceName :: Lens' GetInstanceState Text Source #
The name of the instance to get state information about.
Destructuring the Response
data GetInstanceStateResponse Source #
See: newGetInstanceStateResponse
smart constructor.
GetInstanceStateResponse' | |
|
Instances
newGetInstanceStateResponse Source #
Create a value of GetInstanceStateResponse
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:state:GetInstanceStateResponse'
, getInstanceStateResponse_state
- The state of the instance.
$sel:httpStatus:GetInstanceStateResponse'
, getInstanceStateResponse_httpStatus
- The response's http status code.
Response Lenses
getInstanceStateResponse_state :: Lens' GetInstanceStateResponse (Maybe InstanceState) Source #
The state of the instance.
getInstanceStateResponse_httpStatus :: Lens' GetInstanceStateResponse Int Source #
The response's http status code.