describeFlowDefinition method

Future<DescribeFlowDefinitionResponse> describeFlowDefinition({
  1. required String flowDefinitionName,
})

Returns information about the specified flow definition.

May throw ResourceNotFound.

Parameter flowDefinitionName : The name of the flow definition.

Implementation

Future<DescribeFlowDefinitionResponse> describeFlowDefinition({
  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.DescribeFlowDefinition'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'FlowDefinitionName': flowDefinitionName,
    },
  );

  return DescribeFlowDefinitionResponse.fromJson(jsonResponse.body);
}