SSMContacts.Client.
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
Examples
The following get-contact-channel example lists the details of a contact channel.
response = client.get_contact_channel(
ContactChannelId='arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/fc7405c4-46b2-48b7-87b2-93e2f225b90d',
)
print(response)
Expected Output:
{
'ActivationStatus': 'ACTIVATED',
'ContactArn': 'arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam',
'ContactChannelArn': 'arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/fc7405c4-46b2-48b7-87b2-93e2f225b90d',
'DeliveryAddress': {
'SimpleAddress': '+15005550199',
},
'Name': 'akuas sms',
'Type': 'SMS',
'ResponseMetadata': {
'...': '...',
},
}