deleteContactFlowVersion method

Future<void> deleteContactFlowVersion({
  1. required String contactFlowId,
  2. required int contactFlowVersion,
  3. required String instanceId,
})

Deletes the particular version specified in flow version identifier.

May throw AccessDeniedException. May throw InternalServiceException. May throw InvalidParameterException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter contactFlowId : The identifier of the flow.

Parameter contactFlowVersion : The identifier of the flow version.

Parameter instanceId : The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

Implementation

Future<void> deleteContactFlowVersion({
  required String contactFlowId,
  required int contactFlowVersion,
  required String instanceId,
}) async {
  _s.validateNumRange(
    'contactFlowVersion',
    contactFlowVersion,
    1,
    1152921504606846976,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/contact-flows/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(contactFlowId)}/version/${Uri.encodeComponent(contactFlowVersion.toString())}',
    exceptionFnMap: _exceptionFns,
  );
}