| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Schemas.UpdateSchema
Description
Updates the schema definition
Inactive schemas will be deleted after two years.
Synopsis
- data UpdateSchema = UpdateSchema' {
- clientTokenId :: Maybe Text
- content :: Maybe Text
- description :: Maybe Text
- type' :: Maybe Type
- registryName :: Text
- schemaName :: Text
- newUpdateSchema :: Text -> Text -> UpdateSchema
- updateSchema_clientTokenId :: Lens' UpdateSchema (Maybe Text)
- updateSchema_content :: Lens' UpdateSchema (Maybe Text)
- updateSchema_description :: Lens' UpdateSchema (Maybe Text)
- updateSchema_type :: Lens' UpdateSchema (Maybe Type)
- updateSchema_registryName :: Lens' UpdateSchema Text
- updateSchema_schemaName :: Lens' UpdateSchema Text
- data UpdateSchemaResponse = UpdateSchemaResponse' {
- description :: Maybe Text
- lastModified :: Maybe ISO8601
- schemaArn :: Maybe Text
- schemaName :: Maybe Text
- schemaVersion :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- type' :: Maybe Text
- versionCreatedDate :: Maybe ISO8601
- httpStatus :: Int
- newUpdateSchemaResponse :: Int -> UpdateSchemaResponse
- updateSchemaResponse_description :: Lens' UpdateSchemaResponse (Maybe Text)
- updateSchemaResponse_lastModified :: Lens' UpdateSchemaResponse (Maybe UTCTime)
- updateSchemaResponse_schemaArn :: Lens' UpdateSchemaResponse (Maybe Text)
- updateSchemaResponse_schemaName :: Lens' UpdateSchemaResponse (Maybe Text)
- updateSchemaResponse_schemaVersion :: Lens' UpdateSchemaResponse (Maybe Text)
- updateSchemaResponse_tags :: Lens' UpdateSchemaResponse (Maybe (HashMap Text Text))
- updateSchemaResponse_type :: Lens' UpdateSchemaResponse (Maybe Text)
- updateSchemaResponse_versionCreatedDate :: Lens' UpdateSchemaResponse (Maybe UTCTime)
- updateSchemaResponse_httpStatus :: Lens' UpdateSchemaResponse Int
Creating a Request
data UpdateSchema Source #
See: newUpdateSchema smart constructor.
Constructors
| UpdateSchema' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> UpdateSchema |
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:clientTokenId:UpdateSchema', updateSchema_clientTokenId - The ID of the client token.
$sel:content:UpdateSchema', updateSchema_content - The source of the schema definition.
UpdateSchema, updateSchema_description - The description of the schema.
UpdateSchema, updateSchema_type - The schema type for the events schema.
UpdateSchema, updateSchema_registryName - The name of the registry.
UpdateSchema, updateSchema_schemaName - The name of the schema.
Request Lenses
updateSchema_clientTokenId :: Lens' UpdateSchema (Maybe Text) Source #
The ID of the client token.
updateSchema_content :: Lens' UpdateSchema (Maybe Text) Source #
The source of the schema definition.
updateSchema_description :: Lens' UpdateSchema (Maybe Text) Source #
The description of the schema.
updateSchema_type :: Lens' UpdateSchema (Maybe Type) Source #
The schema type for the events schema.
updateSchema_registryName :: Lens' UpdateSchema Text Source #
The name of the registry.
updateSchema_schemaName :: Lens' UpdateSchema Text Source #
The name of the schema.
Destructuring the Response
data UpdateSchemaResponse Source #
See: newUpdateSchemaResponse smart constructor.
Constructors
| UpdateSchemaResponse' | |
Fields
| |
Instances
newUpdateSchemaResponse Source #
Arguments
| :: Int | |
| -> UpdateSchemaResponse |
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:
UpdateSchema, updateSchemaResponse_description - The description of the schema.
UpdateSchemaResponse, updateSchemaResponse_lastModified - The date and time that schema was modified.
UpdateSchemaResponse, updateSchemaResponse_schemaArn - The ARN of the schema.
UpdateSchema, updateSchemaResponse_schemaName - The name of the schema.
UpdateSchemaResponse, updateSchemaResponse_schemaVersion - The version number of the schema
UpdateSchemaResponse, updateSchemaResponse_tags - Undocumented member.
UpdateSchema, updateSchemaResponse_type - The type of the schema.
$sel:versionCreatedDate:UpdateSchemaResponse', updateSchemaResponse_versionCreatedDate - The date the schema version was created.
$sel:httpStatus:UpdateSchemaResponse', updateSchemaResponse_httpStatus - The response's http status code.
Response Lenses
updateSchemaResponse_description :: Lens' UpdateSchemaResponse (Maybe Text) Source #
The description of the schema.
updateSchemaResponse_lastModified :: Lens' UpdateSchemaResponse (Maybe UTCTime) Source #
The date and time that schema was modified.
updateSchemaResponse_schemaArn :: Lens' UpdateSchemaResponse (Maybe Text) Source #
The ARN of the schema.
updateSchemaResponse_schemaName :: Lens' UpdateSchemaResponse (Maybe Text) Source #
The name of the schema.
updateSchemaResponse_schemaVersion :: Lens' UpdateSchemaResponse (Maybe Text) Source #
The version number of the schema
updateSchemaResponse_tags :: Lens' UpdateSchemaResponse (Maybe (HashMap Text Text)) Source #
Undocumented member.
updateSchemaResponse_type :: Lens' UpdateSchemaResponse (Maybe Text) Source #
The type of the schema.
updateSchemaResponse_versionCreatedDate :: Lens' UpdateSchemaResponse (Maybe UTCTime) Source #
The date the schema version was created.
updateSchemaResponse_httpStatus :: Lens' UpdateSchemaResponse Int Source #
The response's http status code.