Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
Synopsis
- data GetSchemaVersionsDiff = GetSchemaVersionsDiff' {}
- newGetSchemaVersionsDiff :: SchemaId -> SchemaVersionNumber -> SchemaVersionNumber -> SchemaDiffType -> GetSchemaVersionsDiff
- getSchemaVersionsDiff_schemaId :: Lens' GetSchemaVersionsDiff SchemaId
- getSchemaVersionsDiff_firstSchemaVersionNumber :: Lens' GetSchemaVersionsDiff SchemaVersionNumber
- getSchemaVersionsDiff_secondSchemaVersionNumber :: Lens' GetSchemaVersionsDiff SchemaVersionNumber
- getSchemaVersionsDiff_schemaDiffType :: Lens' GetSchemaVersionsDiff SchemaDiffType
- data GetSchemaVersionsDiffResponse = GetSchemaVersionsDiffResponse' {
- diff :: Maybe Text
- httpStatus :: Int
- newGetSchemaVersionsDiffResponse :: Int -> GetSchemaVersionsDiffResponse
- getSchemaVersionsDiffResponse_diff :: Lens' GetSchemaVersionsDiffResponse (Maybe Text)
- getSchemaVersionsDiffResponse_httpStatus :: Lens' GetSchemaVersionsDiffResponse Int
Creating a Request
data GetSchemaVersionsDiff Source #
See: newGetSchemaVersionsDiff
smart constructor.
GetSchemaVersionsDiff' | |
|
Instances
newGetSchemaVersionsDiff Source #
Create a value of GetSchemaVersionsDiff
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:schemaId:GetSchemaVersionsDiff'
, getSchemaVersionsDiff_schemaId
- This is a wrapper structure to contain schema identity fields. The
structure contains:
- SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema.
One of
SchemaArn
orSchemaName
has to be provided. - SchemaId$SchemaName: The name of the schema. One of
SchemaArn
orSchemaName
has to be provided.
$sel:firstSchemaVersionNumber:GetSchemaVersionsDiff'
, getSchemaVersionsDiff_firstSchemaVersionNumber
- The first of the two schema versions to be compared.
$sel:secondSchemaVersionNumber:GetSchemaVersionsDiff'
, getSchemaVersionsDiff_secondSchemaVersionNumber
- The second of the two schema versions to be compared.
$sel:schemaDiffType:GetSchemaVersionsDiff'
, getSchemaVersionsDiff_schemaDiffType
- Refers to SYNTAX_DIFF
, which is the currently supported diff type.
Request Lenses
getSchemaVersionsDiff_schemaId :: Lens' GetSchemaVersionsDiff SchemaId Source #
This is a wrapper structure to contain schema identity fields. The structure contains:
- SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema.
One of
SchemaArn
orSchemaName
has to be provided. - SchemaId$SchemaName: The name of the schema. One of
SchemaArn
orSchemaName
has to be provided.
getSchemaVersionsDiff_firstSchemaVersionNumber :: Lens' GetSchemaVersionsDiff SchemaVersionNumber Source #
The first of the two schema versions to be compared.
getSchemaVersionsDiff_secondSchemaVersionNumber :: Lens' GetSchemaVersionsDiff SchemaVersionNumber Source #
The second of the two schema versions to be compared.
getSchemaVersionsDiff_schemaDiffType :: Lens' GetSchemaVersionsDiff SchemaDiffType Source #
Refers to SYNTAX_DIFF
, which is the currently supported diff type.
Destructuring the Response
data GetSchemaVersionsDiffResponse Source #
See: newGetSchemaVersionsDiffResponse
smart constructor.
GetSchemaVersionsDiffResponse' | |
|
Instances
newGetSchemaVersionsDiffResponse Source #
Create a value of GetSchemaVersionsDiffResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:diff:GetSchemaVersionsDiffResponse'
, getSchemaVersionsDiffResponse_diff
- The difference between schemas as a string in JsonPatch format.
$sel:httpStatus:GetSchemaVersionsDiffResponse'
, getSchemaVersionsDiffResponse_httpStatus
- The response's http status code.
Response Lenses
getSchemaVersionsDiffResponse_diff :: Lens' GetSchemaVersionsDiffResponse (Maybe Text) Source #
The difference between schemas as a string in JsonPatch format.
getSchemaVersionsDiffResponse_httpStatus :: Lens' GetSchemaVersionsDiffResponse Int Source #
The response's http status code.