@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:43.802Z") @Stability(value=Stable) public interface HostedZoneProviderProps extends software.amazon.jsii.JsiiSerializable
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)))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
HostedZoneProviderProps.Builder
A builder for
HostedZoneProviderProps |
static class |
HostedZoneProviderProps.Jsii$Proxy
An implementation for
HostedZoneProviderProps |
| Modifier and Type | Method and Description |
|---|---|
static HostedZoneProviderProps.Builder |
builder() |
String |
getDomainName()
The zone domain e.g.
|
default Boolean |
getPrivateZone()
Whether the zone that is being looked up is a private hosted zone.
|
default String |
getVpcId()
Specifies the ID of the VPC associated with a private hosted zone.
|
@Stability(value=Stable) @NotNull String getDomainName()
@Stability(value=Stable) @Nullable default Boolean getPrivateZone()
Default: false
@Stability(value=Stable) @Nullable default String getVpcId()
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
@Stability(value=Stable) static HostedZoneProviderProps.Builder builder()
HostedZoneProviderProps.Builder of HostedZoneProviderPropsCopyright © 2022. All rights reserved.