Class TxtRecord

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IConstruct, IDependable, IResource, IRecordSet, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:43.048Z") @Stability(Stable) public class TxtRecord extends RecordSet
A DNS TXT record.

Example:

 import software.amazon.awscdk.services.route53.*;
 HostedZone zone;
 AwsCustomResource verifyDomainIdentity = AwsCustomResource.Builder.create(this, "VerifyDomainIdentity")
         .onCreate(AwsSdkCall.builder()
                 .service("SES")
                 .action("verifyDomainIdentity")
                 .parameters(Map.of(
                         "Domain", "example.com"))
                 .physicalResourceId(PhysicalResourceId.fromResponse("VerificationToken"))
                 .build())
         .policy(AwsCustomResourcePolicy.fromSdkCalls(SdkCallsPolicyOptions.builder()
                 .resources(AwsCustomResourcePolicy.ANY_RESOURCE)
                 .build()))
         .build();
 TxtRecord.Builder.create(this, "SESVerificationRecord")
         .zone(zone)
         .recordName("_amazonses.example.com")
         .values(List.of(verifyDomainIdentity.getResponseField("VerificationToken")))
         .build();
 
  • Constructor Details

    • TxtRecord

      protected TxtRecord(software.amazon.jsii.JsiiObjectRef objRef)
    • TxtRecord

      protected TxtRecord(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • TxtRecord

      @Stability(Stable) public TxtRecord(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull TxtRecordProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.