Class SageMakerStartPipelineExecutionProps.Builder
java.lang.Object
software.amazon.awscdk.services.scheduler.targets.alpha.SageMakerStartPipelineExecutionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SageMakerStartPipelineExecutionProps>
- Enclosing interface:
SageMakerStartPipelineExecutionProps
@Stability(Experimental)
public static final class SageMakerStartPipelineExecutionProps.Builder
extends Object
implements software.amazon.jsii.Builder<SageMakerStartPipelineExecutionProps>
A builder for
SageMakerStartPipelineExecutionProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deadLetterQueue
(IQueue deadLetterQueue) Sets the value ofScheduleTargetBaseProps.getDeadLetterQueue()
input
(ScheduleTargetInput input) Sets the value ofScheduleTargetBaseProps.getInput()
maxEventAge
(Duration maxEventAge) Sets the value ofScheduleTargetBaseProps.getMaxEventAge()
pipelineParameterList
(List<? extends SageMakerPipelineParameter> pipelineParameterList) Sets the value ofSageMakerStartPipelineExecutionProps.getPipelineParameterList()
retryAttempts
(Number retryAttempts) Sets the value ofScheduleTargetBaseProps.getRetryAttempts()
Sets the value ofScheduleTargetBaseProps.getRole()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
pipelineParameterList
@Stability(Experimental) public SageMakerStartPipelineExecutionProps.Builder pipelineParameterList(List<? extends SageMakerPipelineParameter> pipelineParameterList) Sets the value ofSageMakerStartPipelineExecutionProps.getPipelineParameterList()
- Parameters:
pipelineParameterList
- List of parameter names and values to use when executing the SageMaker Model Building Pipeline. The length must be between 0 and 200.- Returns:
this
-
deadLetterQueue
@Stability(Experimental) public SageMakerStartPipelineExecutionProps.Builder deadLetterQueue(IQueue deadLetterQueue) Sets the value ofScheduleTargetBaseProps.getDeadLetterQueue()
- Parameters:
deadLetterQueue
- 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.- Returns:
this
-
input
@Stability(Experimental) public SageMakerStartPipelineExecutionProps.Builder input(ScheduleTargetInput input) Sets the value ofScheduleTargetBaseProps.getInput()
- Parameters:
input
- Input passed to the target.- Returns:
this
-
maxEventAge
@Stability(Experimental) public SageMakerStartPipelineExecutionProps.Builder maxEventAge(Duration maxEventAge) Sets the value ofScheduleTargetBaseProps.getMaxEventAge()
- Parameters:
maxEventAge
- The maximum age of a request that Scheduler sends to a target for processing. Minimum value of 60. Maximum value of 86400.- Returns:
this
-
retryAttempts
@Stability(Experimental) public SageMakerStartPipelineExecutionProps.Builder retryAttempts(Number retryAttempts) Sets the value ofScheduleTargetBaseProps.getRetryAttempts()
- Parameters:
retryAttempts
- The maximum number of times to retry when the target returns an error. Minimum value of 0. Maximum value of 185.- Returns:
this
-
role
Sets the value ofScheduleTargetBaseProps.getRole()
- Parameters:
role
- 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SageMakerStartPipelineExecutionProps>
- Returns:
- a new instance of
SageMakerStartPipelineExecutionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-