create_schema
(**kwargs)¶Creates a schema definition.
Note
Inactive schemas will be deleted after two years.
See also: AWS API Documentation
Request Syntax
response = client.create_schema(
Content='string',
Description='string',
RegistryName='string',
SchemaName='string',
Tags={
'string': 'string'
},
Type='OpenApi3'|'JSONSchemaDraft4'
)
[REQUIRED]
The source of the schema definition.
[REQUIRED]
The name of the registry.
[REQUIRED]
The name of the schema.
Tags associated with the schema.
[REQUIRED]
The type of schema.
dict
Response Syntax
{
'Description': 'string',
'LastModified': datetime(2015, 1, 1),
'SchemaArn': 'string',
'SchemaName': 'string',
'SchemaVersion': 'string',
'Tags': {
'string': 'string'
},
'Type': 'string',
'VersionCreatedDate': datetime(2015, 1, 1)
}
Response Structure
(dict) --
201 response
Description (string) --
The description of the schema.
LastModified (datetime) --
The date and time that schema was modified.
SchemaArn (string) --
The ARN of the schema.
SchemaName (string) --
The name of the schema.
SchemaVersion (string) --
The version number of the schema
Tags (dict) --
Key-value pairs associated with a resource.
Type (string) --
The type of the schema.
VersionCreatedDate (datetime) --
The date the schema version was created.
Exceptions
Schemas.Client.exceptions.ServiceUnavailableException
Schemas.Client.exceptions.BadRequestException
Schemas.Client.exceptions.InternalServerErrorException
Schemas.Client.exceptions.ForbiddenException