import { PortRangeProps } from './listener/PortRangeProps';
import { Value } from '../../cloudformation/Value';
import { Attribute } from '../../cloudformation/Attribute';
import { AwsResource } from '../../cloudformation/resources/AwsResource';
export type ListenerAttributes = {
    ListenerArn: Attribute<string>;
};
export type Listener = AwsResource<'AWS::GlobalAccelerator::Listener', ListenerProperties, ListenerAttributes>;
/**
  The <code>AWS::GlobalAccelerator::Listener</code> resource is a Global Accelerator resource type that contains information about how you create a listener to process inbound connections from clients to an accelerator. Connections arrive to assigned static IP addresses on a port, port range, or list of port ranges that you specify.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-listener.html">the AWS Docs</a>
*/
export declare function listener(listenerProps: ListenerProperties): Listener;
/**
  The <code>AWS::GlobalAccelerator::Listener</code> resource is a Global Accelerator resource type that contains information about how you create a listener to process inbound connections from clients to an accelerator. Connections arrive to assigned static IP addresses on a port, port range, or list of port ranges that you specify.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-listener.html">the AWS Docs</a>
*/
export interface ListenerProperties {
    /** <code>PortRanges</code>  <a name="cfn-globalaccelerator-listener-portranges"></a>
  The list of port ranges for the connections from clients to the accelerator.<br />
  
  Required: Yes<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> */
    portRanges: PortRangeProps[];
    /** <code>AcceleratorArn</code>  <a name="cfn-globalaccelerator-listener-acceleratorarn"></a>
  The Amazon Resource Name (ARN) of your accelerator.<br />
  
  Required: Yes<br />
  
  Maximum: <code>255</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> */
    acceleratorArn: Value<string>;
    /** <code>Protocol</code>  <a name="cfn-globalaccelerator-listener-protocol"></a>
  The protocol for the connections from clients to the accelerator.<br />
  
  Required: Yes<br />
  
  Allowed values: <code>TCP | 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> */
    protocol: Value<'TCP' | 'UDP'>;
    /** <code>ClientAffinity</code>  <a name="cfn-globalaccelerator-listener-clientaffinity"></a>
  Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications, regardless of the port and protocol of the client request. Client affinity gives you control over whether to always route each client to the same specific endpoint.<br />
  AWS Global Accelerator uses a consistent-flow hashing algorithm to choose the optimal endpoint for a connection. If client affinity is <code>NONE</code>, Global Accelerator uses the “five-tuple” (5-tuple) properties—source IP address, source port, destination IP address, destination port, and protocol—to select the hash value, and then chooses the best endpoint. However, with this setting, if someone uses different ports to connect to Global Accelerator, their connections might not be always routed to the same endpoint because the hash value changes.<br />
  If you want a given client to always be routed to the same endpoint, set client affinity to <code>SOURCE_IP</code> instead. When you use the <code>SOURCE_IP</code> setting, Global Accelerator uses the “two-tuple” (2-tuple) properties— source (client) IP address and destination IP address—to select the hash value.<br />
  The default value is <code>NONE</code>.<br />
  
  Required: No<br />
  
  Allowed values: <code>NONE | SOURCE_IP</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> */
    clientAffinity?: Value<'NONE' | 'SOURCE_IP'>;
}
