@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.676Z") @Stability(value=Stable) public interface RecordSetOptions extends software.amazon.jsii.JsiiSerializable
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.*;
HostedZone hostedZone;
RecordSetOptions recordSetOptions = RecordSetOptions.builder()
.zone(hostedZone)
// the properties below are optional
.comment("comment")
.deleteExisting(false)
.recordName("recordName")
.ttl(Duration.minutes(30))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
RecordSetOptions.Builder
A builder for
RecordSetOptions |
static class |
RecordSetOptions.Jsii$Proxy
An implementation for
RecordSetOptions |
| Modifier and Type | Method and Description |
|---|---|
static RecordSetOptions.Builder |
builder() |
default String |
getComment()
A comment to add on the record.
|
default Boolean |
getDeleteExisting()
Whether to delete the same record set in the hosted zone if it already exists.
|
default String |
getRecordName()
The domain name for this record.
|
default Duration |
getTtl()
The resource record cache time to live (TTL).
|
IHostedZone |
getZone()
The hosted zone in which to define the new record.
|
@Stability(value=Stable) @NotNull IHostedZone getZone()
@Stability(value=Stable) @Nullable default String getComment()
Default: no comment
@Stability(value=Stable) @Nullable default Boolean getDeleteExisting()
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.
Default: false
@Stability(value=Stable) @Nullable default String getRecordName()
Default: zone root
@Stability(value=Stable) @Nullable default Duration getTtl()
Default: Duration.minutes(30)
@Stability(value=Stable) static RecordSetOptions.Builder builder()
RecordSetOptions.Builder of RecordSetOptionsCopyright © 2022. All rights reserved.