| 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.GetInstance
Description
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.
Constructors
| GetInstance' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetInstance |
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:
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.
Constructors
| GetInstanceResponse' | |
Fields
| |
Instances
newGetInstanceResponse Source #
Arguments
| :: Int | |
| -> GetInstanceResponse |
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.