libZSservicesZSamazonka-shieldZSamazonka-shield
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.Shield.UpdateSubscription

Description

Updates the details of an existing subscription. Only enter values for parameters you want to change. Empty parameters are not updated.

Synopsis

Creating a Request

data UpdateSubscription Source #

See: newUpdateSubscription smart constructor.

Constructors

UpdateSubscription' 

Fields

  • autoRenew :: Maybe AutoRenew

    When you initally create a subscription, AutoRenew is set to ENABLED. If ENABLED, the subscription will be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription request. If the UpdateSubscription request does not included a value for AutoRenew, the existing value for AutoRenew remains unchanged.

Instances

Instances details
Eq UpdateSubscription Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

Read UpdateSubscription Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

Show UpdateSubscription Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

Generic UpdateSubscription Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

Associated Types

type Rep UpdateSubscription :: Type -> Type #

NFData UpdateSubscription Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

Methods

rnf :: UpdateSubscription -> () #

Hashable UpdateSubscription Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

ToJSON UpdateSubscription Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

AWSRequest UpdateSubscription Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

Associated Types

type AWSResponse UpdateSubscription #

ToHeaders UpdateSubscription Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

ToPath UpdateSubscription Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

ToQuery UpdateSubscription Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

type Rep UpdateSubscription Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

type Rep UpdateSubscription = D1 ('MetaData "UpdateSubscription" "Amazonka.Shield.UpdateSubscription" "libZSservicesZSamazonka-shieldZSamazonka-shield" 'False) (C1 ('MetaCons "UpdateSubscription'" 'PrefixI 'True) (S1 ('MetaSel ('Just "autoRenew") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AutoRenew))))
type AWSResponse UpdateSubscription Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

newUpdateSubscription :: UpdateSubscription Source #

Create a value of UpdateSubscription 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:autoRenew:UpdateSubscription', updateSubscription_autoRenew - When you initally create a subscription, AutoRenew is set to ENABLED. If ENABLED, the subscription will be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription request. If the UpdateSubscription request does not included a value for AutoRenew, the existing value for AutoRenew remains unchanged.

Request Lenses

updateSubscription_autoRenew :: Lens' UpdateSubscription (Maybe AutoRenew) Source #

When you initally create a subscription, AutoRenew is set to ENABLED. If ENABLED, the subscription will be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription request. If the UpdateSubscription request does not included a value for AutoRenew, the existing value for AutoRenew remains unchanged.

Destructuring the Response

data UpdateSubscriptionResponse Source #

See: newUpdateSubscriptionResponse smart constructor.

Constructors

UpdateSubscriptionResponse' 

Fields

Instances

Instances details
Eq UpdateSubscriptionResponse Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

Read UpdateSubscriptionResponse Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

Show UpdateSubscriptionResponse Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

Generic UpdateSubscriptionResponse Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

Associated Types

type Rep UpdateSubscriptionResponse :: Type -> Type #

NFData UpdateSubscriptionResponse Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

type Rep UpdateSubscriptionResponse Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

type Rep UpdateSubscriptionResponse = D1 ('MetaData "UpdateSubscriptionResponse" "Amazonka.Shield.UpdateSubscription" "libZSservicesZSamazonka-shieldZSamazonka-shield" 'False) (C1 ('MetaCons "UpdateSubscriptionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateSubscriptionResponse Source #

Create a value of UpdateSubscriptionResponse 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:httpStatus:UpdateSubscriptionResponse', updateSubscriptionResponse_httpStatus - The response's http status code.

Response Lenses