@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.793Z") @Stability(value=Stable) public interface ApplicationTargetProps extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ApplicationTargetProps.Builder
A builder for
ApplicationTargetProps |
static class |
ApplicationTargetProps.Jsii$Proxy
An implementation for
ApplicationTargetProps |
| Modifier and Type | Method and Description |
|---|---|
static ApplicationTargetProps.Builder |
builder() |
Number |
getContainerPort()
The port number of the container.
|
default String |
getHostHeader()
Rule applies if the requested host matches the indicated host.
|
default String |
getListener()
Name of the listener the target group attached to.
|
default String |
getPathPattern()
Rule applies if the requested path matches the given path pattern.
|
default Number |
getPriority()
Priority of this target group.
|
default Protocol |
getProtocol()
The protocol used for the port mapping.
|
@Stability(value=Stable) @NotNull Number getContainerPort()
Only applicable when using application/network load balancers.
@Stability(value=Stable) @Nullable default String getHostHeader()
May contain up to three '*' wildcards.
Requires that priority is set.
Default: No host condition
@Stability(value=Stable) @Nullable default String getListener()
Default: - default listener (first added listener)
@Stability(value=Stable) @Nullable default String getPathPattern()
May contain up to three '*' wildcards.
Requires that priority is set.
Default: No path condition
@Stability(value=Stable) @Nullable default Number getPriority()
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
@Stability(value=Stable) @Nullable default Protocol getProtocol()
Only applicable when using application load balancers.
Default: ecs.Protocol.TCP
@Stability(value=Stable) static ApplicationTargetProps.Builder builder()
ApplicationTargetProps.Builder of ApplicationTargetPropsCopyright © 2022. All rights reserved.