Skip to content

describe_account_attributes async

describe_account_attributes(
    *, config_overrides: Optional[AsyncRDSClientConfig] = None
) -> AccountAttributesMessage

Lists all of the attributes for a customer account. The attributes include Amazon RDS quotas for the account, such as the number of DB instances allowed. The description for a quota includes the quota name, current usage toward that quota, and the quota's maximum value.

This command doesn't take any parameters.

Raises:

Examples:

To describe account attributes The following example retrieves the attributes for the current AWS account.

>>> await client.describe_account_attributes()
Source code in docs_src/capo_rds/_services/async_rds.py
async def describe_account_attributes(
    self, *, config_overrides: Optional[AsyncRDSClientConfig] = None
) -> "capo_rds.types.account_attributes_message.AccountAttributesMessage":
    """<p>Lists all of the attributes for a customer account. The attributes include Amazon RDS quotas for the account, such as the number of DB instances allowed. The description for a quota includes the quota name, current usage toward that quota, and the quota's maximum value.</p> <p>This command doesn't take any parameters.</p>

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

    Examples:
        To describe account attributes
        The following example retrieves the attributes for the current AWS account.

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

    async def _handler(
        req: "AsyncOperationRequest[capo_rds.types.describe_account_attributes_message.DescribeAccountAttributesMessage]",
    ) -> AsyncOperationResponse[
        "capo_rds.types.account_attributes_message.AccountAttributesMessage"
    ]:
        import capo_rds._operations.amazon_rd_sv19.describe_account_attributes

        (
            output,
            http_response,
        ) = await capo_rds._operations.amazon_rd_sv19.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_rds.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