Skip to content

describe_account_attributes async

describe_account_attributes(
    *, config_overrides: Optional[AsyncDatabaseMigrationServiceClientConfig] = None
) -> DescribeAccountAttributesResponse

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.

Raises:

Examples:

Describe acount attributes 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.

>>> await client.describe_account_attributes()
Source code in docs_src/capo_database_migration_service/_services/async_database_migration_service.py
async def describe_account_attributes(
    self,
    *,
    config_overrides: Optional[AsyncDatabaseMigrationServiceClientConfig] = None,
) -> "capo_database_migration_service.types.describe_account_attributes_response.DescribeAccountAttributesResponse":
    """<p>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.</p> <p>This command does not take any parameters.</p>

    Raises:
        capo_database_migration_service.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        Describe acount attributes
        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.

        >>> await client.describe_account_attributes()
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_database_migration_service.types.describe_account_attributes_message.DescribeAccountAttributesMessage]",
    ) -> AsyncOperationResponse[
        "capo_database_migration_service.types.describe_account_attributes_response.DescribeAccountAttributesResponse"
    ]:
        import capo_database_migration_service._operations.amazon_dm_sv20160101.describe_account_attributes

        (
            output,
            http_response,
        ) = await capo_database_migration_service._operations.amazon_dm_sv20160101.describe_account_attributes.async_describe_account_attributes(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeAccountAttributes")
    )
    input_: capo_database_migration_service.types.describe_account_attributes_message.DescribeAccountAttributesMessage = {}

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