Skip to main content

account_subscriptions

Creates, updates, deletes, gets or lists an account_subscriptions resource.

Overview

Nameaccount_subscriptions
TypeResource
Idaws.quicksight.account_subscriptions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_infoobjectA structure that contains the following elements: Your Quick Sight account name. The edition of Quick Sight that your account is using. The notification email address that is associated with the Amazon Quick Sight account. The authentication type of the Quick Sight account. The status of the Quick Sight account's subscription.
request_idstringThe Amazon Web Services request ID for this operation.
statusintegerThe HTTP status of the request.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_account_subscriptionselectaws_account_id, regionUse the DescribeAccountSubscription operation to receive a description of an Quick Sight account's subscription. A successful API call returns an AccountInfo object that includes an account's name, subscription status, authentication type, edition, and notification email address.
create_account_subscriptioninsertaws_account_id, region, AuthenticationMethod, AccountName, NotificationEmailCreates an Amazon Quick Sight account, or subscribes to Amazon Quick Sight Q. The Amazon Web Services Region for the account is derived from what is configured in the CLI or SDK. Before you use this operation, make sure that you can connect to an existing Amazon Web Services account. If you don't have an Amazon Web Services account, see Sign up for Amazon Web Services in the Amazon Quick Sight User Guide. The person who signs up for Amazon Quick Sight needs to have the correct Identity and Access Management (IAM) permissions. For more information, see IAM Policy Examples for Amazon Quick Sight in the Amazon Quick Sight User Guide. If your IAM policy includes both the Subscribe and CreateAccountSubscription actions, make sure that both actions are set to Allow. If either action is set to Deny, the Deny action prevails and your API call fails. You can't pass an existing IAM role to access other Amazon Web Services services using this API operation. To pass your existing IAM role to Amazon Quick Sight, see Passing IAM roles to Amazon Quick Sight in the Amazon Quick Sight User Guide. You can't set default resource access on the new account from the Amazon Quick Sight API. Instead, add default resource access from the Amazon Quick Sight console. For more information about setting default resource access to Amazon Web Services services, see Setting default resource access to Amazon Web Services services in the Amazon Quick Sight User Guide.
delete_account_subscriptiondeleteaws_account_id, regionDeleting your Quick Sight account subscription has permanent, irreversible consequences across all Amazon Web Services regions: Global deletion – Running this operation from any single region will delete your Quick Sight account and all data in every Amazon Web Services region where you have Quick Sight resources. Complete data loss – All dashboards, analyses, datasets, data sources, and custom visuals will be permanently deleted across all regions. Embedded content failure – All embedded dashboards and visuals in your applications will immediately stop working and display errors to end users. Shared resources removed – All shared dashboards, folders, and resources will become inaccessible to other users and external recipients. User access terminated – All Quick Sight users in your account will lose access immediately, including authors, readers, and administrators. No recovery possible – Once deleted, your Quick Sight account and all associated data cannot be restored. Consider exporting critical dashboards and data before proceeding with account deletion. Use the DeleteAccountSubscription operation to delete an Quick Sight account. This operation will result in an error message if you have configured your account termination protection settings to True. To change this setting and delete your account, call the UpdateAccountSettings API and set the value of the TerminationProtectionEnabled parameter to False, then make another call to the DeleteAccountSubscription API.

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
aws_account_idstringThe Amazon Web Services account ID of the account that you want to delete.
regionstringAWS region (default: us-east-1)

SELECT examples

Use the DescribeAccountSubscription operation to receive a description of an Quick Sight account's subscription. A successful API call returns an AccountInfo object that includes an account's name, subscription status, authentication type, edition, and notification email address.

SELECT
account_info,
request_id,
status
FROM aws.quicksight.account_subscriptions
WHERE aws_account_id = '{{ aws_account_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an Amazon Quick Sight account, or subscribes to Amazon Quick Sight Q. The Amazon Web Services Region for the account is derived from what is configured in the CLI or SDK. Before you use this operation, make sure that you can connect to an existing Amazon Web Services account. If you don't have an Amazon Web Services account, see Sign up for Amazon Web Services in the Amazon Quick Sight User Guide. The person who signs up for Amazon Quick Sight needs to have the correct Identity and Access Management (IAM) permissions. For more information, see IAM Policy Examples for Amazon Quick Sight in the Amazon Quick Sight User Guide. If your IAM policy includes both the Subscribe and CreateAccountSubscription actions, make sure that both actions are set to Allow. If either action is set to Deny, the Deny action prevails and your API call fails. You can't pass an existing IAM role to access other Amazon Web Services services using this API operation. To pass your existing IAM role to Amazon Quick Sight, see Passing IAM roles to Amazon Quick Sight in the Amazon Quick Sight User Guide. You can't set default resource access on the new account from the Amazon Quick Sight API. Instead, add default resource access from the Amazon Quick Sight console. For more information about setting default resource access to Amazon Web Services services, see Setting default resource access to Amazon Web Services services in the Amazon Quick Sight User Guide.

INSERT INTO aws.quicksight.account_subscriptions (
Edition,
AuthenticationMethod,
AccountName,
NotificationEmail,
ActiveDirectoryName,
Realm,
DirectoryId,
AdminGroup,
AuthorGroup,
ReaderGroup,
AdminProGroup,
AuthorProGroup,
ReaderProGroup,
FirstName,
LastName,
EmailAddress,
ContactNumber,
IAMIdentityCenterInstanceArn,
aws_account_id,
region
)
SELECT
'{{ Edition }}',
'{{ AuthenticationMethod }}' /* required */,
'{{ AccountName }}' /* required */,
'{{ NotificationEmail }}' /* required */,
'{{ ActiveDirectoryName }}',
'{{ Realm }}',
'{{ DirectoryId }}',
'{{ AdminGroup }}',
'{{ AuthorGroup }}',
'{{ ReaderGroup }}',
'{{ AdminProGroup }}',
'{{ AuthorProGroup }}',
'{{ ReaderProGroup }}',
'{{ FirstName }}',
'{{ LastName }}',
'{{ EmailAddress }}',
'{{ ContactNumber }}',
'{{ IAMIdentityCenterInstanceArn }}',
'{{ aws_account_id }}',
'{{ region }}'
RETURNING
request_id,
signup_response,
status
;

DELETE examples

Deleting your Quick Sight account subscription has permanent, irreversible consequences across all Amazon Web Services regions: Global deletion – Running this operation from any single region will delete your Quick Sight account and all data in every Amazon Web Services region where you have Quick Sight resources. Complete data loss – All dashboards, analyses, datasets, data sources, and custom visuals will be permanently deleted across all regions. Embedded content failure – All embedded dashboards and visuals in your applications will immediately stop working and display errors to end users. Shared resources removed – All shared dashboards, folders, and resources will become inaccessible to other users and external recipients. User access terminated – All Quick Sight users in your account will lose access immediately, including authors, readers, and administrators. No recovery possible – Once deleted, your Quick Sight account and all associated data cannot be restored. Consider exporting critical dashboards and data before proceeding with account deletion. Use the DeleteAccountSubscription operation to delete an Quick Sight account. This operation will result in an error message if you have configured your account termination protection settings to True. To change this setting and delete your account, call the UpdateAccountSettings API and set the value of the TerminationProtectionEnabled parameter to False, then make another call to the DeleteAccountSubscription API.

DELETE FROM aws.quicksight.account_subscriptions
WHERE aws_account_id = '{{ aws_account_id }}' --required
AND region = '{{ region }}' --required
;