| 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.CreateFacet
Description
Creates a new Facet in a schema. Facet creation is allowed only in development or applied schemas.
- createFacet :: Text -> Text -> ObjectType -> CreateFacet
- data CreateFacet
- cfAttributes :: Lens' CreateFacet [FacetAttribute]
- cfSchemaARN :: Lens' CreateFacet Text
- cfName :: Lens' CreateFacet Text
- cfObjectType :: Lens' CreateFacet ObjectType
- createFacetResponse :: Int -> CreateFacetResponse
- data CreateFacetResponse
- cfrsResponseStatus :: Lens' CreateFacetResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> ObjectType | |
| -> CreateFacet |
Creates a value of CreateFacet with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cfAttributes- The attributes that are associated with theFacet.cfSchemaARN- The schema ARN in which the newFacetwill be created. For more information, seearns.cfName- The name of theFacet, which is unique for a given schema.cfObjectType- 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.
data CreateFacet Source #
See: createFacet smart constructor.
Instances
Request Lenses
cfAttributes :: Lens' CreateFacet [FacetAttribute] Source #
The attributes that are associated with the Facet .
cfSchemaARN :: Lens' CreateFacet Text Source #
The schema ARN in which the new Facet will be created. For more information, see arns .
cfName :: Lens' CreateFacet Text Source #
The name of the Facet , which is unique for a given schema.
cfObjectType :: Lens' CreateFacet 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.
Destructuring the Response
Arguments
| :: Int | |
| -> CreateFacetResponse |
Creates a value of CreateFacetResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cfrsResponseStatus- -- | The response status code.
data CreateFacetResponse Source #
See: createFacetResponse smart constructor.
Response Lenses
cfrsResponseStatus :: Lens' CreateFacetResponse Int Source #
- - | The response status code.