Class: AWSCDK::Interfaces::AWSCloudwatch::CompositeAlarmReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_cloudwatch/composite_alarm_reference.rb

Overview

A reference to a CompositeAlarm resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(alarm_name:, composite_alarm_arn:) ⇒ CompositeAlarmReference

Returns a new instance of CompositeAlarmReference.

Parameters:

  • alarm_name (String)

    The AlarmName of the CompositeAlarm resource.

  • composite_alarm_arn (String)

    The ARN of the CompositeAlarm resource.



9
10
11
12
13
14
# File 'interfaces/aws_cloudwatch/composite_alarm_reference.rb', line 9

def initialize(alarm_name:, composite_alarm_arn:)
  @alarm_name = alarm_name
  Jsii::Type.check_type(@alarm_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "alarmName")
  @composite_alarm_arn = composite_alarm_arn
  Jsii::Type.check_type(@composite_alarm_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "compositeAlarmArn")
end

Instance Attribute Details

#alarm_nameString (readonly)

The AlarmName of the CompositeAlarm resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_cloudwatch/composite_alarm_reference.rb', line 19

def alarm_name
  @alarm_name
end

#composite_alarm_arnString (readonly)

The ARN of the CompositeAlarm resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_cloudwatch/composite_alarm_reference.rb', line 23

def composite_alarm_arn
  @composite_alarm_arn
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_cloudwatch/composite_alarm_reference.rb', line 25

def self.jsii_properties
  {
    :alarm_name => "alarmName",
    :composite_alarm_arn => "compositeAlarmArn",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'interfaces/aws_cloudwatch/composite_alarm_reference.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "alarmName" => @alarm_name,
    "compositeAlarmArn" => @composite_alarm_arn,
  })
  result.compact
end