interface TxtRecordProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Route53.TxtRecordProps |
![]() | software.amazon.awscdk.services.route53.TxtRecordProps |
![]() | aws_cdk.aws_route53.TxtRecordProps |
![]() | @aws-cdk/aws-route53 » TxtRecordProps |
Construction properties for a TxtRecord.
Example
import * as route53 from '@aws-cdk/aws-route53';
const verifyDomainIdentity = new cr.AwsCustomResource(this, 'VerifyDomainIdentity', {
onCreate: {
service: 'SES',
action: 'verifyDomainIdentity',
parameters: {
Domain: 'example.com',
},
physicalResourceId: cr.PhysicalResourceId.fromResponse('VerificationToken'), // Use the token returned by the call as physical id
},
policy: cr.AwsCustomResourcePolicy.fromSdkCalls({
resources: cr.AwsCustomResourcePolicy.ANY_RESOURCE,
}),
});
declare const zone: route53.HostedZone;
new route53.TxtRecord(this, 'SESVerificationRecord', {
zone,
recordName: `_amazonses.example.com`,
values: [verifyDomainIdentity.getResponseField('VerificationToken')],
});
Properties
Name | Type | Description |
---|---|---|
values | string[] | The text values. |
zone | IHosted | The hosted zone in which to define the new record. |
comment? | string | A comment to add on the record. |
record | string | The domain name for this record. |
ttl? | Duration | The resource record cache time to live (TTL). |
values
Type:
string[]
The text values.
zone
Type:
IHosted
The hosted zone in which to define the new record.
comment?
Type:
string
(optional, default: no comment)
A comment to add on the record.
recordName?
Type:
string
(optional, default: zone root)
The domain name for this record.
ttl?
Type:
Duration
(optional, default: Duration.minutes(30))
The resource record cache time to live (TTL).