class HttpsRecordValue
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Route53.HttpsRecordValue |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsroute53#HttpsRecordValue |
![]() | software.amazon.awscdk.services.route53.HttpsRecordValue |
![]() | aws_cdk.aws_route53.HttpsRecordValue |
![]() | aws-cdk-lib » aws_route53 » HttpsRecordValue |
Represents an HTTPS record value.
Example
import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
declare const myZone: route53.HostedZone;
declare const distribution: cloudfront.CloudFrontWebDistribution;
// Alias to CloudFront target
new route53.HttpsRecord(this, 'HttpsRecord-CloudFrontAlias', {
zone: myZone,
target: route53.RecordTarget.fromAlias(new targets.CloudFrontTarget(distribution)),
});
// ServiceMode (priority >= 1)
new route53.HttpsRecord(this, 'HttpsRecord-ServiceMode', {
zone: myZone,
values: [route53.HttpsRecordValue.service({ alpn: [route53.Alpn.H3, route53.Alpn.H2] })],
});
// AliasMode (priority = 0)
new route53.HttpsRecord(this, 'HttpsRecord-AliasMode', {
zone: myZone,
values: [route53.HttpsRecordValue.alias('service.example.com')],
});
Methods
Name | Description |
---|---|
to | Returns the string representation of SVCB and HTTPS record value. |
static alias(targetName) | An HTTPS AliasMode record value. |
static service(props?) | An HTTPS ServiceMode record value. |
toString()
public toString(): string
Returns
string
Returns the string representation of SVCB and HTTPS record value.
static alias(targetName)
public static alias(targetName: string): HttpsRecordValue
Parameters
- targetName
string
— The domain name of the alternative endpoint.
Returns
An HTTPS AliasMode record value.
static service(props?)
public static service(props?: HttpsRecordServiceModeProps): HttpsRecordValue
Parameters
Returns
An HTTPS ServiceMode record value.