AppSync / Client / create_type
create_type#
- AppSync.Client.create_type(**kwargs)#
Creates a
Type
object.See also: AWS API Documentation
Request Syntax
response = client.create_type( apiId='string', definition='string', format='SDL'|'JSON' )
- Parameters:
apiId (string) –
[REQUIRED]
The API ID.
definition (string) –
[REQUIRED]
The type definition, in GraphQL Schema Definition Language (SDL) format.
For more information, see the GraphQL SDL documentation.
format (string) –
[REQUIRED]
The type format: SDL or JSON.
- Return type:
dict
- Returns:
Response Syntax
{ 'type': { 'name': 'string', 'description': 'string', 'arn': 'string', 'definition': 'string', 'format': 'SDL'|'JSON' } }
Response Structure
(dict) –
type (dict) –
The
Type
object.name (string) –
The type name.
description (string) –
The type description.
arn (string) –
The type Amazon Resource Name (ARN).
definition (string) –
The type definition.
format (string) –
The type format: SDL or JSON.
Exceptions
AppSync.Client.exceptions.BadRequestException
AppSync.Client.exceptions.ConcurrentModificationException
AppSync.Client.exceptions.NotFoundException
AppSync.Client.exceptions.UnauthorizedException
AppSync.Client.exceptions.InternalFailureException