Class: AWSCDK::ElasticLoadBalancingv2::CfnTargetGroup::MatcherProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ElasticLoadBalancingv2::CfnTargetGroup::MatcherProperty
- Defined in:
- elastic_load_balancingv2/cfn_target_group.rb
Overview
Specifies the HTTP codes that healthy targets must use when responding to an HTTP health check.
Instance Attribute Summary collapse
-
#grpc_code ⇒ String?
readonly
You can specify values between 0 and 99.
-
#http_code ⇒ String?
readonly
For Application Load Balancers, you can specify values between 200 and 499, with the default value being 200.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(grpc_code: nil, http_code: nil) ⇒ MatcherProperty
constructor
A new instance of MatcherProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(grpc_code: nil, http_code: nil) ⇒ MatcherProperty
Returns a new instance of MatcherProperty.
796 797 798 799 800 801 |
# File 'elastic_load_balancingv2/cfn_target_group.rb', line 796 def initialize(grpc_code: nil, http_code: nil) @grpc_code = grpc_code Jsii::Type.check_type(@grpc_code, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "grpcCode") unless @grpc_code.nil? @http_code = http_code Jsii::Type.check_type(@http_code, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "httpCode") unless @http_code.nil? end |
Instance Attribute Details
#grpc_code ⇒ String? (readonly)
You can specify values between 0 and 99.
You can specify multiple values (for example, "0,1") or a range of values (for example, "0-5"). The default value is 12.
809 810 811 |
# File 'elastic_load_balancingv2/cfn_target_group.rb', line 809 def grpc_code @grpc_code end |
#http_code ⇒ String? (readonly)
For Application Load Balancers, you can specify values between 200 and 499, with the default value being 200.
You can specify multiple values (for example, "200,202") or a range of values (for example, "200-299").
For Network Load Balancers, you can specify values between 200 and 599, with the default value being 200-399. You can specify multiple values (for example, "200,202") or a range of values (for example, "200-299").
For Gateway Load Balancers, this must be "200–399".
Note that when using shorthand syntax, some values such as commas need to be escaped.
822 823 824 |
# File 'elastic_load_balancingv2/cfn_target_group.rb', line 822 def http_code @http_code end |
Class Method Details
.jsii_properties ⇒ Object
824 825 826 827 828 829 |
# File 'elastic_load_balancingv2/cfn_target_group.rb', line 824 def self.jsii_properties { :grpc_code => "grpcCode", :http_code => "httpCode", } end |
Instance Method Details
#to_jsii ⇒ Object
831 832 833 834 835 836 837 838 |
# File 'elastic_load_balancingv2/cfn_target_group.rb', line 831 def to_jsii result = {} result.merge!({ "grpcCode" => @grpc_code, "httpCode" => @http_code, }) result.compact end |