| 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.CloudDirectory.CreateFacet
Description
Creates a new Facet in a schema. Facet creation is allowed only in development or applied schemas.
Synopsis
- data CreateFacet = CreateFacet' {
- attributes :: Maybe [FacetAttribute]
- facetStyle :: Maybe FacetStyle
- objectType :: Maybe ObjectType
- schemaArn :: Text
- name :: Text
- newCreateFacet :: Text -> Text -> CreateFacet
- createFacet_attributes :: Lens' CreateFacet (Maybe [FacetAttribute])
- createFacet_facetStyle :: Lens' CreateFacet (Maybe FacetStyle)
- createFacet_objectType :: Lens' CreateFacet (Maybe ObjectType)
- createFacet_schemaArn :: Lens' CreateFacet Text
- createFacet_name :: Lens' CreateFacet Text
- data CreateFacetResponse = CreateFacetResponse' {
- httpStatus :: Int
- newCreateFacetResponse :: Int -> CreateFacetResponse
- createFacetResponse_httpStatus :: Lens' CreateFacetResponse Int
Creating a Request
data CreateFacet Source #
See: newCreateFacet smart constructor.
Constructors
| CreateFacet' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> CreateFacet |
Create a value of CreateFacet 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:
CreateFacet, createFacet_attributes - The attributes that are associated with the Facet.
CreateFacet, createFacet_facetStyle - There are two different styles that you can define on any given facet,
Static and Dynamic. For static facets, all attributes must be
defined in the schema. For dynamic facets, attributes can be defined
during data plane operations.
CreateFacet, createFacet_objectType - Specifies whether a given object created from this facet is of type
node, leaf node, policy or index.
- Node: Can have multiple children but one parent.
- Leaf node: Cannot have children but can have multiple parents.
- Policy: Allows you to store a policy document and policy type. For more information, see Policies.
- Index: Can be created with the Index API.
CreateFacet, createFacet_schemaArn - The schema ARN in which the new Facet will be created. For more
information, see arns.
CreateFacet, createFacet_name - The name of the Facet, which is unique for a given schema.
Request Lenses
createFacet_attributes :: Lens' CreateFacet (Maybe [FacetAttribute]) Source #
The attributes that are associated with the Facet.
createFacet_facetStyle :: Lens' CreateFacet (Maybe FacetStyle) Source #
There are two different styles that you can define on any given facet,
Static and Dynamic. For static facets, all attributes must be
defined in the schema. For dynamic facets, attributes can be defined
during data plane operations.
createFacet_objectType :: Lens' CreateFacet (Maybe ObjectType) Source #
Specifies whether a given object created from this facet is of type node, leaf node, policy or index.
- Node: Can have multiple children but one parent.
- Leaf node: Cannot have children but can have multiple parents.
- Policy: Allows you to store a policy document and policy type. For more information, see Policies.
- Index: Can be created with the Index API.
createFacet_schemaArn :: Lens' CreateFacet Text Source #
The schema ARN in which the new Facet will be created. For more information, see arns.
createFacet_name :: Lens' CreateFacet Text Source #
The name of the Facet, which is unique for a given schema.
Destructuring the Response
data CreateFacetResponse Source #
See: newCreateFacetResponse smart constructor.
Constructors
| CreateFacetResponse' | |
Fields
| |
Instances
newCreateFacetResponse Source #
Arguments
| :: Int | |
| -> CreateFacetResponse |
Create a value of CreateFacetResponse 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:httpStatus:CreateFacetResponse', createFacetResponse_httpStatus - The response's http status code.
Response Lenses
createFacetResponse_httpStatus :: Lens' CreateFacetResponse Int Source #
The response's http status code.