Interface HostedZoneProviderProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
HostedZoneProviderProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:45.920Z")
@Stability(Stable)
public interface HostedZoneProviderProps
extends software.amazon.jsii.JsiiSerializable
Zone properties for looking up the Hosted Zone.
Example:
import software.amazon.awscdk.services.s3.*;
String recordName = "www";
String domainName = "example.com";
Bucket bucketWebsite = Bucket.Builder.create(this, "BucketWebsite")
.bucketName(List.of(recordName, domainName).join(".")) // www.example.com
.publicReadAccess(true)
.websiteIndexDocument("index.html")
.build();
IHostedZone zone = HostedZone.fromLookup(this, "Zone", HostedZoneProviderProps.builder().domainName(domainName).build()); // example.com
// example.com
ARecord.Builder.create(this, "AliasRecord")
.zone(zone)
.recordName(recordName) // www
.target(RecordTarget.fromAlias(
new BucketWebsiteTarget(bucketWebsite, Map.of(
"evaluateTargetHealth", true))))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forHostedZoneProviderPropsstatic final classAn implementation forHostedZoneProviderProps -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDomainName
The zone domain e.g. example.com. -
getPrivateZone
Whether the zone that is being looked up is a private hosted zone.Default: false
-
getVpcId
Specifies the ID of the VPC associated with a private hosted zone.If a VPC ID is provided and privateZone is false, no results will be returned and an error will be raised
Default: - No VPC ID
-
builder
- Returns:
- a
HostedZoneProviderProps.BuilderofHostedZoneProviderProps
-