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

Description

Closes ports for a specific Amazon Lightsail instance.

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

See: newCloseInstancePublicPorts smart constructor.

Constructors

CloseInstancePublicPorts' 

Fields

Instances

Instances details
Eq CloseInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.CloseInstancePublicPorts

Read CloseInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.CloseInstancePublicPorts

Show CloseInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.CloseInstancePublicPorts

Generic CloseInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.CloseInstancePublicPorts

Associated Types

type Rep CloseInstancePublicPorts :: Type -> Type #

NFData CloseInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.CloseInstancePublicPorts

Hashable CloseInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.CloseInstancePublicPorts

ToJSON CloseInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.CloseInstancePublicPorts

AWSRequest CloseInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.CloseInstancePublicPorts

ToHeaders CloseInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.CloseInstancePublicPorts

ToPath CloseInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.CloseInstancePublicPorts

ToQuery CloseInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.CloseInstancePublicPorts

type Rep CloseInstancePublicPorts Source # 
Instance details

Defined in Amazonka.Lightsail.CloseInstancePublicPorts

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

Defined in Amazonka.Lightsail.CloseInstancePublicPorts

newCloseInstancePublicPorts Source #

Create a value of CloseInstancePublicPorts 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:CloseInstancePublicPorts', closeInstancePublicPorts_portInfo - An object to describe the ports to close for the specified instance.

$sel:instanceName:CloseInstancePublicPorts', closeInstancePublicPorts_instanceName - The name of the instance for which to close ports.

Request Lenses

closeInstancePublicPorts_portInfo :: Lens' CloseInstancePublicPorts PortInfo Source #

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

closeInstancePublicPorts_instanceName :: Lens' CloseInstancePublicPorts Text Source #

The name of the instance for which to close ports.

Destructuring the Response

data CloseInstancePublicPortsResponse Source #

See: newCloseInstancePublicPortsResponse smart constructor.

Constructors

CloseInstancePublicPortsResponse' 

Fields

  • operation :: Maybe Operation

    An object that describes 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 CloseInstancePublicPortsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CloseInstancePublicPorts

Read CloseInstancePublicPortsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CloseInstancePublicPorts

Show CloseInstancePublicPortsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CloseInstancePublicPorts

Generic CloseInstancePublicPortsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CloseInstancePublicPorts

Associated Types

type Rep CloseInstancePublicPortsResponse :: Type -> Type #

NFData CloseInstancePublicPortsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CloseInstancePublicPorts

type Rep CloseInstancePublicPortsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CloseInstancePublicPorts

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

newCloseInstancePublicPortsResponse Source #

Create a value of CloseInstancePublicPortsResponse 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:CloseInstancePublicPortsResponse', closeInstancePublicPortsResponse_operation - An object that describes 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:CloseInstancePublicPortsResponse', closeInstancePublicPortsResponse_httpStatus - The response's http status code.

Response Lenses

closeInstancePublicPortsResponse_operation :: Lens' CloseInstancePublicPortsResponse (Maybe Operation) Source #

An object that describes the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.