get_schema_versions_diff
(**kwargs)¶Fetches the schema version difference in the specified difference type between two stored schema versions in the Schema Registry.
This API allows you to compare two schema versions between two schema definitions under the same schema.
See also: AWS API Documentation
Request Syntax
response = client.get_schema_versions_diff(
SchemaId={
'SchemaArn': 'string',
'SchemaName': 'string',
'RegistryName': 'string'
},
FirstSchemaVersionNumber={
'LatestVersion': True|False,
'VersionNumber': 123
},
SecondSchemaVersionNumber={
'LatestVersion': True|False,
'VersionNumber': 123
},
SchemaDiffType='SYNTAX_DIFF'
)
[REQUIRED]
This is a wrapper structure to contain schema identity fields. The structure contains:
SchemaArn
or SchemaName
has to be provided.SchemaArn
or SchemaName
has to be provided.The Amazon Resource Name (ARN) of the schema. One of SchemaArn
or SchemaName
has to be provided.
The name of the schema. One of SchemaArn
or SchemaName
has to be provided.
The name of the schema registry that contains the schema.
[REQUIRED]
The first of the two schema versions to be compared.
The latest version available for the schema.
The version number of the schema.
[REQUIRED]
The second of the two schema versions to be compared.
The latest version available for the schema.
The version number of the schema.
[REQUIRED]
Refers to SYNTAX_DIFF
, which is the currently supported diff type.
dict
Response Syntax
{
'Diff': 'string'
}
Response Structure
(dict) --
Diff (string) --
The difference between schemas as a string in JsonPatch format.
Exceptions
Glue.Client.exceptions.InvalidInputException
Glue.Client.exceptions.EntityNotFoundException
Glue.Client.exceptions.AccessDeniedException
Glue.Client.exceptions.InternalServiceException