Class: AWSCDK::Route53::CfnHealthCheck::AlarmIdentifierProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53::CfnHealthCheck::AlarmIdentifierProperty
- Defined in:
- route53/cfn_health_check.rb
Overview
A complex type that identifies the CloudWatch alarm that you want Amazon Route 53 health checkers to use to determine whether the specified 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
For the CloudWatch alarm that you want Route 53 health checkers to use to determine whether this health check is healthy, the region that the alarm was created in.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, region:) ⇒ AlarmIdentifierProperty
constructor
A new instance of AlarmIdentifierProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, region:) ⇒ AlarmIdentifierProperty
Returns a new instance of AlarmIdentifierProperty.
550 551 552 553 554 555 |
# File 'route53/cfn_health_check.rb', line 550 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.
Route 53 supports CloudWatch alarms with the following features:
- Standard-resolution metrics. High-resolution metrics aren't supported. For more information, see High-Resolution Metrics in the Amazon CloudWatch User Guide .
- Statistics: Average, Minimum, Maximum, Sum, and SampleCount. Extended statistics aren't supported.
566 567 568 |
# File 'route53/cfn_health_check.rb', line 566 def name @name end |
#region ⇒ String (readonly)
For the CloudWatch alarm that you want Route 53 health checkers to use to determine whether this health check is healthy, the region that the alarm was created in.
For the current list of CloudWatch regions, see Amazon CloudWatch endpoints and quotas in the Amazon Web Services General Reference .
573 574 575 |
# File 'route53/cfn_health_check.rb', line 573 def region @region end |
Class Method Details
.jsii_properties ⇒ Object
575 576 577 578 579 580 |
# File 'route53/cfn_health_check.rb', line 575 def self.jsii_properties { :name => "name", :region => "region", } end |
Instance Method Details
#to_jsii ⇒ Object
582 583 584 585 586 587 588 589 |
# File 'route53/cfn_health_check.rb', line 582 def to_jsii result = {} result.merge!({ "name" => @name, "region" => @region, }) result.compact end |