Skip to content

Commit

Permalink
feat(client-datasync): AWS DataSync introduces the ability to update …
Browse files Browse the repository at this point in the history
…attributes for in-cloud locations.
  • Loading branch information
awstools committed Dec 18, 2024
1 parent 2014889 commit 1c7cb38
Show file tree
Hide file tree
Showing 19 changed files with 1,979 additions and 59 deletions.
48 changes: 48 additions & 0 deletions clients/client-datasync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)

</details>
<details>
<summary>
UpdateLocationEfs
</summary>

[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/)

</details>
<details>
<summary>
UpdateLocationFsxLustre
</summary>

[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/)

</details>
<details>
<summary>
UpdateLocationFsxOntap
</summary>

[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/)

</details>
<details>
<summary>
UpdateLocationFsxOpenZfs
</summary>

[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/)

</details>
<details>
<summary>
UpdateLocationFsxWindows
</summary>

[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/)

</details>
<details>
<summary>
Expand All @@ -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/)

</details>
<details>
<summary>
UpdateLocationS3
</summary>

[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/)

</details>
<details>
<summary>
Expand Down
138 changes: 138 additions & 0 deletions clients/client-datasync/src/DataSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -250,6 +275,11 @@ import {
UpdateLocationObjectStorageCommandInput,
UpdateLocationObjectStorageCommandOutput,
} from "./commands/UpdateLocationObjectStorageCommand";
import {
UpdateLocationS3Command,
UpdateLocationS3CommandInput,
UpdateLocationS3CommandOutput,
} from "./commands/UpdateLocationS3Command";
import {
UpdateLocationSmbCommand,
UpdateLocationSmbCommandInput,
Expand Down Expand Up @@ -322,9 +352,15 @@ const commands = {
UpdateAgentCommand,
UpdateDiscoveryJobCommand,
UpdateLocationAzureBlobCommand,
UpdateLocationEfsCommand,
UpdateLocationFsxLustreCommand,
UpdateLocationFsxOntapCommand,
UpdateLocationFsxOpenZfsCommand,
UpdateLocationFsxWindowsCommand,
UpdateLocationHdfsCommand,
UpdateLocationNfsCommand,
UpdateLocationObjectStorageCommand,
UpdateLocationS3Command,
UpdateLocationSmbCommand,
UpdateStorageSystemCommand,
UpdateTaskCommand,
Expand Down Expand Up @@ -1164,6 +1200,91 @@ export interface DataSync {
cb: (err: any, data?: UpdateLocationAzureBlobCommandOutput) => void
): void;

/**
* @see {@link UpdateLocationEfsCommand}
*/
updateLocationEfs(
args: UpdateLocationEfsCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateLocationEfsCommandOutput>;
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<UpdateLocationFsxLustreCommandOutput>;
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<UpdateLocationFsxOntapCommandOutput>;
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<UpdateLocationFsxOpenZfsCommandOutput>;
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<UpdateLocationFsxWindowsCommandOutput>;
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}
*/
Expand Down Expand Up @@ -1215,6 +1336,23 @@ export interface DataSync {
cb: (err: any, data?: UpdateLocationObjectStorageCommandOutput) => void
): void;

/**
* @see {@link UpdateLocationS3Command}
*/
updateLocationS3(
args: UpdateLocationS3CommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateLocationS3CommandOutput>;
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}
*/
Expand Down
30 changes: 30 additions & 0 deletions clients/client-datasync/src/DataSyncClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -268,9 +286,15 @@ export type ServiceInputTypes =
| UpdateAgentCommandInput
| UpdateDiscoveryJobCommandInput
| UpdateLocationAzureBlobCommandInput
| UpdateLocationEfsCommandInput
| UpdateLocationFsxLustreCommandInput
| UpdateLocationFsxOntapCommandInput
| UpdateLocationFsxOpenZfsCommandInput
| UpdateLocationFsxWindowsCommandInput
| UpdateLocationHdfsCommandInput
| UpdateLocationNfsCommandInput
| UpdateLocationObjectStorageCommandInput
| UpdateLocationS3CommandInput
| UpdateLocationSmbCommandInput
| UpdateStorageSystemCommandInput
| UpdateTaskCommandInput
Expand Down Expand Up @@ -333,9 +357,15 @@ export type ServiceOutputTypes =
| UpdateAgentCommandOutput
| UpdateDiscoveryJobCommandOutput
| UpdateLocationAzureBlobCommandOutput
| UpdateLocationEfsCommandOutput
| UpdateLocationFsxLustreCommandOutput
| UpdateLocationFsxOntapCommandOutput
| UpdateLocationFsxOpenZfsCommandOutput
| UpdateLocationFsxWindowsCommandOutput
| UpdateLocationHdfsCommandOutput
| UpdateLocationNfsCommandOutput
| UpdateLocationObjectStorageCommandOutput
| UpdateLocationS3CommandOutput
| UpdateLocationSmbCommandOutput
| UpdateStorageSystemCommandOutput
| UpdateTaskCommandOutput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ export interface CreateLocationNfsCommandOutput extends CreateLocationNfsRespons
* <p>Before you begin, make sure that you understand how DataSync
* <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#accessing-nfs">accesses
* NFS file servers</a>.</p>
* <note>
* <p>If you're copying data to or from an Snowcone device, you can also use
* <code>CreateLocationNfs</code> to create your transfer location. For more information, see
* <a href="https://docs.aws.amazon.com/datasync/latest/userguide/nfs-on-snowcone.html">Configuring transfers with Snowcone</a>.</p>
* </note>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export interface UpdateLocationAzureBlobCommandInput extends UpdateLocationAzure
export interface UpdateLocationAzureBlobCommandOutput extends UpdateLocationAzureBlobResponse, __MetadataBearer {}

/**
* <p>Modifies some configurations of the Microsoft Azure Blob Storage transfer location that you're using with DataSync.</p>
* <p>Modifies the following configurations of the Microsoft Azure Blob Storage transfer location that you're using with DataSync.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/creating-azure-blob-location.html">Configuring DataSync transfers with Azure Blob Storage</a>.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Loading

0 comments on commit 1c7cb38

Please sign in to comment.