updateContactChannel method
Updates a contact's contact channel.
May throw AccessDeniedException.
May throw ConflictException.
May throw DataEncryptionException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter contactChannelId :
The Amazon Resource Name (ARN) of the contact channel you want to update.
Parameter deliveryAddress :
The details that Incident Manager uses when trying to engage the contact
channel.
Parameter name :
The name of the contact channel.
Implementation
Future<void> updateContactChannel({
required String contactChannelId,
ContactChannelAddress? deliveryAddress,
String? name,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SSMContacts.UpdateContactChannel'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ContactChannelId': contactChannelId,
if (deliveryAddress != null) 'DeliveryAddress': deliveryAddress,
if (name != null) 'Name': name,
},
);
}