diff --git a/clients/client-efs/README.md b/clients/client-efs/README.md index 2b66e2056709..1e236960c189 100644 --- a/clients/client-efs/README.md +++ b/clients/client-efs/README.md @@ -448,3 +448,11 @@ UpdateFileSystem [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/efs/command/UpdateFileSystemCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-efs/Interface/UpdateFileSystemCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-efs/Interface/UpdateFileSystemCommandOutput/) +
+ +UpdateFileSystemProtection + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/efs/command/UpdateFileSystemProtectionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-efs/Interface/UpdateFileSystemProtectionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-efs/Interface/UpdateFileSystemProtectionCommandOutput/) + +
diff --git a/clients/client-efs/src/EFS.ts b/clients/client-efs/src/EFS.ts index 02852679a337..e87810258de8 100644 --- a/clients/client-efs/src/EFS.ts +++ b/clients/client-efs/src/EFS.ts @@ -140,6 +140,11 @@ import { UpdateFileSystemCommandInput, UpdateFileSystemCommandOutput, } from "./commands/UpdateFileSystemCommand"; +import { + UpdateFileSystemProtectionCommand, + UpdateFileSystemProtectionCommandInput, + UpdateFileSystemProtectionCommandOutput, +} from "./commands/UpdateFileSystemProtectionCommand"; import { EFSClient, EFSClientConfig } from "./EFSClient"; const commands = { @@ -173,6 +178,7 @@ const commands = { TagResourceCommand, UntagResourceCommand, UpdateFileSystemCommand, + UpdateFileSystemProtectionCommand, }; export interface EFS { @@ -652,6 +658,23 @@ export interface EFS { options: __HttpHandlerOptions, cb: (err: any, data?: UpdateFileSystemCommandOutput) => void ): void; + + /** + * @see {@link UpdateFileSystemProtectionCommand} + */ + updateFileSystemProtection( + args: UpdateFileSystemProtectionCommandInput, + options?: __HttpHandlerOptions + ): Promise; + updateFileSystemProtection( + args: UpdateFileSystemProtectionCommandInput, + cb: (err: any, data?: UpdateFileSystemProtectionCommandOutput) => void + ): void; + updateFileSystemProtection( + args: UpdateFileSystemProtectionCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: UpdateFileSystemProtectionCommandOutput) => void + ): void; } /** diff --git a/clients/client-efs/src/EFSClient.ts b/clients/client-efs/src/EFSClient.ts index 55fc3d54be53..7bcb5b008c21 100644 --- a/clients/client-efs/src/EFSClient.ts +++ b/clients/client-efs/src/EFSClient.ts @@ -131,6 +131,10 @@ import { import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand"; import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand"; import { UpdateFileSystemCommandInput, UpdateFileSystemCommandOutput } from "./commands/UpdateFileSystemCommand"; +import { + UpdateFileSystemProtectionCommandInput, + UpdateFileSystemProtectionCommandOutput, +} from "./commands/UpdateFileSystemProtectionCommand"; import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, @@ -175,7 +179,8 @@ export type ServiceInputTypes = | PutLifecycleConfigurationCommandInput | TagResourceCommandInput | UntagResourceCommandInput - | UpdateFileSystemCommandInput; + | UpdateFileSystemCommandInput + | UpdateFileSystemProtectionCommandInput; /** * @public @@ -210,7 +215,8 @@ export type ServiceOutputTypes = | PutLifecycleConfigurationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput - | UpdateFileSystemCommandOutput; + | UpdateFileSystemCommandOutput + | UpdateFileSystemProtectionCommandOutput; /** * @public diff --git a/clients/client-efs/src/commands/CreateFileSystemCommand.ts b/clients/client-efs/src/commands/CreateFileSystemCommand.ts index 0ae400281b56..38f41052241c 100644 --- a/clients/client-efs/src/commands/CreateFileSystemCommand.ts +++ b/clients/client-efs/src/commands/CreateFileSystemCommand.ts @@ -148,6 +148,9 @@ export interface CreateFileSystemCommandOutput extends FileSystemDescription, __ * // Value: "STRING_VALUE", // required * // }, * // ], + * // FileSystemProtection: { // FileSystemProtectionDescription + * // ReplicationOverwriteProtection: "ENABLED" || "DISABLED" || "REPLICATING", + * // }, * // }; * * ``` diff --git a/clients/client-efs/src/commands/CreateReplicationConfigurationCommand.ts b/clients/client-efs/src/commands/CreateReplicationConfigurationCommand.ts index fd9cc5077d65..7e8ffca59fb9 100644 --- a/clients/client-efs/src/commands/CreateReplicationConfigurationCommand.ts +++ b/clients/client-efs/src/commands/CreateReplicationConfigurationCommand.ts @@ -49,39 +49,46 @@ export interface CreateReplicationConfigurationCommandOutput * - *

The following properties are set by default:

+ * + *

After the file system is created, you cannot change the KMS key.

+ *
+ *

For new destination file systems, the following properties are set by default:

* - *

The following properties are turned off by default:

*