Interface RecordSetOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
AaaaRecordProps,ARecordProps,CaaAmazonRecordProps,CaaRecordProps,CnameRecordProps,DsRecordProps,MxRecordProps,NsRecordProps,RecordSetProps,SrvRecordProps,TxtRecordProps,ZoneDelegationRecordProps
- All Known Implementing Classes:
AaaaRecordProps.Jsii$Proxy,ARecordProps.Jsii$Proxy,CaaAmazonRecordProps.Jsii$Proxy,CaaRecordProps.Jsii$Proxy,CnameRecordProps.Jsii$Proxy,DsRecordProps.Jsii$Proxy,MxRecordProps.Jsii$Proxy,NsRecordProps.Jsii$Proxy,RecordSetOptions.Jsii$Proxy,RecordSetProps.Jsii$Proxy,SrvRecordProps.Jsii$Proxy,TxtRecordProps.Jsii$Proxy,ZoneDelegationRecordProps.Jsii$Proxy
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.route53.*;
GeoLocation geoLocation;
HostedZone hostedZone;
RecordSetOptions recordSetOptions = RecordSetOptions.builder()
.zone(hostedZone)
// the properties below are optional
.comment("comment")
.deleteExisting(false)
.geoLocation(geoLocation)
.recordName("recordName")
.ttl(Duration.minutes(30))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forRecordSetOptionsstatic final classAn implementation forRecordSetOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic RecordSetOptions.Builderbuilder()default StringA comment to add on the record.default BooleanWhether to delete the same record set in the hosted zone if it already exists (dangerous!).default GeoLocationThe geographical origin for this record to return DNS records based on the user's location.default StringThe subdomain name for this record.default DurationgetTtl()The resource record cache time to live (TTL).getZone()The hosted zone in which to define the new record.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getZone
The hosted zone in which to define the new record. -
getComment
A comment to add on the record.Default: no comment
-
getDeleteExisting
Whether to delete the same record set in the hosted zone if it already exists (dangerous!).This allows to deploy a new record set while minimizing the downtime because the new record set will be created immediately after the existing one is deleted. It also avoids "manual" actions to delete existing record sets.
N.B.: this feature is dangerous, use with caution! It can only be used safely when
deleteExistingis set totrueas soon as the resource is added to the stack. Changing an existing Record Set'sdeleteExistingproperty fromfalse -> trueafter deployment will delete the record!Default: false
-
getGeoLocation
The geographical origin for this record to return DNS records based on the user's location. -
getRecordName
The subdomain name for this record. This should be relative to the zone root name.For example, if you want to create a record for acme.example.com, specify "acme".
You can also specify the fully qualified domain name which terminates with a ".". For example, "acme.example.com.".
Default: zone root
-
getTtl
The resource record cache time to live (TTL).Default: Duration.minutes(30)
-
builder
- Returns:
- a
RecordSetOptions.BuilderofRecordSetOptions
-