Class: AWSCDK::Interfaces::AWSLightsail::AlarmReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_lightsail/alarm_reference.rb

Overview

A reference to a Alarm resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(alarm_arn:, alarm_name:) ⇒ AlarmReference

Returns a new instance of AlarmReference.

Parameters:

  • alarm_arn (String)

    The ARN of the Alarm resource.

  • alarm_name (String)

    The AlarmName of the Alarm resource.



9
10
11
12
13
14
# File 'interfaces/aws_lightsail/alarm_reference.rb', line 9

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

Instance Attribute Details

#alarm_arnString (readonly)

The ARN of the Alarm resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_lightsail/alarm_reference.rb', line 19

def alarm_arn
  @alarm_arn
end

#alarm_nameString (readonly)

The AlarmName of the Alarm resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_lightsail/alarm_reference.rb', line 23

def alarm_name
  @alarm_name
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_lightsail/alarm_reference.rb', line 25

def self.jsii_properties
  {
    :alarm_arn => "alarmArn",
    :alarm_name => "alarmName",
  }
end

Instance Method Details

#to_jsiiObject



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

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