Interface HttpsRecordProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,RecordSetOptions
- All Known Implementing Classes:
HttpsRecordProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:13.053Z")
@Stability(Stable)
public interface HttpsRecordProps
extends software.amazon.jsii.JsiiSerializable, RecordSetOptions
Construction properties for an HttpsRecord.
Example:
import software.amazon.awscdk.services.cloudfront.*;
HostedZone myZone;
CloudFrontWebDistribution distribution;
// Alias to CloudFront target
// Alias to CloudFront target
HttpsRecord.Builder.create(this, "HttpsRecord-CloudFrontAlias")
.zone(myZone)
.target(RecordTarget.fromAlias(new CloudFrontTarget(distribution)))
.build();
// ServiceMode (priority >= 1)
// ServiceMode (priority >= 1)
HttpsRecord.Builder.create(this, "HttpsRecord-ServiceMode")
.zone(myZone)
.values(List.of(HttpsRecordValue.service(HttpsRecordServiceModeProps.builder().alpn(List.of(Alpn.H3, Alpn.H2)).build())))
.build();
// AliasMode (priority = 0)
// AliasMode (priority = 0)
HttpsRecord.Builder.create(this, "HttpsRecord-AliasMode")
.zone(myZone)
.values(List.of(HttpsRecordValue.alias("service.example.com")))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forHttpsRecordPropsstatic final classAn implementation forHttpsRecordProps -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpsRecordProps.Builderbuilder()default RecordTargetThe target (mostly used as an alias target to CloudFront).default List<HttpsRecordValue> The values.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.route53.RecordSetOptions
getCidrRoutingConfig, getComment, getDeleteExisting, getGeoLocation, getHealthCheck, getMultiValueAnswer, getRecordName, getRegion, getSetIdentifier, getTtl, getWeight, getZone
-
Method Details
-
getTarget
The target (mostly used as an alias target to CloudFront).Default: - Specify exactly one of either `values` or `target`.
-
getValues
The values.Default: - Specify exactly one of either `values` or `target`.
-
builder
- Returns:
- a
HttpsRecordProps.BuilderofHttpsRecordProps
-