/AWS1/CL_DIR=>CREATEFACET()
¶
About CreateFacet¶
Creates a new Facet in a schema. Facet creation is allowed only in development or applied schemas.
Method Signature¶
IMPORTING¶
Required arguments:¶
IV_SCHEMAARN
TYPE /AWS1/DIRARN
/AWS1/DIRARN
¶
The schema ARN in which the new Facet will be created. For more information, see arns.
IV_NAME
TYPE /AWS1/DIRFACETNAME
/AWS1/DIRFACETNAME
¶
The name of the Facet, which is unique for a given schema.
Optional arguments:¶
IT_ATTRIBUTES
TYPE /AWS1/CL_DIRFACETATTRIBUTE=>TT_FACETATTRIBUTELIST
TT_FACETATTRIBUTELIST
¶
The attributes that are associated with the Facet.
IV_OBJECTTYPE
TYPE /AWS1/DIROBJECTTYPE
/AWS1/DIROBJECTTYPE
¶
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.
IV_FACETSTYLE
TYPE /AWS1/DIRFACETSTYLE
/AWS1/DIRFACETSTYLE
¶
There are two different styles that you can define on any given facet,
Static
andDynamic
. For static facets, all attributes must be defined in the schema. For dynamic facets, attributes can be defined during data plane operations.