Class HttpsRecord
A DNS HTTPS record.
Inherited Members
Namespace: Amazon.CDK.AWS.Route53
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class HttpsRecord : RecordSet, IRecordSet, IResource, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class HttpsRecord Inherits RecordSet Implements IRecordSet, IResource, IConstruct, IDependable, IEnvironmentAware
Remarks
Resource: AWS::Route53::RecordSet
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.CloudFront;
HostedZone myZone;
CloudFrontWebDistribution distribution;
// Alias to CloudFront target
// Alias to CloudFront target
new HttpsRecord(this, "HttpsRecord-CloudFrontAlias", new HttpsRecordProps {
Zone = myZone,
Target = RecordTarget.FromAlias(new CloudFrontTarget(distribution))
});
// ServiceMode (priority >= 1)
// ServiceMode (priority >= 1)
new HttpsRecord(this, "HttpsRecord-ServiceMode", new HttpsRecordProps {
Zone = myZone,
Values = new [] { HttpsRecordValue.Service(new HttpsRecordServiceModeProps { Alpn = new [] { Alpn.H3, Alpn.H2 } }) }
});
// AliasMode (priority = 0)
// AliasMode (priority = 0)
new HttpsRecord(this, "HttpsRecord-AliasMode", new HttpsRecordProps {
Zone = myZone,
Values = new [] { HttpsRecordValue.Alias("service.example.com") }
});
Synopsis
Constructors
| HttpsRecord(Construct, string, IHttpsRecordProps) | A DNS HTTPS record. |
Properties
| PROPERTY_INJECTION_ID | Uniquely identifies this class. |
Constructors
HttpsRecord(Construct, string, IHttpsRecordProps)
A DNS HTTPS record.
public HttpsRecord(Construct scope, string id, IHttpsRecordProps props)
Parameters
- scope Construct
- id string
- props IHttpsRecordProps
Remarks
Resource: AWS::Route53::RecordSet
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.CloudFront;
HostedZone myZone;
CloudFrontWebDistribution distribution;
// Alias to CloudFront target
// Alias to CloudFront target
new HttpsRecord(this, "HttpsRecord-CloudFrontAlias", new HttpsRecordProps {
Zone = myZone,
Target = RecordTarget.FromAlias(new CloudFrontTarget(distribution))
});
// ServiceMode (priority >= 1)
// ServiceMode (priority >= 1)
new HttpsRecord(this, "HttpsRecord-ServiceMode", new HttpsRecordProps {
Zone = myZone,
Values = new [] { HttpsRecordValue.Service(new HttpsRecordServiceModeProps { Alpn = new [] { Alpn.H3, Alpn.H2 } }) }
});
// AliasMode (priority = 0)
// AliasMode (priority = 0)
new HttpsRecord(this, "HttpsRecord-AliasMode", new HttpsRecordProps {
Zone = myZone,
Values = new [] { HttpsRecordValue.Alias("service.example.com") }
});
Properties
PROPERTY_INJECTION_ID
Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Resource: AWS::Route53::RecordSet
ExampleMetadata: infused
Implements
Constructs.IConstruct
Constructs.IDependable