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 new schema in a development state. A schema can exist in three phases:
- Development: This is a mutable phase of the schema. All new schemas are in the development phase. Once the schema is finalized, it can be published.
- Published: Published schemas are immutable and have a version associated with them.
- Applied: Applied schemas are mutable in a way that allows you to add new schema facets. You can also add new, nonrequired attributes to existing schema facets. You can apply only published schemas to directories.
Synopsis
- data CreateSchema = CreateSchema' {}
- newCreateSchema :: Text -> CreateSchema
- createSchema_name :: Lens' CreateSchema Text
- data CreateSchemaResponse = CreateSchemaResponse' {
- schemaArn :: Maybe Text
- httpStatus :: Int
- newCreateSchemaResponse :: Int -> CreateSchemaResponse
- createSchemaResponse_schemaArn :: Lens' CreateSchemaResponse (Maybe Text)
- createSchemaResponse_httpStatus :: Lens' CreateSchemaResponse Int
Creating a Request
data CreateSchema Source #
See: newCreateSchema
smart constructor.
Instances
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:name:CreateSchema'
, createSchema_name
- The name that is associated with the schema. This is unique to each
account and in each region.
Request Lenses
createSchema_name :: Lens' CreateSchema Text Source #
The name that is associated with the schema. This is unique to each account and in each region.
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:schemaArn:CreateSchemaResponse'
, createSchemaResponse_schemaArn
- The Amazon Resource Name (ARN) that is associated with the schema. For
more information, see arns.
$sel:httpStatus:CreateSchemaResponse'
, createSchemaResponse_httpStatus
- The response's http status code.
Response Lenses
createSchemaResponse_schemaArn :: Lens' CreateSchemaResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns.
createSchemaResponse_httpStatus :: Lens' CreateSchemaResponse Int Source #
The response's http status code.