updateQueueName method
Updates the name and description of a queue. At least Name or
Description must be provided.
May throw DuplicateResourceException.
May throw InternalServiceException.
May throw InvalidParameterException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter instanceId :
The identifier of the Connect Customer instance. You can find
the instance ID in the Amazon Resource Name (ARN) of the instance.
Parameter queueId :
The identifier for the queue.
Parameter description :
The description of the queue.
Parameter name :
The name of the queue.
Implementation
Future<void> updateQueueName({
required String instanceId,
required String queueId,
String? description,
String? name,
}) async {
final $payload = <String, dynamic>{
if (description != null) 'Description': description,
if (name != null) 'Name': name,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/queues/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(queueId)}/name',
exceptionFnMap: _exceptionFns,
);
}