Skip to content
v2.274.0

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 ​

MemberDescription
ACCOUNT_DEFAULTThe default setting, which uses account-level deletion protection.
APPLYInstructs the deletion protection check to run, even if deletion protection is disabled at the account level.
BYPASSInstructs 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_checkdeletionProtectionCheckDeletionProtectionCheckDeletionProtectionCheck
  • EnvironmentOptions.deletionProtectionCheckdeletion_protection_checkdeletionProtectionCheckDeletionProtectionCheckDeletionProtectionCheck
  • HostedConfiguration.deletionProtectionCheckdeletion_protection_checkdeletionProtectionCheckDeletionProtectionCheckDeletionProtectionCheck
  • SourcedConfiguration.deletionProtectionCheckdeletion_protection_checkdeletionProtectionCheckDeletionProtectionCheckDeletionProtectionCheck