list_role_associations
¶
list_role_associations(
target_arn: AmazonResourceName,
*,
config_overrides: Optional[RedshiftServerlessClientConfig] = None,
role_type: Optional[RoleTypeName] = None,
) -> ListRoleAssociationsResponse
Returns the role associations on Amazon Redshift Serverless with express configuration, grouped by role type. The response isn't paginated: it contains at most five role types with up to 10 principals each.
Parameters:
-
target_arn(AmazonResourceName) –The Amazon Resource Name (ARN) of the default endpoint. Only
express-defaultis supported, and it must be in the same Amazon Web Services account as the caller. The ARN format isarn:aws-partition:redshift-serverless:region:account-id:workgroup/express/express-default, for examplearn:aws:redshift-serverless:us-east-1:111122223333:workgroup/express/express-default. -
role_type(Optional[RoleTypeName], default:None) –The case-sensitive system-defined role to list principals for. Valid values are
sys:superuser,sys:operator,sys:dba,sys:secadmin, andsys:monitor. When omitted, returns all existing role associations for the target, grouped by role type.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The resource could not be found.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input failed to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.