@aws-sdk/client-fsx 3.35.0 → 3.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -0
- package/dist-cjs/FSx.js +0 -5
- package/dist-cjs/FSxClient.js +0 -10
- package/dist-cjs/commands/AssociateFileSystemAliasesCommand.js +0 -35
- package/dist-cjs/commands/CancelDataRepositoryTaskCommand.js +0 -37
- package/dist-cjs/commands/CopyBackupCommand.js +0 -45
- package/dist-cjs/commands/CreateBackupCommand.js +0 -80
- package/dist-cjs/commands/CreateDataRepositoryTaskCommand.js +0 -33
- package/dist-cjs/commands/CreateFileSystemCommand.js +0 -57
- package/dist-cjs/commands/CreateFileSystemFromBackupCommand.js +0 -61
- package/dist-cjs/commands/CreateStorageVirtualMachineCommand.js +0 -25
- package/dist-cjs/commands/CreateVolumeCommand.js +0 -25
- package/dist-cjs/commands/CreateVolumeFromBackupCommand.js +0 -26
- package/dist-cjs/commands/DeleteBackupCommand.js +0 -33
- package/dist-cjs/commands/DeleteFileSystemCommand.js +0 -50
- package/dist-cjs/commands/DeleteStorageVirtualMachineCommand.js +0 -26
- package/dist-cjs/commands/DeleteVolumeCommand.js +0 -28
- package/dist-cjs/commands/DescribeBackupsCommand.js +0 -54
- package/dist-cjs/commands/DescribeDataRepositoryTasksCommand.js +0 -35
- package/dist-cjs/commands/DescribeFileSystemAliasesCommand.js +0 -27
- package/dist-cjs/commands/DescribeFileSystemsCommand.js +0 -56
- package/dist-cjs/commands/DescribeStorageVirtualMachinesCommand.js +0 -25
- package/dist-cjs/commands/DescribeVolumesCommand.js +0 -25
- package/dist-cjs/commands/DisassociateFileSystemAliasesCommand.js +0 -33
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -53
- package/dist-cjs/commands/TagResourceCommand.js +0 -25
- package/dist-cjs/commands/UntagResourceCommand.js +0 -25
- package/dist-cjs/commands/UpdateFileSystemCommand.js +0 -89
- package/dist-cjs/commands/UpdateStorageVirtualMachineCommand.js +0 -25
- package/dist-cjs/commands/UpdateVolumeCommand.js +0 -25
- package/dist-cjs/commands/index.js +30 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -38
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -415
- package/dist-cjs/pagination/DescribeBackupsPaginator.js +0 -11
- package/dist-cjs/pagination/DescribeDataRepositoryTasksPaginator.js +0 -11
- package/dist-cjs/pagination/DescribeFileSystemAliasesPaginator.js +0 -11
- package/dist-cjs/pagination/DescribeFileSystemsPaginator.js +0 -11
- package/dist-cjs/pagination/DescribeStorageVirtualMachinesPaginator.js +0 -11
- package/dist-cjs/pagination/DescribeVolumesPaginator.js +0 -11
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +0 -11
- package/dist-cjs/pagination/index.js +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +5 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/FSx.js +0 -1
- package/dist-es/FSxClient.js +0 -1
- package/dist-es/commands/AssociateFileSystemAliasesCommand.js +0 -1
- package/dist-es/commands/CancelDataRepositoryTaskCommand.js +0 -1
- package/dist-es/commands/CopyBackupCommand.js +0 -1
- package/dist-es/commands/CreateBackupCommand.js +0 -1
- package/dist-es/commands/CreateDataRepositoryTaskCommand.js +0 -1
- package/dist-es/commands/CreateFileSystemCommand.js +0 -1
- package/dist-es/commands/CreateFileSystemFromBackupCommand.js +0 -1
- package/dist-es/commands/CreateStorageVirtualMachineCommand.js +0 -1
- package/dist-es/commands/CreateVolumeCommand.js +0 -1
- package/dist-es/commands/CreateVolumeFromBackupCommand.js +0 -1
- package/dist-es/commands/DeleteBackupCommand.js +0 -1
- package/dist-es/commands/DeleteFileSystemCommand.js +0 -1
- package/dist-es/commands/DeleteStorageVirtualMachineCommand.js +0 -1
- package/dist-es/commands/DeleteVolumeCommand.js +0 -1
- package/dist-es/commands/DescribeBackupsCommand.js +0 -1
- package/dist-es/commands/DescribeDataRepositoryTasksCommand.js +0 -1
- package/dist-es/commands/DescribeFileSystemAliasesCommand.js +0 -1
- package/dist-es/commands/DescribeFileSystemsCommand.js +0 -1
- package/dist-es/commands/DescribeStorageVirtualMachinesCommand.js +0 -1
- package/dist-es/commands/DescribeVolumesCommand.js +0 -1
- package/dist-es/commands/DisassociateFileSystemAliasesCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateFileSystemCommand.js +0 -1
- package/dist-es/commands/UpdateStorageVirtualMachineCommand.js +0 -1
- package/dist-es/commands/UpdateVolumeCommand.js +0 -1
- package/dist-es/commands/index.js +27 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -38
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/DescribeBackupsPaginator.js +0 -1
- package/dist-es/pagination/DescribeDataRepositoryTasksPaginator.js +0 -1
- package/dist-es/pagination/DescribeFileSystemAliasesPaginator.js +0 -1
- package/dist-es/pagination/DescribeFileSystemsPaginator.js +0 -1
- package/dist-es/pagination/DescribeStorageVirtualMachinesPaginator.js +0 -1
- package/dist-es/pagination/DescribeVolumesPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListTagsForResourcePaginator.js +0 -1
- package/dist-es/pagination/index.js +8 -0
- package/dist-es/protocols/Aws_json1_1.js +6 -4
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +27 -0
- package/dist-types/index.d.ts +4 -37
- package/dist-types/models/models_0.d.ts +36 -6
- package/dist-types/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/FSx.d.ts +28 -468
- package/dist-types/ts3.4/FSxClient.d.ts +24 -90
- package/dist-types/ts3.4/commands/AssociateFileSystemAliasesCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/CancelDataRepositoryTaskCommand.d.ts +2 -32
- package/dist-types/ts3.4/commands/CopyBackupCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/CreateBackupCommand.d.ts +2 -75
- package/dist-types/ts3.4/commands/CreateDataRepositoryTaskCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/CreateFileSystemCommand.d.ts +2 -52
- package/dist-types/ts3.4/commands/CreateFileSystemFromBackupCommand.d.ts +2 -56
- package/dist-types/ts3.4/commands/CreateStorageVirtualMachineCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateVolumeCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateVolumeFromBackupCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteBackupCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/DeleteFileSystemCommand.d.ts +2 -45
- package/dist-types/ts3.4/commands/DeleteStorageVirtualMachineCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteVolumeCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DescribeBackupsCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/DescribeDataRepositoryTasksCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/DescribeFileSystemAliasesCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DescribeFileSystemsCommand.d.ts +2 -51
- package/dist-types/ts3.4/commands/DescribeStorageVirtualMachinesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeVolumesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DisassociateFileSystemAliasesCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -48
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateFileSystemCommand.d.ts +2 -84
- package/dist-types/ts3.4/commands/UpdateStorageVirtualMachineCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateVolumeCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +27 -0
- package/dist-types/ts3.4/index.d.ts +4 -37
- package/dist-types/ts3.4/models/models_0.d.ts +721 -3612
- package/dist-types/ts3.4/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/FSx.js.map +0 -1
- package/dist-cjs/FSxClient.js.map +0 -1
- package/dist-cjs/commands/AssociateFileSystemAliasesCommand.js.map +0 -1
- package/dist-cjs/commands/CancelDataRepositoryTaskCommand.js.map +0 -1
- package/dist-cjs/commands/CopyBackupCommand.js.map +0 -1
- package/dist-cjs/commands/CreateBackupCommand.js.map +0 -1
- package/dist-cjs/commands/CreateDataRepositoryTaskCommand.js.map +0 -1
- package/dist-cjs/commands/CreateFileSystemCommand.js.map +0 -1
- package/dist-cjs/commands/CreateFileSystemFromBackupCommand.js.map +0 -1
- package/dist-cjs/commands/CreateStorageVirtualMachineCommand.js.map +0 -1
- package/dist-cjs/commands/CreateVolumeCommand.js.map +0 -1
- package/dist-cjs/commands/CreateVolumeFromBackupCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteBackupCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteFileSystemCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteStorageVirtualMachineCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteVolumeCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeBackupsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeDataRepositoryTasksCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeFileSystemAliasesCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeFileSystemsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeStorageVirtualMachinesCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeVolumesCommand.js.map +0 -1
- package/dist-cjs/commands/DisassociateFileSystemAliasesCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateFileSystemCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateStorageVirtualMachineCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateVolumeCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/DescribeBackupsPaginator.js.map +0 -1
- package/dist-cjs/pagination/DescribeDataRepositoryTasksPaginator.js.map +0 -1
- package/dist-cjs/pagination/DescribeFileSystemAliasesPaginator.js.map +0 -1
- package/dist-cjs/pagination/DescribeFileSystemsPaginator.js.map +0 -1
- package/dist-cjs/pagination/DescribeStorageVirtualMachinesPaginator.js.map +0 -1
- package/dist-cjs/pagination/DescribeVolumesPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/FSx.js.map +0 -1
- package/dist-es/FSxClient.js.map +0 -1
- package/dist-es/commands/AssociateFileSystemAliasesCommand.js.map +0 -1
- package/dist-es/commands/CancelDataRepositoryTaskCommand.js.map +0 -1
- package/dist-es/commands/CopyBackupCommand.js.map +0 -1
- package/dist-es/commands/CreateBackupCommand.js.map +0 -1
- package/dist-es/commands/CreateDataRepositoryTaskCommand.js.map +0 -1
- package/dist-es/commands/CreateFileSystemCommand.js.map +0 -1
- package/dist-es/commands/CreateFileSystemFromBackupCommand.js.map +0 -1
- package/dist-es/commands/CreateStorageVirtualMachineCommand.js.map +0 -1
- package/dist-es/commands/CreateVolumeCommand.js.map +0 -1
- package/dist-es/commands/CreateVolumeFromBackupCommand.js.map +0 -1
- package/dist-es/commands/DeleteBackupCommand.js.map +0 -1
- package/dist-es/commands/DeleteFileSystemCommand.js.map +0 -1
- package/dist-es/commands/DeleteStorageVirtualMachineCommand.js.map +0 -1
- package/dist-es/commands/DeleteVolumeCommand.js.map +0 -1
- package/dist-es/commands/DescribeBackupsCommand.js.map +0 -1
- package/dist-es/commands/DescribeDataRepositoryTasksCommand.js.map +0 -1
- package/dist-es/commands/DescribeFileSystemAliasesCommand.js.map +0 -1
- package/dist-es/commands/DescribeFileSystemsCommand.js.map +0 -1
- package/dist-es/commands/DescribeStorageVirtualMachinesCommand.js.map +0 -1
- package/dist-es/commands/DescribeVolumesCommand.js.map +0 -1
- package/dist-es/commands/DisassociateFileSystemAliasesCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateFileSystemCommand.js.map +0 -1
- package/dist-es/commands/UpdateStorageVirtualMachineCommand.js.map +0 -1
- package/dist-es/commands/UpdateVolumeCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/DescribeBackupsPaginator.js.map +0 -1
- package/dist-es/pagination/DescribeDataRepositoryTasksPaginator.js.map +0 -1
- package/dist-es/pagination/DescribeFileSystemAliasesPaginator.js.map +0 -1
- package/dist-es/pagination/DescribeFileSystemsPaginator.js.map +0 -1
- package/dist-es/pagination/DescribeStorageVirtualMachinesPaginator.js.map +0 -1
- package/dist-es/pagination/DescribeVolumesPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListTagsForResourcePaginator.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/FSx.ts +0 -1356
- package/src/FSxClient.ts +0 -360
- package/src/commands/AssociateFileSystemAliasesCommand.ts +0 -108
- package/src/commands/CancelDataRepositoryTaskCommand.ts +0 -107
- package/src/commands/CopyBackupCommand.ts +0 -115
- package/src/commands/CreateBackupCommand.ts +0 -150
- package/src/commands/CreateDataRepositoryTaskCommand.ts +0 -103
- package/src/commands/CreateFileSystemCommand.ts +0 -127
- package/src/commands/CreateFileSystemFromBackupCommand.ts +0 -134
- package/src/commands/CreateStorageVirtualMachineCommand.ts +0 -100
- package/src/commands/CreateVolumeCommand.ts +0 -95
- package/src/commands/CreateVolumeFromBackupCommand.ts +0 -96
- package/src/commands/DeleteBackupCommand.ts +0 -103
- package/src/commands/DeleteFileSystemCommand.ts +0 -120
- package/src/commands/DeleteStorageVirtualMachineCommand.ts +0 -101
- package/src/commands/DeleteVolumeCommand.ts +0 -98
- package/src/commands/DescribeBackupsCommand.ts +0 -124
- package/src/commands/DescribeDataRepositoryTasksCommand.ts +0 -110
- package/src/commands/DescribeFileSystemAliasesCommand.ts +0 -100
- package/src/commands/DescribeFileSystemsCommand.ts +0 -126
- package/src/commands/DescribeStorageVirtualMachinesCommand.ts +0 -103
- package/src/commands/DescribeVolumesCommand.ts +0 -95
- package/src/commands/DisassociateFileSystemAliasesCommand.ts +0 -108
- package/src/commands/ListTagsForResourceCommand.ts +0 -123
- package/src/commands/TagResourceCommand.ts +0 -95
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/commands/UpdateFileSystemCommand.ts +0 -159
- package/src/commands/UpdateStorageVirtualMachineCommand.ts +0 -100
- package/src/commands/UpdateVolumeCommand.ts +0 -95
- package/src/endpoints.ts +0 -91
- package/src/index.ts +0 -38
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -5999
- package/src/pagination/DescribeBackupsPaginator.ts +0 -59
- package/src/pagination/DescribeDataRepositoryTasksPaginator.ts +0 -59
- package/src/pagination/DescribeFileSystemAliasesPaginator.ts +0 -59
- package/src/pagination/DescribeFileSystemsPaginator.ts +0 -59
- package/src/pagination/DescribeStorageVirtualMachinesPaginator.ts +0 -59
- package/src/pagination/DescribeVolumesPaginator.ts +0 -59
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListTagsForResourcePaginator.ts +0 -59
- package/src/protocols/Aws_json1_1.ts +0 -5910
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { FSxClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FSxClient";
|
|
15
|
-
import { CreateBackupRequest, CreateBackupResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1CreateBackupCommand,
|
|
18
|
-
serializeAws_json1_1CreateBackupCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface CreateBackupCommandInput extends CreateBackupRequest {}
|
|
22
|
-
export interface CreateBackupCommandOutput extends CreateBackupResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Creates a backup of an existing Amazon FSx for Windows File Server
|
|
26
|
-
* or Amazon FSx for Lustre file system, or of an Amazon FSx for NetApp ONTAP
|
|
27
|
-
* volume. Creating regular backups is a best practice, enabling you to restore
|
|
28
|
-
* a file system or volume from a backup if an issue arises with the original
|
|
29
|
-
* file system or volume.</p>
|
|
30
|
-
* <p>For Amazon FSx for Lustre file systems, you can create a backup only
|
|
31
|
-
* for file systems with the following configuration:</p>
|
|
32
|
-
* <ul>
|
|
33
|
-
* <li>
|
|
34
|
-
* <p>a Persistent deployment type</p>
|
|
35
|
-
* </li>
|
|
36
|
-
* <li>
|
|
37
|
-
* <p>is <i>not</i> linked to a data repository.</p>
|
|
38
|
-
* </li>
|
|
39
|
-
* </ul>
|
|
40
|
-
* <p>For more information about backups, see the following:</p>
|
|
41
|
-
* <ul>
|
|
42
|
-
* <li>
|
|
43
|
-
* <p>For Amazon FSx for Lustre,
|
|
44
|
-
* see <a href="https://docs.aws.amazon.com/fsx/latest/LustreGuide/using-backups-fsx.html">Working with FSx for Lustre backups</a>.</p>
|
|
45
|
-
* </li>
|
|
46
|
-
* <li>
|
|
47
|
-
* <p>For Amazon FSx for Windows,
|
|
48
|
-
* see <a href="https://docs.aws.amazon.com/fsx/latest/WindowsGuide/using-backups.html">Working with FSx for Windows backups</a>.</p>
|
|
49
|
-
* </li>
|
|
50
|
-
* <li>
|
|
51
|
-
* <p>For Amazon FSx for NetApp ONTAP,
|
|
52
|
-
* see <a href="https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/using-backups.html">Working with FSx for NetApp ONTAP backups</a>.</p>
|
|
53
|
-
* </li>
|
|
54
|
-
* </ul>
|
|
55
|
-
* <p>If a backup with the specified client request token exists, and the parameters
|
|
56
|
-
* match, this operation returns the description of the existing backup. If a backup
|
|
57
|
-
* specified client request token exists, and the parameters don't match, this
|
|
58
|
-
* operation returns <code>IncompatibleParameterError</code>. If a backup with the
|
|
59
|
-
* specified client request token doesn't exist, <code>CreateBackup</code> does the
|
|
60
|
-
* following: </p>
|
|
61
|
-
* <ul>
|
|
62
|
-
* <li>
|
|
63
|
-
* <p>Creates a new Amazon FSx backup with an assigned ID, and an initial
|
|
64
|
-
* lifecycle state of <code>CREATING</code>.</p>
|
|
65
|
-
* </li>
|
|
66
|
-
* <li>
|
|
67
|
-
* <p>Returns the description of the backup.</p>
|
|
68
|
-
* </li>
|
|
69
|
-
* </ul>
|
|
70
|
-
*
|
|
71
|
-
* <p>By using the idempotent operation, you can retry a <code>CreateBackup</code>
|
|
72
|
-
* operation without the risk of creating an extra backup. This approach can be useful when
|
|
73
|
-
* an initial call fails in a way that makes it unclear whether a backup was created. If
|
|
74
|
-
* you use the same client request token and the initial call created a backup, the
|
|
75
|
-
* operation returns a successful result because all the parameters are the same.</p>
|
|
76
|
-
*
|
|
77
|
-
* <p>The <code>CreateBackup</code> operation returns while the backup's
|
|
78
|
-
* lifecycle state is still <code>CREATING</code>. You can check the backup creation
|
|
79
|
-
* status by calling the <a>DescribeBackups</a> operation, which returns the
|
|
80
|
-
* backup state along with other information.</p>
|
|
81
|
-
* @example
|
|
82
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
83
|
-
* ```javascript
|
|
84
|
-
* import { FSxClient, CreateBackupCommand } from "@aws-sdk/client-fsx"; // ES Modules import
|
|
85
|
-
* // const { FSxClient, CreateBackupCommand } = require("@aws-sdk/client-fsx"); // CommonJS import
|
|
86
|
-
* const client = new FSxClient(config);
|
|
87
|
-
* const command = new CreateBackupCommand(input);
|
|
88
|
-
* const response = await client.send(command);
|
|
89
|
-
* ```
|
|
90
|
-
*
|
|
91
|
-
* @see {@link CreateBackupCommandInput} for command's `input` shape.
|
|
92
|
-
* @see {@link CreateBackupCommandOutput} for command's `response` shape.
|
|
93
|
-
* @see {@link FSxClientResolvedConfig | config} for command's `input` shape.
|
|
94
|
-
*
|
|
95
|
-
*/
|
|
96
|
-
export class CreateBackupCommand extends $Command<
|
|
97
|
-
CreateBackupCommandInput,
|
|
98
|
-
CreateBackupCommandOutput,
|
|
99
|
-
FSxClientResolvedConfig
|
|
100
|
-
> {
|
|
101
|
-
// Start section: command_properties
|
|
102
|
-
// End section: command_properties
|
|
103
|
-
|
|
104
|
-
constructor(readonly input: CreateBackupCommandInput) {
|
|
105
|
-
// Start section: command_constructor
|
|
106
|
-
super();
|
|
107
|
-
// End section: command_constructor
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* @internal
|
|
112
|
-
*/
|
|
113
|
-
resolveMiddleware(
|
|
114
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
115
|
-
configuration: FSxClientResolvedConfig,
|
|
116
|
-
options?: __HttpHandlerOptions
|
|
117
|
-
): Handler<CreateBackupCommandInput, CreateBackupCommandOutput> {
|
|
118
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
119
|
-
|
|
120
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
121
|
-
|
|
122
|
-
const { logger } = configuration;
|
|
123
|
-
const clientName = "FSxClient";
|
|
124
|
-
const commandName = "CreateBackupCommand";
|
|
125
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
126
|
-
logger,
|
|
127
|
-
clientName,
|
|
128
|
-
commandName,
|
|
129
|
-
inputFilterSensitiveLog: CreateBackupRequest.filterSensitiveLog,
|
|
130
|
-
outputFilterSensitiveLog: CreateBackupResponse.filterSensitiveLog,
|
|
131
|
-
};
|
|
132
|
-
const { requestHandler } = configuration;
|
|
133
|
-
return stack.resolve(
|
|
134
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
135
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
136
|
-
handlerExecutionContext
|
|
137
|
-
);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
private serialize(input: CreateBackupCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
141
|
-
return serializeAws_json1_1CreateBackupCommand(input, context);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateBackupCommandOutput> {
|
|
145
|
-
return deserializeAws_json1_1CreateBackupCommand(output, context);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
// Start section: command_body_extra
|
|
149
|
-
// End section: command_body_extra
|
|
150
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { FSxClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FSxClient";
|
|
15
|
-
import { CreateDataRepositoryTaskRequest, CreateDataRepositoryTaskResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1CreateDataRepositoryTaskCommand,
|
|
18
|
-
serializeAws_json1_1CreateDataRepositoryTaskCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface CreateDataRepositoryTaskCommandInput extends CreateDataRepositoryTaskRequest {}
|
|
22
|
-
export interface CreateDataRepositoryTaskCommandOutput extends CreateDataRepositoryTaskResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Creates an Amazon FSx for Lustre data repository task. You use data repository tasks
|
|
26
|
-
* to perform bulk operations between your Amazon FSx file system and its linked data
|
|
27
|
-
* repository. An example of a data repository task is
|
|
28
|
-
* exporting any data and metadata changes, including POSIX metadata, to files, directories, and symbolic links (symlinks) from your FSx file system to its linked data repository. A
|
|
29
|
-
* <code>CreateDataRepositoryTask</code> operation will fail if a data repository is not
|
|
30
|
-
* linked to the FSx file system. To learn more about data repository tasks, see
|
|
31
|
-
* <a href="https://docs.aws.amazon.com/fsx/latest/LustreGuide/data-repository-tasks.html">Data Repository Tasks</a>.
|
|
32
|
-
* To learn more about linking a data repository to your file system, see
|
|
33
|
-
* <a href="https://docs.aws.amazon.com/fsx/latest/LustreGuide/create-fs-linked-data-repo.html">Linking your file system to an S3 bucket</a>.</p>
|
|
34
|
-
* @example
|
|
35
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
-
* ```javascript
|
|
37
|
-
* import { FSxClient, CreateDataRepositoryTaskCommand } from "@aws-sdk/client-fsx"; // ES Modules import
|
|
38
|
-
* // const { FSxClient, CreateDataRepositoryTaskCommand } = require("@aws-sdk/client-fsx"); // CommonJS import
|
|
39
|
-
* const client = new FSxClient(config);
|
|
40
|
-
* const command = new CreateDataRepositoryTaskCommand(input);
|
|
41
|
-
* const response = await client.send(command);
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* @see {@link CreateDataRepositoryTaskCommandInput} for command's `input` shape.
|
|
45
|
-
* @see {@link CreateDataRepositoryTaskCommandOutput} for command's `response` shape.
|
|
46
|
-
* @see {@link FSxClientResolvedConfig | config} for command's `input` shape.
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
export class CreateDataRepositoryTaskCommand extends $Command<
|
|
50
|
-
CreateDataRepositoryTaskCommandInput,
|
|
51
|
-
CreateDataRepositoryTaskCommandOutput,
|
|
52
|
-
FSxClientResolvedConfig
|
|
53
|
-
> {
|
|
54
|
-
// Start section: command_properties
|
|
55
|
-
// End section: command_properties
|
|
56
|
-
|
|
57
|
-
constructor(readonly input: CreateDataRepositoryTaskCommandInput) {
|
|
58
|
-
// Start section: command_constructor
|
|
59
|
-
super();
|
|
60
|
-
// End section: command_constructor
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
*/
|
|
66
|
-
resolveMiddleware(
|
|
67
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
68
|
-
configuration: FSxClientResolvedConfig,
|
|
69
|
-
options?: __HttpHandlerOptions
|
|
70
|
-
): Handler<CreateDataRepositoryTaskCommandInput, CreateDataRepositoryTaskCommandOutput> {
|
|
71
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
72
|
-
|
|
73
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
74
|
-
|
|
75
|
-
const { logger } = configuration;
|
|
76
|
-
const clientName = "FSxClient";
|
|
77
|
-
const commandName = "CreateDataRepositoryTaskCommand";
|
|
78
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
79
|
-
logger,
|
|
80
|
-
clientName,
|
|
81
|
-
commandName,
|
|
82
|
-
inputFilterSensitiveLog: CreateDataRepositoryTaskRequest.filterSensitiveLog,
|
|
83
|
-
outputFilterSensitiveLog: CreateDataRepositoryTaskResponse.filterSensitiveLog,
|
|
84
|
-
};
|
|
85
|
-
const { requestHandler } = configuration;
|
|
86
|
-
return stack.resolve(
|
|
87
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
88
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
89
|
-
handlerExecutionContext
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
private serialize(input: CreateDataRepositoryTaskCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
94
|
-
return serializeAws_json1_1CreateDataRepositoryTaskCommand(input, context);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateDataRepositoryTaskCommandOutput> {
|
|
98
|
-
return deserializeAws_json1_1CreateDataRepositoryTaskCommand(output, context);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// Start section: command_body_extra
|
|
102
|
-
// End section: command_body_extra
|
|
103
|
-
}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { FSxClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FSxClient";
|
|
15
|
-
import { CreateFileSystemRequest, CreateFileSystemResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1CreateFileSystemCommand,
|
|
18
|
-
serializeAws_json1_1CreateFileSystemCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface CreateFileSystemCommandInput extends CreateFileSystemRequest {}
|
|
22
|
-
export interface CreateFileSystemCommandOutput extends CreateFileSystemResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Creates a new, empty Amazon FSx file system.</p>
|
|
26
|
-
*
|
|
27
|
-
* <p>If a file system with the specified client request token exists and the parameters
|
|
28
|
-
* match, <code>CreateFileSystem</code> returns the description of the existing file
|
|
29
|
-
* system. If a file system specified client request token exists and the parameters
|
|
30
|
-
* don't match, this call returns <code>IncompatibleParameterError</code>. If a file
|
|
31
|
-
* system with the specified client request token doesn't exist,
|
|
32
|
-
* <code>CreateFileSystem</code> does the following: </p>
|
|
33
|
-
* <ul>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>Creates a new, empty Amazon FSx file system with an assigned ID, and an
|
|
36
|
-
* initial lifecycle state of <code>CREATING</code>.</p>
|
|
37
|
-
* </li>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>Returns the description of the file system.</p>
|
|
40
|
-
* </li>
|
|
41
|
-
* </ul>
|
|
42
|
-
*
|
|
43
|
-
* <p>This operation requires a client request token in the request that Amazon FSx uses
|
|
44
|
-
* to ensure idempotent creation. This means that calling the operation multiple times with
|
|
45
|
-
* the same client request token has no effect. By using the idempotent operation, you can
|
|
46
|
-
* retry a <code>CreateFileSystem</code> operation without the risk of creating an extra
|
|
47
|
-
* file system. This approach can be useful when an initial call fails in a way that makes
|
|
48
|
-
* it unclear whether a file system was created. Examples are if a transport level timeout
|
|
49
|
-
* occurred, or your connection was reset. If you use the same client request token and the
|
|
50
|
-
* initial call created a file system, the client receives success as long as the
|
|
51
|
-
* parameters are the same.</p>
|
|
52
|
-
* <note>
|
|
53
|
-
* <p>The <code>CreateFileSystem</code> call returns while the file system's
|
|
54
|
-
* lifecycle state is still <code>CREATING</code>. You can check the file-system
|
|
55
|
-
* creation status by calling the <a>DescribeFileSystems</a> operation,
|
|
56
|
-
* which returns the file system state along with other information.</p>
|
|
57
|
-
* </note>
|
|
58
|
-
* @example
|
|
59
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
60
|
-
* ```javascript
|
|
61
|
-
* import { FSxClient, CreateFileSystemCommand } from "@aws-sdk/client-fsx"; // ES Modules import
|
|
62
|
-
* // const { FSxClient, CreateFileSystemCommand } = require("@aws-sdk/client-fsx"); // CommonJS import
|
|
63
|
-
* const client = new FSxClient(config);
|
|
64
|
-
* const command = new CreateFileSystemCommand(input);
|
|
65
|
-
* const response = await client.send(command);
|
|
66
|
-
* ```
|
|
67
|
-
*
|
|
68
|
-
* @see {@link CreateFileSystemCommandInput} for command's `input` shape.
|
|
69
|
-
* @see {@link CreateFileSystemCommandOutput} for command's `response` shape.
|
|
70
|
-
* @see {@link FSxClientResolvedConfig | config} for command's `input` shape.
|
|
71
|
-
*
|
|
72
|
-
*/
|
|
73
|
-
export class CreateFileSystemCommand extends $Command<
|
|
74
|
-
CreateFileSystemCommandInput,
|
|
75
|
-
CreateFileSystemCommandOutput,
|
|
76
|
-
FSxClientResolvedConfig
|
|
77
|
-
> {
|
|
78
|
-
// Start section: command_properties
|
|
79
|
-
// End section: command_properties
|
|
80
|
-
|
|
81
|
-
constructor(readonly input: CreateFileSystemCommandInput) {
|
|
82
|
-
// Start section: command_constructor
|
|
83
|
-
super();
|
|
84
|
-
// End section: command_constructor
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* @internal
|
|
89
|
-
*/
|
|
90
|
-
resolveMiddleware(
|
|
91
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
92
|
-
configuration: FSxClientResolvedConfig,
|
|
93
|
-
options?: __HttpHandlerOptions
|
|
94
|
-
): Handler<CreateFileSystemCommandInput, CreateFileSystemCommandOutput> {
|
|
95
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
96
|
-
|
|
97
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
98
|
-
|
|
99
|
-
const { logger } = configuration;
|
|
100
|
-
const clientName = "FSxClient";
|
|
101
|
-
const commandName = "CreateFileSystemCommand";
|
|
102
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
103
|
-
logger,
|
|
104
|
-
clientName,
|
|
105
|
-
commandName,
|
|
106
|
-
inputFilterSensitiveLog: CreateFileSystemRequest.filterSensitiveLog,
|
|
107
|
-
outputFilterSensitiveLog: CreateFileSystemResponse.filterSensitiveLog,
|
|
108
|
-
};
|
|
109
|
-
const { requestHandler } = configuration;
|
|
110
|
-
return stack.resolve(
|
|
111
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
112
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
113
|
-
handlerExecutionContext
|
|
114
|
-
);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
private serialize(input: CreateFileSystemCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
118
|
-
return serializeAws_json1_1CreateFileSystemCommand(input, context);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateFileSystemCommandOutput> {
|
|
122
|
-
return deserializeAws_json1_1CreateFileSystemCommand(output, context);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// Start section: command_body_extra
|
|
126
|
-
// End section: command_body_extra
|
|
127
|
-
}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { FSxClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FSxClient";
|
|
15
|
-
import { CreateFileSystemFromBackupRequest, CreateFileSystemFromBackupResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1CreateFileSystemFromBackupCommand,
|
|
18
|
-
serializeAws_json1_1CreateFileSystemFromBackupCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface CreateFileSystemFromBackupCommandInput extends CreateFileSystemFromBackupRequest {}
|
|
22
|
-
export interface CreateFileSystemFromBackupCommandOutput extends CreateFileSystemFromBackupResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Creates a new Amazon FSx for Lustre or Amazon FSx for Windows File Server file system
|
|
26
|
-
* from an existing Amazon FSx backup.</p>
|
|
27
|
-
*
|
|
28
|
-
* <p>If a file system with the specified client request token exists and the parameters
|
|
29
|
-
* match, this operation returns the description of the file system. If a client
|
|
30
|
-
* request token specified by the file system exists and the parameters don't match,
|
|
31
|
-
* this call returns <code>IncompatibleParameterError</code>. If a file system with the
|
|
32
|
-
* specified client request token doesn't exist, this operation does the following:</p>
|
|
33
|
-
*
|
|
34
|
-
* <ul>
|
|
35
|
-
* <li>
|
|
36
|
-
* <p>Creates a new Amazon FSx file system from backup with an assigned ID, and
|
|
37
|
-
* an initial lifecycle state of <code>CREATING</code>.</p>
|
|
38
|
-
* </li>
|
|
39
|
-
* <li>
|
|
40
|
-
* <p>Returns the description of the file system.</p>
|
|
41
|
-
* </li>
|
|
42
|
-
* </ul>
|
|
43
|
-
*
|
|
44
|
-
* <p>Parameters like Active Directory, default share name, automatic backup, and backup
|
|
45
|
-
* settings default to the parameters of the file system that was backed up, unless
|
|
46
|
-
* overridden. You can explicitly supply other settings.</p>
|
|
47
|
-
*
|
|
48
|
-
* <p>By using the idempotent operation, you can retry a
|
|
49
|
-
* <code>CreateFileSystemFromBackup</code> call without the risk of creating an extra
|
|
50
|
-
* file system. This approach can be useful when an initial call fails in a way that makes
|
|
51
|
-
* it unclear whether a file system was created. Examples are if a transport level timeout
|
|
52
|
-
* occurred, or your connection was reset. If you use the same client request token and the
|
|
53
|
-
* initial call created a file system, the client receives success as long as the
|
|
54
|
-
* parameters are the same.</p>
|
|
55
|
-
* <note>
|
|
56
|
-
* <p>The <code>CreateFileSystemFromBackup</code> call returns while the file
|
|
57
|
-
* system's lifecycle state is still <code>CREATING</code>. You can check the
|
|
58
|
-
* file-system creation status by calling the <a>DescribeFileSystems</a>
|
|
59
|
-
* operation, which returns the file system state along with other
|
|
60
|
-
* information.</p>
|
|
61
|
-
* </note>
|
|
62
|
-
* @example
|
|
63
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
64
|
-
* ```javascript
|
|
65
|
-
* import { FSxClient, CreateFileSystemFromBackupCommand } from "@aws-sdk/client-fsx"; // ES Modules import
|
|
66
|
-
* // const { FSxClient, CreateFileSystemFromBackupCommand } = require("@aws-sdk/client-fsx"); // CommonJS import
|
|
67
|
-
* const client = new FSxClient(config);
|
|
68
|
-
* const command = new CreateFileSystemFromBackupCommand(input);
|
|
69
|
-
* const response = await client.send(command);
|
|
70
|
-
* ```
|
|
71
|
-
*
|
|
72
|
-
* @see {@link CreateFileSystemFromBackupCommandInput} for command's `input` shape.
|
|
73
|
-
* @see {@link CreateFileSystemFromBackupCommandOutput} for command's `response` shape.
|
|
74
|
-
* @see {@link FSxClientResolvedConfig | config} for command's `input` shape.
|
|
75
|
-
*
|
|
76
|
-
*/
|
|
77
|
-
export class CreateFileSystemFromBackupCommand extends $Command<
|
|
78
|
-
CreateFileSystemFromBackupCommandInput,
|
|
79
|
-
CreateFileSystemFromBackupCommandOutput,
|
|
80
|
-
FSxClientResolvedConfig
|
|
81
|
-
> {
|
|
82
|
-
// Start section: command_properties
|
|
83
|
-
// End section: command_properties
|
|
84
|
-
|
|
85
|
-
constructor(readonly input: CreateFileSystemFromBackupCommandInput) {
|
|
86
|
-
// Start section: command_constructor
|
|
87
|
-
super();
|
|
88
|
-
// End section: command_constructor
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* @internal
|
|
93
|
-
*/
|
|
94
|
-
resolveMiddleware(
|
|
95
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
96
|
-
configuration: FSxClientResolvedConfig,
|
|
97
|
-
options?: __HttpHandlerOptions
|
|
98
|
-
): Handler<CreateFileSystemFromBackupCommandInput, CreateFileSystemFromBackupCommandOutput> {
|
|
99
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
100
|
-
|
|
101
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
102
|
-
|
|
103
|
-
const { logger } = configuration;
|
|
104
|
-
const clientName = "FSxClient";
|
|
105
|
-
const commandName = "CreateFileSystemFromBackupCommand";
|
|
106
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
107
|
-
logger,
|
|
108
|
-
clientName,
|
|
109
|
-
commandName,
|
|
110
|
-
inputFilterSensitiveLog: CreateFileSystemFromBackupRequest.filterSensitiveLog,
|
|
111
|
-
outputFilterSensitiveLog: CreateFileSystemFromBackupResponse.filterSensitiveLog,
|
|
112
|
-
};
|
|
113
|
-
const { requestHandler } = configuration;
|
|
114
|
-
return stack.resolve(
|
|
115
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
116
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
117
|
-
handlerExecutionContext
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
private serialize(input: CreateFileSystemFromBackupCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
122
|
-
return serializeAws_json1_1CreateFileSystemFromBackupCommand(input, context);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
private deserialize(
|
|
126
|
-
output: __HttpResponse,
|
|
127
|
-
context: __SerdeContext
|
|
128
|
-
): Promise<CreateFileSystemFromBackupCommandOutput> {
|
|
129
|
-
return deserializeAws_json1_1CreateFileSystemFromBackupCommand(output, context);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
// Start section: command_body_extra
|
|
133
|
-
// End section: command_body_extra
|
|
134
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { FSxClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FSxClient";
|
|
15
|
-
import { CreateStorageVirtualMachineRequest, CreateStorageVirtualMachineResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1CreateStorageVirtualMachineCommand,
|
|
18
|
-
serializeAws_json1_1CreateStorageVirtualMachineCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface CreateStorageVirtualMachineCommandInput extends CreateStorageVirtualMachineRequest {}
|
|
22
|
-
export interface CreateStorageVirtualMachineCommandOutput
|
|
23
|
-
extends CreateStorageVirtualMachineResponse,
|
|
24
|
-
__MetadataBearer {}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* <p>Creates a storage virtual machine (SVM) for an Amazon FSx for ONTAP file system.</p>
|
|
28
|
-
* @example
|
|
29
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
-
* ```javascript
|
|
31
|
-
* import { FSxClient, CreateStorageVirtualMachineCommand } from "@aws-sdk/client-fsx"; // ES Modules import
|
|
32
|
-
* // const { FSxClient, CreateStorageVirtualMachineCommand } = require("@aws-sdk/client-fsx"); // CommonJS import
|
|
33
|
-
* const client = new FSxClient(config);
|
|
34
|
-
* const command = new CreateStorageVirtualMachineCommand(input);
|
|
35
|
-
* const response = await client.send(command);
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @see {@link CreateStorageVirtualMachineCommandInput} for command's `input` shape.
|
|
39
|
-
* @see {@link CreateStorageVirtualMachineCommandOutput} for command's `response` shape.
|
|
40
|
-
* @see {@link FSxClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
export class CreateStorageVirtualMachineCommand extends $Command<
|
|
44
|
-
CreateStorageVirtualMachineCommandInput,
|
|
45
|
-
CreateStorageVirtualMachineCommandOutput,
|
|
46
|
-
FSxClientResolvedConfig
|
|
47
|
-
> {
|
|
48
|
-
// Start section: command_properties
|
|
49
|
-
// End section: command_properties
|
|
50
|
-
|
|
51
|
-
constructor(readonly input: CreateStorageVirtualMachineCommandInput) {
|
|
52
|
-
// Start section: command_constructor
|
|
53
|
-
super();
|
|
54
|
-
// End section: command_constructor
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
|
-
resolveMiddleware(
|
|
61
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
62
|
-
configuration: FSxClientResolvedConfig,
|
|
63
|
-
options?: __HttpHandlerOptions
|
|
64
|
-
): Handler<CreateStorageVirtualMachineCommandInput, CreateStorageVirtualMachineCommandOutput> {
|
|
65
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
66
|
-
|
|
67
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
68
|
-
|
|
69
|
-
const { logger } = configuration;
|
|
70
|
-
const clientName = "FSxClient";
|
|
71
|
-
const commandName = "CreateStorageVirtualMachineCommand";
|
|
72
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
73
|
-
logger,
|
|
74
|
-
clientName,
|
|
75
|
-
commandName,
|
|
76
|
-
inputFilterSensitiveLog: CreateStorageVirtualMachineRequest.filterSensitiveLog,
|
|
77
|
-
outputFilterSensitiveLog: CreateStorageVirtualMachineResponse.filterSensitiveLog,
|
|
78
|
-
};
|
|
79
|
-
const { requestHandler } = configuration;
|
|
80
|
-
return stack.resolve(
|
|
81
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
82
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
83
|
-
handlerExecutionContext
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
private serialize(input: CreateStorageVirtualMachineCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
88
|
-
return serializeAws_json1_1CreateStorageVirtualMachineCommand(input, context);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private deserialize(
|
|
92
|
-
output: __HttpResponse,
|
|
93
|
-
context: __SerdeContext
|
|
94
|
-
): Promise<CreateStorageVirtualMachineCommandOutput> {
|
|
95
|
-
return deserializeAws_json1_1CreateStorageVirtualMachineCommand(output, context);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Start section: command_body_extra
|
|
99
|
-
// End section: command_body_extra
|
|
100
|
-
}
|