Interface CnameRecordProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,RecordSetOptions
- All Known Implementing Classes:
CnameRecordProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-15T21:09:26.286Z")
@Stability(Stable)
public interface CnameRecordProps
extends software.amazon.jsii.JsiiSerializable, RecordSetOptions
Construction properties for a CnameRecord.
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(); SchemaFile schema = SchemaFile.Builder.create().filePath("mySchemaFile").build(); GraphqlApi api = GraphqlApi.Builder.create(this, "api") .name("myApi") .definition(Definition.fromSchema(schema)) .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(api.getAppSyncDomainName()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCnameRecordProps
static final class
An implementation forCnameRecordProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CnameRecordProps.Builder
builder()
The domain name of the target that this record should point to.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.services.route53.RecordSetOptions
getComment, getDeleteExisting, getGeoLocation, getHealthCheck, getMultiValueAnswer, getRecordName, getRegion, getSetIdentifier, getTtl, getWeight, getZone
-
Method Details
-
getDomainName
The domain name of the target that this record should point to. -
builder
- Returns:
- a
CnameRecordProps.Builder
ofCnameRecordProps
-