| 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.CreateSchema
Description
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' {
- 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
- newCreateSchemaResponse :: Int -> CreateSchemaResponse
- createSchemaResponse_description :: Lens' CreateSchemaResponse (Maybe Text)
- createSchemaResponse_lastModified :: Lens' CreateSchemaResponse (Maybe UTCTime)
- createSchemaResponse_schemaArn :: Lens' CreateSchemaResponse (Maybe Text)
- createSchemaResponse_schemaName :: Lens' CreateSchemaResponse (Maybe Text)
- createSchemaResponse_schemaVersion :: Lens' CreateSchemaResponse (Maybe Text)
- createSchemaResponse_tags :: Lens' CreateSchemaResponse (Maybe (HashMap Text Text))
- createSchemaResponse_type :: Lens' CreateSchemaResponse (Maybe Text)
- createSchemaResponse_versionCreatedDate :: Lens' CreateSchemaResponse (Maybe UTCTime)
- createSchemaResponse_httpStatus :: Lens' CreateSchemaResponse Int
Creating a Request
data CreateSchema Source #
See: newCreateSchema smart constructor.
Constructors
| CreateSchema' | |
Instances
Arguments
| :: 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:
CreateSchema, createSchema_description - A description of the schema.
CreateSchema, createSchema_tags - Tags associated with the schema.
CreateSchema, createSchema_registryName - The name of the registry.
CreateSchema, createSchema_schemaName - The name of the schema.
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.
Constructors
| CreateSchemaResponse' | |
Fields
| |
Instances
newCreateSchemaResponse Source #
Arguments
| :: Int | |
| -> CreateSchemaResponse |
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:
CreateSchema, createSchemaResponse_description - The description of the schema.
CreateSchemaResponse, createSchemaResponse_lastModified - The date and time that schema was modified.
CreateSchemaResponse, createSchemaResponse_schemaArn - The ARN of the schema.
CreateSchema, createSchemaResponse_schemaName - The name of the schema.
CreateSchemaResponse, createSchemaResponse_schemaVersion - The version number of the schema
CreateSchema, createSchemaResponse_tags - Undocumented member.
CreateSchema, createSchemaResponse_type - The type of the schema.
$sel:versionCreatedDate:CreateSchemaResponse', createSchemaResponse_versionCreatedDate - The date the schema version was created.
$sel:httpStatus:CreateSchemaResponse', createSchemaResponse_httpStatus - The response's http status code.
Response Lenses
createSchemaResponse_description :: Lens' CreateSchemaResponse (Maybe Text) Source #
The description of the schema.
createSchemaResponse_lastModified :: Lens' CreateSchemaResponse (Maybe UTCTime) Source #
The date and time that schema was modified.
createSchemaResponse_schemaArn :: Lens' CreateSchemaResponse (Maybe Text) Source #
The ARN of the schema.
createSchemaResponse_schemaName :: Lens' CreateSchemaResponse (Maybe Text) Source #
The name of the schema.
createSchemaResponse_schemaVersion :: Lens' CreateSchemaResponse (Maybe Text) Source #
The version number of the schema
createSchemaResponse_tags :: Lens' CreateSchemaResponse (Maybe (HashMap Text Text)) Source #
Undocumented member.
createSchemaResponse_type :: Lens' CreateSchemaResponse (Maybe Text) Source #
The type of the schema.
createSchemaResponse_versionCreatedDate :: Lens' CreateSchemaResponse (Maybe UTCTime) Source #
The date the schema version was created.
createSchemaResponse_httpStatus :: Lens' CreateSchemaResponse Int Source #
The response's http status code.