Class: AWSCDK::Interfaces::AWSMedialive::CloudWatchAlarmTemplateReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSMedialive::CloudWatchAlarmTemplateReference
- Defined in:
- interfaces/aws_medialive/cloud_watch_alarm_template_reference.rb
Overview
A reference to a CloudWatchAlarmTemplate resource.
Instance Attribute Summary collapse
-
#cloud_watch_alarm_template_arn ⇒ String
readonly
The ARN of the CloudWatchAlarmTemplate resource.
-
#identifier ⇒ String
readonly
The Identifier of the CloudWatchAlarmTemplate resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cloud_watch_alarm_template_arn:, identifier:) ⇒ CloudWatchAlarmTemplateReference
constructor
A new instance of CloudWatchAlarmTemplateReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cloud_watch_alarm_template_arn:, identifier:) ⇒ CloudWatchAlarmTemplateReference
Returns a new instance of CloudWatchAlarmTemplateReference.
9 10 11 12 13 14 |
# File 'interfaces/aws_medialive/cloud_watch_alarm_template_reference.rb', line 9 def initialize(cloud_watch_alarm_template_arn:, identifier:) @cloud_watch_alarm_template_arn = cloud_watch_alarm_template_arn Jsii::Type.check_type(@cloud_watch_alarm_template_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cloudWatchAlarmTemplateArn") @identifier = identifier Jsii::Type.check_type(@identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "identifier") end |
Instance Attribute Details
#cloud_watch_alarm_template_arn ⇒ String (readonly)
The ARN of the CloudWatchAlarmTemplate resource.
19 20 21 |
# File 'interfaces/aws_medialive/cloud_watch_alarm_template_reference.rb', line 19 def cloud_watch_alarm_template_arn @cloud_watch_alarm_template_arn end |
#identifier ⇒ String (readonly)
The Identifier of the CloudWatchAlarmTemplate resource.
23 24 25 |
# File 'interfaces/aws_medialive/cloud_watch_alarm_template_reference.rb', line 23 def identifier @identifier end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'interfaces/aws_medialive/cloud_watch_alarm_template_reference.rb', line 25 def self.jsii_properties { :cloud_watch_alarm_template_arn => "cloudWatchAlarmTemplateArn", :identifier => "identifier", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'interfaces/aws_medialive/cloud_watch_alarm_template_reference.rb', line 32 def to_jsii result = {} result.merge!({ "cloudWatchAlarmTemplateArn" => @cloud_watch_alarm_template_arn, "identifier" => @identifier, }) result.compact end |