Skip to content
v2.277.0

DnsVerificationProperty Struct ​

Represents DNS TXT verification details.

Example ​

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
# 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
// 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();
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"
};
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 ​

dnsRecordNameoptionalstringdns_record_nameoptionalstrdnsRecordNameoptionalStringDnsRecordNameoptionalstringDnsRecordNameoptional*string#
Record name to be added in DNS for target domain.
dnsRecordTypeoptionalstringdns_record_typeoptionalstrdnsRecordTypeoptionalStringDnsRecordTypeoptionalstringDnsRecordTypeoptional*string#
Type of record to be added in DNS for target domain.
tokenoptionalstringtokenoptionalstrtokenoptionalStringTokenoptionalstringTokenoptional*string#
Token used to verify domain ownership.