Class: AWSCDK::SchedulerTargets::SageMakerStartPipelineExecutionProps
- Inherits:
-
ScheduleTargetBaseProps
- Object
- ScheduleTargetBaseProps
- AWSCDK::SchedulerTargets::SageMakerStartPipelineExecutionProps
- Defined in:
- scheduler_targets/sage_maker_start_pipeline_execution_props.rb
Overview
Properties for a SageMaker Target.
Instance Attribute Summary collapse
-
#dead_letter_queue ⇒ AWSCDK::SQS::IQueue?
readonly
The SQS queue to be used as deadLetterQueue.
-
#input ⇒ AWSCDK::Scheduler::ScheduleTargetInput?
readonly
Input passed to the target.
-
#max_event_age ⇒ AWSCDK::Duration?
readonly
The maximum age of a request that Scheduler sends to a target for processing.
-
#pipeline_parameter_list ⇒ Array<AWSCDK::SchedulerTargets::SageMakerPipelineParameter>?
readonly
List of parameter names and values to use when executing the SageMaker Model Building Pipeline.
-
#retry_attempts ⇒ Numeric?
readonly
The maximum number of times to retry when the target returns an error.
-
#role ⇒ AWSCDK::IAM::IRole?
readonly
An execution role is an IAM role that EventBridge Scheduler assumes in order to interact with other AWS services on your behalf.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(dead_letter_queue: nil, input: nil, max_event_age: nil, retry_attempts: nil, role: nil, pipeline_parameter_list: nil) ⇒ SageMakerStartPipelineExecutionProps
constructor
A new instance of SageMakerStartPipelineExecutionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(dead_letter_queue: nil, input: nil, max_event_age: nil, retry_attempts: nil, role: nil, pipeline_parameter_list: nil) ⇒ SageMakerStartPipelineExecutionProps
Returns a new instance of SageMakerStartPipelineExecutionProps.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'scheduler_targets/sage_maker_start_pipeline_execution_props.rb', line 13 def initialize(dead_letter_queue: nil, input: nil, max_event_age: nil, retry_attempts: nil, role: nil, pipeline_parameter_list: nil) @dead_letter_queue = dead_letter_queue Jsii::Type.check_type(@dead_letter_queue, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3FzLklRdWV1ZSJ9")), "deadLetterQueue") unless @dead_letter_queue.nil? @input = input Jsii::Type.check_type(@input, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2NoZWR1bGVyLlNjaGVkdWxlVGFyZ2V0SW5wdXQifQ==")), "input") unless @input.nil? @max_event_age = max_event_age Jsii::Type.check_type(@max_event_age, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5EdXJhdGlvbiJ9")), "maxEventAge") unless @max_event_age.nil? @retry_attempts = retry_attempts Jsii::Type.check_type(@retry_attempts, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "retryAttempts") unless @retry_attempts.nil? @role = role Jsii::Type.check_type(@role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklSb2xlIn0=")), "role") unless @role.nil? @pipeline_parameter_list = pipeline_parameter_list.is_a?(Array) ? pipeline_parameter_list.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::SchedulerTargets::SageMakerPipelineParameter.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : pipeline_parameter_list Jsii::Type.check_type(@pipeline_parameter_list, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zY2hlZHVsZXJfdGFyZ2V0cy5TYWdlTWFrZXJQaXBlbGluZVBhcmFtZXRlciJ9LCJraW5kIjoiYXJyYXkifX0=")), "pipelineParameterList") unless @pipeline_parameter_list.nil? end |
Instance Attribute Details
#dead_letter_queue ⇒ AWSCDK::SQS::IQueue? (readonly)
Default: - no dead-letter queue
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.
36 37 38 |
# File 'scheduler_targets/sage_maker_start_pipeline_execution_props.rb', line 36 def dead_letter_queue @dead_letter_queue end |
#input ⇒ AWSCDK::Scheduler::ScheduleTargetInput? (readonly)
Default: - no input.
Input passed to the target.
41 42 43 |
# File 'scheduler_targets/sage_maker_start_pipeline_execution_props.rb', line 41 def input @input end |
#max_event_age ⇒ AWSCDK::Duration? (readonly)
Default: Duration.hours(24)
The maximum age of a request that Scheduler sends to a target for processing.
Minimum value of 60. Maximum value of 86400.
49 50 51 |
# File 'scheduler_targets/sage_maker_start_pipeline_execution_props.rb', line 49 def max_event_age @max_event_age end |
#pipeline_parameter_list ⇒ Array<AWSCDK::SchedulerTargets::SageMakerPipelineParameter>? (readonly)
Default: - no pipeline parameter list
List of parameter names and values to use when executing the SageMaker Model Building Pipeline.
The length must be between 0 and 200.
74 75 76 |
# File 'scheduler_targets/sage_maker_start_pipeline_execution_props.rb', line 74 def pipeline_parameter_list @pipeline_parameter_list end |
#retry_attempts ⇒ Numeric? (readonly)
Default: 185
The maximum number of times to retry when the target returns an error.
Minimum value of 0. Maximum value of 185.
57 58 59 |
# File 'scheduler_targets/sage_maker_start_pipeline_execution_props.rb', line 57 def retry_attempts @retry_attempts end |
#role ⇒ AWSCDK::IAM::IRole? (readonly)
Default: - created by target
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.
66 67 68 |
# File 'scheduler_targets/sage_maker_start_pipeline_execution_props.rb', line 66 def role @role end |
Class Method Details
.jsii_properties ⇒ Object
76 77 78 79 80 81 82 83 84 85 |
# File 'scheduler_targets/sage_maker_start_pipeline_execution_props.rb', line 76 def self.jsii_properties { :dead_letter_queue => "deadLetterQueue", :input => "input", :max_event_age => "maxEventAge", :retry_attempts => "retryAttempts", :role => "role", :pipeline_parameter_list => "pipelineParameterList", } end |
Instance Method Details
#to_jsii ⇒ Object
87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'scheduler_targets/sage_maker_start_pipeline_execution_props.rb', line 87 def to_jsii result = {} result.merge!(super) result.merge!({ "deadLetterQueue" => @dead_letter_queue, "input" => @input, "maxEventAge" => @max_event_age, "retryAttempts" => @retry_attempts, "role" => @role, "pipelineParameterList" => @pipeline_parameter_list, }) result.compact end |