@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-20T22:20:05.080Z") public class CloudFrontTarget extends software.amazon.jsii.JsiiObject implements IAliasRecordTarget
Example:
import software.amazon.awscdk.services.cloudfront.*; HostedZone myZone; CloudFrontWebDistribution distribution; AaaaRecord.Builder.create(this, "Alias") .zone(myZone) .target(RecordTarget.fromAlias(new CloudFrontTarget(distribution))) .build();
IAliasRecordTarget.Jsii$Default, IAliasRecordTarget.Jsii$Proxy
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLOUDFRONT_ZONE_ID
The hosted zone Id if using an alias record in Route53.
|
Modifier | Constructor and Description |
---|---|
protected |
CloudFrontTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CloudFrontTarget(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
AliasRecordTargetConfig |
bind(IRecordSet _record)
Return hosted zone ID and DNS name, usable for Route53 alias targets.
|
AliasRecordTargetConfig |
bind(IRecordSet _record,
IHostedZone _zone)
Return hosted zone ID and DNS name, usable for Route53 alias targets.
|
static java.lang.String |
getHostedZoneId(IConstruct scope)
Get the hosted zone id for the current scope.
|
public static final java.lang.String CLOUDFRONT_ZONE_ID
This value never changes.
protected CloudFrontTarget(software.amazon.jsii.JsiiObjectRef objRef)
protected CloudFrontTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public static java.lang.String getHostedZoneId(IConstruct scope)
scope
- - scope in which this resource is defined. This parameter is required.public AliasRecordTargetConfig bind(IRecordSet _record, IHostedZone _zone)
bind
in interface IAliasRecordTarget
_record
- This parameter is required._zone
- public AliasRecordTargetConfig bind(IRecordSet _record)
bind
in interface IAliasRecordTarget
_record
- This parameter is required.