class AppSyncTarget
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Route53.Targets.AppSyncTarget |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsroute53targets#AppSyncTarget |
Java | software.amazon.awscdk.services.route53.targets.AppSyncTarget |
Python | aws_cdk.aws_route53_targets.AppSyncTarget |
TypeScript (source) | aws-cdk-lib » aws_route53_targets » AppSyncTarget |
Implements
IAlias
Defines an AppSync Graphql API as the alias target.
Requires that the domain
name will be defined through GraphqlApiProps.domainName.
Example
import * as appsync from 'aws-cdk-lib/aws-appsync';
declare const zone: route53.HostedZone;
declare const graphqlApi: appsync.GraphqlApi;
new route53.ARecord(this, 'AliasRecord', {
zone,
target: route53.RecordTarget.fromAlias(new targets.AppSyncTarget(graphqlApi)),
});
Initializer
new AppSyncTarget(graphqlApi: GraphqlApi)
Parameters
- graphqlApi
GraphqlApi
Methods
| Name | Description |
|---|---|
| bind(_record, _zone?) | Return hosted zone ID and DNS name, usable for Route53 alias targets. |
bind(_record, _zone?)
public bind(_record: IRecordSet, _zone?: IHostedZone): AliasRecordTargetConfig
Parameters
- _record
IRecordSet - _zone
IHostedZone
Returns
Return hosted zone ID and DNS name, usable for Route53 alias targets.

.NET
Go
Java
Python
TypeScript (