Class: AWSCDK::MediaLive::CfnEventBridgeRuleTemplateProps

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

Overview

Properties for defining a CfnEventBridgeRuleTemplate.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_type:, name:, description: nil, event_targets: nil, group_identifier: nil, tags: nil) ⇒ CfnEventBridgeRuleTemplateProps

Returns a new instance of CfnEventBridgeRuleTemplateProps.

Parameters:

  • event_type (String)

    The type of event to match with the rule.

  • name (String)

    A resource's name.

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

    A resource's optional description.

  • event_targets (AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::MediaLive::CfnEventBridgeRuleTemplate::EventBridgeRuleTemplateTargetProperty>, nil) (defaults to: nil)

    The destinations that will receive the event notifications.

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

    An eventbridge rule template group's identifier.

  • tags (Hash{String => String}, nil) (defaults to: nil)

    Represents the tags associated with a resource.



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 = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#descriptionString? (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_targetsAWSCDK::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_typeString (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_identifierString? (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

#nameString (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

#tagsHash{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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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