# DnsVerificationProperty

Represents DNS TXT verification details.

- Source: Generated at build time
- Type last changed: v2.249.0 · 13 Apr 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_securityagent as securityagent } from 'aws-cdk-lib';
const dnsVerificationProperty: securityagent.CfnTargetDomain.DnsVerificationProperty = {
  dnsRecordName: 'dnsRecordName',
  dnsRecordType: 'dnsRecordType',
  token: 'token',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_securityagent as securityagent

dns_verification_property = securityagent.CfnTargetDomain.DnsVerificationProperty(
    dns_record_name="dnsRecordName",
    dns_record_type="dnsRecordType",
    token="token"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.securityagent.*;

DnsVerificationProperty dnsVerificationProperty = DnsVerificationProperty.builder()
        .dnsRecordName("dnsRecordName")
        .dnsRecordType("dnsRecordType")
        .token("token")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SecurityAgent;

var dnsVerificationProperty = new DnsVerificationProperty {
    DnsRecordName = "dnsRecordName",
    DnsRecordType = "dnsRecordType",
    Token = "token"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

dnsVerificationProperty := &DnsVerificationProperty{
	DnsRecordName: jsii.String("dnsRecordName"),
	DnsRecordType: jsii.String("dnsRecordType"),
	Token: jsii.String("token"),
}
```

## Properties

- `dnsRecordName`: string — Record name to be added in DNS for target domain.

- `dnsRecordType`: string — Type of record to be added in DNS for target domain.

- `token`: string — Token used to verify domain ownership.
