Interface AddRuleProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
AddApplicationActionProps
,AddApplicationTargetGroupsProps
,AddApplicationTargetsProps
,AddFixedResponseProps
,AddRedirectResponseProps
- All Known Implementing Classes:
AddApplicationActionProps.Jsii$Proxy
,AddApplicationTargetGroupsProps.Jsii$Proxy
,AddApplicationTargetsProps.Jsii$Proxy
,AddFixedResponseProps.Jsii$Proxy
,AddRedirectResponseProps.Jsii$Proxy
,AddRuleProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:44.165Z")
@Stability(Stable)
public interface AddRuleProps
extends software.amazon.jsii.JsiiSerializable
Properties for adding a conditional load balancing rule.
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; AddRuleProps addRuleProps = AddRuleProps.builder() .conditions(List.of(listenerCondition)) .hostHeader("hostHeader") .pathPattern("pathPattern") .pathPatterns(List.of("pathPatterns")) .priority(123) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forAddRuleProps
static final class
An implementation forAddRuleProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic AddRuleProps.Builder
builder()
default List<ListenerCondition>
Rule applies if matches the conditions.default String
Deprecated.default String
Deprecated.Useconditions
instead.Deprecated.Useconditions
instead.default Number
Priority of this target group.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getConditions
Rule applies if matches the conditions.Default: - No conditions.
-
getHostHeader
Deprecated.Useconditions
instead.(deprecated) Rule applies if the requested host matches the indicated host.May contain up to three '*' wildcards.
Requires that priority is set.
Default: No host condition
-
getPathPattern
Deprecated.Useconditions
instead.(deprecated) Rule applies if the requested path matches the given path pattern.May contain up to three '*' wildcards.
Requires that priority is set.
Default: No path condition
-
getPathPatterns
Deprecated.Useconditions
instead.(deprecated) Rule applies if the requested path matches any of the given patterns.May contain up to three '*' wildcards.
Requires that priority is set.
Default: - No path condition.
-
getPriority
Priority of this target group.The rule with the lowest priority will be used for every request. If priority is not given, these target groups will be added as defaults, and must not have conditions.
Priorities must be unique.
Default: Target groups are used as defaults
-
builder
- Returns:
- a
AddRuleProps.Builder
ofAddRuleProps
-
conditions
instead.