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.GetInstancePortStates

Description

Returns the firewall port states for a specific Amazon Lightsail instance, the IP addresses allowed to connect to the instance through the ports, and the protocol.

Synopsis

Creating a Request

data GetInstancePortStates Source #

See: newGetInstancePortStates smart constructor.

Constructors

GetInstancePortStates' 

Fields

  • instanceName :: Text

    The name of the instance for which to return firewall port states.

Instances

Instances details
Eq GetInstancePortStates Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstancePortStates

Read GetInstancePortStates Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstancePortStates

Show GetInstancePortStates Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstancePortStates

Generic GetInstancePortStates Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstancePortStates

Associated Types

type Rep GetInstancePortStates :: Type -> Type #

NFData GetInstancePortStates Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstancePortStates

Methods

rnf :: GetInstancePortStates -> () #

Hashable GetInstancePortStates Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstancePortStates

ToJSON GetInstancePortStates Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstancePortStates

AWSRequest GetInstancePortStates Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstancePortStates

Associated Types

type AWSResponse GetInstancePortStates #

ToHeaders GetInstancePortStates Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstancePortStates

ToPath GetInstancePortStates Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstancePortStates

ToQuery GetInstancePortStates Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstancePortStates

type Rep GetInstancePortStates Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstancePortStates

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

Defined in Amazonka.Lightsail.GetInstancePortStates

newGetInstancePortStates Source #

Create a value of GetInstancePortStates 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:GetInstancePortStates', getInstancePortStates_instanceName - The name of the instance for which to return firewall port states.

Request Lenses

getInstancePortStates_instanceName :: Lens' GetInstancePortStates Text Source #

The name of the instance for which to return firewall port states.

Destructuring the Response

data GetInstancePortStatesResponse Source #

See: newGetInstancePortStatesResponse smart constructor.

Constructors

GetInstancePortStatesResponse' 

Fields

Instances

Instances details
Eq GetInstancePortStatesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstancePortStates

Read GetInstancePortStatesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstancePortStates

Show GetInstancePortStatesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstancePortStates

Generic GetInstancePortStatesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstancePortStates

Associated Types

type Rep GetInstancePortStatesResponse :: Type -> Type #

NFData GetInstancePortStatesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstancePortStates

type Rep GetInstancePortStatesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstancePortStates

type Rep GetInstancePortStatesResponse = D1 ('MetaData "GetInstancePortStatesResponse" "Amazonka.Lightsail.GetInstancePortStates" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "GetInstancePortStatesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "portStates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [InstancePortState])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetInstancePortStatesResponse Source #

Create a value of GetInstancePortStatesResponse 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:portStates:GetInstancePortStatesResponse', getInstancePortStatesResponse_portStates - An array of objects that describe the firewall port states for the specified instance.

$sel:httpStatus:GetInstancePortStatesResponse', getInstancePortStatesResponse_httpStatus - The response's http status code.

Response Lenses

getInstancePortStatesResponse_portStates :: Lens' GetInstancePortStatesResponse (Maybe [InstancePortState]) Source #

An array of objects that describe the firewall port states for the specified instance.