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 Facet in a schema. Facet creation is allowed only in development or applied schemas.
Synopsis
- data CreateFacet = CreateFacet' {
- facetStyle :: Maybe FacetStyle
- objectType :: Maybe ObjectType
- attributes :: Maybe [FacetAttribute]
- schemaArn :: Text
- name :: Text
- newCreateFacet :: Text -> Text -> CreateFacet
- createFacet_facetStyle :: Lens' CreateFacet (Maybe FacetStyle)
- createFacet_objectType :: Lens' CreateFacet (Maybe ObjectType)
- createFacet_attributes :: Lens' CreateFacet (Maybe [FacetAttribute])
- 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.
CreateFacet' | |
|
Instances
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:
$sel:facetStyle: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.
$sel:objectType: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.
$sel:attributes:CreateFacet'
, createFacet_attributes
- The attributes that are associated with the Facet.
$sel:schemaArn:CreateFacet'
, createFacet_schemaArn
- The schema ARN in which the new Facet will be created. For more
information, see arns.
$sel:name:CreateFacet'
, createFacet_name
- The name of the Facet, which is unique for a given schema.
Request Lenses
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_attributes :: Lens' CreateFacet (Maybe [FacetAttribute]) Source #
The attributes that are associated with the Facet.
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.
CreateFacetResponse' | |
|
Instances
newCreateFacetResponse Source #
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.