CmdID

CmdID / aws / aws globalaccelerator

aws globalaccelerator update-listener

Update a listener. AWS CLI reference

1 example 4 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To update a listener

The following update-listener example updates a listener to change the port to 100.

aws globalaccelerator update-listener --listener-arn arn:aws:globalaccelerator::123456789012:accelerator/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/listener/0123vxyz --port-ranges FromPort=100,ToPort=100Identify
--listener-arnThe Amazon Resource Name (ARN) of the listener to update.
--port-rangesThe updated list of port ranges for the connections from clients to the accelerator.
Its output
{
    "Listener": {
        "ListenerArn": "arn:aws:globalaccelerator::123456789012:accelerator/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/listener/0123vxyz",
        "PortRanges": [
            {
                "FromPort": 100,
                "ToPort": 100
            }
        ],
        "Protocol": "TCP",
        "ClientAffinity": "NONE"
    }
}

For more information, see Listeners in AWS Global Accelerator in the AWS Global Accelerator Developer Guide.

Options

4 in the AWS CLI reference
--client-affinityClient 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.
--listener-arnThe Amazon Resource Name (ARN) of the listener to update.
--port-rangesThe updated list of port ranges for the connections from clients to the accelerator.
--protocolThe updated protocol for the connections from clients to the accelerator.