Class: AWSCDK::Scheduler::CfnSchedule::EventBridgeParametersProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Scheduler::CfnSchedule::EventBridgeParametersProperty
- Defined in:
- scheduler/cfn_schedule.rb
Overview
The templated target type for the EventBridge PutEvents API operation.
Instance Attribute Summary collapse
-
#detail_type ⇒ String
readonly
A free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail.
-
#source ⇒ String
readonly
The source of the event.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(detail_type:, source:) ⇒ EventBridgeParametersProperty
constructor
A new instance of EventBridgeParametersProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(detail_type:, source:) ⇒ EventBridgeParametersProperty
Returns a new instance of EventBridgeParametersProperty.
984 985 986 987 988 989 |
# File 'scheduler/cfn_schedule.rb', line 984 def initialize(detail_type:, source:) @detail_type = detail_type Jsii::Type.check_type(@detail_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "detailType") @source = source Jsii::Type.check_type(@source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "source") end |
Instance Attribute Details
#detail_type ⇒ String (readonly)
A free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail.
995 996 997 |
# File 'scheduler/cfn_schedule.rb', line 995 def detail_type @detail_type end |
#source ⇒ String (readonly)
The source of the event.
1000 1001 1002 |
# File 'scheduler/cfn_schedule.rb', line 1000 def source @source end |
Class Method Details
.jsii_properties ⇒ Object
1002 1003 1004 1005 1006 1007 |
# File 'scheduler/cfn_schedule.rb', line 1002 def self.jsii_properties { :detail_type => "detailType", :source => "source", } end |
Instance Method Details
#to_jsii ⇒ Object
1009 1010 1011 1012 1013 1014 1015 1016 |
# File 'scheduler/cfn_schedule.rb', line 1009 def to_jsii result = {} result.merge!({ "detailType" => @detail_type, "source" => @source, }) result.compact end |