DatabaseMigrationService / Client / describe_account_attributes

describe_account_attributes#

DatabaseMigrationService.Client.describe_account_attributes()#

Lists all of the DMS attributes for a customer account. These attributes include DMS quotas for the account and a unique account identifier in a particular DMS region. DMS quotas include a list of resource quotas supported by the account, such as the number of replication instances allowed. The description for each resource quota, includes the quota name, current usage toward that quota, and the quota’s maximum value. DMS uses the unique account identifier to name each artifact used by DMS in the given region.

This command does not take any parameters.

See also: AWS API Documentation

Request Syntax

response = client.describe_account_attributes()
Return type:

dict

Returns:

Response Syntax

{
    'AccountQuotas': [
        {
            'AccountQuotaName': 'string',
            'Used': 123,
            'Max': 123
        },
    ],
    'UniqueAccountIdentifier': 'string'
}

Response Structure

  • (dict) –

    • AccountQuotas (list) –

      Account quota information.

      • (dict) –

        Describes a quota for an Amazon Web Services account, for example the number of replication instances allowed.

        • AccountQuotaName (string) –

          The name of the DMS quota for this Amazon Web Services account.

        • Used (integer) –

          The amount currently used toward the quota maximum.

        • Max (integer) –

          The maximum allowed value for the quota.

    • UniqueAccountIdentifier (string) –

      A unique DMS identifier for an account in a particular Amazon Web Services Region. The value of this identifier has the following format: c99999999999. DMS uses this identifier to name artifacts. For example, DMS uses this identifier to name the default Amazon S3 bucket for storing task assessment reports in a given Amazon Web Services Region. The format of this S3 bucket name is the following: dms-AccountNumber-UniqueAccountIdentifier. Here is an example name for this default S3 bucket: dms-111122223333-c44445555666.

      Note

      DMS supports the UniqueAccountIdentifier parameter in versions 3.1.4 and later.

Examples

Lists all of the AWS DMS attributes for a customer account. The attributes include AWS DMS quotas for the account, such as the number of replication instances allowed. The description for a quota includes the quota name, current usage toward that quota, and the quota’s maximum value. This operation does not take any parameters.

response = client.describe_account_attributes(
)

print(response)

Expected Output:

{
    'AccountQuotas': [
        {
            'AccountQuotaName': 'ReplicationInstances',
            'Max': 20,
            'Used': 0,
        },
        {
            'AccountQuotaName': 'AllocatedStorage',
            'Max': 20,
            'Used': 0,
        },
        {
            'AccountQuotaName': 'Endpoints',
            'Max': 20,
            'Used': 0,
        },
    ],
    'ResponseMetadata': {
        '...': '...',
    },
}