import { Value } from '../../cloudformation/Value';
import { MatcherProps } from './targetgroup/MatcherProps';
import { TargetDescriptionProps } from './targetgroup/TargetDescriptionProps';
import { TargetGroupAttributeProps } from './targetgroup/TargetGroupAttributeProps';
import { Tag } from '../Tag';
import { Attribute } from '../../cloudformation/Attribute';
import { AwsResource } from '../../cloudformation/resources/AwsResource';
export type TargetGroupAttributes = {
    TargetGroupArn: Attribute<string>;
    LoadBalancerArns: Attribute<string[]>;
    TargetGroupFullName: Attribute<string>;
    TargetGroupName: Attribute<string>;
};
export type TargetGroup = AwsResource<'AWS::ElasticLoadBalancingV2::TargetGroup', TargetGroupProperties, TargetGroupAttributes>;
/**
  Specifies a target group for an Application Load Balancer, a Network Load Balancer, or a Gateway Load Balancer.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html">the AWS Docs</a>
*/
export declare function targetGroup(targetGroupProps?: TargetGroupProperties): TargetGroup;
/**
  Specifies a target group for an Application Load Balancer, a Network Load Balancer, or a Gateway Load Balancer.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html">the AWS Docs</a>
*/
export interface TargetGroupProperties {
    /** <code>IpAddressType</code>  <a name="cfn-elasticloadbalancingv2-targetgroup-ipaddresstype"></a>
  The type of IP address used for this target group. The possible values are <code>ipv4</code> and <code>ipv6</code>. This is an optional parameter. If not specified, the IP address type defaults to <code>ipv4</code>.<br />
  
  Required: No<br />
  
  Allowed values: <code>ipv4 | ipv6</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    ipAddressType?: Value<'ipv4' | 'ipv6'>;
    /** <code>HealthCheckIntervalSeconds</code>  <a name="cfn-elasticloadbalancingv2-targetgroup-healthcheckintervalseconds"></a>
  The approximate amount of time, in seconds, between health checks of an individual target. The range is 5-300. If the target group protocol is TCP, TLS, UDP, TCP_UDP, HTTP or HTTPS, the default is 30 seconds. If the target group protocol is GENEVE, the default is 10 seconds. If the target type is <code>lambda</code>, the default is 35 seconds.<br />
  
  Required: No<br />
  
  Minimum: <code>5</code><br />
  
  Maximum: <code>300</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    healthCheckIntervalSeconds?: Value<number>;
    /** <code>Matcher</code>  <a name="cfn-elasticloadbalancingv2-targetgroup-matcher"></a>
  [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a target. For target groups with a protocol of TCP, TCP_UDP, UDP or TLS the range is 200-599. For target groups with a protocol of HTTP or HTTPS, the range is 200-499. For target groups with a protocol of GENEVE, the range is 200-399.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    matcher?: MatcherProps;
    /** <code>HealthCheckPath</code>  <a name="cfn-elasticloadbalancingv2-targetgroup-healthcheckpath"></a>
  [HTTP/HTTPS health checks] The destination for health checks on the targets.<br />
  [HTTP1 or HTTP2 protocol version] The ping path. The default is /.<br />
  [GRPC protocol version] The path of a custom health check method with the format /package.service/method. The default is /AWS.ALB/healthcheck.<br />
  
  Required: No<br />
  
  Minimum: <code>1</code><br />
  
  Maximum: <code>1024</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    healthCheckPath?: Value<string>;
    /** <code>Port</code>  <a name="cfn-elasticloadbalancingv2-targetgroup-port"></a>
  The port on which the targets receive traffic. This port is used unless you specify a port override when registering the target. If the target is a Lambda function, this parameter does not apply. If the protocol is GENEVE, the supported port is 6081.<br />
  
  Required: Conditional<br />
  
  Minimum: <code>1</code><br />
  
  Maximum: <code>65535</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    port?: Value<number>;
    /** <code>Targets</code>  <a name="cfn-elasticloadbalancingv2-targetgroup-targets"></a>
  The targets.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    targets?: TargetDescriptionProps[];
    /** <code>HealthCheckEnabled</code>  <a name="cfn-elasticloadbalancingv2-targetgroup-healthcheckenabled"></a>
  Indicates whether health checks are enabled. If the target type is <code>lambda</code>, health checks are disabled by default but can be enabled. If the target type is <code>instance</code>, <code>ip</code>, or <code>alb</code>, health checks are always enabled and cannot be disabled.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    healthCheckEnabled?: Value<boolean>;
    /** <code>ProtocolVersion</code>  <a name="cfn-elasticloadbalancingv2-targetgroup-protocolversion"></a>
  [HTTP/HTTPS protocol] The protocol version. The possible values are <code>GRPC</code>, <code>HTTP1</code>, and <code>HTTP2</code>.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    protocolVersion?: Value<string>;
    /** <code>UnhealthyThresholdCount</code>  <a name="cfn-elasticloadbalancingv2-targetgroup-unhealthythresholdcount"></a>
  The number of consecutive health check failures required before considering a target unhealthy. The range is 2-10. If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 2. For target groups with a protocol of GENEVE, the default is 2. If the target type is <code>lambda</code>, the default is 5.<br />
  
  Required: No<br />
  
  Minimum: <code>2</code><br />
  
  Maximum: <code>10</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    unhealthyThresholdCount?: Value<number>;
    /** <code>HealthCheckTimeoutSeconds</code>  <a name="cfn-elasticloadbalancingv2-targetgroup-healthchecktimeoutseconds"></a>
  The amount of time, in seconds, during which no response from a target means a failed health check. The range is 2–120 seconds. For target groups with a protocol of HTTP, the default is 6 seconds. For target groups with a protocol of TCP, TLS or HTTPS, the default is 10 seconds. For target groups with a protocol of GENEVE, the default is 5 seconds. If the target type is <code>lambda</code>, the default is 30 seconds.<br />
  
  Required: No<br />
  
  Minimum: <code>2</code><br />
  
  Maximum: <code>120</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    healthCheckTimeoutSeconds?: Value<number>;
    /** <code>Name</code>  <a name="cfn-elasticloadbalancingv2-targetgroup-name"></a>
  The name of the target group.<br />
  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.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    name?: Value<string>;
    /** <code>VpcId</code>  <a name="cfn-elasticloadbalancingv2-targetgroup-vpcid"></a>
  The identifier of the virtual private cloud (VPC). If the target is a Lambda function, this parameter does not apply. Otherwise, this parameter is required.<br />
  
  Required: Conditional<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    vpcId?: Value<string>;
    /** <code>HealthyThresholdCount</code>  <a name="cfn-elasticloadbalancingv2-targetgroup-healthythresholdcount"></a>
  The number of consecutive health check successes required before considering a target healthy. The range is 2-10. If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 5. For target groups with a protocol of GENEVE, the default is 5. If the target type is <code>lambda</code>, the default is 5.<br />
  
  Required: No<br />
  
  Minimum: <code>2</code><br />
  
  Maximum: <code>10</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    healthyThresholdCount?: Value<number>;
    /** <code>HealthCheckProtocol</code>  <a name="cfn-elasticloadbalancingv2-targetgroup-healthcheckprotocol"></a>
  The protocol the load balancer uses when performing health checks on targets. For Application Load Balancers, the default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS. The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.<br />
  
  Required: No<br />
  
  Allowed values: <code>GENEVE | HTTP | HTTPS | TCP | TCP_UDP | TLS | UDP</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    healthCheckProtocol?: Value<'GENEVE' | 'HTTP' | 'HTTPS' | 'TCP' | 'TCP_UDP' | 'TLS' | 'UDP'>;
    /** <code>TargetGroupAttributes</code>  <a name="cfn-elasticloadbalancingv2-targetgroup-targetgroupattributes"></a>
  The attributes.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    targetGroupAttributes?: TargetGroupAttributeProps[];
    /** <p> */
    targetType?: Value<string>;
    /** <code>HealthCheckPort</code>  <a name="cfn-elasticloadbalancingv2-targetgroup-healthcheckport"></a>
  The port the load balancer uses when performing health checks on targets. If the protocol is HTTP, HTTPS, TCP, TLS, UDP, or TCP_UDP, the default is <code>traffic-port</code>, which is the port on which each target receives traffic from the load balancer. If the protocol is GENEVE, the default is port 80.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    healthCheckPort?: Value<string>;
    /** <code>Protocol</code>  <a name="cfn-elasticloadbalancingv2-targetgroup-protocol"></a>
  The protocol to use for routing traffic to the targets. For Application Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, or TCP_UDP. For Gateway Load Balancers, the supported protocol is GENEVE. A TCP_UDP listener must be associated with a TCP_UDP target group. If the target is a Lambda function, this parameter does not apply.<br />
  
  Required: Conditional<br />
  
  Allowed values: <code>GENEVE | HTTP | HTTPS | TCP | TCP_UDP | TLS | UDP</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    protocol?: Value<'GENEVE' | 'HTTP' | 'HTTPS' | 'TCP' | 'TCP_UDP' | 'TLS' | 'UDP'>;
    /** <code>Tags</code>  <a name="cfn-elasticloadbalancingv2-targetgroup-tags"></a>
  The tags.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    tags?: Tag[];
}
