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

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. This action also closes all currently open ports that are not included in the request. Include all of the ports and the protocols you want to open in your PutInstancePublicPortsrequest. Or use the OpenInstancePublicPorts action to open ports without closing currently open ports.

The PutInstancePublicPorts 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 PutInstancePublicPorts Source #

See: newPutInstancePublicPorts smart constructor.

Constructors

PutInstancePublicPorts' 

Fields

  • portInfos :: [PortInfo]

    An array of objects to describe the ports to open for the specified instance.

  • instanceName :: Text

    The name of the instance for which to open ports.

Instances

Instances details
Eq PutInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.PutInstancePublicPorts

Read PutInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.PutInstancePublicPorts

Show PutInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.PutInstancePublicPorts

Generic PutInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.PutInstancePublicPorts

Associated Types

type Rep PutInstancePublicPorts :: Type -> Type #

NFData PutInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.PutInstancePublicPorts

Methods

rnf :: PutInstancePublicPorts -> () #

Hashable PutInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.PutInstancePublicPorts

ToJSON PutInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.PutInstancePublicPorts

AWSRequest PutInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.PutInstancePublicPorts

Associated Types

type AWSResponse PutInstancePublicPorts #

ToHeaders PutInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.PutInstancePublicPorts

ToPath PutInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.PutInstancePublicPorts

ToQuery PutInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.PutInstancePublicPorts

type Rep PutInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.PutInstancePublicPorts

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

Defined in Amazonka.Lightsail.PutInstancePublicPorts

newPutInstancePublicPorts Source #

Create a value of PutInstancePublicPorts 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:portInfos:PutInstancePublicPorts', putInstancePublicPorts_portInfos - An array of objects to describe the ports to open for the specified instance.

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

Request Lenses

putInstancePublicPorts_portInfos :: Lens' PutInstancePublicPorts [PortInfo] Source #

An array of objects to describe the ports to open for the specified instance.

putInstancePublicPorts_instanceName :: Lens' PutInstancePublicPorts Text Source #

The name of the instance for which to open ports.

Destructuring the Response

data PutInstancePublicPortsResponse Source #

See: newPutInstancePublicPortsResponse smart constructor.

Constructors

PutInstancePublicPortsResponse' 

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 PutInstancePublicPortsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.PutInstancePublicPorts

Read PutInstancePublicPortsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.PutInstancePublicPorts

Show PutInstancePublicPortsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.PutInstancePublicPorts

Generic PutInstancePublicPortsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.PutInstancePublicPorts

Associated Types

type Rep PutInstancePublicPortsResponse :: Type -> Type #

NFData PutInstancePublicPortsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.PutInstancePublicPorts

type Rep PutInstancePublicPortsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.PutInstancePublicPorts

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

newPutInstancePublicPortsResponse Source #

Create a value of PutInstancePublicPortsResponse 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:PutInstancePublicPortsResponse', putInstancePublicPortsResponse_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:PutInstancePublicPortsResponse', putInstancePublicPortsResponse_httpStatus - The response's http status code.

Response Lenses

putInstancePublicPortsResponse_operation :: Lens' PutInstancePublicPortsResponse (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.