Class: AWSCDK::ElasticLoadBalancingv2::CfnListenerRule::HttpRequestMethodConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ElasticLoadBalancingv2::CfnListenerRule::HttpRequestMethodConfigProperty
- Defined in:
- elastic_load_balancingv2/cfn_listener_rule.rb
Overview
Information about an HTTP method condition.
HTTP defines a set of request methods, also referred to as HTTP verbs. For more information, see the HTTP Method Registry . You can also define custom HTTP methods.
Instance Attribute Summary collapse
-
#values ⇒ Array<String>?
readonly
The name of the request method.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(values: nil) ⇒ HttpRequestMethodConfigProperty
constructor
A new instance of HttpRequestMethodConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(values: nil) ⇒ HttpRequestMethodConfigProperty
Returns a new instance of HttpRequestMethodConfigProperty.
1177 1178 1179 1180 |
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1177 def initialize(values: nil) @values = values Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "values") unless @values.nil? end |
Instance Attribute Details
#values ⇒ Array<String>? (readonly)
The name of the request method.
The maximum length is 40 characters. The allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is case sensitive. Wildcards are not supported; therefore, the method name must be an exact match.
If you specify multiple strings, the condition is satisfied if one of the strings matches the HTTP request method. We recommend that you route GET and HEAD requests in the same way, because the response to a HEAD request may be cached.
1190 1191 1192 |
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1190 def values @values end |
Class Method Details
.jsii_properties ⇒ Object
1192 1193 1194 1195 1196 |
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1192 def self.jsii_properties { :values => "values", } end |
Instance Method Details
#to_jsii ⇒ Object
1198 1199 1200 1201 1202 1203 1204 |
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1198 def to_jsii result = {} result.merge!({ "values" => @values, }) result.compact end |