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 to continue to the next page of results.
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 continue to the next page of results.
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
SSMIncidents.Client.exceptions.ThrottlingException
SSMIncidents.Client.exceptions.ResourceNotFoundException
SSMIncidents.Client.exceptions.AccessDeniedException
SSMIncidents.Client.exceptions.ValidationException
SSMIncidents.Client.exceptions.InternalServerException