Skip to main content

custom_routing_port_mappings

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

Overview

Namecustom_routing_port_mappings
TypeResource
Idaws.globalaccelerator.custom_routing_port_mappings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
accelerator_portintegerThe accelerator port.
destination_socket_addressobjectThe EC2 instance IP address and port number in the virtual private cloud (VPC) subnet.
destination_traffic_statestringIndicates whether or not a port mapping destination can receive traffic. The value is either ALLOW, if traffic is allowed to the destination, or DENY, if traffic is not allowed to the destination. (ALLOW, DENY)
endpoint_group_arnstringThe Amazon Resource Name (ARN) of the endpoint group.
endpoint_idstringThe IP address of the VPC subnet (the subnet ID).
protocolsarrayThe protocols supported by the endpoint group.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_custom_routing_port_mappingsselectregionProvides a complete mapping from the public accelerator IP address and port to destination EC2 instance IP addresses and ports in the virtual public cloud (VPC) subnet endpoint for a custom routing accelerator. For each subnet endpoint that you add, Global Accelerator creates a new static port mapping for the accelerator. The port mappings don't change after Global Accelerator generates them, so you can retrieve and cache the full mapping on your servers. If you remove a subnet from your accelerator, Global Accelerator removes (reclaims) the port mappings. If you add a subnet to your accelerator, Global Accelerator creates new port mappings (the existing ones don't change). If you add or remove EC2 instances in your subnet, the port mappings don't change, because the mappings are created when you add the subnet to Global Accelerator. The mappings also include a flag for each destination denoting which destination IP addresses and ports are allowed or denied traffic.

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

Provides a complete mapping from the public accelerator IP address and port to destination EC2 instance IP addresses and ports in the virtual public cloud (VPC) subnet endpoint for a custom routing accelerator. For each subnet endpoint that you add, Global Accelerator creates a new static port mapping for the accelerator. The port mappings don't change after Global Accelerator generates them, so you can retrieve and cache the full mapping on your servers. If you remove a subnet from your accelerator, Global Accelerator removes (reclaims) the port mappings. If you add a subnet to your accelerator, Global Accelerator creates new port mappings (the existing ones don't change). If you add or remove EC2 instances in your subnet, the port mappings don't change, because the mappings are created when you add the subnet to Global Accelerator. The mappings also include a flag for each destination denoting which destination IP addresses and ports are allowed or denied traffic.

SELECT
accelerator_port,
destination_socket_address,
destination_traffic_state,
endpoint_group_arn,
endpoint_id,
protocols
FROM aws.globalaccelerator.custom_routing_port_mappings
WHERE region = '{{ region }}' -- required
;