CmdID

CmdID / aws / aws ssm-contacts

aws ssm-contacts get-contact-policy

Retrieves the resource policies attached to the specified contact or escalation plan. AWS CLI reference

1 example 1 option Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To list the resource policies of a contact

The following get-contact-policy example lists the resource policies associated with the specified contact.

aws ssm-contacts get-contact-policy --contact-arn "arn:aws:ssm-contacts:us-west-2:123456789012:contact/akuam"Identify
--contact-arnThe Amazon Resource Name (ARN) of the contact or escalation plan.
Its output
{
    "ContactArn": "arn:aws:ssm-contacts:us-west-2:123456789012:contact/akuam",
    "Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"SharePolicyForDocumentationDralia\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"123456789111\"},\"Action\":[\"ssm-contacts:GetContact\",\"ssm-contacts:StartEngagement\",\"ssm-contacts:DescribeEngagement\",\"ssm-contacts:ListPagesByEngagement\",\"ssm-contacts:StopEngagement\"],\"Resource\":[\"arn:aws:ssm-contacts:*:123456789012:contact/akuam\",\"arn:aws:ssm-contacts:*:123456789012:engagement/akuam/*\"]}]}"
}

For more information, see Working with shared contacts and response plans in the Incident Manager User Guide.

Options

1 in the AWS CLI reference
--contact-arnThe Amazon Resource Name (ARN) of the contact or escalation plan.