Class: AWSCDK::EventsTargets::LogGroupTargetInput
- Inherits:
-
AWSCDK::Events::RuleTargetInput
- Object
- AWSCDK::Events::RuleTargetInput
- AWSCDK::EventsTargets::LogGroupTargetInput
- Defined in:
- events_targets/log_group_target_input.rb
Overview
The input to send to the CloudWatch LogGroup target.
Class Method Summary collapse
-
.from_object(options) ⇒ AWSCDK::Events::RuleTargetInput
deprecated
Deprecated.
use fromObjectV2
-
.from_object_v2(options = nil) ⇒ AWSCDK::EventsTargets::LogGroupTargetInput
Pass a JSON object to the log group event target.
- .jsii_overridable_methods ⇒ Object
Instance Method Summary collapse
-
#bind(rule) ⇒ AWSCDK::Events::RuleTargetInputProperties
Return the input properties for this input object.
-
#initialize ⇒ LogGroupTargetInput
constructor
A new instance of LogGroupTargetInput.
Constructor Details
#initialize ⇒ LogGroupTargetInput
Returns a new instance of LogGroupTargetInput.
8 9 10 |
# File 'events_targets/log_group_target_input.rb', line 8 def initialize Jsii::Object.instance_method(:initialize).bind(self).call end |
Class Method Details
.from_object(options) ⇒ AWSCDK::Events::RuleTargetInput
Deprecated.
use fromObjectV2
Pass a JSON object to the log group event target.
May contain strings returned by EventField.from() to substitute in parts of the
matched event.
26 27 28 29 |
# File 'events_targets/log_group_target_input.rb', line 26 def self.from_object() Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "options") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_events_targets.LogGroupTargetInput", "fromObject", []) end |
.from_object_v2(options = nil) ⇒ AWSCDK::EventsTargets::LogGroupTargetInput
Pass a JSON object to the log group event target.
May contain strings returned by EventField.from() to substitute in parts of the
matched event.
38 39 40 41 42 |
# File 'events_targets/log_group_target_input.rb', line 38 def self.from_object_v2( = nil) = .is_a?(Hash) ? ::AWSCDK::EventsTargets::LogGroupTargetInputOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZXZlbnRzX3RhcmdldHMuTG9nR3JvdXBUYXJnZXRJbnB1dE9wdGlvbnMifQ==")), "options") unless .nil? Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_events_targets.LogGroupTargetInput", "fromObjectV2", []) end |
.jsii_overridable_methods ⇒ Object
12 13 14 15 16 |
# File 'events_targets/log_group_target_input.rb', line 12 def self.jsii_overridable_methods { :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#bind(rule) ⇒ AWSCDK::Events::RuleTargetInputProperties
Return the input properties for this input object.
48 49 50 51 |
# File 'events_targets/log_group_target_input.rb', line 48 def bind(rule) Jsii::Type.check_type(rule, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19ldmVudHMuSVJ1bGVSZWYifQ==")), "rule") jsii_call_method("bind", [rule]) end |