create_type
¶
create_type(
api_id: String,
definition: String,
format: TypeDefinitionFormat,
*,
config_overrides: Optional[AppSyncClientConfig] = None,
) -> CreateTypeResponse
Creates a Type object.
Parameters:
-
api_id(String) –The API ID.
-
definition(String) –The type definition, in GraphQL Schema Definition Language (SDL) format.
For more information, see the GraphQL SDL documentation.
-
format(TypeDefinitionFormat) –The type format: SDL or JSON.
Raises:
-
BadRequestException–The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException–Another modification is in progress at this time and it must complete before you can make your change.
-
InternalFailureException–An internal AppSync error occurred. Try your request again.
-
NotFoundException–The resource specified in the request was not found. Check the resource, and then try again.
-
UnauthorizedException–You aren't authorized to perform this operation.
-
UnknownServiceError–The service returned an error code this client does not model.