deleteFlowDefinition method

Future<void> deleteFlowDefinition({
  1. required String flowDefinitionName,
})

Deletes the specified flow definition.

May throw ResourceInUse. May throw ResourceNotFound.

Parameter flowDefinitionName : The name of the flow definition you are deleting.

Implementation

Future<void> deleteFlowDefinition({
  required String flowDefinitionName,
}) async {
  ArgumentError.checkNotNull(flowDefinitionName, 'flowDefinitionName');
  _s.validateStringLength(
    'flowDefinitionName',
    flowDefinitionName,
    1,
    63,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.DeleteFlowDefinition'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'FlowDefinitionName': flowDefinitionName,
    },
  );
}