Skip to content

Adds a resource policy to the specified contact or escalation plan

Description

Adds a resource policy to the specified contact or escalation plan. The resource policy is used to share the contact or escalation plan using Resource Access Manager (RAM). For more information about cross-account sharing, see Setting up cross-account functionality.

Usage

ssmcontacts_put_contact_policy(ContactArn, Policy)

Arguments

  • ContactArn

    [required] The Amazon Resource Name (ARN) of the contact or escalation plan.

  • Policy

    [required] Details of the resource policy.

Value

An empty list.

Request syntax

svc$put_contact_policy(
  ContactArn = "string",
  Policy = "string"
)

Examples

# The following put-contact-policy example adds a resource policy to the
# contact Akua that shares the contact and related engagements with the
# principal.
svc$put_contact_policy(
  ContactArn = "arn:aws:ssm-contacts:us-east-1:111122223333:contact/akuam",
  Policy = "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"ExampleResourcePol..."
)