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

Description

Attaches a static IP address to a specific Amazon Lightsail instance.

Synopsis

Creating a Request

data AttachStaticIp Source #

See: newAttachStaticIp smart constructor.

Constructors

AttachStaticIp' 

Fields

Instances

Instances details
Eq AttachStaticIp Source # 
Instance details

Defined in Amazonka.Lightsail.AttachStaticIp

Read AttachStaticIp Source # 
Instance details

Defined in Amazonka.Lightsail.AttachStaticIp

Show AttachStaticIp Source # 
Instance details

Defined in Amazonka.Lightsail.AttachStaticIp

Generic AttachStaticIp Source # 
Instance details

Defined in Amazonka.Lightsail.AttachStaticIp

Associated Types

type Rep AttachStaticIp :: Type -> Type #

NFData AttachStaticIp Source # 
Instance details

Defined in Amazonka.Lightsail.AttachStaticIp

Methods

rnf :: AttachStaticIp -> () #

Hashable AttachStaticIp Source # 
Instance details

Defined in Amazonka.Lightsail.AttachStaticIp

ToJSON AttachStaticIp Source # 
Instance details

Defined in Amazonka.Lightsail.AttachStaticIp

AWSRequest AttachStaticIp Source # 
Instance details

Defined in Amazonka.Lightsail.AttachStaticIp

Associated Types

type AWSResponse AttachStaticIp #

ToHeaders AttachStaticIp Source # 
Instance details

Defined in Amazonka.Lightsail.AttachStaticIp

ToPath AttachStaticIp Source # 
Instance details

Defined in Amazonka.Lightsail.AttachStaticIp

ToQuery AttachStaticIp Source # 
Instance details

Defined in Amazonka.Lightsail.AttachStaticIp

type Rep AttachStaticIp Source # 
Instance details

Defined in Amazonka.Lightsail.AttachStaticIp

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

Defined in Amazonka.Lightsail.AttachStaticIp

newAttachStaticIp Source #

Create a value of AttachStaticIp 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:staticIpName:AttachStaticIp', attachStaticIp_staticIpName - The name of the static IP.

$sel:instanceName:AttachStaticIp', attachStaticIp_instanceName - The instance name to which you want to attach the static IP address.

Request Lenses

attachStaticIp_instanceName :: Lens' AttachStaticIp Text Source #

The instance name to which you want to attach the static IP address.

Destructuring the Response

data AttachStaticIpResponse Source #

See: newAttachStaticIpResponse smart constructor.

Constructors

AttachStaticIpResponse' 

Fields

  • operations :: 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 AttachStaticIpResponse Source # 
Instance details

Defined in Amazonka.Lightsail.AttachStaticIp

Read AttachStaticIpResponse Source # 
Instance details

Defined in Amazonka.Lightsail.AttachStaticIp

Show AttachStaticIpResponse Source # 
Instance details

Defined in Amazonka.Lightsail.AttachStaticIp

Generic AttachStaticIpResponse Source # 
Instance details

Defined in Amazonka.Lightsail.AttachStaticIp

Associated Types

type Rep AttachStaticIpResponse :: Type -> Type #

NFData AttachStaticIpResponse Source # 
Instance details

Defined in Amazonka.Lightsail.AttachStaticIp

Methods

rnf :: AttachStaticIpResponse -> () #

type Rep AttachStaticIpResponse Source # 
Instance details

Defined in Amazonka.Lightsail.AttachStaticIp

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

newAttachStaticIpResponse Source #

Create a value of AttachStaticIpResponse 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:operations:AttachStaticIpResponse', attachStaticIpResponse_operations - 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:AttachStaticIpResponse', attachStaticIpResponse_httpStatus - The response's http status code.

Response Lenses

attachStaticIpResponse_operations :: Lens' AttachStaticIpResponse (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.