enum DeletionProtection
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.AutoScaling.DeletionProtection |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsautoscaling#DeletionProtection |
Java | software.amazon.awscdk.services.autoscaling.DeletionProtection |
Python | aws_cdk.aws_autoscaling.DeletionProtection |
TypeScript (source) | aws-cdk-lib » aws_autoscaling » DeletionProtection |
Deletion protection level for Auto Scaling group.
Example
declare const vpc: ec2.Vpc;
new autoscaling.AutoScalingGroup(this, 'ASG', {
vpc,
instanceType: ec2.InstanceType.of(ec2.InstanceClass.T3, ec2.InstanceSize.MICRO),
machineImage: ec2.MachineImage.latestAmazonLinux2(),
deletionProtection: autoscaling.DeletionProtection.PREVENT_ALL_DELETION,
});
Members
| Name | Description |
|---|---|
| NONE | No deletion protection. |
| PREVENT_FORCE_DELETION | Block force delete operations. |
| PREVENT_ALL_DELETION | Block all delete operations. |
NONE
No deletion protection.
PREVENT_FORCE_DELETION
Block force delete operations.
PREVENT_ALL_DELETION
Block all delete operations.

.NET
Go
Java
Python
TypeScript (