Jump to Content

New API Documentation - Developer Preview Available

We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.

Class CreateCustomRoutingListenerCommandProtected

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.

Example

Use a bare-bones client and the command you need to make an API call.

import { GlobalAcceleratorClient, CreateCustomRoutingListenerCommand } from "@aws-sdk/client-global-accelerator"; // ES Modules import
// const { GlobalAcceleratorClient, CreateCustomRoutingListenerCommand } = require("@aws-sdk/client-global-accelerator"); // CommonJS import
const client = new GlobalAcceleratorClient(config);
const input = { // CreateCustomRoutingListenerRequest
AcceleratorArn: "STRING_VALUE", // required
PortRanges: [ // PortRanges // required
{ // PortRange
FromPort: Number("int"),
ToPort: Number("int"),
},
],
IdempotencyToken: "STRING_VALUE", // required
};
const command = new CreateCustomRoutingListenerCommand(input);
const response = await client.send(command);
// { // CreateCustomRoutingListenerResponse
// Listener: { // CustomRoutingListener
// ListenerArn: "STRING_VALUE",
// PortRanges: [ // PortRanges
// { // PortRange
// FromPort: Number("int"),
// ToPort: Number("int"),
// },
// ],
// },
// };

Param

CreateCustomRoutingListenerCommandInput

Returns

CreateCustomRoutingListenerCommandOutput

See

Throws

AcceleratorNotFoundException (client fault)

The accelerator that you specified doesn't exist.

Throws

InternalServiceErrorException (server fault)

There was an internal error for Global Accelerator.

Throws

InvalidArgumentException (client fault)

An argument that you specified is invalid.

Throws

InvalidPortRangeException (client fault)

The port numbers that you specified are not valid numbers or are not unique for this accelerator.

Throws

LimitExceededException (client fault)

Processing your request would cause you to exceed an Global Accelerator limit.

Throws

GlobalAcceleratorServiceException

Base exception class for all service exceptions from GlobalAccelerator service.

Hierarchy

Constructors

Properties

Methods