Interface IAddApplicationActionProps
Properties for adding a new action to a listener.
Inherited Members
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.AWS.ElasticLoadBalancingV2.dll
Syntax (csharp)
public interface IAddApplicationActionProps : IAddRuleProps
Syntax (vb)
Public Interface IAddApplicationActionProps
Inherits IAddRuleProps
Remarks
ExampleMetadata: infused
Examples
ApplicationListener listener;
listener.AddAction("Fixed", new AddApplicationActionProps {
Priority = 10,
Conditions = new [] { ListenerCondition.PathPatterns(new [] { "/ok" }) },
Action = ListenerAction.FixedResponse(200, new FixedResponseOptions {
ContentType = ContentType.TEXT_PLAIN,
MessageBody = "OK"
})
});
Synopsis
Properties
Action | Action to perform. |