import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DetachTrafficSourcesResultType, DetachTrafficSourcesType } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DetachTrafficSourcesCommand}. */ export interface DetachTrafficSourcesCommandInput extends DetachTrafficSourcesType { } /** * @public * * The output of {@link DetachTrafficSourcesCommand}. */ export interface DetachTrafficSourcesCommandOutput extends DetachTrafficSourcesResultType, __MetadataBearer { } declare const DetachTrafficSourcesCommand_base: { new (input: DetachTrafficSourcesCommandInput): import("@smithy/core/client").CommandImpl; new (input: DetachTrafficSourcesCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Detaches one or more traffic sources from the specified Auto Scaling group.

*

When you detach a traffic source, it enters the Removing state while * deregistering the instances in the group. When all instances are deregistered, then you * can no longer describe the traffic source using the * DescribeTrafficSources * API call. The instances continue to run.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AutoScalingClient, DetachTrafficSourcesCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import * // const { AutoScalingClient, DetachTrafficSourcesCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import * // import type { AutoScalingClientConfig } from "@aws-sdk/client-auto-scaling"; * const config = {}; // type is AutoScalingClientConfig * const client = new AutoScalingClient(config); * const input = { // DetachTrafficSourcesType * AutoScalingGroupName: "STRING_VALUE", // required * TrafficSources: [ // TrafficSources // required * { // TrafficSourceIdentifier * Identifier: "STRING_VALUE", // required * Type: "STRING_VALUE", * }, * ], * }; * const command = new DetachTrafficSourcesCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DetachTrafficSourcesCommandInput - {@link DetachTrafficSourcesCommandInput} * @returns {@link DetachTrafficSourcesCommandOutput} * @see {@link DetachTrafficSourcesCommandInput} for command's `input` shape. * @see {@link DetachTrafficSourcesCommandOutput} for command's `response` shape. * @see {@link AutoScalingClientResolvedConfig | config} for AutoScalingClient's `config` shape. * * @throws {@link ResourceContentionFault} (server fault) *

You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling group, * instance, or load balancer).

* * @throws {@link AutoScalingServiceException} *

Base exception class for all service exceptions from AutoScaling service.

* * * @example To detach a target group from an Auto Scaling group * ```javascript * // This example detaches the specified target group from the specified Auto Scaling group. * const input = { * AutoScalingGroupName: "my-auto-scaling-group", * TrafficSources: [ * { * Identifier: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067" * } * ] * }; * const command = new DetachTrafficSourcesCommand(input); * const response = await client.send(command); * /* response is * { /* empty *\/ } * *\/ * ``` * * @public */ export declare class DetachTrafficSourcesCommand extends DetachTrafficSourcesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DetachTrafficSourcesType; output: {}; }; sdk: { input: DetachTrafficSourcesCommandInput; output: DetachTrafficSourcesCommandOutput; }; }; }