Class: AWSCDK::Route53::AlarmIdentifier

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
route53/alarm_identifier.rb

Overview

A CloudWatch alarm that you want Amazon Route 53 health checker to use to determine whether this health check is healthy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, region:) ⇒ AlarmIdentifier

Returns a new instance of AlarmIdentifier.

Parameters:

  • name (String)

    The name of the CloudWatch alarm that you want Amazon Route 53 health checkers to use to determine whether this health check is healthy.

  • region (String)

    The region of the CloudWatch alarm that you want Amazon Route 53 health checkers to use to determine whether this health check is healthy.



9
10
11
12
13
14
# File 'route53/alarm_identifier.rb', line 9

def initialize(name:, region:)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @region = region
  Jsii::Type.check_type(@region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "region")
end

Instance Attribute Details

#nameString (readonly)

The name of the CloudWatch alarm that you want Amazon Route 53 health checkers to use to determine whether this health check is healthy.

Returns:

  • (String)


19
20
21
# File 'route53/alarm_identifier.rb', line 19

def name
  @name
end

#regionString (readonly)

The region of the CloudWatch alarm that you want Amazon Route 53 health checkers to use to determine whether this health check is healthy.

Returns:

  • (String)


23
24
25
# File 'route53/alarm_identifier.rb', line 23

def region
  @region
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'route53/alarm_identifier.rb', line 25

def self.jsii_properties
  {
    :name => "name",
    :region => "region",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'route53/alarm_identifier.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "region" => @region,
  })
  result.compact
end