Skip to main content

subscriptions

Creates, updates, deletes, gets or lists a subscriptions resource.

Overview

Namesubscriptions
TypeResource
Idaws.shield.subscriptions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
auto_renewstringIf ENABLED, the subscription will be automatically renewed at the end of the existing subscription period. When you initally create a subscription, AutoRenew is set to ENABLED. 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. (ENABLED, DISABLED)
end_timestring (date-time)The date and time your subscription will end.
limitsarraySpecifies how many protections of a given type you can create.
proactive_engagement_statusstringIf ENABLED, the Shield Response Team (SRT) will use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support. If PENDING, you have requested proactive engagement and the request is pending. The status changes to ENABLED when your request is fully processed. If DISABLED, the SRT will not proactively notify contacts about escalations or to initiate proactive customer support. (ENABLED, DISABLED, PENDING)
start_timestring (date-time)The start time of the subscription, in Unix time in seconds.
subscription_arnstringThe ARN (Amazon Resource Name) of the subscription. (pattern: <code>^arn:aws.*</code>)
subscription_limitsobjectLimits settings for your subscription.
time_commitment_in_secondsinteger (int64)The length, in seconds, of the Shield Advanced subscription for the account.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_subscriptionselectregionProvides details about the Shield Advanced subscription for an account.
create_subscriptioninsertregionActivates Shield Advanced for an account. 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. When you initially create a subscription, your subscription is set to be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription request.
update_subscriptionupdateregionUpdates 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.
delete_subscriptiondeleteregionRemoves Shield Advanced from an account. Shield Advanced requires a 1-year subscription commitment. You cannot delete a subscription prior to the completion of that commitment.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Provides details about the Shield Advanced subscription for an account.

SELECT
auto_renew,
end_time,
limits,
proactive_engagement_status,
start_time,
subscription_arn,
subscription_limits,
time_commitment_in_seconds
FROM aws.shield.subscriptions
WHERE region = '{{ region }}' -- required
;

INSERT examples

Activates Shield Advanced for an account. 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. When you initially create a subscription, your subscription is set to be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription request.

INSERT INTO aws.shield.subscriptions (
region
)
SELECT
'{{ region }}'
;

UPDATE examples

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.

UPDATE aws.shield.subscriptions
SET
AutoRenew = '{{ AutoRenew }}'
WHERE
region = '{{ region }}' --required;

DELETE examples

Removes Shield Advanced from an account. Shield Advanced requires a 1-year subscription commitment. You cannot delete a subscription prior to the completion of that commitment.

DELETE FROM aws.shield.subscriptions
WHERE region = '{{ region }}' --required
;