@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,95 +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 { CreateVolumeRequest, CreateVolumeResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1CreateVolumeCommand,
|
|
18
|
-
serializeAws_json1_1CreateVolumeCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface CreateVolumeCommandInput extends CreateVolumeRequest {}
|
|
22
|
-
export interface CreateVolumeCommandOutput extends CreateVolumeResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Creates an Amazon FSx for NetApp ONTAP storage volume.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { FSxClient, CreateVolumeCommand } from "@aws-sdk/client-fsx"; // ES Modules import
|
|
30
|
-
* // const { FSxClient, CreateVolumeCommand } = require("@aws-sdk/client-fsx"); // CommonJS import
|
|
31
|
-
* const client = new FSxClient(config);
|
|
32
|
-
* const command = new CreateVolumeCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link CreateVolumeCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link CreateVolumeCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link FSxClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class CreateVolumeCommand extends $Command<
|
|
42
|
-
CreateVolumeCommandInput,
|
|
43
|
-
CreateVolumeCommandOutput,
|
|
44
|
-
FSxClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: CreateVolumeCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: FSxClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<CreateVolumeCommandInput, CreateVolumeCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "FSxClient";
|
|
69
|
-
const commandName = "CreateVolumeCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: CreateVolumeRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: CreateVolumeResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: CreateVolumeCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_1CreateVolumeCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateVolumeCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_1CreateVolumeCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,96 +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 { CreateVolumeFromBackupRequest, CreateVolumeFromBackupResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1CreateVolumeFromBackupCommand,
|
|
18
|
-
serializeAws_json1_1CreateVolumeFromBackupCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface CreateVolumeFromBackupCommandInput extends CreateVolumeFromBackupRequest {}
|
|
22
|
-
export interface CreateVolumeFromBackupCommandOutput extends CreateVolumeFromBackupResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Creates a new Amazon FSx for NetApp ONTAP volume from an
|
|
26
|
-
* existing Amazon FSx volume backup.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { FSxClient, CreateVolumeFromBackupCommand } from "@aws-sdk/client-fsx"; // ES Modules import
|
|
31
|
-
* // const { FSxClient, CreateVolumeFromBackupCommand } = require("@aws-sdk/client-fsx"); // CommonJS import
|
|
32
|
-
* const client = new FSxClient(config);
|
|
33
|
-
* const command = new CreateVolumeFromBackupCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link CreateVolumeFromBackupCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link CreateVolumeFromBackupCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link FSxClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class CreateVolumeFromBackupCommand extends $Command<
|
|
43
|
-
CreateVolumeFromBackupCommandInput,
|
|
44
|
-
CreateVolumeFromBackupCommandOutput,
|
|
45
|
-
FSxClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: CreateVolumeFromBackupCommandInput) {
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
super();
|
|
53
|
-
// End section: command_constructor
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
resolveMiddleware(
|
|
60
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
61
|
-
configuration: FSxClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<CreateVolumeFromBackupCommandInput, CreateVolumeFromBackupCommandOutput> {
|
|
64
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
-
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
|
|
68
|
-
const { logger } = configuration;
|
|
69
|
-
const clientName = "FSxClient";
|
|
70
|
-
const commandName = "CreateVolumeFromBackupCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: CreateVolumeFromBackupRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: CreateVolumeFromBackupResponse.filterSensitiveLog,
|
|
77
|
-
};
|
|
78
|
-
const { requestHandler } = configuration;
|
|
79
|
-
return stack.resolve(
|
|
80
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
81
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
82
|
-
handlerExecutionContext
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private serialize(input: CreateVolumeFromBackupCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_json1_1CreateVolumeFromBackupCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateVolumeFromBackupCommandOutput> {
|
|
91
|
-
return deserializeAws_json1_1CreateVolumeFromBackupCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -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 { DeleteBackupRequest, DeleteBackupResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1DeleteBackupCommand,
|
|
18
|
-
serializeAws_json1_1DeleteBackupCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface DeleteBackupCommandInput extends DeleteBackupRequest {}
|
|
22
|
-
export interface DeleteBackupCommandOutput extends DeleteBackupResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Deletes an Amazon FSx backup, deleting its contents. After deletion, the backup no longer exists, and its data is gone.</p>
|
|
26
|
-
*
|
|
27
|
-
* <p>The <code>DeleteBackup</code> call returns instantly. The backup will not show up
|
|
28
|
-
* in later <code>DescribeBackups</code> calls.</p>
|
|
29
|
-
*
|
|
30
|
-
* <important>
|
|
31
|
-
* <p>The data in a deleted backup is also deleted and can't be recovered by any
|
|
32
|
-
* means.</p>
|
|
33
|
-
* </important>
|
|
34
|
-
* @example
|
|
35
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
-
* ```javascript
|
|
37
|
-
* import { FSxClient, DeleteBackupCommand } from "@aws-sdk/client-fsx"; // ES Modules import
|
|
38
|
-
* // const { FSxClient, DeleteBackupCommand } = require("@aws-sdk/client-fsx"); // CommonJS import
|
|
39
|
-
* const client = new FSxClient(config);
|
|
40
|
-
* const command = new DeleteBackupCommand(input);
|
|
41
|
-
* const response = await client.send(command);
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* @see {@link DeleteBackupCommandInput} for command's `input` shape.
|
|
45
|
-
* @see {@link DeleteBackupCommandOutput} for command's `response` shape.
|
|
46
|
-
* @see {@link FSxClientResolvedConfig | config} for command's `input` shape.
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
export class DeleteBackupCommand extends $Command<
|
|
50
|
-
DeleteBackupCommandInput,
|
|
51
|
-
DeleteBackupCommandOutput,
|
|
52
|
-
FSxClientResolvedConfig
|
|
53
|
-
> {
|
|
54
|
-
// Start section: command_properties
|
|
55
|
-
// End section: command_properties
|
|
56
|
-
|
|
57
|
-
constructor(readonly input: DeleteBackupCommandInput) {
|
|
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<DeleteBackupCommandInput, DeleteBackupCommandOutput> {
|
|
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 = "DeleteBackupCommand";
|
|
78
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
79
|
-
logger,
|
|
80
|
-
clientName,
|
|
81
|
-
commandName,
|
|
82
|
-
inputFilterSensitiveLog: DeleteBackupRequest.filterSensitiveLog,
|
|
83
|
-
outputFilterSensitiveLog: DeleteBackupResponse.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: DeleteBackupCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
94
|
-
return serializeAws_json1_1DeleteBackupCommand(input, context);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteBackupCommandOutput> {
|
|
98
|
-
return deserializeAws_json1_1DeleteBackupCommand(output, context);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// Start section: command_body_extra
|
|
102
|
-
// End section: command_body_extra
|
|
103
|
-
}
|
|
@@ -1,120 +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 { DeleteFileSystemRequest, DeleteFileSystemResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1DeleteFileSystemCommand,
|
|
18
|
-
serializeAws_json1_1DeleteFileSystemCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface DeleteFileSystemCommandInput extends DeleteFileSystemRequest {}
|
|
22
|
-
export interface DeleteFileSystemCommandOutput extends DeleteFileSystemResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Deletes a file system, deleting its contents. After deletion, the file system no
|
|
26
|
-
* longer exists, and its data is gone. Any existing automatic backups will also be
|
|
27
|
-
* deleted.</p>
|
|
28
|
-
* <p>To delete an Amazon FSx for NetApp ONTAP file system, first delete all the volumes
|
|
29
|
-
* and SVMs on the file system. Then provide a <code>FileSystemId</code> value to the
|
|
30
|
-
* <code>DeleFileSystem</code> operation.</p>
|
|
31
|
-
*
|
|
32
|
-
* <p>By default, when you delete an Amazon FSx for Windows File Server file system, a
|
|
33
|
-
* final backup is created upon deletion. This final backup is not subject to the file
|
|
34
|
-
* system's retention policy, and must be manually deleted.</p>
|
|
35
|
-
*
|
|
36
|
-
* <p>The <code>DeleteFileSystem</code> action returns while the file system has the
|
|
37
|
-
* <code>DELETING</code> status. You can check the file system deletion status by
|
|
38
|
-
* calling the <a>DescribeFileSystems</a> action, which returns a list of file
|
|
39
|
-
* systems in your account. If you pass the file system ID for a deleted file system, the
|
|
40
|
-
* <a>DescribeFileSystems</a> returns a <code>FileSystemNotFound</code>
|
|
41
|
-
* error.</p>
|
|
42
|
-
* <note>
|
|
43
|
-
* <p>Deleting an Amazon FSx for Lustre file system will fail with a 400 BadRequest if
|
|
44
|
-
* a data repository task is in a <code>PENDING</code> or <code>EXECUTING</code>
|
|
45
|
-
* state.</p>
|
|
46
|
-
* </note>
|
|
47
|
-
* <important>
|
|
48
|
-
* <p>The data in a deleted file system is also deleted and can't be recovered by
|
|
49
|
-
* any means.</p>
|
|
50
|
-
* </important>
|
|
51
|
-
* @example
|
|
52
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
53
|
-
* ```javascript
|
|
54
|
-
* import { FSxClient, DeleteFileSystemCommand } from "@aws-sdk/client-fsx"; // ES Modules import
|
|
55
|
-
* // const { FSxClient, DeleteFileSystemCommand } = require("@aws-sdk/client-fsx"); // CommonJS import
|
|
56
|
-
* const client = new FSxClient(config);
|
|
57
|
-
* const command = new DeleteFileSystemCommand(input);
|
|
58
|
-
* const response = await client.send(command);
|
|
59
|
-
* ```
|
|
60
|
-
*
|
|
61
|
-
* @see {@link DeleteFileSystemCommandInput} for command's `input` shape.
|
|
62
|
-
* @see {@link DeleteFileSystemCommandOutput} for command's `response` shape.
|
|
63
|
-
* @see {@link FSxClientResolvedConfig | config} for command's `input` shape.
|
|
64
|
-
*
|
|
65
|
-
*/
|
|
66
|
-
export class DeleteFileSystemCommand extends $Command<
|
|
67
|
-
DeleteFileSystemCommandInput,
|
|
68
|
-
DeleteFileSystemCommandOutput,
|
|
69
|
-
FSxClientResolvedConfig
|
|
70
|
-
> {
|
|
71
|
-
// Start section: command_properties
|
|
72
|
-
// End section: command_properties
|
|
73
|
-
|
|
74
|
-
constructor(readonly input: DeleteFileSystemCommandInput) {
|
|
75
|
-
// Start section: command_constructor
|
|
76
|
-
super();
|
|
77
|
-
// End section: command_constructor
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* @internal
|
|
82
|
-
*/
|
|
83
|
-
resolveMiddleware(
|
|
84
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
85
|
-
configuration: FSxClientResolvedConfig,
|
|
86
|
-
options?: __HttpHandlerOptions
|
|
87
|
-
): Handler<DeleteFileSystemCommandInput, DeleteFileSystemCommandOutput> {
|
|
88
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
89
|
-
|
|
90
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
91
|
-
|
|
92
|
-
const { logger } = configuration;
|
|
93
|
-
const clientName = "FSxClient";
|
|
94
|
-
const commandName = "DeleteFileSystemCommand";
|
|
95
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
96
|
-
logger,
|
|
97
|
-
clientName,
|
|
98
|
-
commandName,
|
|
99
|
-
inputFilterSensitiveLog: DeleteFileSystemRequest.filterSensitiveLog,
|
|
100
|
-
outputFilterSensitiveLog: DeleteFileSystemResponse.filterSensitiveLog,
|
|
101
|
-
};
|
|
102
|
-
const { requestHandler } = configuration;
|
|
103
|
-
return stack.resolve(
|
|
104
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
105
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
106
|
-
handlerExecutionContext
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
private serialize(input: DeleteFileSystemCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
111
|
-
return serializeAws_json1_1DeleteFileSystemCommand(input, context);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteFileSystemCommandOutput> {
|
|
115
|
-
return deserializeAws_json1_1DeleteFileSystemCommand(output, context);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
// Start section: command_body_extra
|
|
119
|
-
// End section: command_body_extra
|
|
120
|
-
}
|
|
@@ -1,101 +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 { DeleteStorageVirtualMachineRequest, DeleteStorageVirtualMachineResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1DeleteStorageVirtualMachineCommand,
|
|
18
|
-
serializeAws_json1_1DeleteStorageVirtualMachineCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface DeleteStorageVirtualMachineCommandInput extends DeleteStorageVirtualMachineRequest {}
|
|
22
|
-
export interface DeleteStorageVirtualMachineCommandOutput
|
|
23
|
-
extends DeleteStorageVirtualMachineResponse,
|
|
24
|
-
__MetadataBearer {}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* <p>Deletes an existing Amazon FSx for ONTAP storage virtual machine (SVM). Prior
|
|
28
|
-
* to deleting an SVM, you must delete all non-root volumes in the SVM, otherwise the operation will fail.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { FSxClient, DeleteStorageVirtualMachineCommand } from "@aws-sdk/client-fsx"; // ES Modules import
|
|
33
|
-
* // const { FSxClient, DeleteStorageVirtualMachineCommand } = require("@aws-sdk/client-fsx"); // CommonJS import
|
|
34
|
-
* const client = new FSxClient(config);
|
|
35
|
-
* const command = new DeleteStorageVirtualMachineCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link DeleteStorageVirtualMachineCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link DeleteStorageVirtualMachineCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link FSxClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class DeleteStorageVirtualMachineCommand extends $Command<
|
|
45
|
-
DeleteStorageVirtualMachineCommandInput,
|
|
46
|
-
DeleteStorageVirtualMachineCommandOutput,
|
|
47
|
-
FSxClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: DeleteStorageVirtualMachineCommandInput) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
super();
|
|
55
|
-
// End section: command_constructor
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
resolveMiddleware(
|
|
62
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
63
|
-
configuration: FSxClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<DeleteStorageVirtualMachineCommandInput, DeleteStorageVirtualMachineCommandOutput> {
|
|
66
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
|
-
|
|
68
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
69
|
-
|
|
70
|
-
const { logger } = configuration;
|
|
71
|
-
const clientName = "FSxClient";
|
|
72
|
-
const commandName = "DeleteStorageVirtualMachineCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: DeleteStorageVirtualMachineRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: DeleteStorageVirtualMachineResponse.filterSensitiveLog,
|
|
79
|
-
};
|
|
80
|
-
const { requestHandler } = configuration;
|
|
81
|
-
return stack.resolve(
|
|
82
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
83
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
84
|
-
handlerExecutionContext
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private serialize(input: DeleteStorageVirtualMachineCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_json1_1DeleteStorageVirtualMachineCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(
|
|
93
|
-
output: __HttpResponse,
|
|
94
|
-
context: __SerdeContext
|
|
95
|
-
): Promise<DeleteStorageVirtualMachineCommandOutput> {
|
|
96
|
-
return deserializeAws_json1_1DeleteStorageVirtualMachineCommand(output, context);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// Start section: command_body_extra
|
|
100
|
-
// End section: command_body_extra
|
|
101
|
-
}
|
|
@@ -1,98 +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 { DeleteVolumeRequest, DeleteVolumeResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1DeleteVolumeCommand,
|
|
18
|
-
serializeAws_json1_1DeleteVolumeCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface DeleteVolumeCommandInput extends DeleteVolumeRequest {}
|
|
22
|
-
export interface DeleteVolumeCommandOutput extends DeleteVolumeResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Deletes an Amazon FSx for NetApp ONTAP volume. When deleting a volume,
|
|
26
|
-
* you have the option of creating a final backup. If you create a final backup, you have the option to
|
|
27
|
-
* apply Tags to the backup. You need to have <code>fsx:TagResource</code>
|
|
28
|
-
* permission in order to apply tags to the backup.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { FSxClient, DeleteVolumeCommand } from "@aws-sdk/client-fsx"; // ES Modules import
|
|
33
|
-
* // const { FSxClient, DeleteVolumeCommand } = require("@aws-sdk/client-fsx"); // CommonJS import
|
|
34
|
-
* const client = new FSxClient(config);
|
|
35
|
-
* const command = new DeleteVolumeCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link DeleteVolumeCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link DeleteVolumeCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link FSxClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class DeleteVolumeCommand extends $Command<
|
|
45
|
-
DeleteVolumeCommandInput,
|
|
46
|
-
DeleteVolumeCommandOutput,
|
|
47
|
-
FSxClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: DeleteVolumeCommandInput) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
super();
|
|
55
|
-
// End section: command_constructor
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
resolveMiddleware(
|
|
62
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
63
|
-
configuration: FSxClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<DeleteVolumeCommandInput, DeleteVolumeCommandOutput> {
|
|
66
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
|
-
|
|
68
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
69
|
-
|
|
70
|
-
const { logger } = configuration;
|
|
71
|
-
const clientName = "FSxClient";
|
|
72
|
-
const commandName = "DeleteVolumeCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: DeleteVolumeRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: DeleteVolumeResponse.filterSensitiveLog,
|
|
79
|
-
};
|
|
80
|
-
const { requestHandler } = configuration;
|
|
81
|
-
return stack.resolve(
|
|
82
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
83
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
84
|
-
handlerExecutionContext
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private serialize(input: DeleteVolumeCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_json1_1DeleteVolumeCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteVolumeCommandOutput> {
|
|
93
|
-
return deserializeAws_json1_1DeleteVolumeCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|