listPipelineParametersForExecution method

Future<ListPipelineParametersForExecutionResponse> listPipelineParametersForExecution({
  1. required String pipelineExecutionArn,
  2. int? maxResults,
  3. String? nextToken,
})

Gets a list of parameters for a pipeline execution.

May throw ResourceNotFound.

Parameter pipelineExecutionArn : The Amazon Resource Name (ARN) of the pipeline execution.

Parameter maxResults : The maximum number of parameters to return in the response.

Parameter nextToken : If the result of the previous ListPipelineParametersForExecution request was truncated, the response includes a NextToken. To retrieve the next set of parameters, use the token in the next request.

Implementation

Future<ListPipelineParametersForExecutionResponse>
    listPipelineParametersForExecution({
  required String pipelineExecutionArn,
  int? maxResults,
  String? nextToken,
}) async {
  ArgumentError.checkNotNull(pipelineExecutionArn, 'pipelineExecutionArn');
  _s.validateStringLength(
    'pipelineExecutionArn',
    pipelineExecutionArn,
    0,
    256,
    isRequired: true,
  );
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    100,
  );
  _s.validateStringLength(
    'nextToken',
    nextToken,
    0,
    8192,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.ListPipelineParametersForExecution'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'PipelineExecutionArn': pipelineExecutionArn,
      if (maxResults != null) 'MaxResults': maxResults,
      if (nextToken != null) 'NextToken': nextToken,
    },
  );

  return ListPipelineParametersForExecutionResponse.fromJson(
      jsonResponse.body);
}