Interface ApplicationTargetProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ApplicationTargetProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:48.718Z")
@Stability(Stable)
public interface ApplicationTargetProps
extends software.amazon.jsii.JsiiSerializable
Properties to define an application target group.
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.ecs.*; import software.amazon.awscdk.services.ecs.patterns.*; ApplicationTargetProps applicationTargetProps = ApplicationTargetProps.builder() .containerPort(123) // the properties below are optional .hostHeader("hostHeader") .listener("listener") .pathPattern("pathPattern") .priority(123) .protocol(Protocol.TCP) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forApplicationTargetProps
static final class
An implementation forApplicationTargetProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The port number of the container.default String
Rule applies if the requested host matches the indicated host.default String
Name of the listener the target group attached to.default String
Rule applies if the requested path matches the given path pattern.default Number
Priority of this target group.default Protocol
The protocol used for the port mapping.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContainerPort
The port number of the container.Only applicable when using application/network load balancers.
-
getHostHeader
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
- See Also:
-
getListener
Name of the listener the target group attached to.Default: - default listener (first added listener)
-
getPathPattern
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
- See Also:
-
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
-
getProtocol
The protocol used for the port mapping.Only applicable when using application load balancers.
Default: ecs.Protocol.TCP
-
builder
- Returns:
- a
ApplicationTargetProps.Builder
ofApplicationTargetProps
-