Class: AWSCDK::AppMesh::HealthCheck
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::AppMesh::HealthCheck
- Defined in:
- app_mesh/health_check.rb
Overview
Contains static factory methods for creating health checks for different protocols.
Class Method Summary collapse
-
.grpc(options = nil) ⇒ AWSCDK::AppMesh::HealthCheck
Construct a GRPC health check.
-
.http(options = nil) ⇒ AWSCDK::AppMesh::HealthCheck
Construct a HTTP health check.
-
.http2(options = nil) ⇒ AWSCDK::AppMesh::HealthCheck
Construct a HTTP2 health check.
- .jsii_overridable_methods ⇒ Object
-
.tcp(options = nil) ⇒ AWSCDK::AppMesh::HealthCheck
Construct a TCP health check.
Instance Method Summary collapse
-
#bind(scope, options) ⇒ AWSCDK::AppMesh::HealthCheckConfig
Called when the AccessLog type is initialized.
-
#initialize ⇒ HealthCheck
constructor
A new instance of HealthCheck.
Constructor Details
#initialize ⇒ HealthCheck
Returns a new instance of HealthCheck.
8 9 10 |
# File 'app_mesh/health_check.rb', line 8 def initialize Jsii::Object.instance_method(:initialize).bind(self).call end |
Class Method Details
.grpc(options = nil) ⇒ AWSCDK::AppMesh::HealthCheck
Construct a GRPC health check.
22 23 24 25 26 |
# File 'app_mesh/health_check.rb', line 22 def self.grpc( = nil) = .is_a?(Hash) ? ::AWSCDK::AppMesh::GrpcHealthCheckOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5HcnBjSGVhbHRoQ2hlY2tPcHRpb25zIn0=")), "options") unless .nil? Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.HealthCheck", "grpc", []) end |
.http(options = nil) ⇒ AWSCDK::AppMesh::HealthCheck
Construct a HTTP health check.
32 33 34 35 36 |
# File 'app_mesh/health_check.rb', line 32 def self.http( = nil) = .is_a?(Hash) ? ::AWSCDK::AppMesh::HttpHealthCheckOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5IdHRwSGVhbHRoQ2hlY2tPcHRpb25zIn0=")), "options") unless .nil? Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.HealthCheck", "http", []) end |
.http2(options = nil) ⇒ AWSCDK::AppMesh::HealthCheck
Construct a HTTP2 health check.
42 43 44 45 46 |
# File 'app_mesh/health_check.rb', line 42 def self.http2( = nil) = .is_a?(Hash) ? ::AWSCDK::AppMesh::HttpHealthCheckOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5IdHRwSGVhbHRoQ2hlY2tPcHRpb25zIn0=")), "options") unless .nil? Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.HealthCheck", "http2", []) end |
.jsii_overridable_methods ⇒ Object
12 13 14 15 16 |
# File 'app_mesh/health_check.rb', line 12 def self.jsii_overridable_methods { :bind => { kind: :method, name: "bind", is_optional: false }, } end |
.tcp(options = nil) ⇒ AWSCDK::AppMesh::HealthCheck
Construct a TCP health check.
52 53 54 55 56 |
# File 'app_mesh/health_check.rb', line 52 def self.tcp( = nil) = .is_a?(Hash) ? ::AWSCDK::AppMesh::TCPHealthCheckOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5UY3BIZWFsdGhDaGVja09wdGlvbnMifQ==")), "options") unless .nil? Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.HealthCheck", "tcp", []) end |
Instance Method Details
#bind(scope, options) ⇒ AWSCDK::AppMesh::HealthCheckConfig
Called when the AccessLog type is initialized.
Can be used to enforce mutual exclusivity with future properties
66 67 68 69 70 71 |
# File 'app_mesh/health_check.rb', line 66 def bind(scope, ) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") = .is_a?(Hash) ? ::AWSCDK::AppMesh::HealthCheckBindOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5IZWFsdGhDaGVja0JpbmRPcHRpb25zIn0=")), "options") jsii_call_method("bind", [scope, ]) end |