HttpsRecordValue
- class aws_cdk.aws_route53.HttpsRecordValue(*args: Any, **kwargs)
Bases:
object
Represents an HTTPS record value.
- ExampleMetadata:
infused
Example:
import aws_cdk.aws_cloudfront as cloudfront # my_zone: route53.HostedZone # distribution: cloudfront.CloudFrontWebDistribution # Alias to CloudFront target route53.HttpsRecord(self, "HttpsRecord-CloudFrontAlias", zone=my_zone, target=route53.RecordTarget.from_alias(targets.CloudFrontTarget(distribution)) ) # ServiceMode (priority >= 1) route53.HttpsRecord(self, "HttpsRecord-ServiceMode", zone=my_zone, values=[route53.HttpsRecordValue.service(alpn=[route53.Alpn.H3, route53.Alpn.H2])] ) # AliasMode (priority = 0) route53.HttpsRecord(self, "HttpsRecord-AliasMode", zone=my_zone, values=[route53.HttpsRecordValue.alias("service.example.com")] )
Methods
- to_string()
Returns the string representation of SVCB and HTTPS record value.
- Return type:
str
Static Methods
- classmethod alias(target_name)
An HTTPS AliasMode record value.
- Parameters:
target_name (
str
) – The domain name of the alternative endpoint.- Return type:
- classmethod service(*, alpn=None, ipv4hint=None, ipv6hint=None, mandatory=None, no_default_alpn=None, port=None, priority=None, target_name=None)
An HTTPS ServiceMode record value.
- Parameters:
alpn (
Optional
[Sequence
[Alpn
]]) – Indicates the set of Application-Layer Protocol Negotiation (ALPN) protocol identifiers and associated transport protocols supported by this service endpoint. Default: - No ALPN protocol identifiersipv4hint (
Optional
[Sequence
[str
]]) – Conveys that clients may use to reach the service. Default: - No hints.ipv6hint (
Optional
[Sequence
[str
]]) – Conveys that clients may use to reach the service. Default: - No hints.mandatory (
Optional
[Sequence
[str
]]) – Indicates mandatory keys. Default: - No mandatory keysno_default_alpn (
Optional
[bool
]) – Indicates no default ALPN protocol identifiers. Thealpn
parameter must be supplied together. Default: falseport (
Union
[int
,float
,None
]) – The alternative port number. Default: - Use the default portpriority (
Union
[int
,float
,None
]) – The priority. Default: 1target_name (
Optional
[str
]) – The domain name of the alternative endpoint. Default: ‘.’ - The record name of the record itself
- Return type: