Class: AWSCDK::Route53::CfnHealthCheck::AlarmIdentifierProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, region:) ⇒ AlarmIdentifierProperty

Returns a new instance of AlarmIdentifierProperty.

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)

    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.



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

#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.

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

#regionString (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_propertiesObject



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_jsiiObject



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