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 schema definition
Inactive schemas will be deleted after two years.
Synopsis
- data UpdateSchema = UpdateSchema' {
- content :: Maybe Text
- clientTokenId :: Maybe Text
- type' :: Maybe Type
- description :: Maybe Text
- registryName :: Text
- schemaName :: Text
- newUpdateSchema :: Text -> Text -> UpdateSchema
- updateSchema_content :: Lens' UpdateSchema (Maybe Text)
- updateSchema_clientTokenId :: Lens' UpdateSchema (Maybe Text)
- updateSchema_type :: Lens' UpdateSchema (Maybe Type)
- updateSchema_description :: Lens' UpdateSchema (Maybe Text)
- updateSchema_registryName :: Lens' UpdateSchema Text
- updateSchema_schemaName :: Lens' UpdateSchema Text
- data UpdateSchemaResponse = UpdateSchemaResponse' {
- schemaVersion :: Maybe Text
- schemaName :: Maybe Text
- schemaArn :: Maybe Text
- type' :: Maybe Text
- lastModified :: Maybe POSIX
- description :: Maybe Text
- versionCreatedDate :: Maybe POSIX
- tags :: Maybe (HashMap Text Text)
- httpStatus :: Int
- newUpdateSchemaResponse :: Int -> UpdateSchemaResponse
- updateSchemaResponse_schemaVersion :: Lens' UpdateSchemaResponse (Maybe Text)
- updateSchemaResponse_schemaName :: Lens' UpdateSchemaResponse (Maybe Text)
- updateSchemaResponse_schemaArn :: Lens' UpdateSchemaResponse (Maybe Text)
- updateSchemaResponse_type :: Lens' UpdateSchemaResponse (Maybe Text)
- updateSchemaResponse_lastModified :: Lens' UpdateSchemaResponse (Maybe UTCTime)
- updateSchemaResponse_description :: Lens' UpdateSchemaResponse (Maybe Text)
- updateSchemaResponse_versionCreatedDate :: Lens' UpdateSchemaResponse (Maybe UTCTime)
- updateSchemaResponse_tags :: Lens' UpdateSchemaResponse (Maybe (HashMap Text 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:content:UpdateSchema'
, updateSchema_content
- The source of the schema definition.
$sel:clientTokenId:UpdateSchema'
, updateSchema_clientTokenId
- The ID of the client token.
$sel:type':UpdateSchema'
, updateSchema_type
- The schema type for the events schema.
$sel:description:UpdateSchema'
, updateSchema_description
- The description of the schema.
$sel:registryName:UpdateSchema'
, updateSchema_registryName
- The name of the registry.
$sel:schemaName:UpdateSchema'
, updateSchema_schemaName
- The name of the schema.
Request Lenses
updateSchema_content :: Lens' UpdateSchema (Maybe Text) Source #
The source of the schema definition.
updateSchema_clientTokenId :: Lens' UpdateSchema (Maybe Text) Source #
The ID of the client token.
updateSchema_type :: Lens' UpdateSchema (Maybe Type) Source #
The schema type for the events schema.
updateSchema_description :: Lens' UpdateSchema (Maybe Text) Source #
The description of the 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.
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:schemaVersion:UpdateSchemaResponse'
, updateSchemaResponse_schemaVersion
- The version number of the schema
$sel:schemaName:UpdateSchema'
, updateSchemaResponse_schemaName
- The name of the schema.
$sel:schemaArn:UpdateSchemaResponse'
, updateSchemaResponse_schemaArn
- The ARN of the schema.
$sel:type':UpdateSchema'
, updateSchemaResponse_type
- The type of the schema.
$sel:lastModified:UpdateSchemaResponse'
, updateSchemaResponse_lastModified
- The date and time that schema was modified.
$sel:description:UpdateSchema'
, updateSchemaResponse_description
- The description of the schema.
$sel:versionCreatedDate:UpdateSchemaResponse'
, updateSchemaResponse_versionCreatedDate
- The date the schema version was created.
$sel:tags:UpdateSchemaResponse'
, updateSchemaResponse_tags
- Undocumented member.
$sel:httpStatus:UpdateSchemaResponse'
, updateSchemaResponse_httpStatus
- The response's http status code.
Response Lenses
updateSchemaResponse_schemaVersion :: Lens' UpdateSchemaResponse (Maybe Text) Source #
The version number of the schema
updateSchemaResponse_schemaName :: Lens' UpdateSchemaResponse (Maybe Text) Source #
The name of the schema.
updateSchemaResponse_schemaArn :: Lens' UpdateSchemaResponse (Maybe Text) Source #
The ARN of the schema.
updateSchemaResponse_type :: Lens' UpdateSchemaResponse (Maybe Text) Source #
The type of the schema.
updateSchemaResponse_lastModified :: Lens' UpdateSchemaResponse (Maybe UTCTime) Source #
The date and time that schema was modified.
updateSchemaResponse_description :: Lens' UpdateSchemaResponse (Maybe Text) Source #
The description of the schema.
updateSchemaResponse_versionCreatedDate :: Lens' UpdateSchemaResponse (Maybe UTCTime) Source #
The date the schema version was created.
updateSchemaResponse_tags :: Lens' UpdateSchemaResponse (Maybe (HashMap Text Text)) Source #
Undocumented member.
updateSchemaResponse_httpStatus :: Lens' UpdateSchemaResponse Int Source #
The response's http status code.