import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateSMBFileShareInput, CreateSMBFileShareOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateSMBFileShareCommand}. */ export interface CreateSMBFileShareCommandInput extends CreateSMBFileShareInput { } /** * @public * * The output of {@link CreateSMBFileShareCommand}. */ export interface CreateSMBFileShareCommandOutput extends CreateSMBFileShareOutput, __MetadataBearer { } declare const CreateSMBFileShareCommand_base: { new (input: CreateSMBFileShareCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateSMBFileShareCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a Server Message Block (SMB) 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 SMB interface. This operation * is only supported for S3 File Gateways.

* *

S3 File Gateways require Security Token Service (Amazon Web Services STS) to be * activated to enable you to create a file share. Make sure that 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 this 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.

*

File gateways don't 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, CreateSMBFileShareCommand } from "@aws-sdk/client-storage-gateway"; // ES Modules import * // const { StorageGatewayClient, CreateSMBFileShareCommand } = 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 = { // CreateSMBFileShareInput * ClientToken: "STRING_VALUE", // required * 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", * ReadOnly: true || false, * GuessMIMETypeEnabled: true || false, * RequesterPays: true || false, * SMBACLEnabled: true || false, * AccessBasedEnumeration: true || false, * AdminUserList: [ // UserList * "STRING_VALUE", * ], * ValidUserList: [ * "STRING_VALUE", * ], * InvalidUserList: [ * "STRING_VALUE", * ], * AuditDestinationARN: "STRING_VALUE", * Authentication: "STRING_VALUE", * CaseSensitivity: "ClientSpecified" || "CaseSensitive", * 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", * OplocksEnabled: true || false, * }; * const command = new CreateSMBFileShareCommand(input); * const response = await client.send(command); * // { // CreateSMBFileShareOutput * // FileShareARN: "STRING_VALUE", * // }; * * ``` * * @param CreateSMBFileShareCommandInput - {@link CreateSMBFileShareCommandInput} * @returns {@link CreateSMBFileShareCommandOutput} * @see {@link CreateSMBFileShareCommandInput} for command's `input` shape. * @see {@link CreateSMBFileShareCommandOutput} 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 CreateSMBFileShareCommand extends CreateSMBFileShareCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateSMBFileShareInput; output: CreateSMBFileShareOutput; }; sdk: { input: CreateSMBFileShareCommandInput; output: CreateSMBFileShareCommandOutput; }; }; }