Protected
Readonly
defaultDefault port configured for members of this target group
Health check for the members of this target group
Readonly
idThe ID of the construct with the App suffix.
This should be used in place of id
when trying to reference the construct.
Readonly
loadA token representing a list of ARNs of the load balancers that route traffic to this target group
Protected
Readonly
loadConfigurable dependable with all resources that lead to load balancer attachment
Readonly
nodeThe tree node.
Readonly
targetThe ARN of the target group
Readonly
targetThe full name of the target group
Readonly
targetARNs of load balancers load balancing to this TargetGroup
Readonly
targetThe name of the target group
Protected
Optional
targetThe types of the directly registered members of this target group
Static
DefaultFull name of first load balancer
List of constructs that need to be depended on to ensure the TargetGroup is associated to a load balancer
All metrics available for this target group.
Protected
addEnable sticky routing via a cookie to members of this target group.
Note: If the cookieName
parameter is set, application-based stickiness will be applied,
otherwise it defaults to duration-based stickiness attributes (lb_cookie
).
Optional
cookieName: stringReturn the given named metric for this Application Load Balancer Target Group
Returns the metric for this target group from the point of view of the first load balancer load balancing to it. If you have multiple load balancers load sending traffic to the same target group, you will have to override the dimensions on this metric.
Optional
props: MetricOptionsThe number of HTTP 2xx/3xx/4xx/5xx response codes generated by all targets in this target group.
This does not include any response codes generated by the load balancer.
Optional
props: MetricOptionsRegister a listener that is load balancing to this target group.
Don't call this directly. It will be called by listeners.
Optional
associatingConstruct: IConstructProtected
validateProtected
validateStatic
fromStatic
isChecks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
Any object
true if x
is an object created from a class which extends Construct
.
Construct which creates a Target Group.
This construct should be used in conjunction with [[
GuApplicationLoadBalancer
]] and [[GuApplicationListener
]] to route traffic to your application. For more details on these three components, see the AWS documentation.By default, Target Groups created via this construct will perform a healthcheck against
/healthcheck
on your application's traffic port (as specified via theport
prop). All healthcheck defaults can be overridden via thehealthcheck
prop.For example, to use
/test
for the healthcheck path use:This resource is stateful.
See
https://github.com/guardian/cdk/blob/main/docs/stateful-resources.md