@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.684Z") @Stability(value=Stable) 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();
software.amazon.jsii.JsiiObject.InitializationModeIAliasRecordTarget.Jsii$Default, IAliasRecordTarget.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CLOUDFRONT_ZONE_ID
The hosted zone Id if using an alias record in Route53.
|
| Modifier | Constructor and Description |
|---|---|
|
CloudFrontTarget(IDistribution distribution) |
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 String |
getHostedZoneId(software.constructs.IConstruct scope)
Get the hosted zone id for the current scope.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CLOUDFRONT_ZONE_ID
This value never changes.
protected CloudFrontTarget(software.amazon.jsii.JsiiObjectRef objRef)
protected CloudFrontTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CloudFrontTarget(@NotNull
IDistribution distribution)
distribution - This parameter is required.@Stability(value=Stable) @NotNull public static String getHostedZoneId(@NotNull software.constructs.IConstruct scope)
scope - - scope in which this resource is defined. This parameter is required.@Stability(value=Stable) @NotNull public AliasRecordTargetConfig bind(@NotNull IRecordSet _record, @Nullable IHostedZone _zone)
bind in interface IAliasRecordTarget_record - This parameter is required._zone - @Stability(value=Stable) @NotNull public AliasRecordTargetConfig bind(@NotNull IRecordSet _record)
bind in interface IAliasRecordTarget_record - This parameter is required.Copyright © 2022. All rights reserved.