SSMIncidents / Client / get_resource_policies

get_resource_policies#

SSMIncidents.Client.get_resource_policies(**kwargs)#

Retrieves the resource policies attached to the specified response plan.

See also: AWS API Documentation

Request Syntax

response = client.get_resource_policies(
    maxResults=123,
    nextToken='string',
    resourceArn='string'
)
Parameters:
  • maxResults (integer) – The maximum number of resource policies to display for each page of results.

  • nextToken (string) – The pagination token for the next set of items to return. (You received this token from a previous call.)

  • resourceArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the response plan with the attached resource policy.

Return type:

dict

Returns:

Response Syntax

{
    'nextToken': 'string',
    'resourcePolicies': [
        {
            'policyDocument': 'string',
            'policyId': 'string',
            'ramResourceShareRegion': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • nextToken (string) –

      The pagination token to use when requesting the next set of items. If there are no additional items to return, the string is null.

    • resourcePolicies (list) –

      Details about the resource policy attached to the response plan.

      • (dict) –

        The resource policy that allows Incident Manager to perform actions on resources on your behalf.

        • policyDocument (string) –

          The JSON blob that describes the policy.

        • policyId (string) –

          The ID of the resource policy.

        • ramResourceShareRegion (string) –

          The Amazon Web Services Region that policy allows resources to be used in.

Exceptions