updateQuickConnectName method
This API is in preview release for Amazon Connect and is subject to change.
Updates the name and description of a quick connect. The request accepts the following data in JSON format. At least Name or Description must be provided.
May throw InvalidRequestException. May throw InvalidParameterException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw InternalServiceException.
Parameter instanceId
:
The identifier of the Amazon Connect instance.
Parameter quickConnectId
:
The identifier for the quick connect.
Parameter description
:
The description of the quick connect.
Parameter name
:
The name of the quick connect.
Implementation
Future<void> updateQuickConnectName({
required String instanceId,
required String quickConnectId,
String? description,
String? name,
}) async {
ArgumentError.checkNotNull(instanceId, 'instanceId');
_s.validateStringLength(
'instanceId',
instanceId,
1,
100,
isRequired: true,
);
ArgumentError.checkNotNull(quickConnectId, 'quickConnectId');
_s.validateStringLength(
'description',
description,
0,
250,
);
_s.validateStringLength(
'name',
name,
1,
127,
);
final $payload = <String, dynamic>{
if (description != null) 'Description': description,
if (name != null) 'Name': name,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/quick-connects/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(quickConnectId)}/name',
exceptionFnMap: _exceptionFns,
);
}