Class: AWSCDK::Route53::AlarmIdentifier
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53::AlarmIdentifier
- 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
-
#name ⇒ String
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.
-
#region ⇒ String
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.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, region:) ⇒ AlarmIdentifier
constructor
A new instance of AlarmIdentifier.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, region:) ⇒ AlarmIdentifier
Returns a new instance of AlarmIdentifier.
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
#name ⇒ String (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.
19 20 21 |
# File 'route53/alarm_identifier.rb', line 19 def name @name end |
#region ⇒ String (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.
23 24 25 |
# File 'route53/alarm_identifier.rb', line 23 def region @region end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |