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 information about a specified instance.
Synopsis
- data GetInstance = GetInstance' {
- serviceId :: Text
- instanceId :: Text
- newGetInstance :: Text -> Text -> GetInstance
- getInstance_serviceId :: Lens' GetInstance Text
- getInstance_instanceId :: Lens' GetInstance Text
- data GetInstanceResponse = GetInstanceResponse' {
- instance' :: Maybe Instance
- httpStatus :: Int
- newGetInstanceResponse :: Int -> GetInstanceResponse
- getInstanceResponse_instance :: Lens' GetInstanceResponse (Maybe Instance)
- getInstanceResponse_httpStatus :: Lens' GetInstanceResponse Int
Creating a Request
data GetInstance Source #
See: newGetInstance
smart constructor.
GetInstance' | |
|
Instances
Create a value of GetInstance
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:serviceId:GetInstance'
, getInstance_serviceId
- The ID of the service that the instance is associated with.
GetInstance
, getInstance_instanceId
- The ID of the instance that you want to get information about.
Request Lenses
getInstance_serviceId :: Lens' GetInstance Text Source #
The ID of the service that the instance is associated with.
getInstance_instanceId :: Lens' GetInstance Text Source #
The ID of the instance that you want to get information about.
Destructuring the Response
data GetInstanceResponse Source #
See: newGetInstanceResponse
smart constructor.
GetInstanceResponse' | |
|
Instances
newGetInstanceResponse Source #
Create a value of GetInstanceResponse
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:instance':GetInstanceResponse'
, getInstanceResponse_instance
- A complex type that contains information about a specified instance.
$sel:httpStatus:GetInstanceResponse'
, getInstanceResponse_httpStatus
- The response's http status code.
Response Lenses
getInstanceResponse_instance :: Lens' GetInstanceResponse (Maybe Instance) Source #
A complex type that contains information about a specified instance.
getInstanceResponse_httpStatus :: Lens' GetInstanceResponse Int Source #
The response's http status code.