Class: AWSCDK::MediaLive::CfnEventBridgeRuleTemplateProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaLive::CfnEventBridgeRuleTemplateProps
- Defined in:
- media_live/cfn_event_bridge_rule_template_props.rb
Overview
Properties for defining a CfnEventBridgeRuleTemplate.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
A resource's optional description.
-
#event_targets ⇒ AWSCDK::IResolvable, ...
readonly
The destinations that will receive the event notifications.
-
#event_type ⇒ String
readonly
The type of event to match with the rule.
-
#group_identifier ⇒ String?
readonly
An eventbridge rule template group's identifier.
-
#name ⇒ String
readonly
A resource's name.
-
#tags ⇒ Hash{String => String}?
readonly
Represents the tags associated with a resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(event_type:, name:, description: nil, event_targets: nil, group_identifier: nil, tags: nil) ⇒ CfnEventBridgeRuleTemplateProps
constructor
A new instance of CfnEventBridgeRuleTemplateProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(event_type:, name:, description: nil, event_targets: nil, group_identifier: nil, tags: nil) ⇒ CfnEventBridgeRuleTemplateProps
Returns a new instance of CfnEventBridgeRuleTemplateProps.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'media_live/cfn_event_bridge_rule_template_props.rb', line 15 def initialize(event_type:, name:, description: nil, event_targets: nil, group_identifier: nil, tags: nil) @event_type = event_type Jsii::Type.check_type(@event_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "eventType") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @event_targets = event_targets Jsii::Type.check_type(@event_targets, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbWVkaWFsaXZlLkNmbkV2ZW50QnJpZGdlUnVsZVRlbXBsYXRlLkV2ZW50QnJpZGdlUnVsZVRlbXBsYXRlVGFyZ2V0UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "eventTargets") unless @event_targets.nil? @group_identifier = group_identifier Jsii::Type.check_type(@group_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "groupIdentifier") unless @group_identifier.nil? @tags = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
A resource's optional description.
46 47 48 |
# File 'media_live/cfn_event_bridge_rule_template_props.rb', line 46 def description @description end |
#event_targets ⇒ AWSCDK::IResolvable, ... (readonly)
The destinations that will receive the event notifications.
51 52 53 |
# File 'media_live/cfn_event_bridge_rule_template_props.rb', line 51 def event_targets @event_targets end |
#event_type ⇒ String (readonly)
The type of event to match with the rule.
34 35 36 |
# File 'media_live/cfn_event_bridge_rule_template_props.rb', line 34 def event_type @event_type end |
#group_identifier ⇒ String? (readonly)
An eventbridge rule template group's identifier.
Can be either be its id or current name.
58 59 60 |
# File 'media_live/cfn_event_bridge_rule_template_props.rb', line 58 def group_identifier @group_identifier end |
#name ⇒ String (readonly)
A resource's name.
Names must be unique within the scope of a resource type in a specific region.
41 42 43 |
# File 'media_live/cfn_event_bridge_rule_template_props.rb', line 41 def name @name end |
#tags ⇒ Hash{String => String}? (readonly)
Represents the tags associated with a resource.
63 64 65 |
# File 'media_live/cfn_event_bridge_rule_template_props.rb', line 63 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
65 66 67 68 69 70 71 72 73 74 |
# File 'media_live/cfn_event_bridge_rule_template_props.rb', line 65 def self.jsii_properties { :event_type => "eventType", :name => "name", :description => "description", :event_targets => "eventTargets", :group_identifier => "groupIdentifier", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'media_live/cfn_event_bridge_rule_template_props.rb', line 76 def to_jsii result = {} result.merge!({ "eventType" => @event_type, "name" => @name, "description" => @description, "eventTargets" => @event_targets, "groupIdentifier" => @group_identifier, "tags" => @tags, }) result.compact end |