Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class AllowCustomRoutingTrafficCommandProtected

Specify the Amazon EC2 instance (destination) IP addresses and ports for a VPC subnet endpoint that can receive traffic for a custom routing accelerator. You can allow traffic to all destinations in the subnet endpoint, or allow traffic to a specified list of destination IP addresses and ports in the subnet. Note that you cannot specify IP addresses or ports outside of the range that you configured for the endpoint group.

After you make changes, you can verify that the updates are complete by checking the status of your accelerator: the status changes from IN_PROGRESS to DEPLOYED.

Example

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

import { GlobalAcceleratorClient, AllowCustomRoutingTrafficCommand } from "@aws-sdk/client-global-accelerator"; // ES Modules import
// const { GlobalAcceleratorClient, AllowCustomRoutingTrafficCommand } = require("@aws-sdk/client-global-accelerator"); // CommonJS import
const client = new GlobalAcceleratorClient(config);
const input = { // AllowCustomRoutingTrafficRequest
EndpointGroupArn: "STRING_VALUE", // required
EndpointId: "STRING_VALUE", // required
DestinationAddresses: [ // DestinationAddresses
"STRING_VALUE",
],
DestinationPorts: [ // DestinationPorts
Number("int"),
],
AllowAllTrafficToEndpoint: true || false,
};
const command = new AllowCustomRoutingTrafficCommand(input);
const response = await client.send(command);
// {};

Param

AllowCustomRoutingTrafficCommandInput

Returns

AllowCustomRoutingTrafficCommandOutput

See

Throws

EndpointGroupNotFoundException (client fault)

The endpoint group 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

GlobalAcceleratorServiceException

Base exception class for all service exceptions from GlobalAccelerator service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods