Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

put_resource_policy

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'
)
Parameters
  • policy (string) --

    [REQUIRED]

    Details of the resource policy.

  • resourceArn (string) --

    [REQUIRED]

    The Amazon Resource Name (ARN) of the response plan to add the resource policy to.

Return type

dict

Returns

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