@aws-sdk/client-efs 3.458.0 → 3.459.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 (31) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/EFS.js +2 -0
  3. package/dist-cjs/commands/UpdateFileSystemProtectionCommand.js +51 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +36 -1
  6. package/dist-cjs/protocols/Aws_restJson1.js +114 -2
  7. package/dist-es/EFS.js +2 -0
  8. package/dist-es/commands/UpdateFileSystemProtectionCommand.js +47 -0
  9. package/dist-es/commands/index.js +1 -0
  10. package/dist-es/models/models_0.js +33 -0
  11. package/dist-es/protocols/Aws_restJson1.js +111 -1
  12. package/dist-types/EFS.d.ts +7 -0
  13. package/dist-types/EFSClient.d.ts +3 -2
  14. package/dist-types/commands/CreateFileSystemCommand.d.ts +3 -0
  15. package/dist-types/commands/CreateReplicationConfigurationCommand.d.ts +42 -29
  16. package/dist-types/commands/DeleteReplicationConfigurationCommand.d.ts +6 -4
  17. package/dist-types/commands/DescribeFileSystemsCommand.d.ts +3 -0
  18. package/dist-types/commands/DescribeLifecycleConfigurationCommand.d.ts +2 -2
  19. package/dist-types/commands/PutLifecycleConfigurationCommand.d.ts +7 -6
  20. package/dist-types/commands/UpdateFileSystemCommand.d.ts +3 -0
  21. package/dist-types/commands/UpdateFileSystemProtectionCommand.d.ts +108 -0
  22. package/dist-types/commands/index.d.ts +1 -0
  23. package/dist-types/models/models_0.d.ts +154 -4
  24. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  25. package/dist-types/ts3.4/EFS.d.ts +17 -0
  26. package/dist-types/ts3.4/EFSClient.d.ts +8 -2
  27. package/dist-types/ts3.4/commands/UpdateFileSystemProtectionCommand.d.ts +42 -0
  28. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  29. package/dist-types/ts3.4/models/models_0.d.ts +32 -0
  30. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  31. package/package.json +1 -1
@@ -165,6 +165,10 @@ import {
165
165
  UpdateFileSystemCommandInput,
166
166
  UpdateFileSystemCommandOutput,
167
167
  } from "./commands/UpdateFileSystemCommand";
168
+ import {
169
+ UpdateFileSystemProtectionCommandInput,
170
+ UpdateFileSystemProtectionCommandOutput,
171
+ } from "./commands/UpdateFileSystemProtectionCommand";
168
172
  import {
169
173
  ClientInputEndpointParameters,
170
174
  ClientResolvedEndpointParameters,
@@ -202,7 +206,8 @@ export type ServiceInputTypes =
202
206
  | PutLifecycleConfigurationCommandInput
203
207
  | TagResourceCommandInput
204
208
  | UntagResourceCommandInput
205
- | UpdateFileSystemCommandInput;
209
+ | UpdateFileSystemCommandInput
210
+ | UpdateFileSystemProtectionCommandInput;
206
211
  export type ServiceOutputTypes =
207
212
  | CreateAccessPointCommandOutput
208
213
  | CreateFileSystemCommandOutput
@@ -233,7 +238,8 @@ export type ServiceOutputTypes =
233
238
  | PutLifecycleConfigurationCommandOutput
234
239
  | TagResourceCommandOutput
235
240
  | UntagResourceCommandOutput
236
- | UpdateFileSystemCommandOutput;
241
+ | UpdateFileSystemCommandOutput
242
+ | UpdateFileSystemProtectionCommandOutput;
237
243
  export interface ClientDefaults
238
244
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
239
245
  requestHandler?: __HttpHandler;
@@ -0,0 +1,42 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ EFSClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../EFSClient";
14
+ import {
15
+ FileSystemProtectionDescription,
16
+ UpdateFileSystemProtectionRequest,
17
+ } from "../models/models_0";
18
+ export { __MetadataBearer, $Command };
19
+ export interface UpdateFileSystemProtectionCommandInput
20
+ extends UpdateFileSystemProtectionRequest {}
21
+ export interface UpdateFileSystemProtectionCommandOutput
22
+ extends FileSystemProtectionDescription,
23
+ __MetadataBearer {}
24
+ export declare class UpdateFileSystemProtectionCommand extends $Command<
25
+ UpdateFileSystemProtectionCommandInput,
26
+ UpdateFileSystemProtectionCommandOutput,
27
+ EFSClientResolvedConfig
28
+ > {
29
+ readonly input: UpdateFileSystemProtectionCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: UpdateFileSystemProtectionCommandInput);
32
+ resolveMiddleware(
33
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
+ configuration: EFSClientResolvedConfig,
35
+ options?: __HttpHandlerOptions
36
+ ): Handler<
37
+ UpdateFileSystemProtectionCommandInput,
38
+ UpdateFileSystemProtectionCommandOutput
39
+ >;
40
+ private serialize;
41
+ private deserialize;
42
+ }
@@ -28,3 +28,4 @@ export * from "./PutLifecycleConfigurationCommand";
28
28
  export * from "./TagResourceCommand";
29
29
  export * from "./UntagResourceCommand";
30
30
  export * from "./UpdateFileSystemCommand";
31
+ export * from "./UpdateFileSystemProtectionCommand";
@@ -97,6 +97,13 @@ export declare class BadRequest extends __BaseException {
97
97
  Message?: string;
98
98
  constructor(opts: __ExceptionOptionType<BadRequest, __BaseException>);
99
99
  }
100
+ export declare class ConflictException extends __BaseException {
101
+ readonly name: "ConflictException";
102
+ readonly $fault: "client";
103
+ ErrorCode?: string;
104
+ Message?: string;
105
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
106
+ }
100
107
  export interface CreateAccessPointRequest {
101
108
  ClientToken?: string;
102
109
  Tags?: Tag[];
@@ -175,6 +182,16 @@ export declare class FileSystemAlreadyExists extends __BaseException {
175
182
  opts: __ExceptionOptionType<FileSystemAlreadyExists, __BaseException>
176
183
  );
177
184
  }
185
+ export declare const ReplicationOverwriteProtection: {
186
+ readonly DISABLED: "DISABLED";
187
+ readonly ENABLED: "ENABLED";
188
+ readonly REPLICATING: "REPLICATING";
189
+ };
190
+ export type ReplicationOverwriteProtection =
191
+ (typeof ReplicationOverwriteProtection)[keyof typeof ReplicationOverwriteProtection];
192
+ export interface FileSystemProtectionDescription {
193
+ ReplicationOverwriteProtection?: ReplicationOverwriteProtection;
194
+ }
178
195
  export interface FileSystemSize {
179
196
  Value: number | undefined;
180
197
  Timestamp?: Date;
@@ -200,6 +217,7 @@ export interface FileSystemDescription {
200
217
  AvailabilityZoneName?: string;
201
218
  AvailabilityZoneId?: string;
202
219
  Tags: Tag[] | undefined;
220
+ FileSystemProtection?: FileSystemProtectionDescription;
203
221
  }
204
222
  export declare class FileSystemLimitExceeded extends __BaseException {
205
223
  readonly name: "FileSystemLimitExceeded";
@@ -318,6 +336,7 @@ export interface DestinationToCreate {
318
336
  Region?: string;
319
337
  AvailabilityZoneName?: string;
320
338
  KmsKeyId?: string;
339
+ FileSystemId?: string;
321
340
  }
322
341
  export interface CreateReplicationConfigurationRequest {
323
342
  SourceFileSystemId: string | undefined;
@@ -621,3 +640,16 @@ export interface UpdateFileSystemRequest {
621
640
  ThroughputMode?: ThroughputMode;
622
641
  ProvisionedThroughputInMibps?: number;
623
642
  }
643
+ export declare class ReplicationAlreadyExists extends __BaseException {
644
+ readonly name: "ReplicationAlreadyExists";
645
+ readonly $fault: "client";
646
+ ErrorCode?: string;
647
+ Message?: string;
648
+ constructor(
649
+ opts: __ExceptionOptionType<ReplicationAlreadyExists, __BaseException>
650
+ );
651
+ }
652
+ export interface UpdateFileSystemProtectionRequest {
653
+ FileSystemId: string | undefined;
654
+ ReplicationOverwriteProtection?: ReplicationOverwriteProtection;
655
+ }
@@ -123,6 +123,10 @@ import {
123
123
  UpdateFileSystemCommandInput,
124
124
  UpdateFileSystemCommandOutput,
125
125
  } from "../commands/UpdateFileSystemCommand";
126
+ import {
127
+ UpdateFileSystemProtectionCommandInput,
128
+ UpdateFileSystemProtectionCommandOutput,
129
+ } from "../commands/UpdateFileSystemProtectionCommand";
126
130
  export declare const se_CreateAccessPointCommand: (
127
131
  input: CreateAccessPointCommandInput,
128
132
  context: __SerdeContext
@@ -243,6 +247,10 @@ export declare const se_UpdateFileSystemCommand: (
243
247
  input: UpdateFileSystemCommandInput,
244
248
  context: __SerdeContext
245
249
  ) => Promise<__HttpRequest>;
250
+ export declare const se_UpdateFileSystemProtectionCommand: (
251
+ input: UpdateFileSystemProtectionCommandInput,
252
+ context: __SerdeContext
253
+ ) => Promise<__HttpRequest>;
246
254
  export declare const de_CreateAccessPointCommand: (
247
255
  output: __HttpResponse,
248
256
  context: __SerdeContext
@@ -363,3 +371,7 @@ export declare const de_UpdateFileSystemCommand: (
363
371
  output: __HttpResponse,
364
372
  context: __SerdeContext
365
373
  ) => Promise<UpdateFileSystemCommandOutput>;
374
+ export declare const de_UpdateFileSystemProtectionCommand: (
375
+ output: __HttpResponse,
376
+ context: __SerdeContext
377
+ ) => Promise<UpdateFileSystemProtectionCommandOutput>;
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.458.0",
4
+ "version": "3.459.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",