Interface IApplicationListenerRuleProps
Properties for defining a listener rule.
Inherited Members
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.AWS.ElasticLoadBalancingV2.dll
Syntax (csharp)
public interface IApplicationListenerRuleProps : IBaseApplicationListenerRuleProps
Syntax (vb)
Public Interface IApplicationListenerRuleProps
Inherits IBaseApplicationListenerRuleProps
Remarks
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;
ApplicationListener applicationListener;
ApplicationTargetGroup applicationTargetGroup;
ListenerAction listenerAction;
ListenerCondition listenerCondition;
var applicationListenerRuleProps = new ApplicationListenerRuleProps {
Listener = applicationListener,
Priority = 123,
// the properties below are optional
Action = listenerAction,
Conditions = new [] { listenerCondition },
FixedResponse = new FixedResponse {
StatusCode = "statusCode",
// the properties below are optional
ContentType = ContentType.TEXT_PLAIN,
MessageBody = "messageBody"
},
HostHeader = "hostHeader",
PathPattern = "pathPattern",
PathPatterns = new [] { "pathPatterns" },
RedirectResponse = new RedirectResponse {
StatusCode = "statusCode",
// the properties below are optional
Host = "host",
Path = "path",
Port = "port",
Protocol = "protocol",
Query = "query"
},
TargetGroups = new [] { applicationTargetGroup }
};
Synopsis
Properties
Listener | The listener to attach the rule to. |
Properties
Listener
The listener to attach the rule to.
IApplicationListener Listener { get; }
Property Value