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 |
Creates a schema definition.
Inactive schemas will be deleted after two years.
Synopsis
- data CreateSchema = CreateSchema' {}
- newCreateSchema :: Text -> Text -> Type -> Text -> CreateSchema
- createSchema_description :: Lens' CreateSchema (Maybe Text)
- createSchema_tags :: Lens' CreateSchema (Maybe (HashMap Text Text))
- createSchema_registryName :: Lens' CreateSchema Text
- createSchema_schemaName :: Lens' CreateSchema Text
- createSchema_type :: Lens' CreateSchema Type
- createSchema_content :: Lens' CreateSchema Text
- data CreateSchemaResponse = CreateSchemaResponse' {
- 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
- newCreateSchemaResponse :: Int -> CreateSchemaResponse
- createSchemaResponse_schemaVersion :: Lens' CreateSchemaResponse (Maybe Text)
- createSchemaResponse_schemaName :: Lens' CreateSchemaResponse (Maybe Text)
- createSchemaResponse_schemaArn :: Lens' CreateSchemaResponse (Maybe Text)
- createSchemaResponse_type :: Lens' CreateSchemaResponse (Maybe Text)
- createSchemaResponse_lastModified :: Lens' CreateSchemaResponse (Maybe UTCTime)
- createSchemaResponse_description :: Lens' CreateSchemaResponse (Maybe Text)
- createSchemaResponse_versionCreatedDate :: Lens' CreateSchemaResponse (Maybe UTCTime)
- createSchemaResponse_tags :: Lens' CreateSchemaResponse (Maybe (HashMap Text Text))
- createSchemaResponse_httpStatus :: Lens' CreateSchemaResponse Int
Creating a Request
data CreateSchema Source #
See: newCreateSchema
smart constructor.
Instances
:: Text | |
-> Text | |
-> Type | |
-> Text | |
-> CreateSchema |
Create a value of CreateSchema
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:description:CreateSchema'
, createSchema_description
- A description of the schema.
$sel:tags:CreateSchema'
, createSchema_tags
- Tags associated with the schema.
$sel:registryName:CreateSchema'
, createSchema_registryName
- The name of the registry.
$sel:schemaName:CreateSchema'
, createSchema_schemaName
- The name of the schema.
$sel:type':CreateSchema'
, createSchema_type
- The type of schema.
$sel:content:CreateSchema'
, createSchema_content
- The source of the schema definition.
Request Lenses
createSchema_description :: Lens' CreateSchema (Maybe Text) Source #
A description of the schema.
createSchema_tags :: Lens' CreateSchema (Maybe (HashMap Text Text)) Source #
Tags associated with the schema.
createSchema_registryName :: Lens' CreateSchema Text Source #
The name of the registry.
createSchema_schemaName :: Lens' CreateSchema Text Source #
The name of the schema.
createSchema_type :: Lens' CreateSchema Type Source #
The type of schema.
createSchema_content :: Lens' CreateSchema Text Source #
The source of the schema definition.
Destructuring the Response
data CreateSchemaResponse Source #
See: newCreateSchemaResponse
smart constructor.
CreateSchemaResponse' | |
|
Instances
newCreateSchemaResponse Source #
Create a value of CreateSchemaResponse
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:CreateSchemaResponse'
, createSchemaResponse_schemaVersion
- The version number of the schema
$sel:schemaName:CreateSchema'
, createSchemaResponse_schemaName
- The name of the schema.
$sel:schemaArn:CreateSchemaResponse'
, createSchemaResponse_schemaArn
- The ARN of the schema.
$sel:type':CreateSchema'
, createSchemaResponse_type
- The type of the schema.
$sel:lastModified:CreateSchemaResponse'
, createSchemaResponse_lastModified
- The date and time that schema was modified.
$sel:description:CreateSchema'
, createSchemaResponse_description
- The description of the schema.
$sel:versionCreatedDate:CreateSchemaResponse'
, createSchemaResponse_versionCreatedDate
- The date the schema version was created.
$sel:tags:CreateSchema'
, createSchemaResponse_tags
- Undocumented member.
$sel:httpStatus:CreateSchemaResponse'
, createSchemaResponse_httpStatus
- The response's http status code.
Response Lenses
createSchemaResponse_schemaVersion :: Lens' CreateSchemaResponse (Maybe Text) Source #
The version number of the schema
createSchemaResponse_schemaName :: Lens' CreateSchemaResponse (Maybe Text) Source #
The name of the schema.
createSchemaResponse_schemaArn :: Lens' CreateSchemaResponse (Maybe Text) Source #
The ARN of the schema.
createSchemaResponse_type :: Lens' CreateSchemaResponse (Maybe Text) Source #
The type of the schema.
createSchemaResponse_lastModified :: Lens' CreateSchemaResponse (Maybe UTCTime) Source #
The date and time that schema was modified.
createSchemaResponse_description :: Lens' CreateSchemaResponse (Maybe Text) Source #
The description of the schema.
createSchemaResponse_versionCreatedDate :: Lens' CreateSchemaResponse (Maybe UTCTime) Source #
The date the schema version was created.
createSchemaResponse_tags :: Lens' CreateSchemaResponse (Maybe (HashMap Text Text)) Source #
Undocumented member.
createSchemaResponse_httpStatus :: Lens' CreateSchemaResponse Int Source #
The response's http status code.