updateContactFlowName method
The name of the contact flow.
You can also create and update contact flows using the Amazon Connect Flow language.
May throw InvalidRequestException. May throw InvalidParameterException. May throw DuplicateResourceException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw InternalServiceException.
Parameter contactFlowId
:
The identifier of the contact flow.
Parameter instanceId
:
The identifier of the Amazon Connect instance.
Parameter description
:
The description of the contact flow.
Parameter name
:
The name of the contact flow.
Implementation
Future<void> updateContactFlowName({
required String contactFlowId,
required String instanceId,
String? description,
String? name,
}) async {
ArgumentError.checkNotNull(contactFlowId, 'contactFlowId');
_s.validateStringLength(
'contactFlowId',
contactFlowId,
0,
500,
isRequired: true,
);
ArgumentError.checkNotNull(instanceId, 'instanceId');
_s.validateStringLength(
'instanceId',
instanceId,
1,
100,
isRequired: true,
);
_s.validateStringLength(
'name',
name,
1,
1152921504606846976,
);
final $payload = <String, dynamic>{
if (description != null) 'Description': description,
if (name != null) 'Name': name,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/contact-flows/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(contactFlowId)}/name',
exceptionFnMap: _exceptionFns,
);
}