updateContactFlowModuleMetadata method
Updates metadata about specified flow module.
May throw AccessDeniedException.
May throw DuplicateResourceException.
May throw InternalServiceException.
May throw InvalidParameterException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter contactFlowModuleId :
The identifier of the flow module.
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 description :
The description of the flow module.
Parameter name :
The name of the flow module.
Parameter state :
The state of flow module.
Implementation
Future<void> updateContactFlowModuleMetadata({
required String contactFlowModuleId,
required String instanceId,
String? description,
String? name,
ContactFlowModuleState? state,
}) async {
final $payload = <String, dynamic>{
if (description != null) 'Description': description,
if (name != null) 'Name': name,
if (state != null) 'State': state.value,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/contact-flow-modules/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(contactFlowModuleId)}/metadata',
exceptionFnMap: _exceptionFns,
);
}