Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AddEndpointsCommand

Add endpoints to an endpoint group. The AddEndpoints API operation is the recommended option for adding endpoints. The alternative options are to add endpoints when you create an endpoint group (with the CreateEndpointGroup API) or when you update an endpoint group (with the UpdateEndpointGroup API).

There are two advantages to using AddEndpoints to add endpoints:

  • It's faster, because Global Accelerator only has to resolve the new endpoints that you're adding.

  • It's more convenient, because you don't need to specify all of the current endpoints that are already in the endpoint group in addition to the new endpoints that you want to add.

example

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

import { GlobalAcceleratorClient, AddEndpointsCommand } from "@aws-sdk/client-global-accelerator"; // ES Modules import
// const { GlobalAcceleratorClient, AddEndpointsCommand } = require("@aws-sdk/client-global-accelerator"); // CommonJS import
const client = new GlobalAcceleratorClient(config);
const command = new AddEndpointsCommand(input);
const response = await client.send(command);
see

AddEndpointsCommandInput for command's input shape.

see

AddEndpointsCommandOutput for command's response shape.

see

config for GlobalAcceleratorClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: AddEndpointsCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<AddEndpointsCommandInput, AddEndpointsCommandOutput>

Methods

Static getEndpointParameterInstructions