# CfnRecordSetProtectionPropsMixin

Resource Type definition for AWS::Route53::RecordSetProtection.

Protects a record set (all record sets with the given name and type) in a hosted zone against changes until the protection is deleted. The protection must DependsOn (or reference with Ref) the AWS::Route53::RecordSet it protects. Adding or removing a protection and changing that record set must be two separate stack updates: a removal is applied in the cleanup phase after updates, and an addition in the same update blocks the record set's rollback. To recover a rollback blocked this way (UPDATE_ROLLBACK_FAILED), delete the protection, then run ContinueUpdateRollback. While a protection exists, creating any record set with its name and type, including one with a new SetIdentifier, is refused. Changing Comment replaces the protection by deleting it first, so the record set is unprotected for the duration of the replacement. While a protection exists, including one kept by DeletionPolicy Retain or created outside the stack, deleting its AWS::Route53::RecordSet fails with ResourceConflict; delete the protection first. When a create is retried after its outcome was lost, an existing protection with the same Comment is taken as the one it created; without a Comment, an existing protection that has no comment is adopted.

Extends: [Mixin](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Mixin.html) › CfnRecordSetProtectionPropsMixin
Implements: [IMixin](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.IMixin.html)

- CloudFormation: [`AWS::Route53::RecordSetProtection`](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-route53-recordsetprotection.html)
- Source: Generated at build time
- Type last changed: v2.278.0 · 21 Nov 2026

## Initializer

TypeScript:

```ts
new CfnRecordSetProtectionPropsMixin(props: CfnRecordSetProtectionMixinProps, options?: CfnPropertyMixinOptions)
```

Python:

```python
CfnRecordSetProtectionPropsMixin(props: CfnRecordSetProtectionMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
```

Java:

```java
new CfnRecordSetProtectionPropsMixin(CfnRecordSetProtectionMixinProps props, CfnPropertyMixinOptions options)
```

C# / .NET:

```csharp
new CfnRecordSetProtectionPropsMixin(CfnRecordSetProtectionMixinProps props, CfnPropertyMixinOptions? options = null)
```

Golang:

```go
NewCfnRecordSetProtectionPropsMixin(Props CfnRecordSetProtectionMixinProps, Options CfnPropertyMixinOptions)
```

## Methods

- `applyTo(construct: IConstruct): void` — Apply the mixin properties to the construct.

- `isMixin(x: any): boolean` (static) — Checks if `x` is a Mixin.

  **Parameters**

  - `x` — Any object.

  **Returns:** true if `x` is an object created from a class which extends `Mixin`.

- `supports(construct: IConstruct): boolean` — Check if this mixin supports the given construct.
