Skip to content

describe_account_attributes

describe_account_attributes(
    *, config_overrides: Optional[RDSClientConfig] = 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.

>>> client.describe_account_attributes()
Source code in docs_src/capo_rds/_services/rds.py
def describe_account_attributes(
    self, *, config_overrides: Optional[RDSClientConfig] = 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.

        >>> client.describe_account_attributes()
    """

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

        output, http_response = (
            capo_rds._operations.amazon_rd_sv19.describe_account_attributes.describe_account_attributes(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

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

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output