Skip to main content

introspection_schemas

Creates, updates, deletes, gets or lists an introspection_schemas resource.

Overview

Nameintrospection_schemas
TypeResource
Idaws.appsync.introspection_schemas

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
schemastring (byte)The schema, in GraphQL Schema Definition Language (SDL) format. For more information, see the GraphQL SDL documentation.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_introspection_schemaselectapi_id, format, regionincludeDirectivesRetrieves the introspection schema for a GraphQL API.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_idstringThe API ID.
formatstringThe schema format: SDL or JSON.
regionstringAWS region (default: us-east-1)
includeDirectivesbooleanA flag that specifies whether the schema introspection should contain directives.

SELECT examples

Retrieves the introspection schema for a GraphQL API.

SELECT
schema
FROM aws.appsync.introspection_schemas
WHERE api_id = '{{ api_id }}' -- required
AND format = '{{ format }}' -- required
AND region = '{{ region }}' -- required
AND includeDirectives = '{{ includeDirectives }}'
;