EFS.Client.put_backup_policy(**kwargs)¶Updates the file system's backup policy. Use this action to start or stop automatic backups of the file system.
See also: AWS API Documentation
Request Syntax
response = client.put_backup_policy(
FileSystemId='string',
BackupPolicy={
'Status': 'ENABLED'|'ENABLING'|'DISABLED'|'DISABLING'
}
)
[REQUIRED]
Specifies which EFS file system to update the backup policy for.
[REQUIRED]
The backup policy included in the PutBackupPolicy request.
Describes the status of the file system's backup policy.
ENABLED - EFS is automatically backing up the file system.ENABLING - EFS is turning on automatic backups for the file system.DISABLED - Automatic back ups are turned off for the file system.DISABLING - EFS is turning off automatic backups for the file system.dict
Response Syntax
{
'BackupPolicy': {
'Status': 'ENABLED'|'ENABLING'|'DISABLED'|'DISABLING'
}
}
Response Structure
(dict) --
BackupPolicy (dict) --
Describes the file system's backup policy, indicating whether automatic backups are turned on or off.
Status (string) --
Describes the status of the file system's backup policy.
ENABLED - EFS is automatically backing up the file system.ENABLING - EFS is turning on automatic backups for the file system.DISABLED - Automatic back ups are turned off for the file system.DISABLING - EFS is turning off automatic backups for the file system.Exceptions
EFS.Client.exceptions.BadRequestEFS.Client.exceptions.FileSystemNotFoundEFS.Client.exceptions.IncorrectFileSystemLifeCycleStateEFS.Client.exceptions.InternalServerErrorEFS.Client.exceptions.ValidationException