Class CfnListenerRule.HttpRequestMethodConfigProperty
Information about an HTTP method condition.
Inheritance
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class HttpRequestMethodConfigProperty : Object, CfnListenerRule.IHttpRequestMethodConfigProperty
Syntax (vb)
Public Class HttpRequestMethodConfigProperty
Inherits Object
Implements CfnListenerRule.IHttpRequestMethodConfigProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ElasticLoadBalancingV2;
var httpRequestMethodConfigProperty = new HttpRequestMethodConfigProperty {
Values = new [] { "values" }
};
Synopsis
Constructors
HttpRequestMethodConfigProperty() |
Properties
Values | The name of the request method. |
Constructors
HttpRequestMethodConfigProperty()
public HttpRequestMethodConfigProperty()
Properties
Values
The name of the request method.
public string[] Values { get; set; }
Property Value
System.String[]
Remarks
The maximum size 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.