startImagePipelineExecution method

Future<StartImagePipelineExecutionResponse> startImagePipelineExecution({
  1. required String imagePipelineArn,
  2. String? clientToken,
})

Manually triggers a pipeline to create an image.

May throw ServiceException. May throw ClientException. May throw ServiceUnavailableException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw IdempotentParameterMismatchException. May throw ForbiddenException. May throw CallRateLimitExceededException. May throw ResourceInUseException.

Parameter imagePipelineArn : The Amazon Resource Name (ARN) of the image pipeline that you want to manually invoke.

Parameter clientToken : The idempotency token used to make this request idempotent.

Implementation

Future<StartImagePipelineExecutionResponse> startImagePipelineExecution({
  required String imagePipelineArn,
  String? clientToken,
}) async {
  ArgumentError.checkNotNull(imagePipelineArn, 'imagePipelineArn');
  _s.validateStringLength(
    'clientToken',
    clientToken,
    1,
    36,
  );
  final $payload = <String, dynamic>{
    'imagePipelineArn': imagePipelineArn,
    'clientToken': clientToken ?? _s.generateIdempotencyToken(),
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/StartImagePipelineExecution',
    exceptionFnMap: _exceptionFns,
  );
  return StartImagePipelineExecutionResponse.fromJson(response);
}