SSMIncidents.Client.
put_resource_policy
(**kwargs)¶Adds a resource policy to the specified response plan. The resource policy is used to share the response plan using Resource Access Manager (RAM). For more information about cross-account sharing, see Cross-Region and cross-account incident management.
See also: AWS API Documentation
Request Syntax
response = client.put_resource_policy(
policy='string',
resourceArn='string'
)
[REQUIRED]
Details of the resource policy.
[REQUIRED]
The Amazon Resource Name (ARN) of the response plan to add the resource policy to.
dict
Response Syntax
{
'policyId': 'string'
}
Response Structure
(dict) --
policyId (string) --
The ID of the resource policy.
Exceptions
SSMIncidents.Client.exceptions.ThrottlingException
SSMIncidents.Client.exceptions.ResourceNotFoundException
SSMIncidents.Client.exceptions.AccessDeniedException
SSMIncidents.Client.exceptions.ValidationException
SSMIncidents.Client.exceptions.InternalServerException