@aws-sdk/client-efs 3.287.0 → 3.289.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.
@@ -77,6 +77,47 @@ export interface CreateFileSystemCommandOutput extends FileSystemDescription, __
77
77
  * @see {@link CreateFileSystemCommandOutput} for command's `response` shape.
78
78
  * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape.
79
79
  *
80
+ * @example To create a new file system
81
+ * ```javascript
82
+ * // This operation creates a new, encrypted file system with automatic backups enabled, and the default generalpurpose performance mode.
83
+ * const input = {
84
+ * "Backup": true,
85
+ * "CreationToken": "tokenstring",
86
+ * "Encrypted": true,
87
+ * "PerformanceMode": "generalPurpose",
88
+ * "Tags": [
89
+ * {
90
+ * "Key": "Name",
91
+ * "Value": "MyFileSystem"
92
+ * }
93
+ * ]
94
+ * };
95
+ * const command = new CreateFileSystemCommand(input);
96
+ * const response = await client.send(command);
97
+ * /* response ==
98
+ * {
99
+ * "CreationTime": "1481841524.0",
100
+ * "CreationToken": "tokenstring",
101
+ * "Encrypted": true,
102
+ * "FileSystemId": "fs-01234567",
103
+ * "LifeCycleState": "creating",
104
+ * "NumberOfMountTargets": 0,
105
+ * "OwnerId": "012345678912",
106
+ * "PerformanceMode": "generalPurpose",
107
+ * "SizeInBytes": {
108
+ * "Value": 0
109
+ * },
110
+ * "Tags": [
111
+ * {
112
+ * "Key": "Name",
113
+ * "Value": "MyFileSystem"
114
+ * }
115
+ * ]
116
+ * }
117
+ * *\/
118
+ * // example id: to-create-a-new-file-system-1481840798547
119
+ * ```
120
+ *
80
121
  */
81
122
  export declare class CreateFileSystemCommand extends $Command<CreateFileSystemCommandInput, CreateFileSystemCommandOutput, EFSClientResolvedConfig> {
82
123
  readonly input: CreateFileSystemCommandInput;
@@ -168,6 +168,29 @@ export interface CreateMountTargetCommandOutput extends MountTargetDescription,
168
168
  * @see {@link CreateMountTargetCommandOutput} for command's `response` shape.
169
169
  * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape.
170
170
  *
171
+ * @example To create a new mount target
172
+ * ```javascript
173
+ * // This operation creates a new mount target for an EFS file system.
174
+ * const input = {
175
+ * "FileSystemId": "fs-01234567",
176
+ * "SubnetId": "subnet-1234abcd"
177
+ * };
178
+ * const command = new CreateMountTargetCommand(input);
179
+ * const response = await client.send(command);
180
+ * /* response ==
181
+ * {
182
+ * "FileSystemId": "fs-01234567",
183
+ * "IpAddress": "192.0.0.2",
184
+ * "LifeCycleState": "creating",
185
+ * "MountTargetId": "fsmt-12340abc",
186
+ * "NetworkInterfaceId": "eni-cedf6789",
187
+ * "OwnerId": "012345678912",
188
+ * "SubnetId": "subnet-1234abcd"
189
+ * }
190
+ * *\/
191
+ * // example id: to-create-a-new-mount-target-1481842289329
192
+ * ```
193
+ *
171
194
  */
172
195
  export declare class CreateMountTargetCommand extends $Command<CreateMountTargetCommandInput, CreateMountTargetCommandOutput, EFSClientResolvedConfig> {
173
196
  readonly input: CreateMountTargetCommandInput;
@@ -40,6 +40,23 @@ export interface CreateTagsCommandOutput extends __MetadataBearer {
40
40
  * @see {@link CreateTagsCommandOutput} for command's `response` shape.
41
41
  * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape.
42
42
  *
43
+ * @example To create a new tag
44
+ * ```javascript
45
+ * // This operation creates a new tag for an EFS file system.
46
+ * const input = {
47
+ * "FileSystemId": "fs-01234567",
48
+ * "Tags": [
49
+ * {
50
+ * "Key": "Name",
51
+ * "Value": "MyFileSystem"
52
+ * }
53
+ * ]
54
+ * };
55
+ * const command = new CreateTagsCommand(input);
56
+ * await client.send(command);
57
+ * // example id: to-create-a-new-tag-1481843409357
58
+ * ```
59
+ *
43
60
  */
44
61
  export declare class CreateTagsCommand extends $Command<CreateTagsCommandInput, CreateTagsCommandOutput, EFSClientResolvedConfig> {
45
62
  readonly input: CreateTagsCommandInput;
@@ -48,6 +48,17 @@ export interface DeleteFileSystemCommandOutput extends __MetadataBearer {
48
48
  * @see {@link DeleteFileSystemCommandOutput} for command's `response` shape.
49
49
  * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape.
50
50
  *
51
+ * @example To delete a file system
52
+ * ```javascript
53
+ * // This operation deletes an EFS file system.
54
+ * const input = {
55
+ * "FileSystemId": "fs-01234567"
56
+ * };
57
+ * const command = new DeleteFileSystemCommand(input);
58
+ * await client.send(command);
59
+ * // example id: to-delete-a-file-system-1481847318348
60
+ * ```
61
+ *
51
62
  */
52
63
  export declare class DeleteFileSystemCommand extends $Command<DeleteFileSystemCommandInput, DeleteFileSystemCommandOutput, EFSClientResolvedConfig> {
53
64
  readonly input: DeleteFileSystemCommandInput;
@@ -59,6 +59,17 @@ export interface DeleteMountTargetCommandOutput extends __MetadataBearer {
59
59
  * @see {@link DeleteMountTargetCommandOutput} for command's `response` shape.
60
60
  * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape.
61
61
  *
62
+ * @example To delete a mount target
63
+ * ```javascript
64
+ * // This operation deletes a mount target.
65
+ * const input = {
66
+ * "MountTargetId": "fsmt-12340abc"
67
+ * };
68
+ * const command = new DeleteMountTargetCommand(input);
69
+ * await client.send(command);
70
+ * // example id: to-delete-a-mount-target-1481847635607
71
+ * ```
72
+ *
62
73
  */
63
74
  export declare class DeleteMountTargetCommand extends $Command<DeleteMountTargetCommandInput, DeleteMountTargetCommandOutput, EFSClientResolvedConfig> {
64
75
  readonly input: DeleteMountTargetCommandInput;
@@ -40,6 +40,20 @@ export interface DeleteTagsCommandOutput extends __MetadataBearer {
40
40
  * @see {@link DeleteTagsCommandOutput} for command's `response` shape.
41
41
  * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape.
42
42
  *
43
+ * @example To delete tags for an EFS file system
44
+ * ```javascript
45
+ * // This operation deletes tags for an EFS file system.
46
+ * const input = {
47
+ * "FileSystemId": "fs-01234567",
48
+ * "TagKeys": [
49
+ * "Name"
50
+ * ]
51
+ * };
52
+ * const command = new DeleteTagsCommand(input);
53
+ * await client.send(command);
54
+ * // example id: to-delete-tags-for-an-efs-file-system-1481848189061
55
+ * ```
56
+ *
43
57
  */
44
58
  export declare class DeleteTagsCommand extends $Command<DeleteTagsCommandInput, DeleteTagsCommandOutput, EFSClientResolvedConfig> {
45
59
  readonly input: DeleteTagsCommandInput;
@@ -48,6 +48,40 @@ export interface DescribeFileSystemsCommandOutput extends DescribeFileSystemsRes
48
48
  * @see {@link DescribeFileSystemsCommandOutput} for command's `response` shape.
49
49
  * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape.
50
50
  *
51
+ * @example To describe an EFS file system
52
+ * ```javascript
53
+ * // This operation describes all of the EFS file systems in an account.
54
+ * const input = {};
55
+ * const command = new DescribeFileSystemsCommand(input);
56
+ * const response = await client.send(command);
57
+ * /* response ==
58
+ * {
59
+ * "FileSystems": [
60
+ * {
61
+ * "CreationTime": "1481841524.0",
62
+ * "CreationToken": "tokenstring",
63
+ * "FileSystemId": "fs-01234567",
64
+ * "LifeCycleState": "available",
65
+ * "Name": "MyFileSystem",
66
+ * "NumberOfMountTargets": 1,
67
+ * "OwnerId": "012345678912",
68
+ * "PerformanceMode": "generalPurpose",
69
+ * "SizeInBytes": {
70
+ * "Value": 6144
71
+ * },
72
+ * "Tags": [
73
+ * {
74
+ * "Key": "Name",
75
+ * "Value": "MyFileSystem"
76
+ * }
77
+ * ]
78
+ * }
79
+ * ]
80
+ * }
81
+ * *\/
82
+ * // example id: to-describe-an-efs-file-system-1481848448460
83
+ * ```
84
+ *
51
85
  */
52
86
  export declare class DescribeFileSystemsCommand extends $Command<DescribeFileSystemsCommandInput, DescribeFileSystemsCommandOutput, EFSClientResolvedConfig> {
53
87
  readonly input: DescribeFileSystemsCommandInput;
@@ -37,6 +37,26 @@ export interface DescribeLifecycleConfigurationCommandOutput extends LifecycleCo
37
37
  * @see {@link DescribeLifecycleConfigurationCommandOutput} for command's `response` shape.
38
38
  * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape.
39
39
  *
40
+ * @example To describe the lifecycle configuration for a file system
41
+ * ```javascript
42
+ * // This operation describes a file system's LifecycleConfiguration. EFS lifecycle management uses the LifecycleConfiguration object to identify which files to move to the EFS Infrequent Access (IA) storage class.
43
+ * const input = {
44
+ * "FileSystemId": "fs-01234567"
45
+ * };
46
+ * const command = new DescribeLifecycleConfigurationCommand(input);
47
+ * const response = await client.send(command);
48
+ * /* response ==
49
+ * {
50
+ * "LifecyclePolicies": [
51
+ * {
52
+ * "TransitionToIA": "AFTER_30_DAYS"
53
+ * }
54
+ * ]
55
+ * }
56
+ * *\/
57
+ * // example id: to-describe-the-lifecycle-configuration-for-a-file-system-1551200664502
58
+ * ```
59
+ *
40
60
  */
41
61
  export declare class DescribeLifecycleConfigurationCommand extends $Command<DescribeLifecycleConfigurationCommandInput, DescribeLifecycleConfigurationCommandOutput, EFSClientResolvedConfig> {
42
62
  readonly input: DescribeLifecycleConfigurationCommandInput;
@@ -44,6 +44,24 @@ export interface DescribeMountTargetSecurityGroupsCommandOutput extends Describe
44
44
  * @see {@link DescribeMountTargetSecurityGroupsCommandOutput} for command's `response` shape.
45
45
  * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape.
46
46
  *
47
+ * @example To describe the security groups for a mount target
48
+ * ```javascript
49
+ * // This operation describes all of the security groups for a file system's mount target.
50
+ * const input = {
51
+ * "MountTargetId": "fsmt-12340abc"
52
+ * };
53
+ * const command = new DescribeMountTargetSecurityGroupsCommand(input);
54
+ * const response = await client.send(command);
55
+ * /* response ==
56
+ * {
57
+ * "SecurityGroups": [
58
+ * "sg-4567abcd"
59
+ * ]
60
+ * }
61
+ * *\/
62
+ * // example id: to-describe-the-security-groups-for-a-mount-target-1481849317823
63
+ * ```
64
+ *
47
65
  */
48
66
  export declare class DescribeMountTargetSecurityGroupsCommand extends $Command<DescribeMountTargetSecurityGroupsCommandInput, DescribeMountTargetSecurityGroupsCommandOutput, EFSClientResolvedConfig> {
49
67
  readonly input: DescribeMountTargetSecurityGroupsCommandInput;
@@ -35,6 +35,32 @@ export interface DescribeMountTargetsCommandOutput extends DescribeMountTargetsR
35
35
  * @see {@link DescribeMountTargetsCommandOutput} for command's `response` shape.
36
36
  * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape.
37
37
  *
38
+ * @example To describe the mount targets for a file system
39
+ * ```javascript
40
+ * // This operation describes all of a file system's mount targets.
41
+ * const input = {
42
+ * "FileSystemId": "fs-01234567"
43
+ * };
44
+ * const command = new DescribeMountTargetsCommand(input);
45
+ * const response = await client.send(command);
46
+ * /* response ==
47
+ * {
48
+ * "MountTargets": [
49
+ * {
50
+ * "FileSystemId": "fs-01234567",
51
+ * "IpAddress": "192.0.0.2",
52
+ * "LifeCycleState": "available",
53
+ * "MountTargetId": "fsmt-12340abc",
54
+ * "NetworkInterfaceId": "eni-cedf6789",
55
+ * "OwnerId": "012345678912",
56
+ * "SubnetId": "subnet-1234abcd"
57
+ * }
58
+ * ]
59
+ * }
60
+ * *\/
61
+ * // example id: to-describe-the-mount-targets-for-a-file-system-1481849958584
62
+ * ```
63
+ *
38
64
  */
39
65
  export declare class DescribeMountTargetsCommand extends $Command<DescribeMountTargetsCommandInput, DescribeMountTargetsCommandOutput, EFSClientResolvedConfig> {
40
66
  readonly input: DescribeMountTargetsCommandInput;
@@ -40,6 +40,27 @@ export interface DescribeTagsCommandOutput extends DescribeTagsResponse, __Metad
40
40
  * @see {@link DescribeTagsCommandOutput} for command's `response` shape.
41
41
  * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape.
42
42
  *
43
+ * @example To describe the tags for a file system
44
+ * ```javascript
45
+ * // This operation describes all of a file system's tags.
46
+ * const input = {
47
+ * "FileSystemId": "fs-01234567"
48
+ * };
49
+ * const command = new DescribeTagsCommand(input);
50
+ * const response = await client.send(command);
51
+ * /* response ==
52
+ * {
53
+ * "Tags": [
54
+ * {
55
+ * "Key": "Name",
56
+ * "Value": "MyFileSystem"
57
+ * }
58
+ * ]
59
+ * }
60
+ * *\/
61
+ * // example id: to-describe-the-tags-for-a-file-system-1481850497090
62
+ * ```
63
+ *
43
64
  */
44
65
  export declare class DescribeTagsCommand extends $Command<DescribeTagsCommandInput, DescribeTagsCommandOutput, EFSClientResolvedConfig> {
45
66
  readonly input: DescribeTagsCommandInput;
@@ -48,6 +48,20 @@ export interface ModifyMountTargetSecurityGroupsCommandOutput extends __Metadata
48
48
  * @see {@link ModifyMountTargetSecurityGroupsCommandOutput} for command's `response` shape.
49
49
  * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape.
50
50
  *
51
+ * @example To modify the security groups associated with a mount target for a file system
52
+ * ```javascript
53
+ * // This operation modifies the security groups associated with a mount target for a file system.
54
+ * const input = {
55
+ * "MountTargetId": "fsmt-12340abc",
56
+ * "SecurityGroups": [
57
+ * "sg-abcd1234"
58
+ * ]
59
+ * };
60
+ * const command = new ModifyMountTargetSecurityGroupsCommand(input);
61
+ * await client.send(command);
62
+ * // example id: to-modify-the-security-groups-associated-with-a-mount-target-for-a-file-system-1481850772562
63
+ * ```
64
+ *
51
65
  */
52
66
  export declare class ModifyMountTargetSecurityGroupsCommand extends $Command<ModifyMountTargetSecurityGroupsCommandInput, ModifyMountTargetSecurityGroupsCommandOutput, EFSClientResolvedConfig> {
53
67
  readonly input: ModifyMountTargetSecurityGroupsCommandInput;
@@ -75,6 +75,31 @@ export interface PutLifecycleConfigurationCommandOutput extends LifecycleConfigu
75
75
  * @see {@link PutLifecycleConfigurationCommandOutput} for command's `response` shape.
76
76
  * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape.
77
77
  *
78
+ * @example Creates a new lifecycleconfiguration object for a file system
79
+ * ```javascript
80
+ * // This operation enables lifecycle management on a file system by creating a new LifecycleConfiguration object. A LifecycleConfiguration object defines when files in an Amazon EFS file system are automatically transitioned to the lower-cost EFS Infrequent Access (IA) storage class. A LifecycleConfiguration applies to all files in a file system.
81
+ * const input = {
82
+ * "FileSystemId": "fs-01234567",
83
+ * "LifecyclePolicies": [
84
+ * {
85
+ * "TransitionToIA": "AFTER_30_DAYS"
86
+ * }
87
+ * ]
88
+ * };
89
+ * const command = new PutLifecycleConfigurationCommand(input);
90
+ * const response = await client.send(command);
91
+ * /* response ==
92
+ * {
93
+ * "LifecyclePolicies": [
94
+ * {
95
+ * "TransitionToIA": "AFTER_30_DAYS"
96
+ * }
97
+ * ]
98
+ * }
99
+ * *\/
100
+ * // example id: creates-a-new-lifecycleconfiguration-object-for-a-file-system-1551201594692
101
+ * ```
102
+ *
78
103
  */
79
104
  export declare class PutLifecycleConfigurationCommand extends $Command<PutLifecycleConfigurationCommandInput, PutLifecycleConfigurationCommandOutput, EFSClientResolvedConfig> {
80
105
  readonly input: PutLifecycleConfigurationCommandInput;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-efs",
3
3
  "description": "AWS SDK for JavaScript Efs Client for Node.js, Browser and React Native",
4
- "version": "3.287.0",
4
+ "version": "3.289.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,37 +20,37 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.287.0",
24
- "@aws-sdk/config-resolver": "3.287.0",
25
- "@aws-sdk/credential-provider-node": "3.287.0",
26
- "@aws-sdk/fetch-http-handler": "3.282.0",
27
- "@aws-sdk/hash-node": "3.272.0",
28
- "@aws-sdk/invalid-dependency": "3.272.0",
29
- "@aws-sdk/middleware-content-length": "3.282.0",
30
- "@aws-sdk/middleware-endpoint": "3.282.0",
31
- "@aws-sdk/middleware-host-header": "3.282.0",
32
- "@aws-sdk/middleware-logger": "3.287.0",
33
- "@aws-sdk/middleware-recursion-detection": "3.282.0",
34
- "@aws-sdk/middleware-retry": "3.287.0",
35
- "@aws-sdk/middleware-serde": "3.272.0",
36
- "@aws-sdk/middleware-signing": "3.282.0",
37
- "@aws-sdk/middleware-stack": "3.272.0",
38
- "@aws-sdk/middleware-user-agent": "3.282.0",
39
- "@aws-sdk/node-config-provider": "3.287.0",
40
- "@aws-sdk/node-http-handler": "3.282.0",
41
- "@aws-sdk/protocol-http": "3.282.0",
42
- "@aws-sdk/smithy-client": "3.279.0",
43
- "@aws-sdk/types": "3.272.0",
44
- "@aws-sdk/url-parser": "3.272.0",
23
+ "@aws-sdk/client-sts": "3.289.0",
24
+ "@aws-sdk/config-resolver": "3.289.0",
25
+ "@aws-sdk/credential-provider-node": "3.289.0",
26
+ "@aws-sdk/fetch-http-handler": "3.289.0",
27
+ "@aws-sdk/hash-node": "3.289.0",
28
+ "@aws-sdk/invalid-dependency": "3.289.0",
29
+ "@aws-sdk/middleware-content-length": "3.289.0",
30
+ "@aws-sdk/middleware-endpoint": "3.289.0",
31
+ "@aws-sdk/middleware-host-header": "3.289.0",
32
+ "@aws-sdk/middleware-logger": "3.289.0",
33
+ "@aws-sdk/middleware-recursion-detection": "3.289.0",
34
+ "@aws-sdk/middleware-retry": "3.289.0",
35
+ "@aws-sdk/middleware-serde": "3.289.0",
36
+ "@aws-sdk/middleware-signing": "3.289.0",
37
+ "@aws-sdk/middleware-stack": "3.289.0",
38
+ "@aws-sdk/middleware-user-agent": "3.289.0",
39
+ "@aws-sdk/node-config-provider": "3.289.0",
40
+ "@aws-sdk/node-http-handler": "3.289.0",
41
+ "@aws-sdk/protocol-http": "3.289.0",
42
+ "@aws-sdk/smithy-client": "3.289.0",
43
+ "@aws-sdk/types": "3.289.0",
44
+ "@aws-sdk/url-parser": "3.289.0",
45
45
  "@aws-sdk/util-base64": "3.208.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.208.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.279.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.287.0",
50
- "@aws-sdk/util-endpoints": "3.272.0",
51
- "@aws-sdk/util-retry": "3.272.0",
52
- "@aws-sdk/util-user-agent-browser": "3.282.0",
53
- "@aws-sdk/util-user-agent-node": "3.287.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.289.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.289.0",
50
+ "@aws-sdk/util-endpoints": "3.289.0",
51
+ "@aws-sdk/util-retry": "3.289.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.289.0",
53
+ "@aws-sdk/util-user-agent-node": "3.289.0",
54
54
  "@aws-sdk/util-utf8": "3.254.0",
55
55
  "tslib": "^2.3.1",
56
56
  "uuid": "^8.3.2"