Class AppSyncTarget
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.route53.targets.AppSyncTarget
- All Implemented Interfaces:
IAliasRecordTarget,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:13.113Z")
@Stability(Stable)
public class AppSyncTarget
extends software.amazon.jsii.JsiiObject
implements IAliasRecordTarget
Defines an AppSync Graphql API as the alias target.
Requires that the domain
name will be defined through GraphqlApiProps.domainName.
Example:
import software.amazon.awscdk.services.appsync.*;
HostedZone zone;
GraphqlApi graphqlApi;
ARecord.Builder.create(this, "AliasRecord")
.zone(zone)
.target(RecordTarget.fromAlias(new AppSyncTarget(graphqlApi)))
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.route53.IAliasRecordTarget
IAliasRecordTarget.Jsii$Default, IAliasRecordTarget.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionAppSyncTarget(GraphqlApi graphqlApi) protectedAppSyncTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedAppSyncTarget(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionbind(IRecordSet _record) Return hosted zone ID and DNS name, usable for Route53 alias targets.bind(IRecordSet _record, IHostedZone _zone) Return hosted zone ID and DNS name, usable for Route53 alias targets.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
AppSyncTarget
protected AppSyncTarget(software.amazon.jsii.JsiiObjectRef objRef) -
AppSyncTarget
protected AppSyncTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
AppSyncTarget
- Parameters:
graphqlApi- This parameter is required.
-
-
Method Details
-
bind
@Stability(Stable) @NotNull public AliasRecordTargetConfig bind(@NotNull IRecordSet _record, @Nullable IHostedZone _zone) Return hosted zone ID and DNS name, usable for Route53 alias targets.- Specified by:
bindin interfaceIAliasRecordTarget- Parameters:
_record- This parameter is required._zone-
-
bind
Return hosted zone ID and DNS name, usable for Route53 alias targets.- Specified by:
bindin interfaceIAliasRecordTarget- Parameters:
_record- This parameter is required.
-