import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { DeleteWorkforceRequest, DeleteWorkforceResponse } from "../models/models_2"; import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteWorkforceCommand}. */ export interface DeleteWorkforceCommandInput extends DeleteWorkforceRequest { } /** * @public * * The output of {@link DeleteWorkforceCommand}. */ export interface DeleteWorkforceCommandOutput extends DeleteWorkforceResponse, __MetadataBearer { } declare const DeleteWorkforceCommand_base: { new (input: DeleteWorkforceCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DeleteWorkforceCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Use this operation to delete a workforce.

If you want to create a new workforce in an Amazon Web Services Region where a workforce already exists, use this operation to delete the existing workforce and then use CreateWorkforce to create a new workforce.

If a private workforce contains one or more work teams, you must use the DeleteWorkteam operation to delete all work teams before you delete the workforce. If you try to delete a workforce that contains one or more work teams, you will receive a ResourceInUse error.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SageMakerClient, DeleteWorkforceCommand } from "@aws-sdk/client-sagemaker"; // ES Modules import * // const { SageMakerClient, DeleteWorkforceCommand } = require("@aws-sdk/client-sagemaker"); // CommonJS import * const client = new SageMakerClient(config); * const input = { // DeleteWorkforceRequest * WorkforceName: "STRING_VALUE", // required * }; * const command = new DeleteWorkforceCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DeleteWorkforceCommandInput - {@link DeleteWorkforceCommandInput} * @returns {@link DeleteWorkforceCommandOutput} * @see {@link DeleteWorkforceCommandInput} for command's `input` shape. * @see {@link DeleteWorkforceCommandOutput} for command's `response` shape. * @see {@link SageMakerClientResolvedConfig | config} for SageMakerClient's `config` shape. * * @throws {@link SageMakerServiceException} *

Base exception class for all service exceptions from SageMaker service.

* * * @public */ export declare class DeleteWorkforceCommand extends DeleteWorkforceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteWorkforceRequest; output: {}; }; sdk: { input: DeleteWorkforceCommandInput; output: DeleteWorkforceCommandOutput; }; }; }