@aws-sdk/client-fsx 3.180.0 → 3.183.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.
Files changed (102) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist-cjs/FSx.js +60 -0
  3. package/dist-cjs/commands/CreateFileCacheCommand.js +36 -0
  4. package/dist-cjs/commands/DeleteFileCacheCommand.js +36 -0
  5. package/dist-cjs/commands/DescribeFileCachesCommand.js +36 -0
  6. package/dist-cjs/commands/UpdateFileCacheCommand.js +36 -0
  7. package/dist-cjs/commands/index.js +4 -0
  8. package/dist-cjs/models/models_0.js +154 -27
  9. package/dist-cjs/pagination/DescribeFileCachesPaginator.js +36 -0
  10. package/dist-cjs/pagination/index.js +1 -0
  11. package/dist-cjs/protocols/Aws_json1_1.js +587 -39
  12. package/dist-es/FSx.js +209 -156
  13. package/dist-es/FSxClient.js +22 -28
  14. package/dist-es/commands/AssociateFileSystemAliasesCommand.js +21 -28
  15. package/dist-es/commands/CancelDataRepositoryTaskCommand.js +21 -28
  16. package/dist-es/commands/CopyBackupCommand.js +21 -28
  17. package/dist-es/commands/CreateBackupCommand.js +21 -28
  18. package/dist-es/commands/CreateDataRepositoryAssociationCommand.js +21 -28
  19. package/dist-es/commands/CreateDataRepositoryTaskCommand.js +21 -28
  20. package/dist-es/commands/CreateFileCacheCommand.js +32 -0
  21. package/dist-es/commands/CreateFileSystemCommand.js +21 -28
  22. package/dist-es/commands/CreateFileSystemFromBackupCommand.js +21 -28
  23. package/dist-es/commands/CreateSnapshotCommand.js +21 -28
  24. package/dist-es/commands/CreateStorageVirtualMachineCommand.js +21 -28
  25. package/dist-es/commands/CreateVolumeCommand.js +21 -28
  26. package/dist-es/commands/CreateVolumeFromBackupCommand.js +21 -28
  27. package/dist-es/commands/DeleteBackupCommand.js +21 -28
  28. package/dist-es/commands/DeleteDataRepositoryAssociationCommand.js +21 -28
  29. package/dist-es/commands/DeleteFileCacheCommand.js +32 -0
  30. package/dist-es/commands/DeleteFileSystemCommand.js +21 -28
  31. package/dist-es/commands/DeleteSnapshotCommand.js +21 -28
  32. package/dist-es/commands/DeleteStorageVirtualMachineCommand.js +21 -28
  33. package/dist-es/commands/DeleteVolumeCommand.js +21 -28
  34. package/dist-es/commands/DescribeBackupsCommand.js +21 -28
  35. package/dist-es/commands/DescribeDataRepositoryAssociationsCommand.js +21 -28
  36. package/dist-es/commands/DescribeDataRepositoryTasksCommand.js +21 -28
  37. package/dist-es/commands/DescribeFileCachesCommand.js +32 -0
  38. package/dist-es/commands/DescribeFileSystemAliasesCommand.js +21 -28
  39. package/dist-es/commands/DescribeFileSystemsCommand.js +21 -28
  40. package/dist-es/commands/DescribeSnapshotsCommand.js +21 -28
  41. package/dist-es/commands/DescribeStorageVirtualMachinesCommand.js +21 -28
  42. package/dist-es/commands/DescribeVolumesCommand.js +21 -28
  43. package/dist-es/commands/DisassociateFileSystemAliasesCommand.js +21 -28
  44. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  45. package/dist-es/commands/ReleaseFileSystemNfsV3LocksCommand.js +21 -28
  46. package/dist-es/commands/RestoreVolumeFromSnapshotCommand.js +21 -28
  47. package/dist-es/commands/TagResourceCommand.js +21 -28
  48. package/dist-es/commands/UntagResourceCommand.js +21 -28
  49. package/dist-es/commands/UpdateDataRepositoryAssociationCommand.js +21 -28
  50. package/dist-es/commands/UpdateFileCacheCommand.js +32 -0
  51. package/dist-es/commands/UpdateFileSystemCommand.js +21 -28
  52. package/dist-es/commands/UpdateSnapshotCommand.js +21 -28
  53. package/dist-es/commands/UpdateStorageVirtualMachineCommand.js +21 -28
  54. package/dist-es/commands/UpdateVolumeCommand.js +21 -28
  55. package/dist-es/commands/index.js +4 -0
  56. package/dist-es/endpoints.js +8 -8
  57. package/dist-es/models/FSxServiceException.js +5 -10
  58. package/dist-es/models/models_0.js +1043 -617
  59. package/dist-es/pagination/DescribeBackupsPaginator.js +25 -68
  60. package/dist-es/pagination/DescribeDataRepositoryAssociationsPaginator.js +25 -68
  61. package/dist-es/pagination/DescribeDataRepositoryTasksPaginator.js +25 -68
  62. package/dist-es/pagination/DescribeFileCachesPaginator.js +32 -0
  63. package/dist-es/pagination/DescribeFileSystemAliasesPaginator.js +25 -68
  64. package/dist-es/pagination/DescribeFileSystemsPaginator.js +25 -68
  65. package/dist-es/pagination/DescribeSnapshotsPaginator.js +25 -68
  66. package/dist-es/pagination/DescribeStorageVirtualMachinesPaginator.js +25 -68
  67. package/dist-es/pagination/DescribeVolumesPaginator.js +25 -68
  68. package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
  69. package/dist-es/pagination/index.js +1 -0
  70. package/dist-es/protocols/Aws_json1_1.js +3959 -3957
  71. package/dist-es/runtimeConfig.browser.js +26 -12
  72. package/dist-es/runtimeConfig.js +30 -12
  73. package/dist-es/runtimeConfig.native.js +8 -5
  74. package/dist-es/runtimeConfig.shared.js +8 -11
  75. package/dist-types/FSx.d.ts +118 -26
  76. package/dist-types/FSxClient.d.ts +6 -2
  77. package/dist-types/commands/CreateDataRepositoryAssociationCommand.d.ts +6 -0
  78. package/dist-types/commands/CreateFileCacheCommand.d.ts +58 -0
  79. package/dist-types/commands/CreateFileSystemCommand.d.ts +0 -10
  80. package/dist-types/commands/DeleteFileCacheCommand.d.ts +48 -0
  81. package/dist-types/commands/DescribeDataRepositoryAssociationsCommand.d.ts +13 -11
  82. package/dist-types/commands/DescribeDataRepositoryTasksCommand.d.ts +4 -4
  83. package/dist-types/commands/DescribeFileCachesCommand.d.ts +65 -0
  84. package/dist-types/commands/DescribeFileSystemsCommand.d.ts +0 -1
  85. package/dist-types/commands/UpdateFileCacheCommand.d.ts +36 -0
  86. package/dist-types/commands/index.d.ts +4 -0
  87. package/dist-types/models/models_0.d.ts +964 -125
  88. package/dist-types/pagination/DescribeFileCachesPaginator.d.ts +4 -0
  89. package/dist-types/pagination/index.d.ts +1 -0
  90. package/dist-types/protocols/Aws_json1_1.d.ts +12 -0
  91. package/dist-types/ts3.4/FSx.d.ts +68 -0
  92. package/dist-types/ts3.4/FSxClient.d.ts +24 -0
  93. package/dist-types/ts3.4/commands/CreateFileCacheCommand.d.ts +35 -0
  94. package/dist-types/ts3.4/commands/DeleteFileCacheCommand.d.ts +35 -0
  95. package/dist-types/ts3.4/commands/DescribeFileCachesCommand.d.ts +36 -0
  96. package/dist-types/ts3.4/commands/UpdateFileCacheCommand.d.ts +35 -0
  97. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  98. package/dist-types/ts3.4/models/models_0.d.ts +239 -25
  99. package/dist-types/ts3.4/pagination/DescribeFileCachesPaginator.d.ts +11 -0
  100. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  101. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +48 -0
  102. package/package.json +33 -33
@@ -7,23 +7,25 @@ export interface DescribeDataRepositoryAssociationsCommandInput extends Describe
7
7
  export interface DescribeDataRepositoryAssociationsCommandOutput extends DescribeDataRepositoryAssociationsResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Returns the description of specific Amazon FSx for Lustre data repository associations, if
11
- * one or more <code>AssociationIds</code> values are provided in the request, or if filters are
12
- * used in the request. Data repository associations are supported only
13
- * for file systems with the <code>Persistent_2</code> deployment type.</p>
10
+ * <p>Returns the description of specific Amazon FSx for Lustre or Amazon File Cache
11
+ * data repository associations, if one or more <code>AssociationIds</code> values
12
+ * are provided in the request, or if filters are used in the request. Data repository
13
+ * associations are supported only for Amazon FSx for Lustre file systems with the
14
+ * <code>Persistent_2</code> deployment type and for Amazon File Cache resources.</p>
14
15
  *
15
16
  * <p>You can use filters to narrow the response to include just data repository
16
17
  * associations for specific file systems (use the <code>file-system-id</code> filter with
17
- * the ID of the file system) or data repository associations for a specific repository type
18
- * (use the <code>data-repository-type</code> filter with a value of <code>S3</code>).
19
- * If you don't use filters, the response returns all data repository associations
20
- * owned by your Amazon Web Services account in the Amazon Web Services Region of the endpoint
21
- * that you're calling.</p>
18
+ * the ID of the file system) or caches (use the <code>file-cache-id</code> filter with
19
+ * the ID of the cache), or data repository associations for a specific repository type
20
+ * (use the <code>data-repository-type</code> filter with a value of <code>S3</code>
21
+ * or <code>NFS</code>). If you don't use filters, the response returns all data
22
+ * repository associations owned by your Amazon Web Services account in the Amazon Web Services Region
23
+ * of the endpoint that you're calling.</p>
22
24
  *
23
25
  * <p>When retrieving all data repository associations, you can paginate the response by using
24
26
  * the optional <code>MaxResults</code> parameter to limit the number of data repository associations
25
- * returned in a response. If more data repository associations remain, Amazon FSx returns a
26
- * <code>NextToken</code> value in the response. In this case, send a later
27
+ * returned in a response. If more data repository associations remain, a
28
+ * <code>NextToken</code> value is returned in the response. In this case, send a later
27
29
  * request with the <code>NextToken</code> request parameter set to the value of
28
30
  * <code>NextToken</code> from the last response.</p>
29
31
  * @example
@@ -7,15 +7,15 @@ export interface DescribeDataRepositoryTasksCommandInput extends DescribeDataRep
7
7
  export interface DescribeDataRepositoryTasksCommandOutput extends DescribeDataRepositoryTasksResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Returns the description of specific Amazon FSx for Lustre data repository tasks, if
10
+ * <p>Returns the description of specific Amazon FSx for Lustre or Amazon File Cache data repository tasks, if
11
11
  * one or more <code>TaskIds</code> values are provided in the request, or if filters are used in the request.
12
- * You can use filters to narrow the response to include just tasks for specific file systems,
12
+ * You can use filters to narrow the response to include just tasks for specific file systems or caches,
13
13
  * or tasks in a specific lifecycle state. Otherwise, it returns all data repository tasks owned
14
14
  * by your Amazon Web Services account in the Amazon Web Services Region of the endpoint that you're calling.</p>
15
15
  *
16
16
  * <p>When retrieving all tasks, you can paginate the response by using the optional <code>MaxResults</code>
17
- * parameter to limit the number of tasks returned in a response. If more tasks remain, Amazon
18
- * FSx returns a <code>NextToken</code> value in the response. In this case, send a later
17
+ * parameter to limit the number of tasks returned in a response. If more tasks remain,
18
+ * a <code>NextToken</code> value is returned in the response. In this case, send a later
19
19
  * request with the <code>NextToken</code> request parameter set to the value of
20
20
  * <code>NextToken</code> from the last response.</p>
21
21
  * @example
@@ -0,0 +1,65 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { FSxClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FSxClient";
4
+ import { DescribeFileCachesRequest, DescribeFileCachesResponse } from "../models/models_0";
5
+ export interface DescribeFileCachesCommandInput extends DescribeFileCachesRequest {
6
+ }
7
+ export interface DescribeFileCachesCommandOutput extends DescribeFileCachesResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Returns the description of a specific Amazon File Cache resource, if a
11
+ * <code>FileCacheIds</code> value is provided for that cache. Otherwise, it
12
+ * returns descriptions of all caches owned by your Amazon Web Services account in the
13
+ * Amazon Web Services Region of the endpoint that you're calling.</p>
14
+ *
15
+ * <p>When retrieving all cache descriptions, you can optionally specify the
16
+ * <code>MaxResults</code> parameter to limit the number of descriptions in a response.
17
+ * If more cache descriptions remain, the operation returns a
18
+ * <code>NextToken</code> value in the response. In this case, send a later request
19
+ * with the <code>NextToken</code> request parameter set to the value of
20
+ * <code>NextToken</code> from the last response.</p>
21
+ *
22
+ * <p>This operation is used in an iterative process to retrieve a list of your cache
23
+ * descriptions. <code>DescribeFileCaches</code> is called first without a
24
+ * <code>NextToken</code>value. Then the operation continues to be called with the
25
+ * <code>NextToken</code> parameter set to the value of the last <code>NextToken</code>
26
+ * value until a response has no <code>NextToken</code>.</p>
27
+ *
28
+ * <p>When using this operation, keep the following in mind:</p>
29
+ * <ul>
30
+ * <li>
31
+ * <p>The implementation might return fewer than <code>MaxResults</code>
32
+ * cache descriptions while still including a <code>NextToken</code>
33
+ * value.</p>
34
+ * </li>
35
+ * <li>
36
+ * <p>The order of caches returned in the response of one
37
+ * <code>DescribeFileCaches</code> call and the order of caches returned
38
+ * across the responses of a multicall iteration is unspecified.</p>
39
+ * </li>
40
+ * </ul>
41
+ * @example
42
+ * Use a bare-bones client and the command you need to make an API call.
43
+ * ```javascript
44
+ * import { FSxClient, DescribeFileCachesCommand } from "@aws-sdk/client-fsx"; // ES Modules import
45
+ * // const { FSxClient, DescribeFileCachesCommand } = require("@aws-sdk/client-fsx"); // CommonJS import
46
+ * const client = new FSxClient(config);
47
+ * const command = new DescribeFileCachesCommand(input);
48
+ * const response = await client.send(command);
49
+ * ```
50
+ *
51
+ * @see {@link DescribeFileCachesCommandInput} for command's `input` shape.
52
+ * @see {@link DescribeFileCachesCommandOutput} for command's `response` shape.
53
+ * @see {@link FSxClientResolvedConfig | config} for FSxClient's `config` shape.
54
+ *
55
+ */
56
+ export declare class DescribeFileCachesCommand extends $Command<DescribeFileCachesCommandInput, DescribeFileCachesCommandOutput, FSxClientResolvedConfig> {
57
+ readonly input: DescribeFileCachesCommandInput;
58
+ constructor(input: DescribeFileCachesCommandInput);
59
+ /**
60
+ * @internal
61
+ */
62
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: FSxClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeFileCachesCommandInput, DescribeFileCachesCommandOutput>;
63
+ private serialize;
64
+ private deserialize;
65
+ }
@@ -31,7 +31,6 @@ export interface DescribeFileSystemsCommandOutput extends DescribeFileSystemsRes
31
31
  * <p>The implementation might return fewer than <code>MaxResults</code> file
32
32
  * system descriptions while still including a <code>NextToken</code>
33
33
  * value.</p>
34
- *
35
34
  * </li>
36
35
  * <li>
37
36
  * <p>The order of file systems returned in the response of one
@@ -0,0 +1,36 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { FSxClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FSxClient";
4
+ import { UpdateFileCacheRequest, UpdateFileCacheResponse } from "../models/models_0";
5
+ export interface UpdateFileCacheCommandInput extends UpdateFileCacheRequest {
6
+ }
7
+ export interface UpdateFileCacheCommandOutput extends UpdateFileCacheResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Updates the configuration of an existing Amazon File Cache resource.
11
+ * You can update multiple properties in a single request.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { FSxClient, UpdateFileCacheCommand } from "@aws-sdk/client-fsx"; // ES Modules import
16
+ * // const { FSxClient, UpdateFileCacheCommand } = require("@aws-sdk/client-fsx"); // CommonJS import
17
+ * const client = new FSxClient(config);
18
+ * const command = new UpdateFileCacheCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link UpdateFileCacheCommandInput} for command's `input` shape.
23
+ * @see {@link UpdateFileCacheCommandOutput} for command's `response` shape.
24
+ * @see {@link FSxClientResolvedConfig | config} for FSxClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class UpdateFileCacheCommand extends $Command<UpdateFileCacheCommandInput, UpdateFileCacheCommandOutput, FSxClientResolvedConfig> {
28
+ readonly input: UpdateFileCacheCommandInput;
29
+ constructor(input: UpdateFileCacheCommandInput);
30
+ /**
31
+ * @internal
32
+ */
33
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: FSxClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateFileCacheCommandInput, UpdateFileCacheCommandOutput>;
34
+ private serialize;
35
+ private deserialize;
36
+ }
@@ -4,6 +4,7 @@ export * from "./CopyBackupCommand";
4
4
  export * from "./CreateBackupCommand";
5
5
  export * from "./CreateDataRepositoryAssociationCommand";
6
6
  export * from "./CreateDataRepositoryTaskCommand";
7
+ export * from "./CreateFileCacheCommand";
7
8
  export * from "./CreateFileSystemCommand";
8
9
  export * from "./CreateFileSystemFromBackupCommand";
9
10
  export * from "./CreateSnapshotCommand";
@@ -12,6 +13,7 @@ export * from "./CreateVolumeCommand";
12
13
  export * from "./CreateVolumeFromBackupCommand";
13
14
  export * from "./DeleteBackupCommand";
14
15
  export * from "./DeleteDataRepositoryAssociationCommand";
16
+ export * from "./DeleteFileCacheCommand";
15
17
  export * from "./DeleteFileSystemCommand";
16
18
  export * from "./DeleteSnapshotCommand";
17
19
  export * from "./DeleteStorageVirtualMachineCommand";
@@ -19,6 +21,7 @@ export * from "./DeleteVolumeCommand";
19
21
  export * from "./DescribeBackupsCommand";
20
22
  export * from "./DescribeDataRepositoryAssociationsCommand";
21
23
  export * from "./DescribeDataRepositoryTasksCommand";
24
+ export * from "./DescribeFileCachesCommand";
22
25
  export * from "./DescribeFileSystemAliasesCommand";
23
26
  export * from "./DescribeFileSystemsCommand";
24
27
  export * from "./DescribeSnapshotsCommand";
@@ -31,6 +34,7 @@ export * from "./RestoreVolumeFromSnapshotCommand";
31
34
  export * from "./TagResourceCommand";
32
35
  export * from "./UntagResourceCommand";
33
36
  export * from "./UpdateDataRepositoryAssociationCommand";
37
+ export * from "./UpdateFileCacheCommand";
34
38
  export * from "./UpdateFileSystemCommand";
35
39
  export * from "./UpdateSnapshotCommand";
36
40
  export * from "./UpdateStorageVirtualMachineCommand";