Skip to content

delete_account_subscription async

delete_account_subscription(
    aws_account_id: AwsAccountId,
    *,
    config_overrides: Optional[AsyncQuickSightClientConfig] = None,
) -> DeleteAccountSubscriptionResponse

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.

Parameters:

  • aws_account_id (AwsAccountId) –

    The Amazon Web Services account ID of the account that you want to delete.

Raises:

Source code in docs_src/capo_quicksight/_services/async_quick_sight.py
async def delete_account_subscription(
    self,
    aws_account_id: "capo_quicksight.types.aws_account_id.AwsAccountId",
    *,
    config_overrides: Optional[AsyncQuickSightClientConfig] = None,
) -> "capo_quicksight.types.delete_account_subscription_response.DeleteAccountSubscriptionResponse":
    """<important> <p>Deleting your Quick Sight account subscription has permanent, irreversible consequences across all Amazon Web Services regions:</p> <ul> <li> <p>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.</p> </li> <li> <p>Complete data loss – All dashboards, analyses, datasets, data sources, and custom visuals will be permanently deleted across all regions.</p> </li> <li> <p>Embedded content failure – All embedded dashboards and visuals in your applications will immediately stop working and display errors to end users.</p> </li> <li> <p>Shared resources removed – All shared dashboards, folders, and resources will become inaccessible to other users and external recipients.</p> </li> <li> <p>User access terminated – All Quick Sight users in your account will lose access immediately, including authors, readers, and administrators.</p> </li> <li> <p> <b>No recovery possible</b> – Once deleted, your Quick Sight account and all associated data cannot be restored.</p> </li> </ul> <p>Consider exporting critical dashboards and data before proceeding with account deletion.</p> </important> <p>Use the <code>DeleteAccountSubscription</code> 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 <code>True</code>. To change this setting and delete your account, call the <code>UpdateAccountSettings</code> API and set the value of the <code>TerminationProtectionEnabled</code> parameter to <code>False</code>, then make another call to the <code>DeleteAccountSubscription</code> API.</p>

    Args:
        aws_account_id: <p>The Amazon Web Services account ID of the account that you want to delete.</p>

    Raises:
        capo_quicksight.errors.access_denied_exception.AccessDeniedException: <p>You don't have access to this item. The provided credentials couldn't be validated. You might not be authorized to carry out the request. Make sure that your account is authorized to use the Amazon Quick Sight service, that your policies have the correct permissions, and that you are using the correct credentials.</p>
        capo_quicksight.errors.internal_failure_exception.InternalFailureException: <p>An internal failure occurred.</p>
        capo_quicksight.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One or more parameters has a value that isn't valid.</p>
        capo_quicksight.errors.precondition_not_met_exception.PreconditionNotMetException: <p>One or more preconditions aren't met.</p>
        capo_quicksight.errors.resource_not_found_exception.ResourceNotFoundException: <p>One or more resources can't be found.</p>
        capo_quicksight.errors.resource_unavailable_exception.ResourceUnavailableException: <p>This resource is currently unavailable.</p>
        capo_quicksight.errors.throttling_exception.ThrottlingException: <p>Access is throttled.</p>
        capo_quicksight.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_quicksight.types.delete_account_subscription_request.DeleteAccountSubscriptionRequest]",
    ) -> AsyncOperationResponse[
        "capo_quicksight.types.delete_account_subscription_response.DeleteAccountSubscriptionResponse"
    ]:
        import capo_quicksight._operations.quick_sight_20180401.delete_account_subscription

        (
            output,
            http_response,
        ) = await capo_quicksight._operations.quick_sight_20180401.delete_account_subscription.async_delete_account_subscription(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteAccountSubscription")
    )
    input_: capo_quicksight.types.delete_account_subscription_request.DeleteAccountSubscriptionRequest = {
        "aws_account_id": aws_account_id
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output