interface GraphqlApiAttributes
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppSync.GraphqlApiAttributes |
Java | software.amazon.awscdk.services.appsync.GraphqlApiAttributes |
Python | aws_cdk.aws_appsync.GraphqlApiAttributes |
TypeScript (source) | @aws-cdk/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
Name | Type | Description |
---|---|---|
graphql | string | an unique AWS AppSync GraphQL API identifier i.e. 'lxz775lwdrgcndgz3nurvac7oa'. |
graphql | string | the 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.