GraphqlApiAttributes

class aws_cdk.aws_appsync.GraphqlApiAttributes(*, graphql_api_id, graphql_api_arn=None)

Bases: object

(experimental) Attributes for GraphQL imports.

Parameters:
  • graphql_api_id (str) – (experimental) an unique AWS AppSync GraphQL API identifier i.e. ‘lxz775lwdrgcndgz3nurvac7oa’.

  • graphql_api_arn (Optional[str]) – (experimental) the arn for the GraphQL Api. Default: - autogenerated arn

Stability:

experimental

ExampleMetadata:

infused

Example:

# api: appsync.GraphqlApi
# table: dynamodb.Table

imported_api = appsync.GraphqlApi.from_graphql_api_attributes(self, "IApi",
    graphql_api_id=api.api_id,
    graphql_api_arn=api.arn
)
imported_api.add_dynamo_db_data_source("TableDataSource", table)

Attributes

graphql_api_arn

(experimental) the arn for the GraphQL Api.

Default:
  • autogenerated arn

Stability:

experimental

graphql_api_id

(experimental) an unique AWS AppSync GraphQL API identifier i.e. ‘lxz775lwdrgcndgz3nurvac7oa’.

Stability:

experimental