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 Amazon Lightsail instance, which is a virtual private server.
Synopsis
- data GetInstance = GetInstance' {
- instanceName :: Text
- newGetInstance :: Text -> GetInstance
- getInstance_instanceName :: 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:instanceName:GetInstance'
, getInstance_instanceName
- The name of the instance.
Request Lenses
getInstance_instanceName :: Lens' GetInstance Text Source #
The name of the instance.
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
- An array of key-value pairs containing information about the specified
instance.
$sel:httpStatus:GetInstanceResponse'
, getInstanceResponse_httpStatus
- The response's http status code.
Response Lenses
getInstanceResponse_instance :: Lens' GetInstanceResponse (Maybe Instance) Source #
An array of key-value pairs containing information about the specified instance.
getInstanceResponse_httpStatus :: Lens' GetInstanceResponse Int Source #
The response's http status code.