HttpsRecordServiceModeProps
- class aws_cdk.aws_route53.HttpsRecordServiceModeProps(*, alpn=None, ipv4hint=None, ipv6hint=None, mandatory=None, no_default_alpn=None, port=None, priority=None, target_name=None)
Bases:
SvcbRecordServiceModeProps
Properties of an HTTPS ServiceMode record.
- 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
- 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")] )
Attributes
- 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 identifiers
- ipv4hint
Conveys that clients may use to reach the service.
- Default:
No hints.
- ipv6hint
Conveys that clients may use to reach the service.
- Default:
No hints.
- mandatory
Indicates mandatory keys.
- Default:
No mandatory keys
- no_default_alpn
Indicates no default ALPN protocol identifiers.
The
alpn
parameter must be supplied together.- Default:
false
- port
The alternative port number.
- Default:
Use the default port
- priority
The priority.
- Default:
1
- target_name
The domain name of the alternative endpoint.
- Default:
‘.’ - The record name of the record itself