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

Description

Opens ports for a specific Amazon Lightsail instance, and specifies the IP addresses allowed to connect to the instance through the ports, and the protocol.

The OpenInstancePublicPorts action supports tag-based access control via resource tags applied to the resource identified by instanceName. For more information, see the Amazon Lightsail Developer Guide.

Synopsis

Creating a Request

data OpenInstancePublicPorts Source #

See: newOpenInstancePublicPorts smart constructor.

Constructors

OpenInstancePublicPorts' 

Fields

Instances

Instances details
Eq OpenInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.OpenInstancePublicPorts

Read OpenInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.OpenInstancePublicPorts

Show OpenInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.OpenInstancePublicPorts

Generic OpenInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.OpenInstancePublicPorts

Associated Types

type Rep OpenInstancePublicPorts :: Type -> Type #

NFData OpenInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.OpenInstancePublicPorts

Methods

rnf :: OpenInstancePublicPorts -> () #

Hashable OpenInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.OpenInstancePublicPorts

ToJSON OpenInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.OpenInstancePublicPorts

AWSRequest OpenInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.OpenInstancePublicPorts

ToHeaders OpenInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.OpenInstancePublicPorts

ToPath OpenInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.OpenInstancePublicPorts

ToQuery OpenInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.OpenInstancePublicPorts

type Rep OpenInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.OpenInstancePublicPorts

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

Defined in Amazonka.Lightsail.OpenInstancePublicPorts

newOpenInstancePublicPorts Source #

Create a value of OpenInstancePublicPorts 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:portInfo:OpenInstancePublicPorts', openInstancePublicPorts_portInfo - An object to describe the ports to open for the specified instance.

$sel:instanceName:OpenInstancePublicPorts', openInstancePublicPorts_instanceName - The name of the instance for which to open ports.

Request Lenses

openInstancePublicPorts_portInfo :: Lens' OpenInstancePublicPorts PortInfo Source #

An object to describe the ports to open for the specified instance.

openInstancePublicPorts_instanceName :: Lens' OpenInstancePublicPorts Text Source #

The name of the instance for which to open ports.

Destructuring the Response

data OpenInstancePublicPortsResponse Source #

See: newOpenInstancePublicPortsResponse smart constructor.

Constructors

OpenInstancePublicPortsResponse' 

Fields

  • operation :: Maybe Operation

    An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq OpenInstancePublicPortsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.OpenInstancePublicPorts

Read OpenInstancePublicPortsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.OpenInstancePublicPorts

Show OpenInstancePublicPortsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.OpenInstancePublicPorts

Generic OpenInstancePublicPortsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.OpenInstancePublicPorts

Associated Types

type Rep OpenInstancePublicPortsResponse :: Type -> Type #

NFData OpenInstancePublicPortsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.OpenInstancePublicPorts

type Rep OpenInstancePublicPortsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.OpenInstancePublicPorts

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

newOpenInstancePublicPortsResponse Source #

Create a value of OpenInstancePublicPortsResponse 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:operation:OpenInstancePublicPortsResponse', openInstancePublicPortsResponse_operation - An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

$sel:httpStatus:OpenInstancePublicPortsResponse', openInstancePublicPortsResponse_httpStatus - The response's http status code.

Response Lenses

openInstancePublicPortsResponse_operation :: Lens' OpenInstancePublicPortsResponse (Maybe Operation) Source #

An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.