connect:StopContact

Write

connect:StopContact is a Write access-level action in the connect service. Grants permission to stop contacts that were initiated using the Amazon Connect API. If you use this operation on an active contact the contact ends, even if the agent is active on a call with a customer

Resource types

ARNs that connect:StopContact can be scoped to in an IAM policy.

arn:${Partition}:connect:${Region}:${Account}:instance/${InstanceId}/contact/${ContactId} required
contact

Condition keys

Keys you can use in the Condition block of a policy that grants connect:StopContact.

connect:Channel String

Filters access by Channel

connect:ContactAssociationId String

Filters access by ContactAssociationId

connect:InstanceId String

Filters access by restricting federation into specified Amazon Connect instances

connect:UserArn ARN

Filters access by UserArn

aws:ResourceTag/${TagKey} String

Filters access by using tag key-value pairs attached to the resource

Example IAM policy

A minimal policy that allows connect:StopContact. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowConnectStopContact",
      "Effect": "Allow",
      "Action": "connect:StopContact",
      "Resource": "*"
    }
  ]
}

Related actions in connect

View all connect actions →