Class: AWSCDK::Route53::CfnHealthCheckProps

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

Overview

Properties for defining a CfnHealthCheck.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(health_check_config:, health_check_tags: nil) ⇒ CfnHealthCheckProps

Returns a new instance of CfnHealthCheckProps.

Parameters:



11
12
13
14
15
16
# File 'route53/cfn_health_check_props.rb', line 11

def initialize(health_check_config:, health_check_tags: nil)
  @health_check_config = health_check_config.is_a?(Hash) ? ::AWSCDK::Route53::CfnHealthCheck::HealthCheckConfigProperty.new(**health_check_config.transform_keys(&:to_sym)) : health_check_config
  Jsii::Type.check_type(@health_check_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19yb3V0ZTUzLkNmbkhlYWx0aENoZWNrLkhlYWx0aENoZWNrQ29uZmlnUHJvcGVydHkifV19fQ==")), "healthCheckConfig")
  @health_check_tags = health_check_tags.is_a?(Array) ? health_check_tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::Route53::CfnHealthCheck::HealthCheckTagProperty.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : health_check_tags
  Jsii::Type.check_type(@health_check_tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19yb3V0ZTUzLkNmbkhlYWx0aENoZWNrLkhlYWx0aENoZWNrVGFnUHJvcGVydHkifSwia2luZCI6ImFycmF5In19")), "healthCheckTags") unless @health_check_tags.nil?
end

Instance Attribute Details

#health_check_configAWSCDK::IResolvable, AWSCDK::Route53::CfnHealthCheck::HealthCheckConfigProperty (readonly)

A complex type that contains detailed information about one health check.

For the values to enter for HealthCheckConfig , see HealthCheckConfig



24
25
26
# File 'route53/cfn_health_check_props.rb', line 24

def health_check_config
  @health_check_config
end

#health_check_tagsArray<AWSCDK::Route53::CfnHealthCheck::HealthCheckTagProperty>? (readonly)

The HealthCheckTags property describes key-value pairs that are associated with an AWS::Route53::HealthCheck resource.



29
30
31
# File 'route53/cfn_health_check_props.rb', line 29

def health_check_tags
  @health_check_tags
end

Class Method Details

.jsii_propertiesObject



31
32
33
34
35
36
# File 'route53/cfn_health_check_props.rb', line 31

def self.jsii_properties
  {
    :health_check_config => "healthCheckConfig",
    :health_check_tags => "healthCheckTags",
  }
end

Instance Method Details

#to_jsiiObject



38
39
40
41
42
43
44
45
# File 'route53/cfn_health_check_props.rb', line 38

def to_jsii
  result = {}
  result.merge!({
    "healthCheckConfig" => @health_check_config,
    "healthCheckTags" => @health_check_tags,
  })
  result.compact
end