import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateLocationObjectStorageRequest, CreateLocationObjectStorageResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateLocationObjectStorageCommand}. */ export interface CreateLocationObjectStorageCommandInput extends CreateLocationObjectStorageRequest { } /** * @public * * The output of {@link CreateLocationObjectStorageCommand}. */ export interface CreateLocationObjectStorageCommandOutput extends CreateLocationObjectStorageResponse, __MetadataBearer { } declare const CreateLocationObjectStorageCommand_base: { new (input: CreateLocationObjectStorageCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateLocationObjectStorageCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a transfer location for an object storage system. DataSync can use this location as a source or destination for transferring data. You * can make transfers with or without a DataSync * agent.

*

Before you begin, make sure that you understand the prerequisites for DataSync to work with object storage systems.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DataSyncClient, CreateLocationObjectStorageCommand } from "@aws-sdk/client-datasync"; // ES Modules import * // const { DataSyncClient, CreateLocationObjectStorageCommand } = 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 = { // CreateLocationObjectStorageRequest * ServerHostname: "STRING_VALUE", // required * ServerPort: Number("int"), * ServerProtocol: "HTTPS" || "HTTP", * Subdirectory: "STRING_VALUE", * BucketName: "STRING_VALUE", // required * AccessKey: "STRING_VALUE", * SecretKey: "STRING_VALUE", * AgentArns: [ // AgentArnList * "STRING_VALUE", * ], * Tags: [ // InputTagList * { // TagListEntry * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", * }, * ], * ServerCertificate: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") * CmkSecretConfig: { // CmkSecretConfig * SecretArn: "STRING_VALUE", * KmsKeyArn: "STRING_VALUE", * }, * CustomSecretConfig: { // CustomSecretConfig * SecretArn: "STRING_VALUE", * SecretAccessRoleArn: "STRING_VALUE", * }, * }; * const command = new CreateLocationObjectStorageCommand(input); * const response = await client.send(command); * // { // CreateLocationObjectStorageResponse * // LocationArn: "STRING_VALUE", * // }; * * ``` * * @param CreateLocationObjectStorageCommandInput - {@link CreateLocationObjectStorageCommandInput} * @returns {@link CreateLocationObjectStorageCommandOutput} * @see {@link CreateLocationObjectStorageCommandInput} for command's `input` shape. * @see {@link CreateLocationObjectStorageCommandOutput} 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 CreateLocationObjectStorageCommand extends CreateLocationObjectStorageCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateLocationObjectStorageRequest; output: CreateLocationObjectStorageResponse; }; sdk: { input: CreateLocationObjectStorageCommandInput; output: CreateLocationObjectStorageCommandOutput; }; }; }