Interface AddFixedResponseProps
- All Superinterfaces:
AddRuleProps,FixedResponse,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AddFixedResponseProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:44.159Z")
@Stability(Deprecated)
@Deprecated
public interface AddFixedResponseProps
extends software.amazon.jsii.JsiiSerializable, AddRuleProps, FixedResponse
Deprecated.
(deprecated) Properties for adding a fixed response to a listener.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.elasticloadbalancingv2.*;
ListenerCondition listenerCondition;
AddFixedResponseProps addFixedResponseProps = AddFixedResponseProps.builder()
.statusCode("statusCode")
// the properties below are optional
.conditions(List.of(listenerCondition))
.contentType(ContentType.TEXT_PLAIN)
.hostHeader("hostHeader")
.messageBody("messageBody")
.pathPattern("pathPattern")
.pathPatterns(List.of("pathPatterns"))
.priority(123)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classDeprecated.static final classDeprecated. -
Method Summary
Methods inherited from interface software.amazon.awscdk.services.elasticloadbalancingv2.AddRuleProps
getConditions, getHostHeader, getPathPattern, getPathPatterns, getPriorityMethods inherited from interface software.amazon.awscdk.services.elasticloadbalancingv2.FixedResponse
getContentType, getMessageBody, getStatusCodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
builder
Deprecated.- Returns:
- a
AddFixedResponseProps.BuilderofAddFixedResponseProps
-
ApplicationListener.addActioninstead.