DeletionProtectionCheck Enum
The deletion protection check options.
Example
ts
declare const application: appconfig.Application;
declare const alarm: cloudwatch.Alarm;
declare const compositeAlarm: cloudwatch.CompositeAlarm;
declare const bucket: s3.Bucket;
// Environment deletion protection check
new appconfig.Environment(this, 'MyEnvironment', {
application,
deletionProtectionCheck: appconfig.DeletionProtectionCheck.APPLY,
});
// configuration profile with deletion protection check
new appconfig.HostedConfiguration(this, 'MyHostedConfigFromFile', {
application,
content: appconfig.ConfigurationContent.fromFile('config.json'),
deletionProtectionCheck: appconfig.DeletionProtectionCheck.BYPASS,
});
new appconfig.SourcedConfiguration(this, 'MySourcedConfiguration', {
application,
location: appconfig.ConfigurationSource.fromBucket(bucket, 'path/to/file.json'),
deletionProtectionCheck: appconfig.DeletionProtectionCheck.ACCOUNT_DEFAULT,
});
Members
| Member | Description |
|---|---|
ACCOUNT_DEFAULT | The default setting, which uses account-level deletion protection. |
APPLY | Instructs the deletion protection check to run, even if deletion protection is disabled at the account level. |
BYPASS | Instructs AWS AppConfig to bypass the deletion protection check and delete an environment or a configuration profile even if deletion protection would have otherwise prevented it. |
Referenced by
ConfigurationOptions.deletionProtectionCheckdeletion_protection_checkdeletionProtectionCheckDeletionProtectionCheckDeletionProtectionCheckEnvironmentOptions.deletionProtectionCheckdeletion_protection_checkdeletionProtectionCheckDeletionProtectionCheckDeletionProtectionCheckHostedConfiguration.deletionProtectionCheckdeletion_protection_checkdeletionProtectionCheckDeletionProtectionCheckDeletionProtectionCheckSourcedConfiguration.deletionProtectionCheckdeletion_protection_checkdeletionProtectionCheckDeletionProtectionCheckDeletionProtectionCheck