import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateNFSFileShareInput, CreateNFSFileShareOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateNFSFileShareCommand}. */ export interface CreateNFSFileShareCommandInput extends CreateNFSFileShareInput { } /** * @public * * The output of {@link CreateNFSFileShareCommand}. */ export interface CreateNFSFileShareCommandOutput extends CreateNFSFileShareOutput, __MetadataBearer { } declare const CreateNFSFileShareCommand_base: { new (input: CreateNFSFileShareCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateNFSFileShareCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a Network File System (NFS) file share on an existing S3 File Gateway. In * Storage Gateway, a file share is a file system mount point backed by Amazon S3 * cloud storage. Storage Gateway exposes file shares using an NFS interface. This operation * is only supported for S3 File Gateways.

* *

S3 File gateway requires Security Token Service (Amazon Web Services STS) to be * activated to enable you to create a file share. Make sure Amazon Web Services STS is * activated in the Amazon Web Services Region you are creating your S3 File Gateway in. If * Amazon Web Services STS is not activated in the Amazon Web Services Region, activate * it. For information about how to activate Amazon Web Services STS, see Activating and * deactivating Amazon Web Services STS in an Amazon Web Services Region in the * Identity and Access Management User Guide.

*

S3 File Gateways do not support creating hard or symbolic links on a file * share.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { StorageGatewayClient, CreateNFSFileShareCommand } from "@aws-sdk/client-storage-gateway"; // ES Modules import * // const { StorageGatewayClient, CreateNFSFileShareCommand } = 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 = { // CreateNFSFileShareInput * ClientToken: "STRING_VALUE", // required * NFSFileShareDefaults: { // NFSFileShareDefaults * FileMode: "STRING_VALUE", * DirectoryMode: "STRING_VALUE", * GroupId: Number("long"), * OwnerId: Number("long"), * }, * GatewayARN: "STRING_VALUE", // required * EncryptionType: "SseS3" || "SseKms" || "DsseKms", * KMSEncrypted: true || false, * KMSKey: "STRING_VALUE", * Role: "STRING_VALUE", // required * LocationARN: "STRING_VALUE", // required * DefaultStorageClass: "STRING_VALUE", * ObjectACL: "private" || "public-read" || "public-read-write" || "authenticated-read" || "bucket-owner-read" || "bucket-owner-full-control" || "aws-exec-read", * ClientList: [ // FileShareClientList * "STRING_VALUE", * ], * Squash: "STRING_VALUE", * ReadOnly: true || false, * GuessMIMETypeEnabled: true || false, * RequesterPays: true || false, * Tags: [ // Tags * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * FileShareName: "STRING_VALUE", * CacheAttributes: { // CacheAttributes * CacheStaleTimeoutInSeconds: Number("int"), * }, * NotificationPolicy: "STRING_VALUE", * VPCEndpointDNSName: "STRING_VALUE", * BucketRegion: "STRING_VALUE", * AuditDestinationARN: "STRING_VALUE", * }; * const command = new CreateNFSFileShareCommand(input); * const response = await client.send(command); * // { // CreateNFSFileShareOutput * // FileShareARN: "STRING_VALUE", * // }; * * ``` * * @param CreateNFSFileShareCommandInput - {@link CreateNFSFileShareCommandInput} * @returns {@link CreateNFSFileShareCommandOutput} * @see {@link CreateNFSFileShareCommandInput} for command's `input` shape. * @see {@link CreateNFSFileShareCommandOutput} 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 CreateNFSFileShareCommand extends CreateNFSFileShareCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateNFSFileShareInput; output: CreateNFSFileShareOutput; }; sdk: { input: CreateNFSFileShareCommandInput; output: CreateNFSFileShareCommandOutput; }; }; }