Module Smaws_Client_GlobalAccelerator.ListCustomRoutingPortMappings

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.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `AcceleratorNotFoundException of Types.accelerator_not_found_exception | `EndpointGroupNotFoundException of Types.endpoint_group_not_found_exception | `InternalServiceErrorException of Types.internal_service_error_exception | `InvalidArgumentException of Types.invalid_argument_exception | `InvalidNextTokenException of Types.invalid_next_token_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.list_custom_routing_port_mappings_request -> (Types.list_custom_routing_port_mappings_response, [> Smaws_Lib.Protocols.AwsJson.error | `AcceleratorNotFoundException of Types.accelerator_not_found_exception | `EndpointGroupNotFoundException of Types.endpoint_group_not_found_exception | `InternalServiceErrorException of Types.internal_service_error_exception | `InvalidArgumentException of Types.invalid_argument_exception | `InvalidNextTokenException of Types.invalid_next_token_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.list_custom_routing_port_mappings_request -> (Types.list_custom_routing_port_mappings_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `AcceleratorNotFoundException of Types.accelerator_not_found_exception | `EndpointGroupNotFoundException of Types.endpoint_group_not_found_exception | `InternalServiceErrorException of Types.internal_service_error_exception | `InvalidArgumentException of Types.invalid_argument_exception | `InvalidNextTokenException of Types.invalid_next_token_exception ] * Smaws_Lib.Response.metadata) Stdlib.result