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

Description

Enables or modifies an add-on for an Amazon Lightsail resource. For more information, see the Amazon Lightsail Developer Guide.

Synopsis

Creating a Request

data EnableAddOn Source #

See: newEnableAddOn smart constructor.

Constructors

EnableAddOn' 

Fields

Instances

Instances details
Eq EnableAddOn Source # 
Instance details

Defined in Amazonka.Lightsail.EnableAddOn

Read EnableAddOn Source # 
Instance details

Defined in Amazonka.Lightsail.EnableAddOn

Show EnableAddOn Source # 
Instance details

Defined in Amazonka.Lightsail.EnableAddOn

Generic EnableAddOn Source # 
Instance details

Defined in Amazonka.Lightsail.EnableAddOn

Associated Types

type Rep EnableAddOn :: Type -> Type #

NFData EnableAddOn Source # 
Instance details

Defined in Amazonka.Lightsail.EnableAddOn

Methods

rnf :: EnableAddOn -> () #

Hashable EnableAddOn Source # 
Instance details

Defined in Amazonka.Lightsail.EnableAddOn

ToJSON EnableAddOn Source # 
Instance details

Defined in Amazonka.Lightsail.EnableAddOn

AWSRequest EnableAddOn Source # 
Instance details

Defined in Amazonka.Lightsail.EnableAddOn

Associated Types

type AWSResponse EnableAddOn #

ToHeaders EnableAddOn Source # 
Instance details

Defined in Amazonka.Lightsail.EnableAddOn

Methods

toHeaders :: EnableAddOn -> [Header] #

ToPath EnableAddOn Source # 
Instance details

Defined in Amazonka.Lightsail.EnableAddOn

ToQuery EnableAddOn Source # 
Instance details

Defined in Amazonka.Lightsail.EnableAddOn

type Rep EnableAddOn Source # 
Instance details

Defined in Amazonka.Lightsail.EnableAddOn

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

Defined in Amazonka.Lightsail.EnableAddOn

newEnableAddOn Source #

Create a value of EnableAddOn 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:resourceName:EnableAddOn', enableAddOn_resourceName - The name of the source resource for which to enable or modify the add-on.

$sel:addOnRequest:EnableAddOn', enableAddOn_addOnRequest - An array of strings representing the add-on to enable or modify.

Request Lenses

enableAddOn_resourceName :: Lens' EnableAddOn Text Source #

The name of the source resource for which to enable or modify the add-on.

enableAddOn_addOnRequest :: Lens' EnableAddOn AddOnRequest Source #

An array of strings representing the add-on to enable or modify.

Destructuring the Response

data EnableAddOnResponse Source #

See: newEnableAddOnResponse smart constructor.

Constructors

EnableAddOnResponse' 

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

Defined in Amazonka.Lightsail.EnableAddOn

Read EnableAddOnResponse Source # 
Instance details

Defined in Amazonka.Lightsail.EnableAddOn

Show EnableAddOnResponse Source # 
Instance details

Defined in Amazonka.Lightsail.EnableAddOn

Generic EnableAddOnResponse Source # 
Instance details

Defined in Amazonka.Lightsail.EnableAddOn

Associated Types

type Rep EnableAddOnResponse :: Type -> Type #

NFData EnableAddOnResponse Source # 
Instance details

Defined in Amazonka.Lightsail.EnableAddOn

Methods

rnf :: EnableAddOnResponse -> () #

type Rep EnableAddOnResponse Source # 
Instance details

Defined in Amazonka.Lightsail.EnableAddOn

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

newEnableAddOnResponse Source #

Create a value of EnableAddOnResponse 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:EnableAddOnResponse', enableAddOnResponse_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:EnableAddOnResponse', enableAddOnResponse_httpStatus - The response's http status code.

Response Lenses

enableAddOnResponse_operations :: Lens' EnableAddOnResponse (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.