Shield / Client / update_subscription

update_subscription#

Shield.Client.update_subscription(**kwargs)#

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

Note

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.

See also: AWS API Documentation

Request Syntax

response = client.update_subscription(
    AutoRenew='ENABLED'|'DISABLED'
)
Parameters:

AutoRenew (string) – 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.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • Shield.Client.exceptions.InternalErrorException

  • Shield.Client.exceptions.LockedSubscriptionException

  • Shield.Client.exceptions.ResourceNotFoundException

  • Shield.Client.exceptions.InvalidParameterException

  • Shield.Client.exceptions.OptimisticLockException