Class: AWSCDK::Scheduler::CfnSchedule::EventBridgeParametersProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
scheduler/cfn_schedule.rb

Overview

The templated target type for the EventBridge PutEvents API operation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(detail_type:, source:) ⇒ EventBridgeParametersProperty

Returns a new instance of EventBridgeParametersProperty.

Parameters:

  • detail_type (String)

    A free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail.

  • source (String)

    The source of the event.



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_typeString (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

#sourceString (readonly)

The source of the event.



1000
1001
1002
# File 'scheduler/cfn_schedule.rb', line 1000

def source
  @source
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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