@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-20T22:20:02.052Z") public class CnameRecord extends RecordSet
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 | Class and Description |
---|---|
static class |
CnameRecord.Builder
A fluent builder for
CnameRecord . |
IRecordSet.Jsii$Default, IRecordSet.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
CnameRecord(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CnameRecord(software.amazon.jsii.JsiiObjectRef objRef) |
|
CnameRecord(software.constructs.Construct scope,
java.lang.String id,
CnameRecordProps props) |
getDomainName
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected CnameRecord(software.amazon.jsii.JsiiObjectRef objRef)
protected CnameRecord(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CnameRecord(software.constructs.Construct scope, java.lang.String id, CnameRecordProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.