Module: AWSCDK::Events::IRuleTarget

Overview

An abstract target for EventRules.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.jsii_overridable_methodsObject



20
21
22
23
24
# File 'events/i_rule_target.rb', line 20

def self.jsii_overridable_methods
  {
    :bind => { kind: :method, name: "bind", is_optional: false },
  }
end

Instance Method Details

#bind(rule, id = nil) ⇒ AWSCDK::Events::RuleTargetConfig

Returns the rule target specification.

NOTE: Do not use the various input_xxx options. They can be set in a call to add_target.

Parameters:

  • rule (AWSCDK::Interfaces::AWSEvents::IRuleRef)

    The EventBridge Rule that would trigger this target.

  • id (String, nil) (defaults to: nil)

    The id of the target that will be attached to the rule.

Returns:



14
15
16
17
18
# File 'events/i_rule_target.rb', line 14

def bind(rule, id = nil)
  Jsii::Type.check_type(rule, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19ldmVudHMuSVJ1bGVSZWYifQ==")), "rule")
  Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") unless id.nil?
  jsii_call_method("bind", [rule, id])
end