| Modifier and Type | Method and Description |
|---|---|
MxRecord |
build() |
MxRecord.Builder |
comment(String comment)
A comment to add on the record.
|
static MxRecord.Builder |
create(software.constructs.Construct scope,
String id) |
MxRecord.Builder |
deleteExisting(Boolean deleteExisting)
Whether to delete the same record set in the hosted zone if it already exists.
|
MxRecord.Builder |
recordName(String recordName)
The domain name for this record.
|
MxRecord.Builder |
ttl(Duration ttl)
The resource record cache time to live (TTL).
|
MxRecord.Builder |
values(List<? extends MxRecordValue> values)
The values.
|
MxRecord.Builder |
zone(IHostedZone zone)
The hosted zone in which to define the new record.
|
@Stability(value=Stable) public static MxRecord.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.MxRecord.Builder.@Stability(value=Stable) public MxRecord.Builder zone(IHostedZone zone)
zone - The hosted zone in which to define the new record. This parameter is required.this@Stability(value=Stable) public MxRecord.Builder comment(String comment)
Default: no comment
comment - A comment to add on the record. This parameter is required.this@Stability(value=Stable) public MxRecord.Builder deleteExisting(Boolean deleteExisting)
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
deleteExisting - Whether to delete the same record set in the hosted zone if it already exists. This parameter is required.this@Stability(value=Stable) public MxRecord.Builder recordName(String recordName)
Default: zone root
recordName - The domain name for this record. This parameter is required.this@Stability(value=Stable) public MxRecord.Builder ttl(Duration ttl)
Default: Duration.minutes(30)
ttl - The resource record cache time to live (TTL). This parameter is required.this@Stability(value=Stable) public MxRecord.Builder values(List<? extends MxRecordValue> values)
values - The values. This parameter is required.thisCopyright © 2022. All rights reserved.