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