@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:43.789Z") @Stability(value=Stable) public interface CnameRecordProps extends software.amazon.jsii.JsiiSerializable, RecordSetOptions
Example:
import software.amazon.awscdk.services.certificatemanager.*;
import software.amazon.awscdk.services.route53.*;
// hosted zone and route53 features
String hostedZoneId;
String zoneName = "example.com";
String myDomainName = "api.example.com";
Certificate certificate = Certificate.Builder.create(this, "cert").domainName(myDomainName).build();
GraphqlApi api = GraphqlApi.Builder.create(this, "api")
.name("myApi")
.domainName(DomainOptions.builder()
.certificate(certificate)
.domainName(myDomainName)
.build())
.build();
// hosted zone for adding appsync domain
IHostedZone zone = HostedZone.fromHostedZoneAttributes(this, "HostedZone", HostedZoneAttributes.builder()
.hostedZoneId(hostedZoneId)
.zoneName(zoneName)
.build());
// create a cname to the appsync domain. will map to something like xxxx.cloudfront.net
// create a cname to the appsync domain. will map to something like xxxx.cloudfront.net
CnameRecord.Builder.create(this, "CnameApiRecord")
.recordName("api")
.zone(zone)
.domainName(myDomainName)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CnameRecordProps.Builder
A builder for
CnameRecordProps |
static class |
CnameRecordProps.Jsii$Proxy
An implementation for
CnameRecordProps |
| Modifier and Type | Method and Description |
|---|---|
static CnameRecordProps.Builder |
builder() |
String |
getDomainName()
The domain name.
|
getComment, getRecordName, getTtl, getZone@Stability(value=Stable) @NotNull String getDomainName()
@Stability(value=Stable) static CnameRecordProps.Builder builder()
builder in interface RecordSetOptionsCnameRecordProps.Builder of CnameRecordPropsCopyright © 2022. All rights reserved.