MultipartyApproval / Client / list_resource_policies

list_resource_policies

MultipartyApproval.Client.list_resource_policies(**kwargs)

Returns a list of policies for a resource.

See also: AWS API Documentation

Request Syntax

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

    [REQUIRED]

    Amazon Resource Name (ARN) for the resource.

  • MaxResults (integer) – The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.

  • NextToken (string) – If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a next call to the operation to get more output. You can repeat this until the NextToken response element returns null.

Return type:

dict

Returns:

Response Syntax

{
    'NextToken': 'string',
    'ResourcePolicies': [
        {
            'PolicyArn': 'string',
            'PolicyType': 'AWS_MANAGED'|'AWS_RAM',
            'PolicyName': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • NextToken (string) –

      If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a next call to the operation to get more output. You can repeat this until the NextToken response element returns null.

    • ResourcePolicies (list) –

      An array of ListResourcePoliciesResponseResourcePolicy objects. Contains details about the policy for the resource.

      • (dict) –

        Contains details about a policy for a resource.

        • PolicyArn (string) –

          Amazon Resource Name (ARN) for policy.

        • PolicyType (string) –

          The type of policy.

        • PolicyName (string) –

          Name of the policy.

Exceptions