Class: AWSCDK::Events::CfnEndpoint::PrimaryProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
events/cfn_endpoint.rb

Overview

The primary Region of the endpoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(health_check:) ⇒ PrimaryProperty

Returns a new instance of PrimaryProperty.

Parameters:

  • health_check (String)

    The ARN of the health check used by the endpoint to determine whether failover is triggered.



712
713
714
715
# File 'events/cfn_endpoint.rb', line 712

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

Instance Attribute Details

#health_checkString (readonly)

The ARN of the health check used by the endpoint to determine whether failover is triggered.



721
722
723
# File 'events/cfn_endpoint.rb', line 721

def health_check
  @health_check
end

Class Method Details

.jsii_propertiesObject



723
724
725
726
727
# File 'events/cfn_endpoint.rb', line 723

def self.jsii_properties
  {
    :health_check => "healthCheck",
  }
end

Instance Method Details

#to_jsiiObject



729
730
731
732
733
734
735
# File 'events/cfn_endpoint.rb', line 729

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