Skip to content

describe_account_attributes async

describe_account_attributes(
    *,
    config_overrides: Optional[AsyncRedshiftClientConfig] = None,
    attribute_names: Optional[AttributeNameList] = None,
) -> AccountAttributeList

Returns a list of attributes attached to an account

Parameters:

Raises:

Source code in docs_src/capo_redshift/_services/async_redshift.py
async def describe_account_attributes(
    self,
    *,
    config_overrides: Optional[AsyncRedshiftClientConfig] = None,
    attribute_names: Optional[
        "capo_redshift.types.attribute_name_list.AttributeNameList"
    ] = None,
) -> "capo_redshift.types.account_attribute_list.AccountAttributeList":
    """<p>Returns a list of attributes attached to an account</p>

    Args:
        attribute_names: <p>A list of attribute names.</p>

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

    async def _handler(
        req: "AsyncOperationRequest[capo_redshift.types.describe_account_attributes_message.DescribeAccountAttributesMessage]",
    ) -> AsyncOperationResponse[
        "capo_redshift.types.account_attribute_list.AccountAttributeList"
    ]:
        import capo_redshift._operations.redshift_service_version20121201.describe_account_attributes

        (
            output,
            http_response,
        ) = await capo_redshift._operations.redshift_service_version20121201.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_redshift.types.describe_account_attributes_message.DescribeAccountAttributesMessage = {}
    if attribute_names is not None:
        input_["attribute_names"] = attribute_names

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