Class SageMakerStartPipelineExecution.Builder

java.lang.Object
software.amazon.awscdk.services.scheduler.targets.alpha.SageMakerStartPipelineExecution.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<SageMakerStartPipelineExecution>
Enclosing class:
SageMakerStartPipelineExecution

@Stability(Experimental) public static final class SageMakerStartPipelineExecution.Builder extends Object implements software.amazon.jsii.Builder<SageMakerStartPipelineExecution>
(experimental) A fluent builder for SageMakerStartPipelineExecution.
  • Method Details

    • create

      @Stability(Experimental) public static SageMakerStartPipelineExecution.Builder create(IPipeline pipeline)
      Parameters:
      pipeline - This parameter is required.
      Returns:
      a new instance of SageMakerStartPipelineExecution.Builder.
    • deadLetterQueue

      @Stability(Experimental) public SageMakerStartPipelineExecution.Builder deadLetterQueue(IQueue deadLetterQueue)
      (experimental) The SQS queue to be used as deadLetterQueue.

      The events not successfully delivered are automatically retried for a specified period of time, depending on the retry policy of the target. If an event is not delivered before all retry attempts are exhausted, it will be sent to the dead letter queue.

      Default: - no dead-letter queue

      Parameters:
      deadLetterQueue - The SQS queue to be used as deadLetterQueue. This parameter is required.
      Returns:
      this
    • input

      @Stability(Experimental) public SageMakerStartPipelineExecution.Builder input(ScheduleTargetInput input)
      (experimental) Input passed to the target.

      Default: - no input.

      Parameters:
      input - Input passed to the target. This parameter is required.
      Returns:
      this
    • maxEventAge

      @Stability(Experimental) public SageMakerStartPipelineExecution.Builder maxEventAge(Duration maxEventAge)
      (experimental) The maximum age of a request that Scheduler sends to a target for processing.

      Minimum value of 60. Maximum value of 86400.

      Default: Duration.hours(24)

      Parameters:
      maxEventAge - The maximum age of a request that Scheduler sends to a target for processing. This parameter is required.
      Returns:
      this
    • retryAttempts

      @Stability(Experimental) public SageMakerStartPipelineExecution.Builder retryAttempts(Number retryAttempts)
      (experimental) The maximum number of times to retry when the target returns an error.

      Minimum value of 0. Maximum value of 185.

      Default: 185

      Parameters:
      retryAttempts - The maximum number of times to retry when the target returns an error. This parameter is required.
      Returns:
      this
    • role

      @Stability(Experimental) public SageMakerStartPipelineExecution.Builder role(IRole role)
      (experimental) An execution role is an IAM role that EventBridge Scheduler assumes in order to interact with other AWS services on your behalf.

      If none provided templates target will automatically create an IAM role with all the minimum necessary permissions to interact with the templated target. If you wish you may specify your own IAM role, then the templated targets will grant minimal required permissions.

      Default: - created by target

      Parameters:
      role - An execution role is an IAM role that EventBridge Scheduler assumes in order to interact with other AWS services on your behalf. This parameter is required.
      Returns:
      this
    • pipelineParameterList

      @Stability(Experimental) public SageMakerStartPipelineExecution.Builder pipelineParameterList(List<? extends SageMakerPipelineParameter> pipelineParameterList)
      (experimental) List of parameter names and values to use when executing the SageMaker Model Building Pipeline.

      The length must be between 0 and 200.

      Default: - no pipeline parameter list

      Parameters:
      pipelineParameterList - List of parameter names and values to use when executing the SageMaker Model Building Pipeline. This parameter is required.
      Returns:
      this
      See Also:
    • build

      @Stability(Experimental) public SageMakerStartPipelineExecution build()
      Specified by:
      build in interface software.amazon.jsii.Builder<SageMakerStartPipelineExecution>
      Returns:
      a newly built instance of SageMakerStartPipelineExecution.