libZSservicesZSamazonka-lightsailZSamazonka-lightsail
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Lightsail.GetInstance

Description

Returns information about a specific Amazon Lightsail instance, which is a virtual private server.

Synopsis

Creating a Request

data GetInstance Source #

See: newGetInstance smart constructor.

Constructors

GetInstance' 

Fields

Instances

Instances details
Eq GetInstance Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstance

Read GetInstance Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstance

Show GetInstance Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstance

Generic GetInstance Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstance

Associated Types

type Rep GetInstance :: Type -> Type #

NFData GetInstance Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstance

Methods

rnf :: GetInstance -> () #

Hashable GetInstance Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstance

ToJSON GetInstance Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstance

AWSRequest GetInstance Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstance

Associated Types

type AWSResponse GetInstance #

ToHeaders GetInstance Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstance

Methods

toHeaders :: GetInstance -> [Header] #

ToPath GetInstance Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstance

ToQuery GetInstance Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstance

type Rep GetInstance Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstance

type Rep GetInstance = D1 ('MetaData "GetInstance" "Amazonka.Lightsail.GetInstance" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "GetInstance'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instanceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetInstance Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstance

newGetInstance Source #

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

Destructuring the Response

data GetInstanceResponse Source #

See: newGetInstanceResponse smart constructor.

Constructors

GetInstanceResponse' 

Fields

Instances

Instances details
Eq GetInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstance

Read GetInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstance

Show GetInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstance

Generic GetInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstance

Associated Types

type Rep GetInstanceResponse :: Type -> Type #

NFData GetInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstance

Methods

rnf :: GetInstanceResponse -> () #

type Rep GetInstanceResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstance

type Rep GetInstanceResponse = D1 ('MetaData "GetInstanceResponse" "Amazonka.Lightsail.GetInstance" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "GetInstanceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instance'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Instance)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.