import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateAgentRequest, CreateAgentResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateAgentCommand}. */ export interface CreateAgentCommandInput extends CreateAgentRequest { } /** * @public * * The output of {@link CreateAgentCommand}. */ export interface CreateAgentCommandOutput extends CreateAgentResponse, __MetadataBearer { } declare const CreateAgentCommand_base: { new (input: CreateAgentCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateAgentCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Activates an DataSync agent that you deploy in your storage environment. * The activation process associates the agent with your Amazon Web Services account.

*

If you haven't deployed an agent yet, see Do I need a DataSync * agent? *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DataSyncClient, CreateAgentCommand } from "@aws-sdk/client-datasync"; // ES Modules import * // const { DataSyncClient, CreateAgentCommand } = require("@aws-sdk/client-datasync"); // CommonJS import * // import type { DataSyncClientConfig } from "@aws-sdk/client-datasync"; * const config = {}; // type is DataSyncClientConfig * const client = new DataSyncClient(config); * const input = { // CreateAgentRequest * ActivationKey: "STRING_VALUE", // required * AgentName: "STRING_VALUE", * Tags: [ // InputTagList * { // TagListEntry * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", * }, * ], * VpcEndpointId: "STRING_VALUE", * SubnetArns: [ // PLSubnetArnList * "STRING_VALUE", * ], * SecurityGroupArns: [ // PLSecurityGroupArnList * "STRING_VALUE", * ], * }; * const command = new CreateAgentCommand(input); * const response = await client.send(command); * // { // CreateAgentResponse * // AgentArn: "STRING_VALUE", * // }; * * ``` * * @param CreateAgentCommandInput - {@link CreateAgentCommandInput} * @returns {@link CreateAgentCommandOutput} * @see {@link CreateAgentCommandInput} for command's `input` shape. * @see {@link CreateAgentCommandOutput} for command's `response` shape. * @see {@link DataSyncClientResolvedConfig | config} for DataSyncClient's `config` shape. * * @throws {@link InternalException} (server fault) *

This exception is thrown when an error occurs in the DataSync * service.

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

This exception is thrown when the client submits a malformed request.

* * @throws {@link DataSyncServiceException} *

Base exception class for all service exceptions from DataSync service.

* * * @public */ export declare class CreateAgentCommand extends CreateAgentCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateAgentRequest; output: CreateAgentResponse; }; sdk: { input: CreateAgentCommandInput; output: CreateAgentCommandOutput; }; }; }