amazonka-shield-2.0: Amazon Shield SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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.

For accounts that are members of an Organizations organization, Shield Advanced subscriptions are billed against the organization's payer account, regardless of whether the payer account itself is subscribed.

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

Defined in Amazonka.Shield.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

AWSRequest UpdateSubscription Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

Associated Types

type AWSResponse UpdateSubscription #

Generic UpdateSubscription Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

Associated Types

type Rep UpdateSubscription :: Type -> Type #

Read UpdateSubscription Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

Show UpdateSubscription Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

NFData UpdateSubscription Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

Methods

rnf :: UpdateSubscription -> () #

Eq UpdateSubscription Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

Hashable UpdateSubscription Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

type AWSResponse 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" "amazonka-shield-2.0-Cz9Fa9OSQ93AE4UCXBDcFo" 'False) (C1 ('MetaCons "UpdateSubscription'" 'PrefixI 'True) (S1 ('MetaSel ('Just "autoRenew") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AutoRenew))))

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:

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

Defined in Amazonka.Shield.UpdateSubscription

Associated Types

type Rep UpdateSubscriptionResponse :: Type -> Type #

Read UpdateSubscriptionResponse Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

Show UpdateSubscriptionResponse Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

NFData UpdateSubscriptionResponse Source # 
Instance details

Defined in Amazonka.Shield.UpdateSubscription

Eq 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" "amazonka-shield-2.0-Cz9Fa9OSQ93AE4UCXBDcFo" '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