Resource: awsEfsBackupPolicy
Provides an Elastic File System (EFS) Backup Policy resource. Backup policies turn automatic backups on or off for an existing file system.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const awsEfsFileSystemFs = new aws.efsFileSystem.EfsFileSystem(this, "fs", {
creationToken: "my-product",
});
new aws.efsBackupPolicy.EfsBackupPolicy(this, "policy", {
backupPolicy: {
status: "ENABLED",
},
fileSystemId: awsEfsFileSystemFs.id,
});
Argument Reference
The following arguments are supported:
fileSystemId
- (Required) The ID of the EFS file system.backupPolicy
- (Required) A backup_policy object (documented below).
Backup Policy Arguments
For backup_policy the following attributes are supported:
status
- (Required) A status of the backup policy. Valid values:enabled
,disabled
.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- The ID that identifies the file system (e.g., fs-ccfc0d65).
Import
The EFS backup policies can be imported using the id
, e.g.,