WorkMail / Client / list_resource_delegates
list_resource_delegates#
- WorkMail.Client.list_resource_delegates(**kwargs)#
- Lists the delegates associated with a resource. Users and groups can be resource delegates and answer requests on behalf of the resource. - See also: AWS API Documentation - Request Syntax - response = client.list_resource_delegates( OrganizationId='string', ResourceId='string', NextToken='string', MaxResults=123 ) - Parameters:
- OrganizationId (string) – - [REQUIRED] - The identifier for the organization that contains the resource for which delegates are listed. 
- ResourceId (string) – - [REQUIRED] - The identifier for the resource whose delegates are listed. 
- NextToken (string) – The token used to paginate through the delegates associated with a resource. 
- MaxResults (integer) – The number of maximum results in a page. 
 
- Return type:
- dict 
- Returns:
- Response Syntax - { 'Delegates': [ { 'Id': 'string', 'Type': 'GROUP'|'USER' }, ], 'NextToken': 'string' } - Response Structure - (dict) – - Delegates (list) – - One page of the resource’s delegates. - (dict) – - The name of the attribute, which is one of the values defined in the UserAttribute enumeration. - Id (string) – - The identifier for the user or group associated as the resource’s delegate. 
- Type (string) – - The type of the delegate: user or group. 
 
 
- NextToken (string) – - The token used to paginate through the delegates associated with a resource. While results are still available, it has an associated value. When the last page is reached, the token is empty. 
 
 
 - Exceptions - WorkMail.Client.exceptions.EntityNotFoundException
- WorkMail.Client.exceptions.EntityStateException
- WorkMail.Client.exceptions.InvalidParameterException
- WorkMail.Client.exceptions.OrganizationNotFoundException
- WorkMail.Client.exceptions.OrganizationStateException