Table of Contents
SSMContacts.
Client
¶A low-level client representing AWS Systems Manager Incident Manager Contacts (SSM Contacts)
Systems Manager Incident Manager is an incident management console designed to help users mitigate and recover from incidents affecting their Amazon Web Services-hosted applications. An incident is any unplanned interruption or reduction in quality of services.
Incident Manager increases incident resolution by notifying responders of impact, highlighting relevant troubleshooting data, and providing collaboration tools to get services back up and running. To achieve the primary goal of reducing the time-to-resolution of critical incidents, Incident Manager automates response plans and enables responder team escalation.
import boto3
client = boto3.client('ssm-contacts')
These are the available methods:
accept_page()
activate_contact_channel()
can_paginate()
create_contact()
create_contact_channel()
deactivate_contact_channel()
delete_contact()
delete_contact_channel()
describe_engagement()
describe_page()
get_contact()
get_contact_channel()
get_contact_policy()
get_paginator()
get_waiter()
list_contact_channels()
list_contacts()
list_engagements()
list_page_receipts()
list_pages_by_contact()
list_pages_by_engagement()
list_tags_for_resource()
put_contact_policy()
send_activation_code()
start_engagement()
stop_engagement()
tag_resource()
untag_resource()
update_contact()
update_contact_channel()
accept_page
(**kwargs)¶Used to acknowledge an engagement to a contact channel during an incident.
See also: AWS API Documentation
Request Syntax
response = client.accept_page(
PageId='string',
ContactChannelId='string',
AcceptType='DELIVERED'|'READ',
Note='string',
AcceptCode='string',
AcceptCodeValidation='IGNORE'|'ENFORCE'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the engagement to a contact channel.
[REQUIRED]
The type indicates if the page was DELIVERED
or READ
.
[REQUIRED]
The accept code is a 6-digit code used to acknowledge the page.
An optional field that Incident Manager uses to ENFORCE
AcceptCode
validation when acknowledging an page. Acknowledgement can occur by replying to a page, or when entering the AcceptCode in the console. Enforcing AcceptCode validation causes Incident Manager to verify that the code entered by the user matches the code sent by Incident Manager with the page.
Incident Manager can also IGNORE
AcceptCode
validation. Ignoring AcceptCode
validation causes Incident Manager to accept any value entered for the AcceptCode
.
dict
Response Syntax
{}
Response Structure
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ValidationException
activate_contact_channel
(**kwargs)¶Activates a contact's contact channel. Incident Manager can't engage a contact until the contact channel has been activated.
See also: AWS API Documentation
Request Syntax
response = client.activate_contact_channel(
ContactChannelId='string',
ActivationCode='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the contact channel.
[REQUIRED]
The code sent to the contact channel when it was created in the contact.
dict
Response Syntax
{}
Response Structure
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ValidationException
can_paginate
(operation_name)¶Check if an operation can be paginated.
create_foo
, and you'd normally invoke the
operation as client.create_foo(**kwargs)
, if the
create_foo
operation can be paginated, you can use the
call client.get_paginator("create_foo")
.True
if the operation can be paginated,
False
otherwise.create_contact
(**kwargs)¶Contacts are either the contacts that Incident Manager engages during an incident or the escalation plans that Incident Manager uses to engage contacts in phases during an incident.
See also: AWS API Documentation
Request Syntax
response = client.create_contact(
Alias='string',
DisplayName='string',
Type='PERSONAL'|'ESCALATION',
Plan={
'Stages': [
{
'DurationInMinutes': 123,
'Targets': [
{
'ChannelTargetInfo': {
'ContactChannelId': 'string',
'RetryIntervalInMinutes': 123
},
'ContactTargetInfo': {
'ContactId': 'string',
'IsEssential': True|False
}
},
]
},
]
},
Tags=[
{
'Key': 'string',
'Value': 'string'
},
],
IdempotencyToken='string'
)
[REQUIRED]
The short name to quickly identify a contact or escalation plan. The contact alias must be unique and identifiable.
[REQUIRED]
To create an escalation plan use ESCALATION
. To create a contact use PERSONAL
.
[REQUIRED]
A list of stages. A contact has an engagement plan with stages that contact specified contact channels. An escalation plan uses stages that contact specified contacts.
A list of stages that the escalation plan or engagement plan uses to engage contacts and contact methods.
A set amount of time that an escalation plan or engagement plan engages the specified contacts or contact methods.
The time to wait until beginning the next stage. The duration can only be set to 0 if a target is specified.
The contacts or contact methods that the escalation plan or engagement plan is engaging.
The contact or contact channel that's being engaged.
Information about the contact channel Incident Manager is engaging.
The Amazon Resource Name (ARN) of the contact channel.
The number of minutes to wait to retry sending engagement in the case the engagement initially fails.
Information about the contact that Incident Manager is engaging.
The Amazon Resource Name (ARN) of the contact.
A Boolean value determining if the contact's acknowledgement stops the progress of stages in the plan.
Adds a tag to the target. You can only tag resources created in the first Region of your replication set.
A container of a key-value name pair.
Name of the object key.
Value of the tag.
A token ensuring that the operation is called only once with the specified details.
This field is autopopulated if not provided.
dict
Response Syntax
{
'ContactArn': 'string'
}
Response Structure
(dict) --
ContactArn (string) --
The Amazon Resource Name (ARN) of the created contact or escalation plan.
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.ConflictException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ServiceQuotaExceededException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ValidationException
SSMContacts.Client.exceptions.DataEncryptionException
create_contact_channel
(**kwargs)¶A contact channel is the method that Incident Manager uses to engage your contact.
See also: AWS API Documentation
Request Syntax
response = client.create_contact_channel(
ContactId='string',
Name='string',
Type='SMS'|'VOICE'|'EMAIL',
DeliveryAddress={
'SimpleAddress': 'string'
},
DeferActivation=True|False,
IdempotencyToken='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the contact you are adding the contact channel to.
[REQUIRED]
The name of the contact channel.
[REQUIRED]
Incident Manager supports three types of contact channels:
SMS
VOICE
EMAIL
[REQUIRED]
The details that Incident Manager uses when trying to engage the contact channel. The format is dependent on the type of the contact channel. The following are the expected formats:
The format is dependent on the type of the contact channel. The following are the expected formats:
A token ensuring that the operation is called only once with the specified details.
This field is autopopulated if not provided.
dict
Response Syntax
{
'ContactChannelArn': 'string'
}
Response Structure
(dict) --
ContactChannelArn (string) --
The Amazon Resource Name (ARN) of the contact channel.
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.ConflictException
SSMContacts.Client.exceptions.DataEncryptionException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ValidationException
deactivate_contact_channel
(**kwargs)¶To no longer receive Incident Manager engagements to a contact channel, you can deactivate the channel.
See also: AWS API Documentation
Request Syntax
response = client.deactivate_contact_channel(
ContactChannelId='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the contact channel you're deactivating.
{}
Response Structure
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ValidationException
delete_contact
(**kwargs)¶To remove a contact from Incident Manager, you can delete the contact. Deleting a contact removes them from all escalation plans and related response plans. Deleting an escalation plan removes it from all related response plans. You will have to recreate the contact and its contact channels before you can use it again.
See also: AWS API Documentation
Request Syntax
response = client.delete_contact(
ContactId='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the contact that you're deleting.
{}
Response Structure
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ValidationException
delete_contact_channel
(**kwargs)¶To no longer receive engagements on a contact channel, you can delete the channel from a contact. Deleting the contact channel removes it from the contact's engagement plan. If you delete the only contact channel for a contact, you won't be able to engage that contact during an incident.
See also: AWS API Documentation
Request Syntax
response = client.delete_contact_channel(
ContactChannelId='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the contact channel.
{}
Response Structure
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ValidationException
describe_engagement
(**kwargs)¶Incident Manager uses engagements to engage contacts and escalation plans during an incident. Use this command to describe the engagement that occurred during an incident.
See also: AWS API Documentation
Request Syntax
response = client.describe_engagement(
EngagementId='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the engagement you want the details of.
{
'ContactArn': 'string',
'EngagementArn': 'string',
'Sender': 'string',
'Subject': 'string',
'Content': 'string',
'PublicSubject': 'string',
'PublicContent': 'string',
'IncidentId': 'string',
'StartTime': datetime(2015, 1, 1),
'StopTime': datetime(2015, 1, 1)
}
Response Structure
The ARN of the escalation plan or contacts involved in the engagement.
The ARN of the engagement.
The user that started the engagement.
The secure subject of the message that was sent to the contact. Use this field for engagements to VOICE
and EMAIL
.
The secure content of the message that was sent to the contact. Use this field for engagements to VOICE
and EMAIL
.
The insecure subject of the message that was sent to the contact. Use this field for engagements to SMS
.
The insecure content of the message that was sent to the contact. Use this field for engagements to SMS
.
The ARN of the incident in which the engagement occurred.
The time that the engagement started.
The time that the engagement ended.
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.DataEncryptionException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ValidationException
describe_page
(**kwargs)¶Lists details of the engagement to a contact channel.
See also: AWS API Documentation
Request Syntax
response = client.describe_page(
PageId='string'
)
[REQUIRED]
The ID of the engagement to a contact channel.
{
'PageArn': 'string',
'EngagementArn': 'string',
'ContactArn': 'string',
'Sender': 'string',
'Subject': 'string',
'Content': 'string',
'PublicSubject': 'string',
'PublicContent': 'string',
'IncidentId': 'string',
'SentTime': datetime(2015, 1, 1),
'ReadTime': datetime(2015, 1, 1),
'DeliveryTime': datetime(2015, 1, 1)
}
Response Structure
The Amazon Resource Name (ARN) of the engagement to a contact channel.
The ARN of the engagement that engaged the contact channel.
The ARN of the contact that was engaged.
The user that started the engagement.
The secure subject of the message that was sent to the contact. Use this field for engagements to VOICE
and EMAIL
.
The secure content of the message that was sent to the contact. Use this field for engagements to VOICE
and EMAIL
.
The insecure subject of the message that was sent to the contact. Use this field for engagements to SMS
.
The insecure content of the message that was sent to the contact. Use this field for engagements to SMS
.
The ARN of the incident that engaged the contact channel.
The time the engagement was sent to the contact channel.
The time that the contact channel acknowledged the engagement.
The time that the contact channel received the engagement.
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.DataEncryptionException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ValidationException
get_contact
(**kwargs)¶Retrieves information about the specified contact or escalation plan.
See also: AWS API Documentation
Request Syntax
response = client.get_contact(
ContactId='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the contact or escalation plan.
{
'ContactArn': 'string',
'Alias': 'string',
'DisplayName': 'string',
'Type': 'PERSONAL'|'ESCALATION',
'Plan': {
'Stages': [
{
'DurationInMinutes': 123,
'Targets': [
{
'ChannelTargetInfo': {
'ContactChannelId': 'string',
'RetryIntervalInMinutes': 123
},
'ContactTargetInfo': {
'ContactId': 'string',
'IsEssential': True|False
}
},
]
},
]
}
}
Response Structure
The ARN of the contact or escalation plan.
The alias of the contact or escalation plan. The alias is unique and identifiable.
The full name of the contact or escalation plan.
The type of contact, either PERSONAL
or ESCALATION
.
Details about the specific timing or stages and targets of the escalation plan or engagement plan.
A list of stages that the escalation plan or engagement plan uses to engage contacts and contact methods.
A set amount of time that an escalation plan or engagement plan engages the specified contacts or contact methods.
The time to wait until beginning the next stage. The duration can only be set to 0 if a target is specified.
The contacts or contact methods that the escalation plan or engagement plan is engaging.
The contact or contact channel that's being engaged.
Information about the contact channel Incident Manager is engaging.
The Amazon Resource Name (ARN) of the contact channel.
The number of minutes to wait to retry sending engagement in the case the engagement initially fails.
Information about the contact that Incident Manager is engaging.
The Amazon Resource Name (ARN) of the contact.
A Boolean value determining if the contact's acknowledgement stops the progress of stages in the plan.
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ValidationException
SSMContacts.Client.exceptions.DataEncryptionException
get_contact_channel
(**kwargs)¶List details about a specific contact channel.
See also: AWS API Documentation
Request Syntax
response = client.get_contact_channel(
ContactChannelId='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the contact channel you want information about.
{
'ContactArn': 'string',
'ContactChannelArn': 'string',
'Name': 'string',
'Type': 'SMS'|'VOICE'|'EMAIL',
'DeliveryAddress': {
'SimpleAddress': 'string'
},
'ActivationStatus': 'ACTIVATED'|'NOT_ACTIVATED'
}
Response Structure
The ARN of the contact that the channel belongs to.
The ARN of the contact channel.
The name of the contact channel
The type of contact channel. The type is SMS
, VOICE
, or EMAIL
.
The details that Incident Manager uses when trying to engage the contact channel.
The format is dependent on the type of the contact channel. The following are the expected formats:
A Boolean value indicating if the contact channel has been activated or not.
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.DataEncryptionException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ValidationException
get_contact_policy
(**kwargs)¶Retrieves the resource policies attached to the specified contact or escalation plan.
See also: AWS API Documentation
Request Syntax
response = client.get_contact_policy(
ContactArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the contact or escalation plan.
{
'ContactArn': 'string',
'Policy': 'string'
}
Response Structure
The ARN of the contact or escalation plan.
Details about the resource policy attached to the contact or escalation plan.
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ValidationException
get_paginator
(operation_name)¶Create a paginator for an operation.
create_foo
, and you'd normally invoke the
operation as client.create_foo(**kwargs)
, if the
create_foo
operation can be paginated, you can use the
call client.get_paginator("create_foo")
.client.can_paginate
method to
check if an operation is pageable.get_waiter
(waiter_name)¶Returns an object that can wait for some condition.
list_contact_channels
(**kwargs)¶Lists all contact channels for the specified contact.
See also: AWS API Documentation
Request Syntax
response = client.list_contact_channels(
ContactId='string',
NextToken='string',
MaxResults=123
)
[REQUIRED]
The Amazon Resource Name (ARN) of the contact.
dict
Response Syntax
{
'NextToken': 'string',
'ContactChannels': [
{
'ContactChannelArn': 'string',
'ContactArn': 'string',
'Name': 'string',
'Type': 'SMS'|'VOICE'|'EMAIL',
'DeliveryAddress': {
'SimpleAddress': 'string'
},
'ActivationStatus': 'ACTIVATED'|'NOT_ACTIVATED'
},
]
}
Response Structure
(dict) --
NextToken (string) --
The pagination token to continue to the next page of results.
ContactChannels (list) --
A list of contact channels related to the specified contact.
(dict) --
The method that Incident Manager uses to engage a contact.
ContactChannelArn (string) --
The Amazon Resource Name (ARN) of the contact channel.
ContactArn (string) --
The ARN of the contact that contains the contact channel.
Name (string) --
The name of the contact channel.
Type (string) --
The type of the contact channel. Incident Manager supports three contact methods:
DeliveryAddress (dict) --
The details that Incident Manager uses when trying to engage the contact channel.
SimpleAddress (string) --
The format is dependent on the type of the contact channel. The following are the expected formats:
ActivationStatus (string) --
A Boolean value describing if the contact channel has been activated or not. If the contact channel isn't activated, Incident Manager can't engage the contact through it.
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.DataEncryptionException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ValidationException
list_contacts
(**kwargs)¶Lists all contacts and escalation plans in Incident Manager.
See also: AWS API Documentation
Request Syntax
response = client.list_contacts(
NextToken='string',
MaxResults=123,
AliasPrefix='string',
Type='PERSONAL'|'ESCALATION'
)
PERSONAL
and an escalation plan is type ESCALATION
.dict
Response Syntax
{
'NextToken': 'string',
'Contacts': [
{
'ContactArn': 'string',
'Alias': 'string',
'DisplayName': 'string',
'Type': 'PERSONAL'|'ESCALATION'
},
]
}
Response Structure
(dict) --
NextToken (string) --
The pagination token to continue to the next page of results.
Contacts (list) --
A list of the contacts and escalation plans in your Incident Manager account.
(dict) --
A personal contact or escalation plan that Incident Manager engages during an incident.
ContactArn (string) --
The Amazon Resource Name (ARN) of the contact or escalation plan.
Alias (string) --
The unique and identifiable alias of the contact or escalation plan.
DisplayName (string) --
The full name of the contact or escalation plan.
Type (string) --
Refers to the type of contact. A single contact is type PERSONAL
and an escalation plan is type ESCALATION
.
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ValidationException
list_engagements
(**kwargs)¶Lists all engagements that have happened in an incident.
See also: AWS API Documentation
Request Syntax
response = client.list_engagements(
NextToken='string',
MaxResults=123,
IncidentId='string',
TimeRangeValue={
'StartTime': datetime(2015, 1, 1),
'EndTime': datetime(2015, 1, 1)
}
)
The time range to lists engagements for an incident.
The start of the time range.
The end of the time range.
dict
Response Syntax
{
'NextToken': 'string',
'Engagements': [
{
'EngagementArn': 'string',
'ContactArn': 'string',
'Sender': 'string',
'IncidentId': 'string',
'StartTime': datetime(2015, 1, 1),
'StopTime': datetime(2015, 1, 1)
},
]
}
Response Structure
(dict) --
NextToken (string) --
The pagination token to continue to the next page of results.
Engagements (list) --
A list of each engagement that occurred during the specified time range of an incident.
(dict) --
Incident Manager reaching out to a contact or escalation plan to engage contact during an incident.
EngagementArn (string) --
The Amazon Resource Name (ARN) of the engagement.
ContactArn (string) --
The ARN of the escalation plan or contact that Incident Manager is engaging.
Sender (string) --
The user that started the engagement.
IncidentId (string) --
The ARN of the incident that's engaging the contact.
StartTime (datetime) --
The time that the engagement began.
StopTime (datetime) --
The time that the engagement ended.
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ValidationException
list_page_receipts
(**kwargs)¶Lists all of the engagements to contact channels that have been acknowledged.
See also: AWS API Documentation
Request Syntax
response = client.list_page_receipts(
PageId='string',
NextToken='string',
MaxResults=123
)
[REQUIRED]
The Amazon Resource Name (ARN) of the engagement to a specific contact channel.
dict
Response Syntax
{
'NextToken': 'string',
'Receipts': [
{
'ContactChannelArn': 'string',
'ReceiptType': 'DELIVERED'|'ERROR'|'READ'|'SENT'|'STOP',
'ReceiptInfo': 'string',
'ReceiptTime': datetime(2015, 1, 1)
},
]
}
Response Structure
(dict) --
NextToken (string) --
The pagination token to continue to the next page of results.
Receipts (list) --
A list of each acknowledgement.
(dict) --
Records events during an engagement.
ContactChannelArn (string) --
The Amazon Resource Name (ARN) of the contact channel Incident Manager engaged.
ReceiptType (string) --
The type follows the engagement cycle, SENT
, DELIVERED
, and READ
.
ReceiptInfo (string) --
Information provided during the page acknowledgement.
ReceiptTime (datetime) --
The time receipt was SENT
, DELIVERED
, or READ
.
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ValidationException
list_pages_by_contact
(**kwargs)¶Lists the engagements to a contact's contact channels.
See also: AWS API Documentation
Request Syntax
response = client.list_pages_by_contact(
ContactId='string',
NextToken='string',
MaxResults=123
)
[REQUIRED]
The Amazon Resource Name (ARN) of the contact you are retrieving engagements for.
dict
Response Syntax
{
'NextToken': 'string',
'Pages': [
{
'PageArn': 'string',
'EngagementArn': 'string',
'ContactArn': 'string',
'Sender': 'string',
'IncidentId': 'string',
'SentTime': datetime(2015, 1, 1),
'DeliveryTime': datetime(2015, 1, 1),
'ReadTime': datetime(2015, 1, 1)
},
]
}
Response Structure
(dict) --
NextToken (string) --
The pagination token to continue to the next page of results.
Pages (list) --
The list of engagements to a contact's contact channel.
(dict) --
Incident Manager engaging a contact's contact channel.
PageArn (string) --
The Amazon Resource Name (ARN) of the page to the contact channel.
EngagementArn (string) --
The ARN of the engagement that this page is part of.
ContactArn (string) --
The ARN of the contact that Incident Manager is engaging.
Sender (string) --
The user that started the engagement.
IncidentId (string) --
The ARN of the incident that's engaging the contact channel.
SentTime (datetime) --
The time that Incident Manager engaged the contact channel.
DeliveryTime (datetime) --
The time the message was delivered to the contact channel.
ReadTime (datetime) --
The time that the contact channel acknowledged engagement.
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ValidationException
list_pages_by_engagement
(**kwargs)¶Lists the engagements to contact channels that occurred by engaging a contact.
See also: AWS API Documentation
Request Syntax
response = client.list_pages_by_engagement(
EngagementId='string',
NextToken='string',
MaxResults=123
)
[REQUIRED]
The Amazon Resource Name (ARN) of the engagement.
dict
Response Syntax
{
'NextToken': 'string',
'Pages': [
{
'PageArn': 'string',
'EngagementArn': 'string',
'ContactArn': 'string',
'Sender': 'string',
'IncidentId': 'string',
'SentTime': datetime(2015, 1, 1),
'DeliveryTime': datetime(2015, 1, 1),
'ReadTime': datetime(2015, 1, 1)
},
]
}
Response Structure
(dict) --
NextToken (string) --
The pagination token to continue to the next page of results.
Pages (list) --
The list of engagements to contact channels.
(dict) --
Incident Manager engaging a contact's contact channel.
PageArn (string) --
The Amazon Resource Name (ARN) of the page to the contact channel.
EngagementArn (string) --
The ARN of the engagement that this page is part of.
ContactArn (string) --
The ARN of the contact that Incident Manager is engaging.
Sender (string) --
The user that started the engagement.
IncidentId (string) --
The ARN of the incident that's engaging the contact channel.
SentTime (datetime) --
The time that Incident Manager engaged the contact channel.
DeliveryTime (datetime) --
The time the message was delivered to the contact channel.
ReadTime (datetime) --
The time that the contact channel acknowledged engagement.
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ValidationException
Lists the tags of an escalation plan or contact.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource(
ResourceARN='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the contact or escalation plan.
{
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
Response Structure
The tags related to the contact or escalation plan.
A container of a key-value name pair.
Name of the object key.
Value of the tag.
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ValidationException
SSMContacts.Client.exceptions.InternalServerException
put_contact_policy
(**kwargs)¶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 .
See also: AWS API Documentation
Request Syntax
response = client.put_contact_policy(
ContactArn='string',
Policy='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the contact or escalation plan.
[REQUIRED]
Details of the resource policy.
dict
Response Syntax
{}
Response Structure
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.ConflictException
SSMContacts.Client.exceptions.ValidationException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.InternalServerException
send_activation_code
(**kwargs)¶Sends an activation code to a contact channel. The contact can use this code to activate the contact channel in the console or with the ActivateChannel
operation. Incident Manager can't engage a contact channel until it has been activated.
See also: AWS API Documentation
Request Syntax
response = client.send_activation_code(
ContactChannelId='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the contact channel.
{}
Response Structure
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.DataEncryptionException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ServiceQuotaExceededException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ValidationException
start_engagement
(**kwargs)¶Starts an engagement to a contact or escalation plan. The engagement engages each contact specified in the incident.
See also: AWS API Documentation
Request Syntax
response = client.start_engagement(
ContactId='string',
Sender='string',
Subject='string',
Content='string',
PublicSubject='string',
PublicContent='string',
IncidentId='string',
IdempotencyToken='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the contact being engaged.
[REQUIRED]
The user that started the engagement.
[REQUIRED]
The secure subject of the message that was sent to the contact. Use this field for engagements to VOICE
or EMAIL
.
[REQUIRED]
The secure content of the message that was sent to the contact. Use this field for engagements to VOICE
or EMAIL
.
SMS
.SMS
.A token ensuring that the operation is called only once with the specified details.
This field is autopopulated if not provided.
dict
Response Syntax
{
'EngagementArn': 'string'
}
Response Structure
(dict) --
EngagementArn (string) --
The ARN of the engagement.
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.DataEncryptionException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ValidationException
stop_engagement
(**kwargs)¶Stops an engagement before it finishes the final stage of the escalation plan or engagement plan. Further contacts aren't engaged.
See also: AWS API Documentation
Request Syntax
response = client.stop_engagement(
EngagementId='string',
Reason='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the engagement.
dict
Response Syntax
{}
Response Structure
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.ValidationException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.InternalServerException
tag_resource
(**kwargs)¶Tags a contact or escalation plan. You can tag only contacts and escalation plans in the first region of your replication set.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
ResourceARN='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The Amazon Resource Name (ARN) of the contact or escalation plan.
[REQUIRED]
A list of tags that you are adding to the contact or escalation plan.
A container of a key-value name pair.
Name of the object key.
Value of the tag.
dict
Response Syntax
{}
Response Structure
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ServiceQuotaExceededException
SSMContacts.Client.exceptions.ValidationException
untag_resource
(**kwargs)¶Removes tags from the specified resource.
See also: AWS API Documentation
Request Syntax
response = client.untag_resource(
ResourceARN='string',
TagKeys=[
'string',
]
)
[REQUIRED]
The Amazon Resource Name (ARN) of the contact or escalation plan.
[REQUIRED]
The key of the tag that you want to remove.
dict
Response Syntax
{}
Response Structure
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ValidationException
SSMContacts.Client.exceptions.InternalServerException
update_contact
(**kwargs)¶Updates the contact or escalation plan specified.
See also: AWS API Documentation
Request Syntax
response = client.update_contact(
ContactId='string',
DisplayName='string',
Plan={
'Stages': [
{
'DurationInMinutes': 123,
'Targets': [
{
'ChannelTargetInfo': {
'ContactChannelId': 'string',
'RetryIntervalInMinutes': 123
},
'ContactTargetInfo': {
'ContactId': 'string',
'IsEssential': True|False
}
},
]
},
]
}
)
[REQUIRED]
The Amazon Resource Name (ARN) of the contact or escalation plan you're updating.
A list of stages. A contact has an engagement plan with stages for specified contact channels. An escalation plan uses these stages to contact specified contacts.
A list of stages that the escalation plan or engagement plan uses to engage contacts and contact methods.
A set amount of time that an escalation plan or engagement plan engages the specified contacts or contact methods.
The time to wait until beginning the next stage. The duration can only be set to 0 if a target is specified.
The contacts or contact methods that the escalation plan or engagement plan is engaging.
The contact or contact channel that's being engaged.
Information about the contact channel Incident Manager is engaging.
The Amazon Resource Name (ARN) of the contact channel.
The number of minutes to wait to retry sending engagement in the case the engagement initially fails.
Information about the contact that Incident Manager is engaging.
The Amazon Resource Name (ARN) of the contact.
A Boolean value determining if the contact's acknowledgement stops the progress of stages in the plan.
dict
Response Syntax
{}
Response Structure
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ServiceQuotaExceededException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ValidationException
SSMContacts.Client.exceptions.DataEncryptionException
update_contact_channel
(**kwargs)¶Updates a contact's contact channel.
See also: AWS API Documentation
Request Syntax
response = client.update_contact_channel(
ContactChannelId='string',
Name='string',
DeliveryAddress={
'SimpleAddress': 'string'
}
)
[REQUIRED]
The Amazon Resource Name (ARN) of the contact channel you want to update.
The details that Incident Manager uses when trying to engage the contact channel.
The format is dependent on the type of the contact channel. The following are the expected formats:
dict
Response Syntax
{}
Response Structure
Exceptions
SSMContacts.Client.exceptions.AccessDeniedException
SSMContacts.Client.exceptions.ConflictException
SSMContacts.Client.exceptions.DataEncryptionException
SSMContacts.Client.exceptions.InternalServerException
SSMContacts.Client.exceptions.ResourceNotFoundException
SSMContacts.Client.exceptions.ThrottlingException
SSMContacts.Client.exceptions.ValidationException
The available paginators are:
SSMContacts.Paginator.ListContactChannels
SSMContacts.Paginator.ListContacts
SSMContacts.Paginator.ListEngagements
SSMContacts.Paginator.ListPageReceipts
SSMContacts.Paginator.ListPagesByContact
SSMContacts.Paginator.ListPagesByEngagement
SSMContacts.Paginator.
ListContactChannels
¶paginator = client.get_paginator('list_contact_channels')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from SSMContacts.Client.list_contact_channels()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
ContactId='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The Amazon Resource Name (ARN) of the contact.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'ContactChannels': [
{
'ContactChannelArn': 'string',
'ContactArn': 'string',
'Name': 'string',
'Type': 'SMS'|'VOICE'|'EMAIL',
'DeliveryAddress': {
'SimpleAddress': 'string'
},
'ActivationStatus': 'ACTIVATED'|'NOT_ACTIVATED'
},
]
}
Response Structure
(dict) --
ContactChannels (list) --
A list of contact channels related to the specified contact.
(dict) --
The method that Incident Manager uses to engage a contact.
ContactChannelArn (string) --
The Amazon Resource Name (ARN) of the contact channel.
ContactArn (string) --
The ARN of the contact that contains the contact channel.
Name (string) --
The name of the contact channel.
Type (string) --
The type of the contact channel. Incident Manager supports three contact methods:
DeliveryAddress (dict) --
The details that Incident Manager uses when trying to engage the contact channel.
SimpleAddress (string) --
The format is dependent on the type of the contact channel. The following are the expected formats:
ActivationStatus (string) --
A Boolean value describing if the contact channel has been activated or not. If the contact channel isn't activated, Incident Manager can't engage the contact through it.
SSMContacts.Paginator.
ListContacts
¶paginator = client.get_paginator('list_contacts')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from SSMContacts.Client.list_contacts()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
AliasPrefix='string',
Type='PERSONAL'|'ESCALATION',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
PERSONAL
and an escalation plan is type ESCALATION
.A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'Contacts': [
{
'ContactArn': 'string',
'Alias': 'string',
'DisplayName': 'string',
'Type': 'PERSONAL'|'ESCALATION'
},
]
}
Response Structure
(dict) --
Contacts (list) --
A list of the contacts and escalation plans in your Incident Manager account.
(dict) --
A personal contact or escalation plan that Incident Manager engages during an incident.
ContactArn (string) --
The Amazon Resource Name (ARN) of the contact or escalation plan.
Alias (string) --
The unique and identifiable alias of the contact or escalation plan.
DisplayName (string) --
The full name of the contact or escalation plan.
Type (string) --
Refers to the type of contact. A single contact is type PERSONAL
and an escalation plan is type ESCALATION
.
SSMContacts.Paginator.
ListEngagements
¶paginator = client.get_paginator('list_engagements')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from SSMContacts.Client.list_engagements()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
IncidentId='string',
TimeRangeValue={
'StartTime': datetime(2015, 1, 1),
'EndTime': datetime(2015, 1, 1)
},
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
The time range to lists engagements for an incident.
The start of the time range.
The end of the time range.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'Engagements': [
{
'EngagementArn': 'string',
'ContactArn': 'string',
'Sender': 'string',
'IncidentId': 'string',
'StartTime': datetime(2015, 1, 1),
'StopTime': datetime(2015, 1, 1)
},
]
}
Response Structure
(dict) --
Engagements (list) --
A list of each engagement that occurred during the specified time range of an incident.
(dict) --
Incident Manager reaching out to a contact or escalation plan to engage contact during an incident.
EngagementArn (string) --
The Amazon Resource Name (ARN) of the engagement.
ContactArn (string) --
The ARN of the escalation plan or contact that Incident Manager is engaging.
Sender (string) --
The user that started the engagement.
IncidentId (string) --
The ARN of the incident that's engaging the contact.
StartTime (datetime) --
The time that the engagement began.
StopTime (datetime) --
The time that the engagement ended.
SSMContacts.Paginator.
ListPageReceipts
¶paginator = client.get_paginator('list_page_receipts')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from SSMContacts.Client.list_page_receipts()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
PageId='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The Amazon Resource Name (ARN) of the engagement to a specific contact channel.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'Receipts': [
{
'ContactChannelArn': 'string',
'ReceiptType': 'DELIVERED'|'ERROR'|'READ'|'SENT'|'STOP',
'ReceiptInfo': 'string',
'ReceiptTime': datetime(2015, 1, 1)
},
]
}
Response Structure
(dict) --
Receipts (list) --
A list of each acknowledgement.
(dict) --
Records events during an engagement.
ContactChannelArn (string) --
The Amazon Resource Name (ARN) of the contact channel Incident Manager engaged.
ReceiptType (string) --
The type follows the engagement cycle, SENT
, DELIVERED
, and READ
.
ReceiptInfo (string) --
Information provided during the page acknowledgement.
ReceiptTime (datetime) --
The time receipt was SENT
, DELIVERED
, or READ
.
SSMContacts.Paginator.
ListPagesByContact
¶paginator = client.get_paginator('list_pages_by_contact')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from SSMContacts.Client.list_pages_by_contact()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
ContactId='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The Amazon Resource Name (ARN) of the contact you are retrieving engagements for.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'Pages': [
{
'PageArn': 'string',
'EngagementArn': 'string',
'ContactArn': 'string',
'Sender': 'string',
'IncidentId': 'string',
'SentTime': datetime(2015, 1, 1),
'DeliveryTime': datetime(2015, 1, 1),
'ReadTime': datetime(2015, 1, 1)
},
]
}
Response Structure
(dict) --
Pages (list) --
The list of engagements to a contact's contact channel.
(dict) --
Incident Manager engaging a contact's contact channel.
PageArn (string) --
The Amazon Resource Name (ARN) of the page to the contact channel.
EngagementArn (string) --
The ARN of the engagement that this page is part of.
ContactArn (string) --
The ARN of the contact that Incident Manager is engaging.
Sender (string) --
The user that started the engagement.
IncidentId (string) --
The ARN of the incident that's engaging the contact channel.
SentTime (datetime) --
The time that Incident Manager engaged the contact channel.
DeliveryTime (datetime) --
The time the message was delivered to the contact channel.
ReadTime (datetime) --
The time that the contact channel acknowledged engagement.
SSMContacts.Paginator.
ListPagesByEngagement
¶paginator = client.get_paginator('list_pages_by_engagement')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from SSMContacts.Client.list_pages_by_engagement()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
EngagementId='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The Amazon Resource Name (ARN) of the engagement.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'Pages': [
{
'PageArn': 'string',
'EngagementArn': 'string',
'ContactArn': 'string',
'Sender': 'string',
'IncidentId': 'string',
'SentTime': datetime(2015, 1, 1),
'DeliveryTime': datetime(2015, 1, 1),
'ReadTime': datetime(2015, 1, 1)
},
]
}
Response Structure
(dict) --
Pages (list) --
The list of engagements to contact channels.
(dict) --
Incident Manager engaging a contact's contact channel.
PageArn (string) --
The Amazon Resource Name (ARN) of the page to the contact channel.
EngagementArn (string) --
The ARN of the engagement that this page is part of.
ContactArn (string) --
The ARN of the contact that Incident Manager is engaging.
Sender (string) --
The user that started the engagement.
IncidentId (string) --
The ARN of the incident that's engaging the contact channel.
SentTime (datetime) --
The time that Incident Manager engaged the contact channel.
DeliveryTime (datetime) --
The time the message was delivered to the contact channel.
ReadTime (datetime) --
The time that the contact channel acknowledged engagement.