| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.CloudDirectory.CreateSchema
Description
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.
Creating a Request
Arguments
| :: Text | |
| -> CreateSchema |
Creates a value of CreateSchema with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
csName- The name that is associated with the schema. This is unique to each account and in each region.
data CreateSchema Source #
See: createSchema smart constructor.
Instances
Request Lenses
csName :: 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
Arguments
| :: Int | |
| -> CreateSchemaResponse |
Creates a value of CreateSchemaResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
csrsSchemaARN- The Amazon Resource Name (ARN) that is associated with the schema. For more information, seearns.csrsResponseStatus- -- | The response status code.
data CreateSchemaResponse Source #
See: createSchemaResponse smart constructor.
Response Lenses
csrsSchemaARN :: Lens' CreateSchemaResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns .
csrsResponseStatus :: Lens' CreateSchemaResponse Int Source #
- - | The response status code.