Jump to Content

New API Documentation - Developer Preview Available

We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.

Class CreateLocationSmbCommandProtected

Creates an endpoint for a Server Message Block (SMB) file server that DataSync can access for a transfer. For more information, see Creating an SMB location.

Example

Use a bare-bones client and the command you need to make an API call.

import { DataSyncClient, CreateLocationSmbCommand } from "@aws-sdk/client-datasync"; // ES Modules import
// const { DataSyncClient, CreateLocationSmbCommand } = require("@aws-sdk/client-datasync"); // CommonJS import
const client = new DataSyncClient(config);
const input = { // CreateLocationSmbRequest
Subdirectory: "STRING_VALUE", // required
ServerHostname: "STRING_VALUE", // required
User: "STRING_VALUE", // required
Domain: "STRING_VALUE",
Password: "STRING_VALUE", // required
AgentArns: [ // AgentArnList // required
"STRING_VALUE",
],
MountOptions: { // SmbMountOptions
Version: "AUTOMATIC" || "SMB2" || "SMB3" || "SMB1" || "SMB2_0",
},
Tags: [ // InputTagList
{ // TagListEntry
Key: "STRING_VALUE", // required
Value: "STRING_VALUE",
},
],
};
const command = new CreateLocationSmbCommand(input);
const response = await client.send(command);
// { // CreateLocationSmbResponse
// LocationArn: "STRING_VALUE",
// };

Param

CreateLocationSmbCommandInput

Returns

CreateLocationSmbCommandOutput

See

Throws

InternalException (server fault)

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

Throws

InvalidRequestException (client fault)

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

Throws

DataSyncServiceException

Base exception class for all service exceptions from DataSync service.

Hierarchy

Constructors

Properties

Methods