sparse-intern-71089
03/09/2021, 2:32 PMfull-winter-70537
03/10/2021, 2:07 AMResourceOptions
class, in which is a Protect
property:
public abstract class ResourceOptions
{
protected ResourceOptions();
//
// Summary:
// An optional existing ID to load, rather than create.
[NullableAttribute(new[] { 2, 1 })]
public Input<string>? Id { get; set; }
//
// Summary:
// An optional parent resource to which this resource belongs.
public Resource? Parent { get; set; }
//
// Summary:
// Optional additional explicit dependencies on other resources.
[NullableAttribute(1)]
public InputList<Resource> DependsOn { get; set; }
//
// Summary:
// When set to true, protect ensures this resource cannot be deleted.
public bool? Protect { get; set; }
You can read more about it here:
https://www.pulumi.com/docs/intro/concepts/resources/#protect