Returns a list of attributes attached to an account
Parameters:
Raises:
Source code in docs_src/capo_redshift/_services/redshift.py
| def describe_account_attributes(
self,
*,
config_overrides: Optional[RedshiftClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_redshift.types.describe_account_attributes_message.DescribeAccountAttributesMessage]",
) -> OperationResponse[
"capo_redshift.types.account_attribute_list.AccountAttributeList"
]:
import capo_redshift._operations.redshift_service_version20121201.describe_account_attributes
output, http_response = (
capo_redshift._operations.redshift_service_version20121201.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_redshift.types.describe_account_attributes_message.DescribeAccountAttributesMessage = {}
if attribute_names is not None:
input_["attribute_names"] = attribute_names
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|