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 |
Validates the supplied schema. This call has no side effects, it simply
validates using the supplied schema using DataFormat
as the format.
Since it does not take a schema set name, no compatibility checks are
performed.
Synopsis
- data CheckSchemaVersionValidity = CheckSchemaVersionValidity' {}
- newCheckSchemaVersionValidity :: DataFormat -> Text -> CheckSchemaVersionValidity
- checkSchemaVersionValidity_dataFormat :: Lens' CheckSchemaVersionValidity DataFormat
- checkSchemaVersionValidity_schemaDefinition :: Lens' CheckSchemaVersionValidity Text
- data CheckSchemaVersionValidityResponse = CheckSchemaVersionValidityResponse' {}
- newCheckSchemaVersionValidityResponse :: Int -> CheckSchemaVersionValidityResponse
- checkSchemaVersionValidityResponse_error :: Lens' CheckSchemaVersionValidityResponse (Maybe Text)
- checkSchemaVersionValidityResponse_valid :: Lens' CheckSchemaVersionValidityResponse (Maybe Bool)
- checkSchemaVersionValidityResponse_httpStatus :: Lens' CheckSchemaVersionValidityResponse Int
Creating a Request
data CheckSchemaVersionValidity Source #
See: newCheckSchemaVersionValidity
smart constructor.
CheckSchemaVersionValidity' | |
|
Instances
newCheckSchemaVersionValidity Source #
Create a value of CheckSchemaVersionValidity
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:dataFormat:CheckSchemaVersionValidity'
, checkSchemaVersionValidity_dataFormat
- The data format of the schema definition. Currently AVRO
and JSON
are supported.
$sel:schemaDefinition:CheckSchemaVersionValidity'
, checkSchemaVersionValidity_schemaDefinition
- The definition of the schema that has to be validated.
Request Lenses
checkSchemaVersionValidity_dataFormat :: Lens' CheckSchemaVersionValidity DataFormat Source #
The data format of the schema definition. Currently AVRO
and JSON
are supported.
checkSchemaVersionValidity_schemaDefinition :: Lens' CheckSchemaVersionValidity Text Source #
The definition of the schema that has to be validated.
Destructuring the Response
data CheckSchemaVersionValidityResponse Source #
See: newCheckSchemaVersionValidityResponse
smart constructor.
Instances
newCheckSchemaVersionValidityResponse Source #
Create a value of CheckSchemaVersionValidityResponse
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:error:CheckSchemaVersionValidityResponse'
, checkSchemaVersionValidityResponse_error
- A validation failure error message.
$sel:valid:CheckSchemaVersionValidityResponse'
, checkSchemaVersionValidityResponse_valid
- Return true, if the schema is valid and false otherwise.
$sel:httpStatus:CheckSchemaVersionValidityResponse'
, checkSchemaVersionValidityResponse_httpStatus
- The response's http status code.
Response Lenses
checkSchemaVersionValidityResponse_error :: Lens' CheckSchemaVersionValidityResponse (Maybe Text) Source #
A validation failure error message.
checkSchemaVersionValidityResponse_valid :: Lens' CheckSchemaVersionValidityResponse (Maybe Bool) Source #
Return true, if the schema is valid and false otherwise.
checkSchemaVersionValidityResponse_httpStatus :: Lens' CheckSchemaVersionValidityResponse Int Source #
The response's http status code.