Class: AWSCDK::MediaLive::CfnEventBridgeRuleTemplate::EventBridgeRuleTemplateTargetProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_live/cfn_event_bridge_rule_template.rb

Overview

The target to which to send matching events.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arn:) ⇒ EventBridgeRuleTemplateTargetProperty

Returns a new instance of EventBridgeRuleTemplateTargetProperty.

Parameters:

  • arn (String)

    Target ARNs must be either an SNS topic or CloudWatch log group.



625
626
627
628
# File 'media_live/cfn_event_bridge_rule_template.rb', line 625

def initialize(arn:)
  @arn = arn
  Jsii::Type.check_type(@arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arn")
end

Instance Attribute Details

#arnString (readonly)

Target ARNs must be either an SNS topic or CloudWatch log group.



634
635
636
# File 'media_live/cfn_event_bridge_rule_template.rb', line 634

def arn
  @arn
end

Class Method Details

.jsii_propertiesObject



636
637
638
639
640
# File 'media_live/cfn_event_bridge_rule_template.rb', line 636

def self.jsii_properties
  {
    :arn => "arn",
  }
end

Instance Method Details

#to_jsiiObject



642
643
644
645
646
647
648
# File 'media_live/cfn_event_bridge_rule_template.rb', line 642

def to_jsii
  result = {}
  result.merge!({
    "arn" => @arn,
  })
  result.compact
end