import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AssociateFileSystemInput, AssociateFileSystemOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link AssociateFileSystemCommand}. */ export interface AssociateFileSystemCommandInput extends AssociateFileSystemInput { } /** * @public * * The output of {@link AssociateFileSystemCommand}. */ export interface AssociateFileSystemCommandOutput extends AssociateFileSystemOutput, __MetadataBearer { } declare const AssociateFileSystemCommand_base: { new (input: AssociateFileSystemCommandInput): import("@smithy/core/client").CommandImpl; new (input: AssociateFileSystemCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Associate an Amazon FSx file system with the FSx File Gateway. After the * association process is complete, the file shares on the Amazon FSx file system are * available for access through the gateway. This operation only supports the FSx File Gateway * type.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { StorageGatewayClient, AssociateFileSystemCommand } from "@aws-sdk/client-storage-gateway"; // ES Modules import * // const { StorageGatewayClient, AssociateFileSystemCommand } = require("@aws-sdk/client-storage-gateway"); // CommonJS import * // import type { StorageGatewayClientConfig } from "@aws-sdk/client-storage-gateway"; * const config = {}; // type is StorageGatewayClientConfig * const client = new StorageGatewayClient(config); * const input = { // AssociateFileSystemInput * UserName: "STRING_VALUE", // required * Password: "STRING_VALUE", // required * ClientToken: "STRING_VALUE", // required * GatewayARN: "STRING_VALUE", // required * LocationARN: "STRING_VALUE", // required * Tags: [ // Tags * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * AuditDestinationARN: "STRING_VALUE", * CacheAttributes: { // CacheAttributes * CacheStaleTimeoutInSeconds: Number("int"), * }, * EndpointNetworkConfiguration: { // EndpointNetworkConfiguration * IpAddresses: [ // IpAddressList * "STRING_VALUE", * ], * }, * }; * const command = new AssociateFileSystemCommand(input); * const response = await client.send(command); * // { // AssociateFileSystemOutput * // FileSystemAssociationARN: "STRING_VALUE", * // }; * * ``` * * @param AssociateFileSystemCommandInput - {@link AssociateFileSystemCommandInput} * @returns {@link AssociateFileSystemCommandOutput} * @see {@link AssociateFileSystemCommandInput} for command's `input` shape. * @see {@link AssociateFileSystemCommandOutput} for command's `response` shape. * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape. * * @throws {@link InternalServerError} (server fault) *

An internal server error has occurred during the request. For more information, see the * error and message fields.

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

An exception occurred because an invalid gateway request was issued to the service. For * more information, see the error and message fields.

* * @throws {@link StorageGatewayServiceException} *

Base exception class for all service exceptions from StorageGateway service.

* * * @public */ export declare class AssociateFileSystemCommand extends AssociateFileSystemCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AssociateFileSystemInput; output: AssociateFileSystemOutput; }; sdk: { input: AssociateFileSystemCommandInput; output: AssociateFileSystemCommandOutput; }; }; }