@Stability(value=Stable) public static final class LockConfiguration.Builder extends Object implements software.amazon.jsii.Builder<LockConfiguration>
LockConfiguration| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
LockConfiguration |
build()
Builds the configured instance.
|
LockConfiguration.Builder |
changeableFor(Duration changeableFor)
Sets the value of
LockConfiguration.getChangeableFor() |
LockConfiguration.Builder |
maxRetention(Duration maxRetention)
Sets the value of
LockConfiguration.getMaxRetention() |
LockConfiguration.Builder |
minRetention(Duration minRetention)
Sets the value of
LockConfiguration.getMinRetention() |
@Stability(value=Stable) public LockConfiguration.Builder minRetention(Duration minRetention)
LockConfiguration.getMinRetention()minRetention - The minimum retention period that the vault retains its recovery points. This parameter is required.
If this parameter is specified, any backup or copy job to the vault must
have a lifecycle policy with a retention period equal to or longer than
the minimum retention period. If the job's retention period is shorter than
that minimum retention period, then the vault fails that backup or copy job,
and you should either modify your lifecycle settings or use a different
vault. Recovery points already saved in the vault prior to Vault Lock are
not affected.this@Stability(value=Stable) public LockConfiguration.Builder changeableFor(Duration changeableFor)
LockConfiguration.getChangeableFor()changeableFor - The duration before the lock date.
AWS Backup enforces a 72-hour cooling-off period before Vault Lock takes
effect and becomes immutable.
Before the lock date, you can delete Vault Lock from the vault or change the Vault Lock configuration. On and after the lock date, the Vault Lock becomes immutable and cannot be changed or deleted.
this@Stability(value=Stable) public LockConfiguration.Builder maxRetention(Duration maxRetention)
LockConfiguration.getMaxRetention()maxRetention - The maximum retention period that the vault retains its recovery points.
If this parameter is specified, any backup or copy job to the vault must
have a lifecycle policy with a retention period equal to or shorter than
the maximum retention period. If the job's retention period is longer than
that maximum retention period, then the vault fails the backup or copy job,
and you should either modify your lifecycle settings or use a different
vault. Recovery points already saved in the vault prior to Vault Lock are
not affected.this@Stability(value=Stable) public LockConfiguration build()
build in interface software.amazon.jsii.Builder<LockConfiguration>LockConfigurationNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.