Class TxtRecord

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

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-24T21:00:36.078Z") @Stability(Stable) public class TxtRecord extends RecordSet
A DNS TXT record.

Example:

 HostedZone myZone;
 TxtRecord.Builder.create(this, "TXTRecord")
         .zone(myZone)
         .recordName("_foo") // If the name ends with a ".", it will be used as-is;
         // if it ends with a "." followed by the zone name, a trailing "." will be added automatically;
         // otherwise, a ".", the zone name, and a trailing "." will be added automatically.
         // Defaults to zone root if not specified.
         .values(List.of("Bar!", "Baz?"))
         .ttl(Duration.minutes(90))
         .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.