Class: AWSCDK::Interfaces::AWSCloudwatch::LogAlarmReference

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

Overview

A reference to a LogAlarm resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(alarm_name:, log_alarm_arn:) ⇒ LogAlarmReference

Returns a new instance of LogAlarmReference.

Parameters:

  • alarm_name (String)

    The AlarmName of the LogAlarm resource.

  • log_alarm_arn (String)

    The ARN of the LogAlarm resource.



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

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

Instance Attribute Details

#alarm_nameString (readonly)

The AlarmName of the LogAlarm resource.

Returns:

  • (String)


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

def alarm_name
  @alarm_name
end

#log_alarm_arnString (readonly)

The ARN of the LogAlarm resource.

Returns:

  • (String)


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

def log_alarm_arn
  @log_alarm_arn
end

Class Method Details

.jsii_propertiesObject



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

def self.jsii_properties
  {
    :alarm_name => "alarmName",
    :log_alarm_arn => "logAlarmArn",
  }
end

Instance Method Details

#to_jsiiObject



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

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