Class TargetGroupState


  • public final class TargetGroupState
    extends com.pulumi.resources.ResourceArgs
    • Method Detail

      • arn

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> arn()
        Returns:
        ARN of the Target Group (matches `id`).
      • arnSuffix

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> arnSuffix()
        Returns:
        ARN suffix for use with CloudWatch Metrics.
      • connectionTermination

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> connectionTermination()
        Returns:
        Whether to terminate connections at the end of the deregistration timeout on Network Load Balancers. See [doc](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-target-groups.html#deregistration-delay) for more information. Default is `false`.
      • deregistrationDelay

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> deregistrationDelay()
        Returns:
        Amount time for Elastic Load Balancing to wait before changing the state of a deregistering target from draining to unused. The range is 0-3600 seconds. The default value is 300 seconds.
      • healthCheck

        public java.util.Optional<com.pulumi.core.Output<TargetGroupHealthCheckArgs>> healthCheck()
        Returns:
        Health Check configuration block. Detailed below.
      • ipAddressType

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> ipAddressType()
        Returns:
        The type of IP addresses used by the target group, only supported when target type is set to `ip`. Possible values are `ipv4` or `ipv6`.
      • lambdaMultiValueHeadersEnabled

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> lambdaMultiValueHeadersEnabled()
        Returns:
        Whether the request and response headers exchanged between the load balancer and the Lambda function include arrays of values or strings. Only applies when `targetType` is `lambda`. Default is `false`.
      • loadBalancerArns

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> loadBalancerArns()
        Returns:
        ARNs of the Load Balancers associated with the Target Group.
      • loadBalancingAlgorithmType

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> loadBalancingAlgorithmType()
        Returns:
        Determines how the load balancer selects targets when routing requests. Only applicable for Application Load Balancer Target Groups. The value is `roundRobin`, `leastOutstandingRequests`, or `weightedRandom`. The default is `roundRobin`.
      • loadBalancingAnomalyMitigation

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> loadBalancingAnomalyMitigation()
        Returns:
        Determines whether to enable target anomaly mitigation. Target anomaly mitigation is only supported by the `weightedRandom` load balancing algorithm type. See [doc](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html#automatic-target-weights) for more information. The value is `"on"` or `"off"`. The default is `"off"`.
      • loadBalancingCrossZoneEnabled

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> loadBalancingCrossZoneEnabled()
        Returns:
        Indicates whether cross zone load balancing is enabled. The value is `"true"`, `"false"` or `"useLoadBalancerConfiguration"`. The default is `"useLoadBalancerConfiguration"`.
      • name

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> name()
        Returns:
        Name of the target group. If omitted, this provider will assign a random, unique name. This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
      • namePrefix

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> namePrefix()
        Returns:
        Creates a unique name beginning with the specified prefix. Conflicts with `name`. Cannot be longer than 6 characters.
      • port

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> port()
        Returns:
        Port on which targets receive traffic, unless overridden when registering a specific target. Required when `targetType` is `instance`, `ip` or `alb`. Does not apply when `targetType` is `lambda`.
      • preserveClientIp

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> preserveClientIp()
        Returns:
        Whether client IP preservation is enabled. See [doc](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-target-groups.html#client-ip-preservation) for more information.
      • protocol

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> protocol()
        Returns:
        Protocol to use for routing traffic to the targets. Should be one of `GENEVE`, `HTTP`, `HTTPS`, `TCP`, `TCP_UDP`, `TLS`, `UDP`, `QUIC`, or `TCP_QUIC`. Required when `targetType` is `instance`, `ip`, or `alb`. Does not apply when `targetType` is `lambda`.
      • protocolVersion

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> protocolVersion()
        Returns:
        Only applicable when `protocol` is `HTTP` or `HTTPS`. The protocol version. Specify `GRPC` to send requests to targets using gRPC. Specify `HTTP2` to send requests to targets using HTTP/2. The default is `HTTP1`, which sends requests to targets using HTTP/1.1
      • proxyProtocolV2

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> proxyProtocolV2()
        Returns:
        Whether to enable support for proxy protocol v2 on Network Load Balancers. See [doc](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-target-groups.html#proxy-protocol) for more information. Default is `false`.
      • region

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
      • slowStart

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> slowStart()
        Returns:
        Amount time for targets to warm up before the load balancer sends them a full share of requests. The range is 30-900 seconds or 0 to disable. The default value is 0 seconds.
      • stickiness

        public java.util.Optional<com.pulumi.core.Output<TargetGroupStickinessArgs>> stickiness()
        Returns:
        Stickiness configuration block. Detailed below.
      • tags

        public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
      • tagsAll

        public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>>> tagsAll()
        Returns:
        A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
      • targetControlPort

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> targetControlPort()
        Returns:
        Port on which the target control agent and application load balancer exchange management traffic for the target optimizer feature. Only applicable for Application Load Balancer target groups when `targetType` is `instance` or `ip`.
      • targetFailovers

        public java.util.Optional<com.pulumi.core.Output<java.util.List<TargetGroupTargetFailoverArgs>>> targetFailovers()
        Returns:
        Target failover block. Only applicable for Gateway Load Balancer target groups. See targetFailover for more information.
      • targetGroupHealth

        public java.util.Optional<com.pulumi.core.Output<TargetGroupTargetGroupHealthArgs>> targetGroupHealth()
        Returns:
        Target health requirements block. See targetGroupHealth for more information.
      • targetHealthStates

        public java.util.Optional<com.pulumi.core.Output<java.util.List<TargetGroupTargetHealthStateArgs>>> targetHealthStates()
        Returns:
        Target health state block. Only applicable for Network Load Balancer target groups when `protocol` is `TCP` or `TLS`. See targetHealthState for more information.
      • targetType

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> targetType()
        Returns:
        Type of target that you must specify when registering targets with this target group. See [doc](https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_CreateTargetGroup.html) for supported values. The default is `instance`. Note that you can't specify targets for a target group using both instance IDs and IP addresses. If the target type is `ip`, specify IP addresses from the subnets of the VPC for the target group, the RFC 1918 range (10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16), and the RFC 6598 range (100.64.0.0/10). You can't specify publicly routable IP addresses. Network Load Balancers do not support the `lambda` target type. Application Load Balancers do not support the `alb` target type.
      • vpcId

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> vpcId()
        Returns:
        Identifier of the VPC in which to create the target group. Required when `targetType` is `instance`, `ip` or `alb`. Does not apply when `targetType` is `lambda`.