aws-cdk-lib.aws_appsync.GraphqlApiAttributes

interface GraphqlApiAttributes

LanguageType name
.NETAmazon.CDK.AWS.AppSync.GraphqlApiAttributes
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsappsync#GraphqlApiAttributes
Javasoftware.amazon.awscdk.services.appsync.GraphqlApiAttributes
Pythonaws_cdk.aws_appsync.GraphqlApiAttributes
TypeScript (source)aws-cdk-lib » aws_appsync » GraphqlApiAttributes

Attributes for GraphQL imports.

Example

declare const api: appsync.GraphqlApi;
declare const table: dynamodb.Table;
const importedApi = appsync.GraphqlApi.fromGraphqlApiAttributes(this, 'IApi', {
  graphqlApiId: api.apiId,
  graphqlApiArn: api.arn,
});
importedApi.addDynamoDbDataSource('TableDataSource', table);

Properties

NameTypeDescription
graphqlApiIdstringan unique AWS AppSync GraphQL API identifier i.e. 'lxz775lwdrgcndgz3nurvac7oa'.
graphqlApiArn?stringthe arn for the GraphQL Api.

graphqlApiId

Type: string

an unique AWS AppSync GraphQL API identifier i.e. 'lxz775lwdrgcndgz3nurvac7oa'.


graphqlApiArn?

Type: string (optional, default: autogenerated arn)

the arn for the GraphQL Api.