QuickSight / Client / list_folders_for_resource

list_folders_for_resource#

QuickSight.Client.list_folders_for_resource(**kwargs)#

List all folders that a resource is a member of.

See also: AWS API Documentation

Request Syntax

response = client.list_folders_for_resource(
    AwsAccountId='string',
    ResourceArn='string',
    NextToken='string',
    MaxResults=123
)
Parameters:
  • AwsAccountId (string) –

    [REQUIRED]

    The ID for the Amazon Web Services account that contains the resource.

  • ResourceArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) the resource whose folders you need to list.

  • NextToken (string) – The token for the next set of results, or null if there are no more results.

  • MaxResults (integer) – The maximum number of results to be returned per request.

Return type:

dict

Returns:

Response Syntax

{
    'Status': 123,
    'Folders': [
        'string',
    ],
    'NextToken': 'string',
    'RequestId': 'string'
}

Response Structure

  • (dict) –

    • Status (integer) –

      The HTTP status of the request.

    • Folders (list) –

      A list that contains the Amazon Resource Names (ARNs) of all folders that the resource is a member of.

      • (string) –

    • NextToken (string) –

      The token for the next set of results, or null if there are no more results.

    • RequestId (string) –

      The Amazon Web Services request ID for this operation.

Exceptions

  • QuickSight.Client.exceptions.InvalidParameterValueException

  • QuickSight.Client.exceptions.AccessDeniedException

  • QuickSight.Client.exceptions.ResourceNotFoundException

  • QuickSight.Client.exceptions.ThrottlingException

  • QuickSight.Client.exceptions.InvalidNextTokenException

  • QuickSight.Client.exceptions.UnsupportedUserEditionException

  • QuickSight.Client.exceptions.InternalFailureException