AppSync / Client / update_type
update_type#
- AppSync.Client.update_type(**kwargs)#
Updates a
Type
object.See also: AWS API Documentation
Request Syntax
response = client.update_type( apiId='string', typeName='string', definition='string', format='SDL'|'JSON' )
- Parameters:
apiId (string) –
[REQUIRED]
The API ID.
typeName (string) –
[REQUIRED]
The new type name.
definition (string) – The new definition.
format (string) –
[REQUIRED]
The new 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 updated
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