Class: AWSCDK::AppFlow::CfnFlow::TriggerConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppFlow::CfnFlow::TriggerConfigProperty
- Defined in:
- app_flow/cfn_flow.rb
Overview
The trigger settings that determine how and when Amazon AppFlow runs the specified flow.
Instance Attribute Summary collapse
-
#trigger_properties ⇒ AWSCDK::IResolvable, ...
readonly
Specifies the configuration details of a schedule-triggered flow as defined by the user.
-
#trigger_type ⇒ String
readonly
Specifies the type of flow trigger.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(trigger_type:, trigger_properties: nil) ⇒ TriggerConfigProperty
constructor
A new instance of TriggerConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(trigger_type:, trigger_properties: nil) ⇒ TriggerConfigProperty
Returns a new instance of TriggerConfigProperty.
3253 3254 3255 3256 3257 3258 |
# File 'app_flow/cfn_flow.rb', line 3253 def initialize(trigger_type:, trigger_properties: nil) @trigger_type = trigger_type Jsii::Type.check_type(@trigger_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "triggerType") @trigger_properties = trigger_properties.is_a?(Hash) ? ::AWSCDK::AppFlow::CfnFlow::ScheduledTriggerPropertiesProperty.new(**trigger_properties.transform_keys(&:to_sym)) : trigger_properties Jsii::Type.check_type(@trigger_properties, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBmbG93LkNmbkZsb3cuU2NoZWR1bGVkVHJpZ2dlclByb3BlcnRpZXNQcm9wZXJ0eSJ9XX19")), "triggerProperties") unless @trigger_properties.nil? end |
Instance Attribute Details
#trigger_properties ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies the configuration details of a schedule-triggered flow as defined by the user.
Currently, these settings only apply to the Scheduled trigger type.
3273 3274 3275 |
# File 'app_flow/cfn_flow.rb', line 3273 def trigger_properties @trigger_properties end |
#trigger_type ⇒ String (readonly)
Specifies the type of flow trigger.
This can be OnDemand , Scheduled , or Event .
3266 3267 3268 |
# File 'app_flow/cfn_flow.rb', line 3266 def trigger_type @trigger_type end |
Class Method Details
.jsii_properties ⇒ Object
3275 3276 3277 3278 3279 3280 |
# File 'app_flow/cfn_flow.rb', line 3275 def self.jsii_properties { :trigger_type => "triggerType", :trigger_properties => "triggerProperties", } end |
Instance Method Details
#to_jsii ⇒ Object
3282 3283 3284 3285 3286 3287 3288 3289 |
# File 'app_flow/cfn_flow.rb', line 3282 def to_jsii result = {} result.merge!({ "triggerType" => @trigger_type, "triggerProperties" => @trigger_properties, }) result.compact end |