Show / Hide Table of Contents

Interface ICnameRecordProps

Construction properties for a CnameRecord.

Inherited Members
IRecordSetOptions.Zone
IRecordSetOptions.CidrRoutingConfig
IRecordSetOptions.Comment
IRecordSetOptions.DeleteExisting
IRecordSetOptions.GeoLocation
IRecordSetOptions.HealthCheck
IRecordSetOptions.MultiValueAnswer
IRecordSetOptions.RecordName
IRecordSetOptions.Region
IRecordSetOptions.SetIdentifier
IRecordSetOptions.Ttl
IRecordSetOptions.Weight
Namespace: Amazon.CDK.AWS.Route53
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICnameRecordProps : IRecordSetOptions
Syntax (vb)
Public Interface ICnameRecordProps Inherits IRecordSetOptions
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK.AWS.CertificateManager;
            using Amazon.CDK.AWS.Route53;

            // hosted zone and route53 features
            string hostedZoneId;
            var zoneName = "example.com";


            var myDomainName = "api.example.com";
            var certificate = new Certificate(this, "cert", new CertificateProps { DomainName = myDomainName });
            var schema = new SchemaFile(new SchemaProps { FilePath = "mySchemaFile" });
            var api = new GraphqlApi(this, "api", new GraphqlApiProps {
                Name = "myApi",
                Definition = Definition.FromSchema(schema),
                DomainName = new DomainOptions {
                    Certificate = certificate,
                    DomainName = myDomainName
                }
            });

            // hosted zone for adding appsync domain
            var zone = HostedZone.FromHostedZoneAttributes(this, "HostedZone", new HostedZoneAttributes {
                HostedZoneId = hostedZoneId,
                ZoneName = zoneName
            });

            // 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
            new CnameRecord(this, "CnameApiRecord", new CnameRecordProps {
                RecordName = "api",
                Zone = zone,
                DomainName = api.AppSyncDomainName
            });

Synopsis

Properties

DomainName

The domain name of the target that this record should point to.

Properties

DomainName

The domain name of the target that this record should point to.

string DomainName { get; }
Property Value

string

Remarks

ExampleMetadata: infused

Back to top Generated by DocFX