CmdID / aws / aws globalaccelerator
aws globalaccelerator update-custom-routing-listener
Update a listener for a custom routing accelerator. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To update a listener for a custom routing accelerator
The following update-custom-routing-listener example updates a listener to change the port range.
aws globalaccelerator update-custom-routing-listener --listener-arn arn:aws:globalaccelerator::123456789012:accelerator/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/listener/0123vxyz --port-ranges FromPort=10000,ToPort=20000Identify--listener-arnThe Amazon Resource Name (ARN) of the listener to update.--port-rangesThe updated port range to support for connections from clients to your accelerator.Its output
{
"Listener": {
"ListenerArn": "arn:aws:globalaccelerator::123456789012:accelerator/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/listener/0123vxyz",
"PortRanges": [
{
"FromPort": 10000,
"ToPort": 20000
}
]
}
}For more information, see Listeners for custom routing accelerators in AWS Global Accelerator in the AWS Global Accelerator Developer Guide.
Options
--listener-arnThe Amazon Resource Name (ARN) of the listener to update.--port-rangesThe updated port range to support for connections from clients to your accelerator.