Skip to main content

custom_routing_listeners

Creates, updates, deletes, gets or lists a custom_routing_listeners resource.

Overview​

Namecustom_routing_listeners
TypeResource
Idaws.globalaccelerator.custom_routing_listeners

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
listener_arnstringThe Amazon Resource Name (ARN) of the listener.
port_rangesarrayThe port range to support for connections from clients to your accelerator. Separately, you set port ranges for endpoints. For more information, see About endpoints for custom routing accelerators.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_custom_routing_listenerselectregionThe description of a listener for a custom routing accelerator.
list_custom_routing_listenersselectregionList the listeners for a custom routing accelerator.
create_custom_routing_listenerinsertregion, AcceleratorArn, PortRanges, IdempotencyTokenCreate a listener to process inbound connections from clients to a custom routing accelerator. Connections arrive to assigned static IP addresses on the port range that you specify.
update_custom_routing_listenerupdateregion, ListenerArn, PortRangesUpdate a listener for a custom routing accelerator.
delete_custom_routing_listenerdeleteregionDelete a listener for a custom routing accelerator.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples​

The description of a listener for a custom routing accelerator.

SELECT
listener_arn,
port_ranges
FROM aws.globalaccelerator.custom_routing_listeners
WHERE region = '{{ region }}' -- required
;

INSERT examples​

Create a listener to process inbound connections from clients to a custom routing accelerator. Connections arrive to assigned static IP addresses on the port range that you specify.

INSERT INTO aws.globalaccelerator.custom_routing_listeners (
AcceleratorArn,
PortRanges,
IdempotencyToken,
region
)
SELECT
'{{ AcceleratorArn }}' /* required */,
'{{ PortRanges }}' /* required */,
'{{ IdempotencyToken }}' /* required */,
'{{ region }}'
RETURNING
listener
;

UPDATE examples​

Update a listener for a custom routing accelerator.

UPDATE aws.globalaccelerator.custom_routing_listeners
SET
ListenerArn = '{{ ListenerArn }}',
PortRanges = '{{ PortRanges }}'
WHERE
region = '{{ region }}' --required
AND ListenerArn = '{{ ListenerArn }}' --required
AND PortRanges = '{{ PortRanges }}' --required
RETURNING
listener;

DELETE examples​

Delete a listener for a custom routing accelerator.

DELETE FROM aws.globalaccelerator.custom_routing_listeners
WHERE region = '{{ region }}' --required
;