Protected ReadonlydefaultDefault port configured for members of this target group
Health check for the members of this target group
ReadonlyidThe ID of the construct with the App suffix.
This should be used in place of id when trying to reference the construct.
ReadonlyloadA token representing a list of ARNs of the load balancers that route traffic to this target group
Protected ReadonlyloadConfigurable dependable with all resources that lead to load balancer attachment
ReadonlynodeThe tree node.
ReadonlytargetThe ARN of the target group
ReadonlytargetThe full name of the target group
ReadonlytargetARNs of load balancers load balancing to this TargetGroup
ReadonlytargetThe name of the target group
Protected OptionaltargetThe types of the directly registered members of this target group
StaticDefaultStatic ReadonlyPROPERTY_Uniquely identifies this class.
Full 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.
ProtectedaddRegister the given load balancing target as part of this group
Add a load balancing target to this target group
Set/replace the target group's health check
Enable 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).
OptionalcookieName: 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.
Optionalprops: 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.
Optionalprops: MetricOptionsThe average number of requests received by each target in a target group.
The only valid statistic is Sum. Note that this represents the average not the sum.
Optionalprops: MetricOptionsThe number of TLS connections initiated by the load balancer that did not establish a session with the target.
Possible causes include a mismatch of ciphers or protocols.
Optionalprops: MetricOptionsRegister a connectable as a member of this target group.
Don't call this directly. It will be called by load balancing targets.
OptionalportRange: PortRegister a listener that is load balancing to this target group.
Don't call this directly. It will be called by listeners.
OptionalassociatingConstruct: IConstructSet a non-standard attribute on the target group
Returns a string representation of an object.
ProtectedvalidateProtectedvalidateStaticfromStaticisChecks 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
/healthcheckon your application's traffic port (as specified via theportprop). All healthcheck defaults can be overridden via thehealthcheckprop.For example, to use
/testfor the healthcheck path use:This resource is stateful.
See
https://github.com/guardian/cdk/blob/main/docs/stateful-resources.md