import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateEndpointGroupRequest, CreateEndpointGroupResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateEndpointGroupCommand}. */ export interface CreateEndpointGroupCommandInput extends CreateEndpointGroupRequest { } /** * @public * * The output of {@link CreateEndpointGroupCommand}. */ export interface CreateEndpointGroupCommandOutput extends CreateEndpointGroupResponse, __MetadataBearer { } declare const CreateEndpointGroupCommand_base: { new (input: CreateEndpointGroupCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateEndpointGroupCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Create an endpoint group for the specified listener. An endpoint group is a collection of endpoints in one Amazon Web Services * Region. A resource must be valid and active when you add it as an endpoint.

*

For more information about endpoint types and requirements for endpoints that you can add * to Global Accelerator, see * Endpoints for standard accelerators in the Global Accelerator Developer Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GlobalAcceleratorClient, CreateEndpointGroupCommand } from "@aws-sdk/client-global-accelerator"; // ES Modules import * // const { GlobalAcceleratorClient, CreateEndpointGroupCommand } = require("@aws-sdk/client-global-accelerator"); // CommonJS import * // import type { GlobalAcceleratorClientConfig } from "@aws-sdk/client-global-accelerator"; * const config = {}; // type is GlobalAcceleratorClientConfig * const client = new GlobalAcceleratorClient(config); * const input = { // CreateEndpointGroupRequest * ListenerArn: "STRING_VALUE", // required * EndpointGroupRegion: "STRING_VALUE", // required * EndpointConfigurations: [ // EndpointConfigurations * { // EndpointConfiguration * EndpointId: "STRING_VALUE", * Weight: Number("int"), * ClientIPPreservationEnabled: true || false, * AttachmentArn: "STRING_VALUE", * }, * ], * TrafficDialPercentage: Number("float"), * HealthCheckPort: Number("int"), * HealthCheckProtocol: "TCP" || "HTTP" || "HTTPS", * HealthCheckPath: "STRING_VALUE", * HealthCheckIntervalSeconds: Number("int"), * ThresholdCount: Number("int"), * IdempotencyToken: "STRING_VALUE", // required * PortOverrides: [ // PortOverrides * { // PortOverride * ListenerPort: Number("int"), * EndpointPort: Number("int"), * }, * ], * }; * const command = new CreateEndpointGroupCommand(input); * const response = await client.send(command); * // { // CreateEndpointGroupResponse * // EndpointGroup: { // EndpointGroup * // EndpointGroupArn: "STRING_VALUE", * // EndpointGroupRegion: "STRING_VALUE", * // EndpointDescriptions: [ // EndpointDescriptions * // { // EndpointDescription * // EndpointId: "STRING_VALUE", * // Weight: Number("int"), * // HealthState: "INITIAL" || "HEALTHY" || "UNHEALTHY", * // HealthReason: "STRING_VALUE", * // ClientIPPreservationEnabled: true || false, * // }, * // ], * // TrafficDialPercentage: Number("float"), * // HealthCheckPort: Number("int"), * // HealthCheckProtocol: "TCP" || "HTTP" || "HTTPS", * // HealthCheckPath: "STRING_VALUE", * // HealthCheckIntervalSeconds: Number("int"), * // ThresholdCount: Number("int"), * // PortOverrides: [ // PortOverrides * // { // PortOverride * // ListenerPort: Number("int"), * // EndpointPort: Number("int"), * // }, * // ], * // }, * // }; * * ``` * * @param CreateEndpointGroupCommandInput - {@link CreateEndpointGroupCommandInput} * @returns {@link CreateEndpointGroupCommandOutput} * @see {@link CreateEndpointGroupCommandInput} for command's `input` shape. * @see {@link CreateEndpointGroupCommandOutput} for command's `response` shape. * @see {@link GlobalAcceleratorClientResolvedConfig | config} for GlobalAcceleratorClient's `config` shape. * * @throws {@link AcceleratorNotFoundException} (client fault) *

The accelerator that you specified doesn't exist.

* * @throws {@link AccessDeniedException} (client fault) *

You don't have access permission.

* * @throws {@link EndpointGroupAlreadyExistsException} (client fault) *

The endpoint group that you specified already exists.

* * @throws {@link InternalServiceErrorException} (server fault) *

There was an internal error for Global Accelerator.

* * @throws {@link InvalidArgumentException} (client fault) *

An argument that you specified is invalid.

* * @throws {@link LimitExceededException} (client fault) *

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

* * @throws {@link ListenerNotFoundException} (client fault) *

The listener that you specified doesn't exist.

* * @throws {@link GlobalAcceleratorServiceException} *

Base exception class for all service exceptions from GlobalAccelerator service.

* * * @public */ export declare class CreateEndpointGroupCommand extends CreateEndpointGroupCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateEndpointGroupRequest; output: CreateEndpointGroupResponse; }; sdk: { input: CreateEndpointGroupCommandInput; output: CreateEndpointGroupCommandOutput; }; }; }