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 DenyCustomRoutingTrafficCommandProtected

Specify the Amazon EC2 instance (destination) IP addresses and ports for a VPC subnet endpoint that cannot receive traffic for a custom routing accelerator. You can deny traffic to all destinations in the VPC endpoint, or deny traffic to a specified list of destination IP addresses and ports. 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, DenyCustomRoutingTrafficCommand } from "@aws-sdk/client-global-accelerator"; // ES Modules import
// const { GlobalAcceleratorClient, DenyCustomRoutingTrafficCommand } = require("@aws-sdk/client-global-accelerator"); // CommonJS import
const client = new GlobalAcceleratorClient(config);
const input = { // DenyCustomRoutingTrafficRequest
EndpointGroupArn: "STRING_VALUE", // required
EndpointId: "STRING_VALUE", // required
DestinationAddresses: [ // DestinationAddresses
"STRING_VALUE",
],
DestinationPorts: [ // DestinationPorts
Number("int"),
],
DenyAllTrafficToEndpoint: true || false,
};
const command = new DenyCustomRoutingTrafficCommand(input);
const response = await client.send(command);
// {};

Param

DenyCustomRoutingTrafficCommandInput

Returns

DenyCustomRoutingTrafficCommandOutput

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