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 |
Updates the description, compatibility setting, or version checkpoint for a schema set.
For updating the compatibility setting, the call will not validate
compatibility for the entire set of schema versions with the new
compatibility setting. If the value for Compatibility
is provided, the
VersionNumber
(a checkpoint) is also required. The API will validate
the checkpoint version number for consistency.
If the value for the VersionNumber
(checkpoint) is provided,
Compatibility
is optional and this can be used to set/reset a
checkpoint for the schema.
This update will happen only if the schema is in the AVAILABLE state.
Synopsis
- data UpdateSchema = UpdateSchema' {}
- newUpdateSchema :: SchemaId -> UpdateSchema
- updateSchema_schemaVersionNumber :: Lens' UpdateSchema (Maybe SchemaVersionNumber)
- updateSchema_description :: Lens' UpdateSchema (Maybe Text)
- updateSchema_compatibility :: Lens' UpdateSchema (Maybe Compatibility)
- updateSchema_schemaId :: Lens' UpdateSchema SchemaId
- data UpdateSchemaResponse = UpdateSchemaResponse' {
- registryName :: Maybe Text
- schemaName :: Maybe Text
- schemaArn :: Maybe Text
- httpStatus :: Int
- newUpdateSchemaResponse :: Int -> UpdateSchemaResponse
- updateSchemaResponse_registryName :: Lens' UpdateSchemaResponse (Maybe Text)
- updateSchemaResponse_schemaName :: Lens' UpdateSchemaResponse (Maybe Text)
- updateSchemaResponse_schemaArn :: Lens' UpdateSchemaResponse (Maybe Text)
- updateSchemaResponse_httpStatus :: Lens' UpdateSchemaResponse Int
Creating a Request
data UpdateSchema Source #
See: newUpdateSchema
smart constructor.
UpdateSchema' | |
|
Instances
Create a value of UpdateSchema
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:schemaVersionNumber:UpdateSchema'
, updateSchema_schemaVersionNumber
- Version number required for check pointing. One of VersionNumber
or
Compatibility
has to be provided.
$sel:description:UpdateSchema'
, updateSchema_description
- The new description for the schema.
$sel:compatibility:UpdateSchema'
, updateSchema_compatibility
- The new compatibility setting for the schema.
$sel:schemaId:UpdateSchema'
, updateSchema_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.
Request Lenses
updateSchema_schemaVersionNumber :: Lens' UpdateSchema (Maybe SchemaVersionNumber) Source #
Version number required for check pointing. One of VersionNumber
or
Compatibility
has to be provided.
updateSchema_description :: Lens' UpdateSchema (Maybe Text) Source #
The new description for the schema.
updateSchema_compatibility :: Lens' UpdateSchema (Maybe Compatibility) Source #
The new compatibility setting for the schema.
updateSchema_schemaId :: Lens' UpdateSchema 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.
Destructuring the Response
data UpdateSchemaResponse Source #
See: newUpdateSchemaResponse
smart constructor.
UpdateSchemaResponse' | |
|
Instances
newUpdateSchemaResponse Source #
Create a value of UpdateSchemaResponse
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:registryName:UpdateSchemaResponse'
, updateSchemaResponse_registryName
- The name of the registry that contains the schema.
$sel:schemaName:UpdateSchemaResponse'
, updateSchemaResponse_schemaName
- The name of the schema.
$sel:schemaArn:UpdateSchemaResponse'
, updateSchemaResponse_schemaArn
- The Amazon Resource Name (ARN) of the schema.
$sel:httpStatus:UpdateSchemaResponse'
, updateSchemaResponse_httpStatus
- The response's http status code.
Response Lenses
updateSchemaResponse_registryName :: Lens' UpdateSchemaResponse (Maybe Text) Source #
The name of the registry that contains the schema.
updateSchemaResponse_schemaName :: Lens' UpdateSchemaResponse (Maybe Text) Source #
The name of the schema.
updateSchemaResponse_schemaArn :: Lens' UpdateSchemaResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the schema.
updateSchemaResponse_httpStatus :: Lens' UpdateSchemaResponse Int Source #
The response's http status code.