GraphQLApiProps

class aws_cdk.aws_appsync.GraphQLApiProps(*, name, authorization_config=None, log_config=None, schema_definition=None, schema_definition_file=None)

Bases: object

__init__(*, name, authorization_config=None, log_config=None, schema_definition=None, schema_definition_file=None)

Properties for an AppSync GraphQL API.

Parameters
  • name (str) – the name of the GraphQL API.

  • authorization_config (Optional[AuthorizationConfig]) – Optional authorization configuration. Default: - API Key authorization

  • log_config (Optional[LogConfig]) – Logging configuration for this api. Default: - None

  • schema_definition (Optional[str]) – GraphQL schema definition. You have to specify a definition or a file containing one. Default: - Use schemaDefinitionFile

  • schema_definition_file (Optional[str]) – File containing the GraphQL schema definition. You have to specify a definition or a file containing one. Default: - Use schemaDefinition

stability :stability: experimental

Return type

None

Attributes

authorization_config

Optional authorization configuration.

default :default: - API Key authorization

stability :stability: experimental

Return type

Optional[AuthorizationConfig]

log_config

Logging configuration for this api.

default :default: - None

stability :stability: experimental

Return type

Optional[LogConfig]

name

the name of the GraphQL API.

stability :stability: experimental

Return type

str

schema_definition

GraphQL schema definition.

You have to specify a definition or a file containing one.

default :default: - Use schemaDefinitionFile

stability :stability: experimental

Return type

Optional[str]

schema_definition_file

File containing the GraphQL schema definition.

You have to specify a definition or a file containing one.

default :default: - Use schemaDefinition

stability :stability: experimental

Return type

Optional[str]