QuickSight / Client / list_approval_policies

list_approval_policies

QuickSight.Client.list_approval_policies(**kwargs)

Lists all approval policies in the specified Quick Sight account. The results are paginated. If the response includes a NextToken value, pass it in a subsequent call to retrieve the next set of results.

See also: AWS API Documentation

Request Syntax

response = client.list_approval_policies(
    NextToken='string',
    MaxResults=123
)
Parameters:
  • 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 return in a single call. If you don’t specify a value, the service returns a default number of results. Use the NextToken value in the response to retrieve additional results.

Return type:

dict

Returns:

Response Syntax

{
    'Policies': [
        {
            'PolicyId': 'string',
            'PolicyArn': 'string',
            'Name': 'string',
            'Description': 'string',
            'Actions': [
                'SHARE',
            ],
            'AssetTypes': [
                'AGENT'|'SPACE'|'KNOWLEDGE_BASE',
            ],
            'ApplicableTo': {
                'Type': 'GROUP',
                'GroupArns': [
                    'string',
                ]
            },
            'ApprovalGroups': [
                'string',
            ],
            'CreatedAt': datetime(2015, 1, 1),
            'UpdatedAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • Policies (list) –

      The list of approval policies.

      • (dict) –

        A governance approval policy that specifies which principals and governed actions require approval, and which assets the policy applies to.

        • PolicyId (string) –

          The unique identifier of the approval policy.

        • PolicyArn (string) –

          The Amazon Resource Name (ARN) of the approval policy.

        • Name (string) –

          The name of the approval policy.

        • Description (string) –

          A description of the approval policy.

        • Actions (list) –

          The list of governed actions that trigger the approval workflow.

          • (string) –

        • AssetTypes (list) –

          The list of asset types that the approval policy applies to.

          • (string) –

        • ApplicableTo (dict) –

          The scoping configuration that determines who the approval policy applies to.

          • Type (string) –

            The type of scoping that determines which principals the approval policy applies to. Valid values are defined as follows:

            • GROUP: The policy applies only to principals in the groups specified by GroupArns. When you use GROUP, you must also provide a value for GroupArns.

          • GroupArns (list) –

            The list of group ARNs that the policy applies to. Required when type is GROUP.

            • (string) –

        • ApprovalGroups (list) –

          The list of group ARNs whose members can approve requests.

          • (string) –

        • CreatedAt (datetime) –

          The date and time that the approval policy was created.

        • UpdatedAt (datetime) –

          The date and time that the approval policy was last updated.

    • NextToken (string) –

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

Exceptions