diff --git a/clients/client-datasync/README.md b/clients/client-datasync/README.md index d703b72a87d22..24d82201d254f 100644 --- a/clients/client-datasync/README.md +++ b/clients/client-datasync/README.md @@ -635,6 +635,46 @@ UpdateLocationAzureBlob [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datasync/command/UpdateLocationAzureBlobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datasync/Interface/UpdateLocationAzureBlobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datasync/Interface/UpdateLocationAzureBlobCommandOutput/) + +
+ +UpdateLocationEfs + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datasync/command/UpdateLocationEfsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datasync/Interface/UpdateLocationEfsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datasync/Interface/UpdateLocationEfsCommandOutput/) + +
+
+ +UpdateLocationFsxLustre + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datasync/command/UpdateLocationFsxLustreCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datasync/Interface/UpdateLocationFsxLustreCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datasync/Interface/UpdateLocationFsxLustreCommandOutput/) + +
+
+ +UpdateLocationFsxOntap + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datasync/command/UpdateLocationFsxOntapCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datasync/Interface/UpdateLocationFsxOntapCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datasync/Interface/UpdateLocationFsxOntapCommandOutput/) + +
+
+ +UpdateLocationFsxOpenZfs + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datasync/command/UpdateLocationFsxOpenZfsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datasync/Interface/UpdateLocationFsxOpenZfsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datasync/Interface/UpdateLocationFsxOpenZfsCommandOutput/) + +
+
+ +UpdateLocationFsxWindows + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datasync/command/UpdateLocationFsxWindowsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datasync/Interface/UpdateLocationFsxWindowsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datasync/Interface/UpdateLocationFsxWindowsCommandOutput/) +
@@ -659,6 +699,14 @@ UpdateLocationObjectStorage [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datasync/command/UpdateLocationObjectStorageCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datasync/Interface/UpdateLocationObjectStorageCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datasync/Interface/UpdateLocationObjectStorageCommandOutput/) +
+
+ +UpdateLocationS3 + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/datasync/command/UpdateLocationS3Command/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datasync/Interface/UpdateLocationS3CommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-datasync/Interface/UpdateLocationS3CommandOutput/) +
diff --git a/clients/client-datasync/src/DataSync.ts b/clients/client-datasync/src/DataSync.ts index 6e5c3655ec055..b07597f0d16ce 100644 --- a/clients/client-datasync/src/DataSync.ts +++ b/clients/client-datasync/src/DataSync.ts @@ -235,6 +235,31 @@ import { UpdateLocationAzureBlobCommandInput, UpdateLocationAzureBlobCommandOutput, } from "./commands/UpdateLocationAzureBlobCommand"; +import { + UpdateLocationEfsCommand, + UpdateLocationEfsCommandInput, + UpdateLocationEfsCommandOutput, +} from "./commands/UpdateLocationEfsCommand"; +import { + UpdateLocationFsxLustreCommand, + UpdateLocationFsxLustreCommandInput, + UpdateLocationFsxLustreCommandOutput, +} from "./commands/UpdateLocationFsxLustreCommand"; +import { + UpdateLocationFsxOntapCommand, + UpdateLocationFsxOntapCommandInput, + UpdateLocationFsxOntapCommandOutput, +} from "./commands/UpdateLocationFsxOntapCommand"; +import { + UpdateLocationFsxOpenZfsCommand, + UpdateLocationFsxOpenZfsCommandInput, + UpdateLocationFsxOpenZfsCommandOutput, +} from "./commands/UpdateLocationFsxOpenZfsCommand"; +import { + UpdateLocationFsxWindowsCommand, + UpdateLocationFsxWindowsCommandInput, + UpdateLocationFsxWindowsCommandOutput, +} from "./commands/UpdateLocationFsxWindowsCommand"; import { UpdateLocationHdfsCommand, UpdateLocationHdfsCommandInput, @@ -250,6 +275,11 @@ import { UpdateLocationObjectStorageCommandInput, UpdateLocationObjectStorageCommandOutput, } from "./commands/UpdateLocationObjectStorageCommand"; +import { + UpdateLocationS3Command, + UpdateLocationS3CommandInput, + UpdateLocationS3CommandOutput, +} from "./commands/UpdateLocationS3Command"; import { UpdateLocationSmbCommand, UpdateLocationSmbCommandInput, @@ -322,9 +352,15 @@ const commands = { UpdateAgentCommand, UpdateDiscoveryJobCommand, UpdateLocationAzureBlobCommand, + UpdateLocationEfsCommand, + UpdateLocationFsxLustreCommand, + UpdateLocationFsxOntapCommand, + UpdateLocationFsxOpenZfsCommand, + UpdateLocationFsxWindowsCommand, UpdateLocationHdfsCommand, UpdateLocationNfsCommand, UpdateLocationObjectStorageCommand, + UpdateLocationS3Command, UpdateLocationSmbCommand, UpdateStorageSystemCommand, UpdateTaskCommand, @@ -1164,6 +1200,91 @@ export interface DataSync { cb: (err: any, data?: UpdateLocationAzureBlobCommandOutput) => void ): void; + /** + * @see {@link UpdateLocationEfsCommand} + */ + updateLocationEfs( + args: UpdateLocationEfsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + updateLocationEfs( + args: UpdateLocationEfsCommandInput, + cb: (err: any, data?: UpdateLocationEfsCommandOutput) => void + ): void; + updateLocationEfs( + args: UpdateLocationEfsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateLocationEfsCommandOutput) => void + ): void; + + /** + * @see {@link UpdateLocationFsxLustreCommand} + */ + updateLocationFsxLustre( + args: UpdateLocationFsxLustreCommandInput, + options?: __HttpHandlerOptions + ): Promise; + updateLocationFsxLustre( + args: UpdateLocationFsxLustreCommandInput, + cb: (err: any, data?: UpdateLocationFsxLustreCommandOutput) => void + ): void; + updateLocationFsxLustre( + args: UpdateLocationFsxLustreCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateLocationFsxLustreCommandOutput) => void + ): void; + + /** + * @see {@link UpdateLocationFsxOntapCommand} + */ + updateLocationFsxOntap( + args: UpdateLocationFsxOntapCommandInput, + options?: __HttpHandlerOptions + ): Promise; + updateLocationFsxOntap( + args: UpdateLocationFsxOntapCommandInput, + cb: (err: any, data?: UpdateLocationFsxOntapCommandOutput) => void + ): void; + updateLocationFsxOntap( + args: UpdateLocationFsxOntapCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateLocationFsxOntapCommandOutput) => void + ): void; + + /** + * @see {@link UpdateLocationFsxOpenZfsCommand} + */ + updateLocationFsxOpenZfs( + args: UpdateLocationFsxOpenZfsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + updateLocationFsxOpenZfs( + args: UpdateLocationFsxOpenZfsCommandInput, + cb: (err: any, data?: UpdateLocationFsxOpenZfsCommandOutput) => void + ): void; + updateLocationFsxOpenZfs( + args: UpdateLocationFsxOpenZfsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateLocationFsxOpenZfsCommandOutput) => void + ): void; + + /** + * @see {@link UpdateLocationFsxWindowsCommand} + */ + updateLocationFsxWindows( + args: UpdateLocationFsxWindowsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + updateLocationFsxWindows( + args: UpdateLocationFsxWindowsCommandInput, + cb: (err: any, data?: UpdateLocationFsxWindowsCommandOutput) => void + ): void; + updateLocationFsxWindows( + args: UpdateLocationFsxWindowsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateLocationFsxWindowsCommandOutput) => void + ): void; + /** * @see {@link UpdateLocationHdfsCommand} */ @@ -1215,6 +1336,23 @@ export interface DataSync { cb: (err: any, data?: UpdateLocationObjectStorageCommandOutput) => void ): void; + /** + * @see {@link UpdateLocationS3Command} + */ + updateLocationS3( + args: UpdateLocationS3CommandInput, + options?: __HttpHandlerOptions + ): Promise; + updateLocationS3( + args: UpdateLocationS3CommandInput, + cb: (err: any, data?: UpdateLocationS3CommandOutput) => void + ): void; + updateLocationS3( + args: UpdateLocationS3CommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateLocationS3CommandOutput) => void + ): void; + /** * @see {@link UpdateLocationSmbCommand} */ diff --git a/clients/client-datasync/src/DataSyncClient.ts b/clients/client-datasync/src/DataSyncClient.ts index 3b071172f314a..8a0708ed0d6d4 100644 --- a/clients/client-datasync/src/DataSyncClient.ts +++ b/clients/client-datasync/src/DataSyncClient.ts @@ -184,12 +184,30 @@ import { UpdateLocationAzureBlobCommandInput, UpdateLocationAzureBlobCommandOutput, } from "./commands/UpdateLocationAzureBlobCommand"; +import { UpdateLocationEfsCommandInput, UpdateLocationEfsCommandOutput } from "./commands/UpdateLocationEfsCommand"; +import { + UpdateLocationFsxLustreCommandInput, + UpdateLocationFsxLustreCommandOutput, +} from "./commands/UpdateLocationFsxLustreCommand"; +import { + UpdateLocationFsxOntapCommandInput, + UpdateLocationFsxOntapCommandOutput, +} from "./commands/UpdateLocationFsxOntapCommand"; +import { + UpdateLocationFsxOpenZfsCommandInput, + UpdateLocationFsxOpenZfsCommandOutput, +} from "./commands/UpdateLocationFsxOpenZfsCommand"; +import { + UpdateLocationFsxWindowsCommandInput, + UpdateLocationFsxWindowsCommandOutput, +} from "./commands/UpdateLocationFsxWindowsCommand"; import { UpdateLocationHdfsCommandInput, UpdateLocationHdfsCommandOutput } from "./commands/UpdateLocationHdfsCommand"; import { UpdateLocationNfsCommandInput, UpdateLocationNfsCommandOutput } from "./commands/UpdateLocationNfsCommand"; import { UpdateLocationObjectStorageCommandInput, UpdateLocationObjectStorageCommandOutput, } from "./commands/UpdateLocationObjectStorageCommand"; +import { UpdateLocationS3CommandInput, UpdateLocationS3CommandOutput } from "./commands/UpdateLocationS3Command"; import { UpdateLocationSmbCommandInput, UpdateLocationSmbCommandOutput } from "./commands/UpdateLocationSmbCommand"; import { UpdateStorageSystemCommandInput, @@ -268,9 +286,15 @@ export type ServiceInputTypes = | UpdateAgentCommandInput | UpdateDiscoveryJobCommandInput | UpdateLocationAzureBlobCommandInput + | UpdateLocationEfsCommandInput + | UpdateLocationFsxLustreCommandInput + | UpdateLocationFsxOntapCommandInput + | UpdateLocationFsxOpenZfsCommandInput + | UpdateLocationFsxWindowsCommandInput | UpdateLocationHdfsCommandInput | UpdateLocationNfsCommandInput | UpdateLocationObjectStorageCommandInput + | UpdateLocationS3CommandInput | UpdateLocationSmbCommandInput | UpdateStorageSystemCommandInput | UpdateTaskCommandInput @@ -333,9 +357,15 @@ export type ServiceOutputTypes = | UpdateAgentCommandOutput | UpdateDiscoveryJobCommandOutput | UpdateLocationAzureBlobCommandOutput + | UpdateLocationEfsCommandOutput + | UpdateLocationFsxLustreCommandOutput + | UpdateLocationFsxOntapCommandOutput + | UpdateLocationFsxOpenZfsCommandOutput + | UpdateLocationFsxWindowsCommandOutput | UpdateLocationHdfsCommandOutput | UpdateLocationNfsCommandOutput | UpdateLocationObjectStorageCommandOutput + | UpdateLocationS3CommandOutput | UpdateLocationSmbCommandOutput | UpdateStorageSystemCommandOutput | UpdateTaskCommandOutput diff --git a/clients/client-datasync/src/commands/CreateLocationNfsCommand.ts b/clients/client-datasync/src/commands/CreateLocationNfsCommand.ts index ef0244eef08f6..9e4e1d79f14e7 100644 --- a/clients/client-datasync/src/commands/CreateLocationNfsCommand.ts +++ b/clients/client-datasync/src/commands/CreateLocationNfsCommand.ts @@ -34,11 +34,6 @@ export interface CreateLocationNfsCommandOutput extends CreateLocationNfsRespons *

Before you begin, make sure that you understand how DataSync * accesses * NFS file servers.

- * - *

If you're copying data to or from an Snowcone device, you can also use - * CreateLocationNfs to create your transfer location. For more information, see - * Configuring transfers with Snowcone.

- *
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-datasync/src/commands/UpdateLocationAzureBlobCommand.ts b/clients/client-datasync/src/commands/UpdateLocationAzureBlobCommand.ts index 143176046dacc..dc770c832952d 100644 --- a/clients/client-datasync/src/commands/UpdateLocationAzureBlobCommand.ts +++ b/clients/client-datasync/src/commands/UpdateLocationAzureBlobCommand.ts @@ -32,7 +32,8 @@ export interface UpdateLocationAzureBlobCommandInput extends UpdateLocationAzure export interface UpdateLocationAzureBlobCommandOutput extends UpdateLocationAzureBlobResponse, __MetadataBearer {} /** - *

Modifies some configurations of the Microsoft Azure Blob Storage transfer location that you're using with DataSync.

+ *

Modifies the following configurations of the Microsoft Azure Blob Storage transfer location that you're using with DataSync.

+ *

For more information, see Configuring DataSync transfers with Azure Blob Storage.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-datasync/src/commands/UpdateLocationEfsCommand.ts b/clients/client-datasync/src/commands/UpdateLocationEfsCommand.ts new file mode 100644 index 0000000000000..1220473ce8a6b --- /dev/null +++ b/clients/client-datasync/src/commands/UpdateLocationEfsCommand.ts @@ -0,0 +1,102 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { DataSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataSyncClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { UpdateLocationEfsRequest, UpdateLocationEfsResponse } from "../models/models_0"; +import { de_UpdateLocationEfsCommand, se_UpdateLocationEfsCommand } from "../protocols/Aws_json1_1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link UpdateLocationEfsCommand}. + */ +export interface UpdateLocationEfsCommandInput extends UpdateLocationEfsRequest {} +/** + * @public + * + * The output of {@link UpdateLocationEfsCommand}. + */ +export interface UpdateLocationEfsCommandOutput extends UpdateLocationEfsResponse, __MetadataBearer {} + +/** + *

Modifies the following configuration parameters of the Amazon EFS transfer location that you're using with DataSync.

+ *

For more information, see Configuring DataSync transfers with Amazon EFS.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { DataSyncClient, UpdateLocationEfsCommand } from "@aws-sdk/client-datasync"; // ES Modules import + * // const { DataSyncClient, UpdateLocationEfsCommand } = require("@aws-sdk/client-datasync"); // CommonJS import + * const client = new DataSyncClient(config); + * const input = { // UpdateLocationEfsRequest + * LocationArn: "STRING_VALUE", // required + * Subdirectory: "STRING_VALUE", + * AccessPointArn: "STRING_VALUE", + * FileSystemAccessRoleArn: "STRING_VALUE", + * InTransitEncryption: "NONE" || "TLS1_2", + * }; + * const command = new UpdateLocationEfsCommand(input); + * const response = await client.send(command); + * // {}; + * + * ``` + * + * @param UpdateLocationEfsCommandInput - {@link UpdateLocationEfsCommandInput} + * @returns {@link UpdateLocationEfsCommandOutput} + * @see {@link UpdateLocationEfsCommandInput} for command's `input` shape. + * @see {@link UpdateLocationEfsCommandOutput} 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 class UpdateLocationEfsCommand extends $Command + .classBuilder< + UpdateLocationEfsCommandInput, + UpdateLocationEfsCommandOutput, + DataSyncClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: DataSyncClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("FmrsService", "UpdateLocationEfs", {}) + .n("DataSyncClient", "UpdateLocationEfsCommand") + .f(void 0, void 0) + .ser(se_UpdateLocationEfsCommand) + .de(de_UpdateLocationEfsCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: UpdateLocationEfsRequest; + output: {}; + }; + sdk: { + input: UpdateLocationEfsCommandInput; + output: UpdateLocationEfsCommandOutput; + }; + }; +} diff --git a/clients/client-datasync/src/commands/UpdateLocationFsxLustreCommand.ts b/clients/client-datasync/src/commands/UpdateLocationFsxLustreCommand.ts new file mode 100644 index 0000000000000..8f9ca7e930ebf --- /dev/null +++ b/clients/client-datasync/src/commands/UpdateLocationFsxLustreCommand.ts @@ -0,0 +1,99 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { DataSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataSyncClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { UpdateLocationFsxLustreRequest, UpdateLocationFsxLustreResponse } from "../models/models_0"; +import { de_UpdateLocationFsxLustreCommand, se_UpdateLocationFsxLustreCommand } from "../protocols/Aws_json1_1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link UpdateLocationFsxLustreCommand}. + */ +export interface UpdateLocationFsxLustreCommandInput extends UpdateLocationFsxLustreRequest {} +/** + * @public + * + * The output of {@link UpdateLocationFsxLustreCommand}. + */ +export interface UpdateLocationFsxLustreCommandOutput extends UpdateLocationFsxLustreResponse, __MetadataBearer {} + +/** + *

Modifies the following configuration parameters of the Amazon FSx for Lustre transfer location that you're using with DataSync.

+ *

For more information, see Configuring DataSync transfers with FSx for Lustre.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { DataSyncClient, UpdateLocationFsxLustreCommand } from "@aws-sdk/client-datasync"; // ES Modules import + * // const { DataSyncClient, UpdateLocationFsxLustreCommand } = require("@aws-sdk/client-datasync"); // CommonJS import + * const client = new DataSyncClient(config); + * const input = { // UpdateLocationFsxLustreRequest + * LocationArn: "STRING_VALUE", // required + * Subdirectory: "STRING_VALUE", + * }; + * const command = new UpdateLocationFsxLustreCommand(input); + * const response = await client.send(command); + * // {}; + * + * ``` + * + * @param UpdateLocationFsxLustreCommandInput - {@link UpdateLocationFsxLustreCommandInput} + * @returns {@link UpdateLocationFsxLustreCommandOutput} + * @see {@link UpdateLocationFsxLustreCommandInput} for command's `input` shape. + * @see {@link UpdateLocationFsxLustreCommandOutput} 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 class UpdateLocationFsxLustreCommand extends $Command + .classBuilder< + UpdateLocationFsxLustreCommandInput, + UpdateLocationFsxLustreCommandOutput, + DataSyncClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: DataSyncClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("FmrsService", "UpdateLocationFsxLustre", {}) + .n("DataSyncClient", "UpdateLocationFsxLustreCommand") + .f(void 0, void 0) + .ser(se_UpdateLocationFsxLustreCommand) + .de(de_UpdateLocationFsxLustreCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: UpdateLocationFsxLustreRequest; + output: {}; + }; + sdk: { + input: UpdateLocationFsxLustreCommandInput; + output: UpdateLocationFsxLustreCommandOutput; + }; + }; +} diff --git a/clients/client-datasync/src/commands/UpdateLocationFsxOntapCommand.ts b/clients/client-datasync/src/commands/UpdateLocationFsxOntapCommand.ts new file mode 100644 index 0000000000000..8fe61fcc1c242 --- /dev/null +++ b/clients/client-datasync/src/commands/UpdateLocationFsxOntapCommand.ts @@ -0,0 +1,118 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { DataSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataSyncClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { + UpdateLocationFsxOntapRequest, + UpdateLocationFsxOntapRequestFilterSensitiveLog, + UpdateLocationFsxOntapResponse, +} from "../models/models_0"; +import { de_UpdateLocationFsxOntapCommand, se_UpdateLocationFsxOntapCommand } from "../protocols/Aws_json1_1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link UpdateLocationFsxOntapCommand}. + */ +export interface UpdateLocationFsxOntapCommandInput extends UpdateLocationFsxOntapRequest {} +/** + * @public + * + * The output of {@link UpdateLocationFsxOntapCommand}. + */ +export interface UpdateLocationFsxOntapCommandOutput extends UpdateLocationFsxOntapResponse, __MetadataBearer {} + +/** + *

Modifies the following configuration parameters of the Amazon FSx for NetApp ONTAP transfer location that you're using with DataSync.

+ *

For more information, see Configuring DataSync transfers with FSx for ONTAP.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { DataSyncClient, UpdateLocationFsxOntapCommand } from "@aws-sdk/client-datasync"; // ES Modules import + * // const { DataSyncClient, UpdateLocationFsxOntapCommand } = require("@aws-sdk/client-datasync"); // CommonJS import + * const client = new DataSyncClient(config); + * const input = { // UpdateLocationFsxOntapRequest + * LocationArn: "STRING_VALUE", // required + * Protocol: { // FsxUpdateProtocol + * NFS: { // FsxProtocolNfs + * MountOptions: { // NfsMountOptions + * Version: "AUTOMATIC" || "NFS3" || "NFS4_0" || "NFS4_1", + * }, + * }, + * SMB: { // FsxUpdateProtocolSmb + * Domain: "STRING_VALUE", + * MountOptions: { // SmbMountOptions + * Version: "AUTOMATIC" || "SMB2" || "SMB3" || "SMB1" || "SMB2_0", + * }, + * Password: "STRING_VALUE", + * User: "STRING_VALUE", + * }, + * }, + * Subdirectory: "STRING_VALUE", + * }; + * const command = new UpdateLocationFsxOntapCommand(input); + * const response = await client.send(command); + * // {}; + * + * ``` + * + * @param UpdateLocationFsxOntapCommandInput - {@link UpdateLocationFsxOntapCommandInput} + * @returns {@link UpdateLocationFsxOntapCommandOutput} + * @see {@link UpdateLocationFsxOntapCommandInput} for command's `input` shape. + * @see {@link UpdateLocationFsxOntapCommandOutput} 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 class UpdateLocationFsxOntapCommand extends $Command + .classBuilder< + UpdateLocationFsxOntapCommandInput, + UpdateLocationFsxOntapCommandOutput, + DataSyncClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: DataSyncClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("FmrsService", "UpdateLocationFsxOntap", {}) + .n("DataSyncClient", "UpdateLocationFsxOntapCommand") + .f(UpdateLocationFsxOntapRequestFilterSensitiveLog, void 0) + .ser(se_UpdateLocationFsxOntapCommand) + .de(de_UpdateLocationFsxOntapCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: UpdateLocationFsxOntapRequest; + output: {}; + }; + sdk: { + input: UpdateLocationFsxOntapCommandInput; + output: UpdateLocationFsxOntapCommandOutput; + }; + }; +} diff --git a/clients/client-datasync/src/commands/UpdateLocationFsxOpenZfsCommand.ts b/clients/client-datasync/src/commands/UpdateLocationFsxOpenZfsCommand.ts new file mode 100644 index 0000000000000..e120679fe7ca7 --- /dev/null +++ b/clients/client-datasync/src/commands/UpdateLocationFsxOpenZfsCommand.ts @@ -0,0 +1,122 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { DataSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataSyncClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { + UpdateLocationFsxOpenZfsRequest, + UpdateLocationFsxOpenZfsRequestFilterSensitiveLog, + UpdateLocationFsxOpenZfsResponse, +} from "../models/models_0"; +import { de_UpdateLocationFsxOpenZfsCommand, se_UpdateLocationFsxOpenZfsCommand } from "../protocols/Aws_json1_1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link UpdateLocationFsxOpenZfsCommand}. + */ +export interface UpdateLocationFsxOpenZfsCommandInput extends UpdateLocationFsxOpenZfsRequest {} +/** + * @public + * + * The output of {@link UpdateLocationFsxOpenZfsCommand}. + */ +export interface UpdateLocationFsxOpenZfsCommandOutput extends UpdateLocationFsxOpenZfsResponse, __MetadataBearer {} + +/** + *

Modifies the following configuration parameters of the Amazon FSx for OpenZFS transfer location that you're using with DataSync.

+ *

For more information, see Configuring DataSync transfers with FSx for OpenZFS.

+ * + *

Request parameters related to SMB aren't supported with the + * UpdateLocationFsxOpenZfs operation.

+ *
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { DataSyncClient, UpdateLocationFsxOpenZfsCommand } from "@aws-sdk/client-datasync"; // ES Modules import + * // const { DataSyncClient, UpdateLocationFsxOpenZfsCommand } = require("@aws-sdk/client-datasync"); // CommonJS import + * const client = new DataSyncClient(config); + * const input = { // UpdateLocationFsxOpenZfsRequest + * LocationArn: "STRING_VALUE", // required + * Protocol: { // FsxProtocol + * NFS: { // FsxProtocolNfs + * MountOptions: { // NfsMountOptions + * Version: "AUTOMATIC" || "NFS3" || "NFS4_0" || "NFS4_1", + * }, + * }, + * SMB: { // FsxProtocolSmb + * Domain: "STRING_VALUE", + * MountOptions: { // SmbMountOptions + * Version: "AUTOMATIC" || "SMB2" || "SMB3" || "SMB1" || "SMB2_0", + * }, + * Password: "STRING_VALUE", // required + * User: "STRING_VALUE", // required + * }, + * }, + * Subdirectory: "STRING_VALUE", + * }; + * const command = new UpdateLocationFsxOpenZfsCommand(input); + * const response = await client.send(command); + * // {}; + * + * ``` + * + * @param UpdateLocationFsxOpenZfsCommandInput - {@link UpdateLocationFsxOpenZfsCommandInput} + * @returns {@link UpdateLocationFsxOpenZfsCommandOutput} + * @see {@link UpdateLocationFsxOpenZfsCommandInput} for command's `input` shape. + * @see {@link UpdateLocationFsxOpenZfsCommandOutput} 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 class UpdateLocationFsxOpenZfsCommand extends $Command + .classBuilder< + UpdateLocationFsxOpenZfsCommandInput, + UpdateLocationFsxOpenZfsCommandOutput, + DataSyncClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: DataSyncClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("FmrsService", "UpdateLocationFsxOpenZfs", {}) + .n("DataSyncClient", "UpdateLocationFsxOpenZfsCommand") + .f(UpdateLocationFsxOpenZfsRequestFilterSensitiveLog, void 0) + .ser(se_UpdateLocationFsxOpenZfsCommand) + .de(de_UpdateLocationFsxOpenZfsCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: UpdateLocationFsxOpenZfsRequest; + output: {}; + }; + sdk: { + input: UpdateLocationFsxOpenZfsCommandInput; + output: UpdateLocationFsxOpenZfsCommandOutput; + }; + }; +} diff --git a/clients/client-datasync/src/commands/UpdateLocationFsxWindowsCommand.ts b/clients/client-datasync/src/commands/UpdateLocationFsxWindowsCommand.ts new file mode 100644 index 0000000000000..ed88fa9f9f327 --- /dev/null +++ b/clients/client-datasync/src/commands/UpdateLocationFsxWindowsCommand.ts @@ -0,0 +1,106 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { DataSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataSyncClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { + UpdateLocationFsxWindowsRequest, + UpdateLocationFsxWindowsRequestFilterSensitiveLog, + UpdateLocationFsxWindowsResponse, +} from "../models/models_0"; +import { de_UpdateLocationFsxWindowsCommand, se_UpdateLocationFsxWindowsCommand } from "../protocols/Aws_json1_1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link UpdateLocationFsxWindowsCommand}. + */ +export interface UpdateLocationFsxWindowsCommandInput extends UpdateLocationFsxWindowsRequest {} +/** + * @public + * + * The output of {@link UpdateLocationFsxWindowsCommand}. + */ +export interface UpdateLocationFsxWindowsCommandOutput extends UpdateLocationFsxWindowsResponse, __MetadataBearer {} + +/** + *

Modifies the following configuration parameters of the Amazon FSx for Windows File Server transfer location that you're using with DataSync.

+ *

For more information, see Configuring DataSync transfers with FSx for Windows File Server.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { DataSyncClient, UpdateLocationFsxWindowsCommand } from "@aws-sdk/client-datasync"; // ES Modules import + * // const { DataSyncClient, UpdateLocationFsxWindowsCommand } = require("@aws-sdk/client-datasync"); // CommonJS import + * const client = new DataSyncClient(config); + * const input = { // UpdateLocationFsxWindowsRequest + * LocationArn: "STRING_VALUE", // required + * Subdirectory: "STRING_VALUE", + * Domain: "STRING_VALUE", + * User: "STRING_VALUE", + * Password: "STRING_VALUE", + * }; + * const command = new UpdateLocationFsxWindowsCommand(input); + * const response = await client.send(command); + * // {}; + * + * ``` + * + * @param UpdateLocationFsxWindowsCommandInput - {@link UpdateLocationFsxWindowsCommandInput} + * @returns {@link UpdateLocationFsxWindowsCommandOutput} + * @see {@link UpdateLocationFsxWindowsCommandInput} for command's `input` shape. + * @see {@link UpdateLocationFsxWindowsCommandOutput} 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 class UpdateLocationFsxWindowsCommand extends $Command + .classBuilder< + UpdateLocationFsxWindowsCommandInput, + UpdateLocationFsxWindowsCommandOutput, + DataSyncClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: DataSyncClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("FmrsService", "UpdateLocationFsxWindows", {}) + .n("DataSyncClient", "UpdateLocationFsxWindowsCommand") + .f(UpdateLocationFsxWindowsRequestFilterSensitiveLog, void 0) + .ser(se_UpdateLocationFsxWindowsCommand) + .de(de_UpdateLocationFsxWindowsCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: UpdateLocationFsxWindowsRequest; + output: {}; + }; + sdk: { + input: UpdateLocationFsxWindowsCommandInput; + output: UpdateLocationFsxWindowsCommandOutput; + }; + }; +} diff --git a/clients/client-datasync/src/commands/UpdateLocationHdfsCommand.ts b/clients/client-datasync/src/commands/UpdateLocationHdfsCommand.ts index 99dd3c191a3f3..c0754f93c56fd 100644 --- a/clients/client-datasync/src/commands/UpdateLocationHdfsCommand.ts +++ b/clients/client-datasync/src/commands/UpdateLocationHdfsCommand.ts @@ -28,8 +28,9 @@ export interface UpdateLocationHdfsCommandInput extends UpdateLocationHdfsReques export interface UpdateLocationHdfsCommandOutput extends UpdateLocationHdfsResponse, __MetadataBearer {} /** - *

Updates some parameters of a previously created location for a Hadoop Distributed File - * System cluster.

+ *

Modifies the following configuration parameters of the Hadoop Distributed File + * System (HDFS) transfer location that you're using with DataSync.

+ *

For more information, see Configuring DataSync transfers with an HDFS cluster.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-datasync/src/commands/UpdateLocationNfsCommand.ts b/clients/client-datasync/src/commands/UpdateLocationNfsCommand.ts index f8a2c087bdf57..6ca1aed96b39d 100644 --- a/clients/client-datasync/src/commands/UpdateLocationNfsCommand.ts +++ b/clients/client-datasync/src/commands/UpdateLocationNfsCommand.ts @@ -28,9 +28,8 @@ export interface UpdateLocationNfsCommandInput extends UpdateLocationNfsRequest export interface UpdateLocationNfsCommandOutput extends UpdateLocationNfsResponse, __MetadataBearer {} /** - *

Modifies some configurations of the Network File System (NFS) transfer location that - * you're using with DataSync.

- *

For more information, see Configuring transfers to or from an + *

Modifies the following configuration parameters of the Network File System (NFS) transfer location that you're using with DataSync.

+ *

For more information, see Configuring transfers with an * NFS file server.

* @example * Use a bare-bones client and the command you need to make an API call. diff --git a/clients/client-datasync/src/commands/UpdateLocationObjectStorageCommand.ts b/clients/client-datasync/src/commands/UpdateLocationObjectStorageCommand.ts index 79ac8272b8299..5a80bab31bfe3 100644 --- a/clients/client-datasync/src/commands/UpdateLocationObjectStorageCommand.ts +++ b/clients/client-datasync/src/commands/UpdateLocationObjectStorageCommand.ts @@ -34,8 +34,8 @@ export interface UpdateLocationObjectStorageCommandOutput __MetadataBearer {} /** - *

Updates some parameters of an existing DataSync location for an object - * storage system.

+ *

Modifies the following configuration parameters of the object storage transfer location that you're using with DataSync.

+ *

For more information, see Configuring DataSync transfers with an object storage system.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-datasync/src/commands/UpdateLocationS3Command.ts b/clients/client-datasync/src/commands/UpdateLocationS3Command.ts new file mode 100644 index 0000000000000..95a4896945a16 --- /dev/null +++ b/clients/client-datasync/src/commands/UpdateLocationS3Command.ts @@ -0,0 +1,118 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { DataSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataSyncClient"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { UpdateLocationS3Request, UpdateLocationS3Response } from "../models/models_0"; +import { de_UpdateLocationS3Command, se_UpdateLocationS3Command } from "../protocols/Aws_json1_1"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link UpdateLocationS3Command}. + */ +export interface UpdateLocationS3CommandInput extends UpdateLocationS3Request {} +/** + * @public + * + * The output of {@link UpdateLocationS3Command}. + */ +export interface UpdateLocationS3CommandOutput extends UpdateLocationS3Response, __MetadataBearer {} + +/** + *

Modifies the following configuration parameters of the Amazon S3 transfer location that you're using with DataSync.

+ * + *

Before you begin, make sure that you read the following topics:

+ * + *
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { DataSyncClient, UpdateLocationS3Command } from "@aws-sdk/client-datasync"; // ES Modules import + * // const { DataSyncClient, UpdateLocationS3Command } = require("@aws-sdk/client-datasync"); // CommonJS import + * const client = new DataSyncClient(config); + * const input = { // UpdateLocationS3Request + * LocationArn: "STRING_VALUE", // required + * Subdirectory: "STRING_VALUE", + * S3StorageClass: "STANDARD" || "STANDARD_IA" || "ONEZONE_IA" || "INTELLIGENT_TIERING" || "GLACIER" || "DEEP_ARCHIVE" || "OUTPOSTS" || "GLACIER_INSTANT_RETRIEVAL", + * S3Config: { // S3Config + * BucketAccessRoleArn: "STRING_VALUE", // required + * }, + * }; + * const command = new UpdateLocationS3Command(input); + * const response = await client.send(command); + * // {}; + * + * ``` + * + * @param UpdateLocationS3CommandInput - {@link UpdateLocationS3CommandInput} + * @returns {@link UpdateLocationS3CommandOutput} + * @see {@link UpdateLocationS3CommandInput} for command's `input` shape. + * @see {@link UpdateLocationS3CommandOutput} 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 class UpdateLocationS3Command extends $Command + .classBuilder< + UpdateLocationS3CommandInput, + UpdateLocationS3CommandOutput, + DataSyncClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: DataSyncClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("FmrsService", "UpdateLocationS3", {}) + .n("DataSyncClient", "UpdateLocationS3Command") + .f(void 0, void 0) + .ser(se_UpdateLocationS3Command) + .de(de_UpdateLocationS3Command) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: UpdateLocationS3Request; + output: {}; + }; + sdk: { + input: UpdateLocationS3CommandInput; + output: UpdateLocationS3CommandOutput; + }; + }; +} diff --git a/clients/client-datasync/src/commands/UpdateLocationSmbCommand.ts b/clients/client-datasync/src/commands/UpdateLocationSmbCommand.ts index 87fe8e85d7f58..d58934ceb05ac 100644 --- a/clients/client-datasync/src/commands/UpdateLocationSmbCommand.ts +++ b/clients/client-datasync/src/commands/UpdateLocationSmbCommand.ts @@ -32,8 +32,9 @@ export interface UpdateLocationSmbCommandInput extends UpdateLocationSmbRequest export interface UpdateLocationSmbCommandOutput extends UpdateLocationSmbResponse, __MetadataBearer {} /** - *

Updates some of the parameters of a Server Message Block - * (SMB) file server location that you can use for DataSync transfers.

+ *

Modifies the following configuration parameters of the Server Message Block + * (SMB) transfer location that you're using with DataSync.

+ *

For more information, see Configuring DataSync transfers with an SMB file server.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-datasync/src/commands/index.ts b/clients/client-datasync/src/commands/index.ts index 689ca0da5d688..182a0d4e61600 100644 --- a/clients/client-datasync/src/commands/index.ts +++ b/clients/client-datasync/src/commands/index.ts @@ -52,9 +52,15 @@ export * from "./UntagResourceCommand"; export * from "./UpdateAgentCommand"; export * from "./UpdateDiscoveryJobCommand"; export * from "./UpdateLocationAzureBlobCommand"; +export * from "./UpdateLocationEfsCommand"; +export * from "./UpdateLocationFsxLustreCommand"; +export * from "./UpdateLocationFsxOntapCommand"; +export * from "./UpdateLocationFsxOpenZfsCommand"; +export * from "./UpdateLocationFsxWindowsCommand"; export * from "./UpdateLocationHdfsCommand"; export * from "./UpdateLocationNfsCommand"; export * from "./UpdateLocationObjectStorageCommand"; +export * from "./UpdateLocationS3Command"; export * from "./UpdateLocationSmbCommand"; export * from "./UpdateStorageSystemCommand"; export * from "./UpdateTaskCommand"; diff --git a/clients/client-datasync/src/models/models_0.ts b/clients/client-datasync/src/models/models_0.ts index d815f0ab8e58a..b2f6a3e408481 100644 --- a/clients/client-datasync/src/models/models_0.ts +++ b/clients/client-datasync/src/models/models_0.ts @@ -583,8 +583,7 @@ export type EfsInTransitEncryption = (typeof EfsInTransitEncryption)[keyof typeo */ export interface CreateLocationEfsRequest { /** - *

Specifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data (depending on if this is a source or destination location) - * on your file system.

+ *

Specifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data on your file system (depending on if this is a source or destination location).

*

By default, DataSync uses the root directory (or access point if you provide one by using * AccessPointArn). You can also include subdirectories using forward slashes (for * example, /path/to/folder).

@@ -657,30 +656,32 @@ export interface CreateLocationEfsResponse { */ export interface CreateLocationFsxLustreRequest { /** - *

The Amazon Resource Name (ARN) for the FSx for Lustre file system.

+ *

Specifies the Amazon Resource Name (ARN) of the FSx for Lustre file system.

* @public */ FsxFilesystemArn: string | undefined; /** - *

The Amazon Resource Names (ARNs) of the security groups that are used to configure the + *

Specifies the Amazon Resource Names (ARNs) of up to five security groups that provide access to your * FSx for Lustre file system.

+ *

The security groups must be able to access the file system's ports. The file system must + * also allow access from the security groups. For information about file system access, see the + * + * Amazon FSx for Lustre User Guide + * .

* @public */ SecurityGroupArns: string[] | undefined; /** - *

A subdirectory in the location's path. This subdirectory in the FSx for Lustre - * file system is used to read data from the FSx for Lustre source location or write - * data to the FSx for Lustre destination.

+ *

Specifies a mount path for your FSx for Lustre file system. The path can include subdirectories.

+ *

When the location is used as a source, DataSync reads data from the mount path. When the location is used as a destination, DataSync writes data to the mount path. If you don't include this parameter, DataSync uses the file system's root directory (/).

* @public */ Subdirectory?: string | undefined; /** - *

The key-value pair that represents a tag that you want to add to the resource. The value - * can be an empty string. This value helps you manage, filter, and search for your resources. We - * recommend that you create a name tag for your location.

+ *

Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.

* @public */ Tags?: TagListEntry[] | undefined; @@ -691,8 +692,8 @@ export interface CreateLocationFsxLustreRequest { */ export interface CreateLocationFsxLustreResponse { /** - *

The Amazon Resource Name (ARN) of the FSx for Lustre file system location that's - * created.

+ *

The Amazon Resource Name (ARN) of the FSx for Lustre file system location that + * you created.

* @public */ LocationArn?: string | undefined; @@ -755,8 +756,8 @@ export interface NfsMountOptions { /** *

Specifies the Network File System (NFS) protocol configuration that DataSync - * uses to access your Amazon FSx for OpenZFS or Amazon FSx for NetApp ONTAP file - * system.

+ * uses to access your FSx for OpenZFS file system or FSx for ONTAP file + * system's storage virtual machine (SVM).

* @public */ export interface FsxProtocolNfs { @@ -832,16 +833,16 @@ export interface SmbMountOptions { } /** - *

Specifies the Server Message Block (SMB) protocol configuration that DataSync uses to access your Amazon FSx for NetApp ONTAP file system. For more information, see - * Accessing FSx for ONTAP file systems.

+ *

Specifies the Server Message Block (SMB) protocol configuration that DataSync uses to access your Amazon FSx for NetApp ONTAP file system's storage virtual machine (SVM). For more information, see + * Providing DataSync access to FSx for ONTAP file systems.

* @public */ export interface FsxProtocolSmb { /** - *

Specifies the fully qualified domain name (FQDN) of the Microsoft Active Directory that - * your storage virtual machine (SVM) belongs to.

+ *

Specifies the name of the Windows domain that your storage virtual machine (SVM) belongs to.

*

If you have multiple domains in your environment, configuring this setting makes sure that * DataSync connects to the right SVM.

+ *

If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right SVM.

* @public */ Domain?: string | undefined; @@ -930,7 +931,7 @@ export interface CreateLocationFsxOntapRequest { StorageVirtualMachineArn: string | undefined; /** - *

Specifies a path to the file share in the SVM where you'll copy your data.

+ *

Specifies a path to the file share in the SVM where you want to transfer data to or from.

*

You can specify a junction path (also known as a mount point), qtree path (for NFS file * shares), or share name (for SMB file shares). For example, your mount path might be * /vol1, /vol1/tree1, or /share1.

@@ -1069,7 +1070,7 @@ export interface CreateLocationFsxWindowsRequest { User: string | undefined; /** - *

Specifies the name of the Microsoft Active Directory domain that the FSx for Windows File Server file system belongs to.

+ *

Specifies the name of the Windows domain that the FSx for Windows File Server file system belongs to.

*

If you have multiple Active Directory domains in your environment, configuring this * parameter makes sure that DataSync connects to the right file system.

* @public @@ -1515,8 +1516,7 @@ export interface CreateLocationObjectStorageResponse { /** *

Specifies the Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that DataSync uses to access your S3 bucket.

- *

For more information, see Accessing - * S3 buckets.

+ *

For more information, see Providing DataSync access to S3 buckets.

* @public */ export interface S3Config { @@ -1612,8 +1612,7 @@ export interface CreateLocationS3Request { /** *

Specifies the Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that DataSync uses to access your S3 bucket.

- *

For more information, see Accessing - * S3 buckets.

+ *

For more information, see Providing DataSync access to S3 buckets.

* @public */ S3Config: S3Config | undefined; @@ -3661,8 +3660,7 @@ export interface DescribeLocationS3Response { /** *

Specifies the Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that DataSync uses to access your S3 bucket.

- *

For more information, see Accessing - * S3 buckets.

+ *

For more information, see Providing DataSync access to S3 buckets.

* @public */ S3Config?: S3Config | undefined; @@ -6193,6 +6191,247 @@ export interface UpdateLocationAzureBlobRequest { */ export interface UpdateLocationAzureBlobResponse {} +/** + * @public + */ +export interface UpdateLocationEfsRequest { + /** + *

Specifies the Amazon Resource Name (ARN) of the Amazon EFS transfer location that you're updating.

+ * @public + */ + LocationArn: string | undefined; + + /** + *

Specifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data on your file system (depending on if this is a source or destination location).

+ *

By default, DataSync uses the root directory (or access point if you provide one by using + * AccessPointArn). You can also include subdirectories using forward slashes (for + * example, /path/to/folder).

+ * @public + */ + Subdirectory?: string | undefined; + + /** + *

Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses + * to mount your Amazon EFS file system.

+ *

For more information, see Accessing restricted Amazon EFS file systems.

+ * @public + */ + AccessPointArn?: string | undefined; + + /** + *

Specifies an Identity and Access Management (IAM) role that allows DataSync to access your Amazon EFS file system.

+ *

For information on creating this role, see Creating a DataSync IAM role for Amazon EFS file system access.

+ * @public + */ + FileSystemAccessRoleArn?: string | undefined; + + /** + *

Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 + * encryption when it transfers data to or from your Amazon EFS file system.

+ *

If you specify an access point using AccessPointArn or an IAM + * role using FileSystemAccessRoleArn, you must set this parameter to + * TLS1_2.

+ * @public + */ + InTransitEncryption?: EfsInTransitEncryption | undefined; +} + +/** + * @public + */ +export interface UpdateLocationEfsResponse {} + +/** + * @public + */ +export interface UpdateLocationFsxLustreRequest { + /** + *

Specifies the Amazon Resource Name (ARN) of the FSx for Lustre transfer location that you're updating.

+ * @public + */ + LocationArn: string | undefined; + + /** + *

Specifies a mount path for your FSx for Lustre file system. The path can include subdirectories.

+ *

When the location is used as a source, DataSync reads data from the mount path. When the location is used as a destination, DataSync writes data to the mount path. If you don't include this parameter, DataSync uses the file system's root directory (/).

+ * @public + */ + Subdirectory?: string | undefined; +} + +/** + * @public + */ +export interface UpdateLocationFsxLustreResponse {} + +/** + *

Specifies the Server Message Block (SMB) protocol configuration that DataSync uses to access your Amazon FSx for NetApp ONTAP file system's storage virtual machine (SVM). For more information, see + * Providing DataSync access to FSx for ONTAP file systems.

+ * @public + */ +export interface FsxUpdateProtocolSmb { + /** + *

Specifies the name of the Windows domain that your storage virtual machine (SVM) belongs to.

+ *

If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right SVM.

+ * @public + */ + Domain?: string | undefined; + + /** + *

Specifies the version of the Server Message Block (SMB) protocol that DataSync uses to access an SMB file server.

+ * @public + */ + MountOptions?: SmbMountOptions | undefined; + + /** + *

Specifies the password of a user who has permission to access your SVM.

+ * @public + */ + Password?: string | undefined; + + /** + *

Specifies a user that can mount and access the files, folders, and metadata in your SVM.

+ *

For information about choosing a user with the right level of access for your transfer, see Using + * the SMB protocol.

+ * @public + */ + User?: string | undefined; +} + +/** + *

Specifies the data transfer protocol that DataSync uses to access your + * Amazon FSx file system.

+ * + *

You can't update the Network File System (NFS) protocol configuration for FSx for ONTAP locations. DataSync currently only supports NFS version 3 with this location type.

+ *
+ * @public + */ +export interface FsxUpdateProtocol { + /** + *

Specifies the Network File System (NFS) protocol configuration that DataSync + * uses to access your FSx for OpenZFS file system or FSx for ONTAP file + * system's storage virtual machine (SVM).

+ * @public + */ + NFS?: FsxProtocolNfs | undefined; + + /** + *

Specifies the Server Message Block (SMB) protocol configuration that DataSync + * uses to access your FSx for ONTAP file system's storage virtual machine (SVM).

+ * @public + */ + SMB?: FsxUpdateProtocolSmb | undefined; +} + +/** + * @public + */ +export interface UpdateLocationFsxOntapRequest { + /** + *

Specifies the Amazon Resource Name (ARN) of the FSx for ONTAP transfer location that you're updating.

+ * @public + */ + LocationArn: string | undefined; + + /** + *

Specifies the data transfer protocol that DataSync uses to access your Amazon FSx file system.

+ * @public + */ + Protocol?: FsxUpdateProtocol | undefined; + + /** + *

Specifies a path to the file share in the storage virtual machine (SVM) where you want to transfer data to or from.

+ *

You can specify a junction path (also known as a mount point), qtree path (for NFS file + * shares), or share name (for SMB file shares). For example, your mount path might be + * /vol1, /vol1/tree1, or /share1.

+ * + *

Don't specify a junction path in the SVM's root volume. For more information, see Managing FSx for ONTAP storage virtual machines in the Amazon FSx for NetApp ONTAP User Guide.

+ *
+ * @public + */ + Subdirectory?: string | undefined; +} + +/** + * @public + */ +export interface UpdateLocationFsxOntapResponse {} + +/** + * @public + */ +export interface UpdateLocationFsxOpenZfsRequest { + /** + *

Specifies the Amazon Resource Name (ARN) of the FSx for OpenZFS transfer location that you're updating.

+ * @public + */ + LocationArn: string | undefined; + + /** + *

Specifies the data transfer protocol that DataSync uses to access your + * Amazon FSx file system.

+ * @public + */ + Protocol?: FsxProtocol | undefined; + + /** + *

Specifies a subdirectory in the location's path that must begin with /fsx. DataSync uses this subdirectory to read or write data (depending on whether the file + * system is a source or destination location).

+ * @public + */ + Subdirectory?: string | undefined; +} + +/** + * @public + */ +export interface UpdateLocationFsxOpenZfsResponse {} + +/** + * @public + */ +export interface UpdateLocationFsxWindowsRequest { + /** + *

Specifies the ARN of the FSx for Windows File Server transfer location that you're updating.

+ * @public + */ + LocationArn: string | undefined; + + /** + *

Specifies a mount path for your file system using forward slashes. DataSync uses this subdirectory to read or write data (depending on whether the file + * system is a source or destination location).

+ * @public + */ + Subdirectory?: string | undefined; + + /** + *

Specifies the name of the Windows domain that your FSx for Windows File Server file system belongs to.

+ *

If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right file system.

+ * @public + */ + Domain?: string | undefined; + + /** + *

Specifies the user with the permissions to mount and access the files, folders, and file + * metadata in your FSx for Windows File Server file system.

+ *

For information about choosing a user with the right level of access for your transfer, see required permissions for FSx for Windows File Server locations.

+ * @public + */ + User?: string | undefined; + + /** + *

Specifies the password of the user with the permissions to mount and access the files, + * folders, and file metadata in your FSx for Windows File Server file system.

+ * @public + */ + Password?: string | undefined; +} + +/** + * @public + */ +export interface UpdateLocationFsxWindowsResponse {} + /** * @public */ @@ -6419,6 +6658,75 @@ export interface UpdateLocationObjectStorageRequest { */ export interface UpdateLocationObjectStorageResponse {} +/** + * @public + */ +export interface UpdateLocationS3Request { + /** + *

Specifies the Amazon Resource Name (ARN) of the Amazon S3 transfer location that you're updating.

+ * @public + */ + LocationArn: string | undefined; + + /** + *

Specifies a prefix in the S3 bucket that DataSync reads from or writes to + * (depending on whether the bucket is a source or destination location).

+ * + *

DataSync can't transfer objects with a prefix that begins with a slash + * (/) or includes //, /./, or + * /../ patterns. For example:

+ *
    + *
  • + *

    + * /photos + *

    + *
  • + *
  • + *

    + * photos//2006/January + *

    + *
  • + *
  • + *

    + * photos/./2006/February + *

    + *
  • + *
  • + *

    + * photos/../2006/March + *

    + *
  • + *
+ *
+ * @public + */ + Subdirectory?: string | undefined; + + /** + *

Specifies the storage class that you want your objects to use when Amazon S3 is a + * transfer destination.

+ *

For buckets in Amazon Web Services Regions, the storage class defaults to + * STANDARD. For buckets on Outposts, the storage class defaults to + * OUTPOSTS.

+ *

For more information, see Storage class + * considerations with Amazon S3 transfers.

+ * @public + */ + S3StorageClass?: S3StorageClass | undefined; + + /** + *

Specifies the Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that DataSync uses to access your S3 bucket.

+ *

For more information, see Providing DataSync access to S3 buckets.

+ * @public + */ + S3Config?: S3Config | undefined; +} + +/** + * @public + */ +export interface UpdateLocationS3Response {} + /** * @public */ @@ -6760,6 +7068,46 @@ export const UpdateLocationAzureBlobRequestFilterSensitiveLog = (obj: UpdateLoca ...(obj.SasConfiguration && { SasConfiguration: AzureBlobSasConfigurationFilterSensitiveLog(obj.SasConfiguration) }), }); +/** + * @internal + */ +export const FsxUpdateProtocolSmbFilterSensitiveLog = (obj: FsxUpdateProtocolSmb): any => ({ + ...obj, + ...(obj.Password && { Password: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const FsxUpdateProtocolFilterSensitiveLog = (obj: FsxUpdateProtocol): any => ({ + ...obj, + ...(obj.SMB && { SMB: FsxUpdateProtocolSmbFilterSensitiveLog(obj.SMB) }), +}); + +/** + * @internal + */ +export const UpdateLocationFsxOntapRequestFilterSensitiveLog = (obj: UpdateLocationFsxOntapRequest): any => ({ + ...obj, + ...(obj.Protocol && { Protocol: FsxUpdateProtocolFilterSensitiveLog(obj.Protocol) }), +}); + +/** + * @internal + */ +export const UpdateLocationFsxOpenZfsRequestFilterSensitiveLog = (obj: UpdateLocationFsxOpenZfsRequest): any => ({ + ...obj, + ...(obj.Protocol && { Protocol: FsxProtocolFilterSensitiveLog(obj.Protocol) }), +}); + +/** + * @internal + */ +export const UpdateLocationFsxWindowsRequestFilterSensitiveLog = (obj: UpdateLocationFsxWindowsRequest): any => ({ + ...obj, + ...(obj.Password && { Password: SENSITIVE_STRING }), +}); + /** * @internal */ diff --git a/clients/client-datasync/src/protocols/Aws_json1_1.ts b/clients/client-datasync/src/protocols/Aws_json1_1.ts index c9bbc82bdf5b4..4447c086bd2c7 100644 --- a/clients/client-datasync/src/protocols/Aws_json1_1.ts +++ b/clients/client-datasync/src/protocols/Aws_json1_1.ts @@ -159,12 +159,30 @@ import { UpdateLocationAzureBlobCommandInput, UpdateLocationAzureBlobCommandOutput, } from "../commands/UpdateLocationAzureBlobCommand"; +import { UpdateLocationEfsCommandInput, UpdateLocationEfsCommandOutput } from "../commands/UpdateLocationEfsCommand"; +import { + UpdateLocationFsxLustreCommandInput, + UpdateLocationFsxLustreCommandOutput, +} from "../commands/UpdateLocationFsxLustreCommand"; +import { + UpdateLocationFsxOntapCommandInput, + UpdateLocationFsxOntapCommandOutput, +} from "../commands/UpdateLocationFsxOntapCommand"; +import { + UpdateLocationFsxOpenZfsCommandInput, + UpdateLocationFsxOpenZfsCommandOutput, +} from "../commands/UpdateLocationFsxOpenZfsCommand"; +import { + UpdateLocationFsxWindowsCommandInput, + UpdateLocationFsxWindowsCommandOutput, +} from "../commands/UpdateLocationFsxWindowsCommand"; import { UpdateLocationHdfsCommandInput, UpdateLocationHdfsCommandOutput } from "../commands/UpdateLocationHdfsCommand"; import { UpdateLocationNfsCommandInput, UpdateLocationNfsCommandOutput } from "../commands/UpdateLocationNfsCommand"; import { UpdateLocationObjectStorageCommandInput, UpdateLocationObjectStorageCommandOutput, } from "../commands/UpdateLocationObjectStorageCommand"; +import { UpdateLocationS3CommandInput, UpdateLocationS3CommandOutput } from "../commands/UpdateLocationS3Command"; import { UpdateLocationSmbCommandInput, UpdateLocationSmbCommandOutput } from "../commands/UpdateLocationSmbCommand"; import { UpdateStorageSystemCommandInput, @@ -240,6 +258,8 @@ import { FsxProtocol, FsxProtocolNfs, FsxProtocolSmb, + FsxUpdateProtocol, + FsxUpdateProtocolSmb, GenerateRecommendationsRequest, HdfsNameNode, InternalException, @@ -289,9 +309,15 @@ import { UpdateAgentRequest, UpdateDiscoveryJobRequest, UpdateLocationAzureBlobRequest, + UpdateLocationEfsRequest, + UpdateLocationFsxLustreRequest, + UpdateLocationFsxOntapRequest, + UpdateLocationFsxOpenZfsRequest, + UpdateLocationFsxWindowsRequest, UpdateLocationHdfsRequest, UpdateLocationNfsRequest, UpdateLocationObjectStorageRequest, + UpdateLocationS3Request, UpdateLocationSmbRequest, UpdateStorageSystemRequest, UpdateTaskExecutionRequest, @@ -1071,6 +1097,71 @@ export const se_UpdateLocationAzureBlobCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_1UpdateLocationEfsCommand + */ +export const se_UpdateLocationEfsCommand = async ( + input: UpdateLocationEfsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("UpdateLocationEfs"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1UpdateLocationFsxLustreCommand + */ +export const se_UpdateLocationFsxLustreCommand = async ( + input: UpdateLocationFsxLustreCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("UpdateLocationFsxLustre"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1UpdateLocationFsxOntapCommand + */ +export const se_UpdateLocationFsxOntapCommand = async ( + input: UpdateLocationFsxOntapCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("UpdateLocationFsxOntap"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1UpdateLocationFsxOpenZfsCommand + */ +export const se_UpdateLocationFsxOpenZfsCommand = async ( + input: UpdateLocationFsxOpenZfsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("UpdateLocationFsxOpenZfs"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + +/** + * serializeAws_json1_1UpdateLocationFsxWindowsCommand + */ +export const se_UpdateLocationFsxWindowsCommand = async ( + input: UpdateLocationFsxWindowsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("UpdateLocationFsxWindows"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_1UpdateLocationHdfsCommand */ @@ -1110,6 +1201,19 @@ export const se_UpdateLocationObjectStorageCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_1UpdateLocationS3Command + */ +export const se_UpdateLocationS3Command = async ( + input: UpdateLocationS3CommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("UpdateLocationS3"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_1UpdateLocationSmbCommand */ @@ -2229,6 +2333,106 @@ export const de_UpdateLocationAzureBlobCommand = async ( return response; }; +/** + * deserializeAws_json1_1UpdateLocationEfsCommand + */ +export const de_UpdateLocationEfsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: UpdateLocationEfsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1UpdateLocationFsxLustreCommand + */ +export const de_UpdateLocationFsxLustreCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: UpdateLocationFsxLustreCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1UpdateLocationFsxOntapCommand + */ +export const de_UpdateLocationFsxOntapCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: UpdateLocationFsxOntapCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1UpdateLocationFsxOpenZfsCommand + */ +export const de_UpdateLocationFsxOpenZfsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: UpdateLocationFsxOpenZfsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + +/** + * deserializeAws_json1_1UpdateLocationFsxWindowsCommand + */ +export const de_UpdateLocationFsxWindowsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: UpdateLocationFsxWindowsCommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + /** * deserializeAws_json1_1UpdateLocationHdfsCommand */ @@ -2289,6 +2493,26 @@ export const de_UpdateLocationObjectStorageCommand = async ( return response; }; +/** + * deserializeAws_json1_1UpdateLocationS3Command + */ +export const de_UpdateLocationS3Command = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode >= 300) { + return de_CommandError(output, context); + } + const data: any = await parseBody(output.body, context); + let contents: any = {}; + contents = _json(data); + const response: UpdateLocationS3CommandOutput = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return response; +}; + /** * deserializeAws_json1_1UpdateLocationSmbCommand */ @@ -2592,6 +2816,10 @@ const se_DescribeStorageSystemResourceMetricsRequest = ( // se_FsxProtocolSmb omitted. +// se_FsxUpdateProtocol omitted. + +// se_FsxUpdateProtocolSmb omitted. + // se_GenerateRecommendationsRequest omitted. // se_HdfsNameNode omitted. @@ -2692,6 +2920,16 @@ const se_StartDiscoveryJobRequest = (input: StartDiscoveryJobRequest, context: _ // se_UpdateLocationAzureBlobRequest omitted. +// se_UpdateLocationEfsRequest omitted. + +// se_UpdateLocationFsxLustreRequest omitted. + +// se_UpdateLocationFsxOntapRequest omitted. + +// se_UpdateLocationFsxOpenZfsRequest omitted. + +// se_UpdateLocationFsxWindowsRequest omitted. + /** * serializeAws_json1_1UpdateLocationHdfsRequest */ @@ -2734,6 +2972,8 @@ const se_UpdateLocationObjectStorageRequest = ( }); }; +// se_UpdateLocationS3Request omitted. + // se_UpdateLocationSmbRequest omitted. // se_UpdateStorageSystemRequest omitted. @@ -3455,12 +3695,24 @@ const de_Throughput = (output: any, context: __SerdeContext): Throughput => { // de_UpdateLocationAzureBlobResponse omitted. +// de_UpdateLocationEfsResponse omitted. + +// de_UpdateLocationFsxLustreResponse omitted. + +// de_UpdateLocationFsxOntapResponse omitted. + +// de_UpdateLocationFsxOpenZfsResponse omitted. + +// de_UpdateLocationFsxWindowsResponse omitted. + // de_UpdateLocationHdfsResponse omitted. // de_UpdateLocationNfsResponse omitted. // de_UpdateLocationObjectStorageResponse omitted. +// de_UpdateLocationS3Response omitted. + // de_UpdateLocationSmbResponse omitted. // de_UpdateStorageSystemResponse omitted. diff --git a/codegen/sdk-codegen/aws-models/datasync.json b/codegen/sdk-codegen/aws-models/datasync.json index a55139fcf0124..25991c3b65ec3 100644 --- a/codegen/sdk-codegen/aws-models/datasync.json +++ b/codegen/sdk-codegen/aws-models/datasync.json @@ -626,7 +626,7 @@ "Subdirectory": { "target": "com.amazonaws.datasync#EfsSubdirectory", "traits": { - "smithy.api#documentation": "

Specifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data (depending on if this is a source or destination location)\n on your file system.

\n

By default, DataSync uses the root directory (or access point if you provide one by using\n AccessPointArn). You can also include subdirectories using forward slashes (for\n example, /path/to/folder).

" + "smithy.api#documentation": "

Specifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data on your file system (depending on if this is a source or destination location).

\n

By default, DataSync uses the root directory (or access point if you provide one by using\n AccessPointArn). You can also include subdirectories using forward slashes (for\n example, /path/to/folder).

" } }, "EfsFilesystemArn": { @@ -714,27 +714,27 @@ "FsxFilesystemArn": { "target": "com.amazonaws.datasync#FsxFilesystemArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) for the FSx for Lustre file system.

", + "smithy.api#documentation": "

Specifies the Amazon Resource Name (ARN) of the FSx for Lustre file system.

", "smithy.api#required": {} } }, "SecurityGroupArns": { "target": "com.amazonaws.datasync#Ec2SecurityGroupArnList", "traits": { - "smithy.api#documentation": "

The Amazon Resource Names (ARNs) of the security groups that are used to configure the\n FSx for Lustre file system.

", + "smithy.api#documentation": "

Specifies the Amazon Resource Names (ARNs) of up to five security groups that provide access to your\n FSx for Lustre file system.

\n

The security groups must be able to access the file system's ports. The file system must\n also allow access from the security groups. For information about file system access, see the\n \n Amazon FSx for Lustre User Guide\n .

", "smithy.api#required": {} } }, "Subdirectory": { "target": "com.amazonaws.datasync#FsxLustreSubdirectory", "traits": { - "smithy.api#documentation": "

A subdirectory in the location's path. This subdirectory in the FSx for Lustre\n file system is used to read data from the FSx for Lustre source location or write\n data to the FSx for Lustre destination.

" + "smithy.api#documentation": "

Specifies a mount path for your FSx for Lustre file system. The path can include subdirectories.

\n

When the location is used as a source, DataSync reads data from the mount path. When the location is used as a destination, DataSync writes data to the mount path. If you don't include this parameter, DataSync uses the file system's root directory (/).

" } }, "Tags": { "target": "com.amazonaws.datasync#InputTagList", "traits": { - "smithy.api#documentation": "

The key-value pair that represents a tag that you want to add to the resource. The value\n can be an empty string. This value helps you manage, filter, and search for your resources. We\n recommend that you create a name tag for your location.

" + "smithy.api#documentation": "

Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.

" } } }, @@ -748,7 +748,7 @@ "LocationArn": { "target": "com.amazonaws.datasync#LocationArn", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the FSx for Lustre file system location that's\n created.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the FSx for Lustre file system location that\n you created.

" } } }, @@ -802,7 +802,7 @@ "Subdirectory": { "target": "com.amazonaws.datasync#FsxOntapSubdirectory", "traits": { - "smithy.api#documentation": "

Specifies a path to the file share in the SVM where you'll copy your data.

\n

You can specify a junction path (also known as a mount point), qtree path (for NFS file\n shares), or share name (for SMB file shares). For example, your mount path might be\n /vol1, /vol1/tree1, or /share1.

\n \n

Don't specify a junction path in the SVM's root volume. For more information, see Managing FSx for ONTAP storage virtual machines in the Amazon FSx for NetApp ONTAP User Guide.

\n
" + "smithy.api#documentation": "

Specifies a path to the file share in the SVM where you want to transfer data to or from.

\n

You can specify a junction path (also known as a mount point), qtree path (for NFS file\n shares), or share name (for SMB file shares). For example, your mount path might be\n /vol1, /vol1/tree1, or /share1.

\n \n

Don't specify a junction path in the SVM's root volume. For more information, see Managing FSx for ONTAP storage virtual machines in the Amazon FSx for NetApp ONTAP User Guide.

\n
" } }, "Tags": { @@ -964,7 +964,7 @@ "Domain": { "target": "com.amazonaws.datasync#SmbDomain", "traits": { - "smithy.api#documentation": "

Specifies the name of the Microsoft Active Directory domain that the FSx for Windows File Server file system belongs to.

\n

If you have multiple Active Directory domains in your environment, configuring this\n parameter makes sure that DataSync connects to the right file system.

" + "smithy.api#documentation": "

Specifies the name of the Windows domain that the FSx for Windows File Server file system belongs to.

\n

If you have multiple Active Directory domains in your environment, configuring this\n parameter makes sure that DataSync connects to the right file system.

" } }, "Password": { @@ -1133,7 +1133,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a transfer location for a Network File System (NFS) file\n server. DataSync can use this location as a source or destination for\n transferring data.

\n

Before you begin, make sure that you understand how DataSync\n accesses\n NFS file servers.

\n \n

If you're copying data to or from an Snowcone device, you can also use\n CreateLocationNfs to create your transfer location. For more information, see\n Configuring transfers with Snowcone.

\n
" + "smithy.api#documentation": "

Creates a transfer location for a Network File System (NFS) file\n server. DataSync can use this location as a source or destination for\n transferring data.

\n

Before you begin, make sure that you understand how DataSync\n accesses\n NFS file servers.

" } }, "com.amazonaws.datasync#CreateLocationNfsRequest": { @@ -4112,6 +4112,21 @@ { "target": "com.amazonaws.datasync#UpdateLocationAzureBlob" }, + { + "target": "com.amazonaws.datasync#UpdateLocationEfs" + }, + { + "target": "com.amazonaws.datasync#UpdateLocationFsxLustre" + }, + { + "target": "com.amazonaws.datasync#UpdateLocationFsxOntap" + }, + { + "target": "com.amazonaws.datasync#UpdateLocationFsxOpenZfs" + }, + { + "target": "com.amazonaws.datasync#UpdateLocationFsxWindows" + }, { "target": "com.amazonaws.datasync#UpdateLocationHdfs" }, @@ -4121,6 +4136,9 @@ { "target": "com.amazonaws.datasync#UpdateLocationObjectStorage" }, + { + "target": "com.amazonaws.datasync#UpdateLocationS3" + }, { "target": "com.amazonaws.datasync#UpdateLocationSmb" }, @@ -5197,7 +5215,7 @@ } }, "traits": { - "smithy.api#documentation": "

Specifies the Network File System (NFS) protocol configuration that DataSync\n uses to access your Amazon FSx for OpenZFS or Amazon FSx for NetApp ONTAP file\n system.

" + "smithy.api#documentation": "

Specifies the Network File System (NFS) protocol configuration that DataSync\n uses to access your FSx for OpenZFS file system or FSx for ONTAP file\n system's storage virtual machine (SVM).

" } }, "com.amazonaws.datasync#FsxProtocolSmb": { @@ -5206,7 +5224,7 @@ "Domain": { "target": "com.amazonaws.datasync#SmbDomain", "traits": { - "smithy.api#documentation": "

Specifies the fully qualified domain name (FQDN) of the Microsoft Active Directory that\n your storage virtual machine (SVM) belongs to.

\n

If you have multiple domains in your environment, configuring this setting makes sure that\n DataSync connects to the right SVM.

" + "smithy.api#documentation": "

Specifies the name of the Windows domain that your storage virtual machine (SVM) belongs to.

\n

If you have multiple domains in your environment, configuring this setting makes sure that\n DataSync connects to the right SVM.

\n

If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right SVM.

" } }, "MountOptions": { @@ -5228,7 +5246,63 @@ } }, "traits": { - "smithy.api#documentation": "

Specifies the Server Message Block (SMB) protocol configuration that DataSync uses to access your Amazon FSx for NetApp ONTAP file system. For more information, see\n Accessing FSx for ONTAP file systems.

" + "smithy.api#documentation": "

Specifies the Server Message Block (SMB) protocol configuration that DataSync uses to access your Amazon FSx for NetApp ONTAP file system's storage virtual machine (SVM). For more information, see\n Providing DataSync access to FSx for ONTAP file systems.

" + } + }, + "com.amazonaws.datasync#FsxUpdateProtocol": { + "type": "structure", + "members": { + "NFS": { + "target": "com.amazonaws.datasync#FsxProtocolNfs" + }, + "SMB": { + "target": "com.amazonaws.datasync#FsxUpdateProtocolSmb", + "traits": { + "smithy.api#documentation": "

Specifies the Server Message Block (SMB) protocol configuration that DataSync\n uses to access your FSx for ONTAP file system's storage virtual machine (SVM).

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Specifies the data transfer protocol that DataSync uses to access your\n Amazon FSx file system.

\n \n

You can't update the Network File System (NFS) protocol configuration for FSx for ONTAP locations. DataSync currently only supports NFS version 3 with this location type.

\n
" + } + }, + "com.amazonaws.datasync#FsxUpdateProtocolSmb": { + "type": "structure", + "members": { + "Domain": { + "target": "com.amazonaws.datasync#FsxUpdateSmbDomain", + "traits": { + "smithy.api#documentation": "

Specifies the name of the Windows domain that your storage virtual machine (SVM) belongs to.

\n

If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right SVM.

" + } + }, + "MountOptions": { + "target": "com.amazonaws.datasync#SmbMountOptions" + }, + "Password": { + "target": "com.amazonaws.datasync#SmbPassword", + "traits": { + "smithy.api#documentation": "

Specifies the password of a user who has permission to access your SVM.

" + } + }, + "User": { + "target": "com.amazonaws.datasync#SmbUser", + "traits": { + "smithy.api#documentation": "

Specifies a user that can mount and access the files, folders, and metadata in your SVM.

\n

For information about choosing a user with the right level of access for your transfer, see Using\n the SMB protocol.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Specifies the Server Message Block (SMB) protocol configuration that DataSync uses to access your Amazon FSx for NetApp ONTAP file system's storage virtual machine (SVM). For more information, see\n Providing DataSync access to FSx for ONTAP file systems.

" + } + }, + "com.amazonaws.datasync#FsxUpdateSmbDomain": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 253 + }, + "smithy.api#pattern": "^([A-Za-z0-9]((\\.|-+)?[A-Za-z0-9]){0,252})?$" } }, "com.amazonaws.datasync#FsxWindowsSubdirectory": { @@ -7750,7 +7824,7 @@ } }, "traits": { - "smithy.api#documentation": "

Specifies the Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that DataSync uses to access your S3 bucket.

\n

For more information, see Accessing\n S3 buckets.

" + "smithy.api#documentation": "

Specifies the Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that DataSync uses to access your S3 bucket.

\n

For more information, see Providing DataSync access to S3 buckets.

" } }, "com.amazonaws.datasync#S3ManifestConfig": { @@ -9174,7 +9248,7 @@ } ], "traits": { - "smithy.api#documentation": "

Modifies some configurations of the Microsoft Azure Blob Storage transfer location that you're using with DataSync.

" + "smithy.api#documentation": "

Modifies the following configurations of the Microsoft Azure Blob Storage transfer location that you're using with DataSync.

\n

For more information, see Configuring DataSync transfers with Azure Blob Storage.

" } }, "com.amazonaws.datasync#UpdateLocationAzureBlobRequest": { @@ -9235,6 +9309,291 @@ "smithy.api#output": {} } }, + "com.amazonaws.datasync#UpdateLocationEfs": { + "type": "operation", + "input": { + "target": "com.amazonaws.datasync#UpdateLocationEfsRequest" + }, + "output": { + "target": "com.amazonaws.datasync#UpdateLocationEfsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.datasync#InternalException" + }, + { + "target": "com.amazonaws.datasync#InvalidRequestException" + } + ], + "traits": { + "smithy.api#documentation": "

Modifies the following configuration parameters of the Amazon EFS transfer location that you're using with DataSync.

\n

For more information, see Configuring DataSync transfers with Amazon EFS.

" + } + }, + "com.amazonaws.datasync#UpdateLocationEfsRequest": { + "type": "structure", + "members": { + "LocationArn": { + "target": "com.amazonaws.datasync#LocationArn", + "traits": { + "smithy.api#documentation": "

Specifies the Amazon Resource Name (ARN) of the Amazon EFS transfer location that you're updating.

", + "smithy.api#required": {} + } + }, + "Subdirectory": { + "target": "com.amazonaws.datasync#EfsSubdirectory", + "traits": { + "smithy.api#documentation": "

Specifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data on your file system (depending on if this is a source or destination location).

\n

By default, DataSync uses the root directory (or access point if you provide one by using\n AccessPointArn). You can also include subdirectories using forward slashes (for\n example, /path/to/folder).

" + } + }, + "AccessPointArn": { + "target": "com.amazonaws.datasync#UpdatedEfsAccessPointArn", + "traits": { + "smithy.api#documentation": "

Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses\n to mount your Amazon EFS file system.

\n

For more information, see Accessing restricted Amazon EFS file systems.

" + } + }, + "FileSystemAccessRoleArn": { + "target": "com.amazonaws.datasync#UpdatedEfsIamRoleArn", + "traits": { + "smithy.api#documentation": "

Specifies an Identity and Access Management (IAM) role that allows DataSync to access your Amazon EFS file system.

\n

For information on creating this role, see Creating a DataSync IAM role for Amazon EFS file system access.

" + } + }, + "InTransitEncryption": { + "target": "com.amazonaws.datasync#EfsInTransitEncryption", + "traits": { + "smithy.api#documentation": "

Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2\n encryption when it transfers data to or from your Amazon EFS file system.

\n

If you specify an access point using AccessPointArn or an IAM\n role using FileSystemAccessRoleArn, you must set this parameter to\n TLS1_2.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.datasync#UpdateLocationEfsResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.datasync#UpdateLocationFsxLustre": { + "type": "operation", + "input": { + "target": "com.amazonaws.datasync#UpdateLocationFsxLustreRequest" + }, + "output": { + "target": "com.amazonaws.datasync#UpdateLocationFsxLustreResponse" + }, + "errors": [ + { + "target": "com.amazonaws.datasync#InternalException" + }, + { + "target": "com.amazonaws.datasync#InvalidRequestException" + } + ], + "traits": { + "smithy.api#documentation": "

Modifies the following configuration parameters of the Amazon FSx for Lustre transfer location that you're using with DataSync.

\n

For more information, see Configuring DataSync transfers with FSx for Lustre.

" + } + }, + "com.amazonaws.datasync#UpdateLocationFsxLustreRequest": { + "type": "structure", + "members": { + "LocationArn": { + "target": "com.amazonaws.datasync#LocationArn", + "traits": { + "smithy.api#documentation": "

Specifies the Amazon Resource Name (ARN) of the FSx for Lustre transfer location that you're updating.

", + "smithy.api#required": {} + } + }, + "Subdirectory": { + "target": "com.amazonaws.datasync#SmbSubdirectory", + "traits": { + "smithy.api#documentation": "

Specifies a mount path for your FSx for Lustre file system. The path can include subdirectories.

\n

When the location is used as a source, DataSync reads data from the mount path. When the location is used as a destination, DataSync writes data to the mount path. If you don't include this parameter, DataSync uses the file system's root directory (/).

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.datasync#UpdateLocationFsxLustreResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.datasync#UpdateLocationFsxOntap": { + "type": "operation", + "input": { + "target": "com.amazonaws.datasync#UpdateLocationFsxOntapRequest" + }, + "output": { + "target": "com.amazonaws.datasync#UpdateLocationFsxOntapResponse" + }, + "errors": [ + { + "target": "com.amazonaws.datasync#InternalException" + }, + { + "target": "com.amazonaws.datasync#InvalidRequestException" + } + ], + "traits": { + "smithy.api#documentation": "

Modifies the following configuration parameters of the Amazon FSx for NetApp ONTAP transfer location that you're using with DataSync.

\n

For more information, see Configuring DataSync transfers with FSx for ONTAP.

" + } + }, + "com.amazonaws.datasync#UpdateLocationFsxOntapRequest": { + "type": "structure", + "members": { + "LocationArn": { + "target": "com.amazonaws.datasync#LocationArn", + "traits": { + "smithy.api#documentation": "

Specifies the Amazon Resource Name (ARN) of the FSx for ONTAP transfer location that you're updating.

", + "smithy.api#required": {} + } + }, + "Protocol": { + "target": "com.amazonaws.datasync#FsxUpdateProtocol", + "traits": { + "smithy.api#documentation": "

Specifies the data transfer protocol that DataSync uses to access your Amazon FSx file system.

" + } + }, + "Subdirectory": { + "target": "com.amazonaws.datasync#FsxOntapSubdirectory", + "traits": { + "smithy.api#documentation": "

Specifies a path to the file share in the storage virtual machine (SVM) where you want to transfer data to or from.

\n

You can specify a junction path (also known as a mount point), qtree path (for NFS file\n shares), or share name (for SMB file shares). For example, your mount path might be\n /vol1, /vol1/tree1, or /share1.

\n \n

Don't specify a junction path in the SVM's root volume. For more information, see Managing FSx for ONTAP storage virtual machines in the Amazon FSx for NetApp ONTAP User Guide.

\n
" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.datasync#UpdateLocationFsxOntapResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.datasync#UpdateLocationFsxOpenZfs": { + "type": "operation", + "input": { + "target": "com.amazonaws.datasync#UpdateLocationFsxOpenZfsRequest" + }, + "output": { + "target": "com.amazonaws.datasync#UpdateLocationFsxOpenZfsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.datasync#InternalException" + }, + { + "target": "com.amazonaws.datasync#InvalidRequestException" + } + ], + "traits": { + "smithy.api#documentation": "

Modifies the following configuration parameters of the Amazon FSx for OpenZFS transfer location that you're using with DataSync.

\n

For more information, see Configuring DataSync transfers with FSx for OpenZFS.

\n \n

Request parameters related to SMB aren't supported with the\n UpdateLocationFsxOpenZfs operation.

\n
" + } + }, + "com.amazonaws.datasync#UpdateLocationFsxOpenZfsRequest": { + "type": "structure", + "members": { + "LocationArn": { + "target": "com.amazonaws.datasync#LocationArn", + "traits": { + "smithy.api#documentation": "

Specifies the Amazon Resource Name (ARN) of the FSx for OpenZFS transfer location that you're updating.

", + "smithy.api#required": {} + } + }, + "Protocol": { + "target": "com.amazonaws.datasync#FsxProtocol" + }, + "Subdirectory": { + "target": "com.amazonaws.datasync#SmbSubdirectory", + "traits": { + "smithy.api#documentation": "

Specifies a subdirectory in the location's path that must begin with /fsx. DataSync uses this subdirectory to read or write data (depending on whether the file\n system is a source or destination location).

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.datasync#UpdateLocationFsxOpenZfsResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.datasync#UpdateLocationFsxWindows": { + "type": "operation", + "input": { + "target": "com.amazonaws.datasync#UpdateLocationFsxWindowsRequest" + }, + "output": { + "target": "com.amazonaws.datasync#UpdateLocationFsxWindowsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.datasync#InternalException" + }, + { + "target": "com.amazonaws.datasync#InvalidRequestException" + } + ], + "traits": { + "smithy.api#documentation": "

Modifies the following configuration parameters of the Amazon FSx for Windows File Server transfer location that you're using with DataSync.

\n

For more information, see Configuring DataSync transfers with FSx for Windows File Server.

" + } + }, + "com.amazonaws.datasync#UpdateLocationFsxWindowsRequest": { + "type": "structure", + "members": { + "LocationArn": { + "target": "com.amazonaws.datasync#LocationArn", + "traits": { + "smithy.api#documentation": "

Specifies the ARN of the FSx for Windows File Server transfer location that you're updating.

", + "smithy.api#required": {} + } + }, + "Subdirectory": { + "target": "com.amazonaws.datasync#FsxWindowsSubdirectory", + "traits": { + "smithy.api#documentation": "

Specifies a mount path for your file system using forward slashes. DataSync uses this subdirectory to read or write data (depending on whether the file\n system is a source or destination location).

" + } + }, + "Domain": { + "target": "com.amazonaws.datasync#FsxUpdateSmbDomain", + "traits": { + "smithy.api#documentation": "

Specifies the name of the Windows domain that your FSx for Windows File Server file system belongs to.

\n

If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right file system.

" + } + }, + "User": { + "target": "com.amazonaws.datasync#SmbUser", + "traits": { + "smithy.api#documentation": "

Specifies the user with the permissions to mount and access the files, folders, and file\n metadata in your FSx for Windows File Server file system.

\n

For information about choosing a user with the right level of access for your transfer, see required permissions for FSx for Windows File Server locations.

" + } + }, + "Password": { + "target": "com.amazonaws.datasync#SmbPassword", + "traits": { + "smithy.api#documentation": "

Specifies the password of the user with the permissions to mount and access the files,\n folders, and file metadata in your FSx for Windows File Server file system.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.datasync#UpdateLocationFsxWindowsResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.datasync#UpdateLocationHdfs": { "type": "operation", "input": { @@ -9252,7 +9611,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates some parameters of a previously created location for a Hadoop Distributed File\n System cluster.

" + "smithy.api#documentation": "

Modifies the following configuration parameters of the Hadoop Distributed File\n System (HDFS) transfer location that you're using with DataSync.

\n

For more information, see Configuring DataSync transfers with an HDFS cluster.

" } }, "com.amazonaws.datasync#UpdateLocationHdfsRequest": { @@ -9366,7 +9725,7 @@ } ], "traits": { - "smithy.api#documentation": "

Modifies some configurations of the Network File System (NFS) transfer location that\n you're using with DataSync.

\n

For more information, see Configuring transfers to or from an\n NFS file server.

" + "smithy.api#documentation": "

Modifies the following configuration parameters of the Network File System (NFS) transfer location that you're using with DataSync.

\n

For more information, see Configuring transfers with an\n NFS file server.

" } }, "com.amazonaws.datasync#UpdateLocationNfsRequest": { @@ -9420,7 +9779,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates some parameters of an existing DataSync location for an object\n storage system.

" + "smithy.api#documentation": "

Modifies the following configuration parameters of the object storage transfer location that you're using with DataSync.

\n

For more information, see Configuring DataSync transfers with an object storage system.

" } }, "com.amazonaws.datasync#UpdateLocationObjectStorageRequest": { @@ -9487,6 +9846,63 @@ "smithy.api#output": {} } }, + "com.amazonaws.datasync#UpdateLocationS3": { + "type": "operation", + "input": { + "target": "com.amazonaws.datasync#UpdateLocationS3Request" + }, + "output": { + "target": "com.amazonaws.datasync#UpdateLocationS3Response" + }, + "errors": [ + { + "target": "com.amazonaws.datasync#InternalException" + }, + { + "target": "com.amazonaws.datasync#InvalidRequestException" + } + ], + "traits": { + "smithy.api#documentation": "

Modifies the following configuration parameters of the Amazon S3 transfer location that you're using with DataSync.

\n \n

Before you begin, make sure that you read the following topics:

\n \n
" + } + }, + "com.amazonaws.datasync#UpdateLocationS3Request": { + "type": "structure", + "members": { + "LocationArn": { + "target": "com.amazonaws.datasync#LocationArn", + "traits": { + "smithy.api#documentation": "

Specifies the Amazon Resource Name (ARN) of the Amazon S3 transfer location that you're updating.

", + "smithy.api#required": {} + } + }, + "Subdirectory": { + "target": "com.amazonaws.datasync#S3Subdirectory", + "traits": { + "smithy.api#documentation": "

Specifies a prefix in the S3 bucket that DataSync reads from or writes to\n (depending on whether the bucket is a source or destination location).

\n \n

DataSync can't transfer objects with a prefix that begins with a slash\n (/) or includes //, /./, or\n /../ patterns. For example:

\n
    \n
  • \n

    \n /photos\n

    \n
  • \n
  • \n

    \n photos//2006/January\n

    \n
  • \n
  • \n

    \n photos/./2006/February\n

    \n
  • \n
  • \n

    \n photos/../2006/March\n

    \n
  • \n
\n
" + } + }, + "S3StorageClass": { + "target": "com.amazonaws.datasync#S3StorageClass", + "traits": { + "smithy.api#documentation": "

Specifies the storage class that you want your objects to use when Amazon S3 is a\n transfer destination.

\n

For buckets in Amazon Web Services Regions, the storage class defaults to\n STANDARD. For buckets on Outposts, the storage class defaults to\n OUTPOSTS.

\n

For more information, see Storage class\n considerations with Amazon S3 transfers.

" + } + }, + "S3Config": { + "target": "com.amazonaws.datasync#S3Config" + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.datasync#UpdateLocationS3Response": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.datasync#UpdateLocationSmb": { "type": "operation", "input": { @@ -9504,7 +9920,7 @@ } ], "traits": { - "smithy.api#documentation": "

Updates some of the parameters of a Server Message Block\n (SMB) file server location that you can use for DataSync transfers.

" + "smithy.api#documentation": "

Modifies the following configuration parameters of the Server Message Block\n (SMB) transfer location that you're using with DataSync.

\n

For more information, see Configuring DataSync transfers with an SMB file server.

" } }, "com.amazonaws.datasync#UpdateLocationSmbRequest": { @@ -9773,6 +10189,26 @@ "smithy.api#output": {} } }, + "com.amazonaws.datasync#UpdatedEfsAccessPointArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 128 + }, + "smithy.api#pattern": "^(^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):elasticfilesystem:[a-z\\-0-9]+:[0-9]{12}:access-point/fsap-[0-9a-f]{8,40}$)|(^$)$" + } + }, + "com.amazonaws.datasync#UpdatedEfsIamRoleArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 2048 + }, + "smithy.api#pattern": "^(^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):iam::[0-9]{12}:role/.*$)|(^$)$" + } + }, "com.amazonaws.datasync#VerifyMode": { "type": "enum", "members": {