Class: AWSCDK::Events::CfnEndpoint::PrimaryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Events::CfnEndpoint::PrimaryProperty
- Defined in:
- events/cfn_endpoint.rb
Overview
The primary Region of the endpoint.
Instance Attribute Summary collapse
-
#health_check ⇒ String
readonly
The ARN of the health check used by the endpoint to determine whether failover is triggered.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(health_check:) ⇒ PrimaryProperty
constructor
A new instance of PrimaryProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(health_check:) ⇒ PrimaryProperty
Returns a new instance of PrimaryProperty.
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_check ⇒ String (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_properties ⇒ Object
723 724 725 726 727 |
# File 'events/cfn_endpoint.rb', line 723 def self.jsii_properties { :health_check => "healthCheck", } end |
Instance Method Details
#to_jsii ⇒ Object
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 |