libZSservicesZSamazonka-clouddirectoryZSamazonka-clouddirectory
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CloudDirectory.CreateFacet

Description

Creates a new Facet in a schema. Facet creation is allowed only in development or applied schemas.

Synopsis

Creating a Request

data CreateFacet Source #

See: newCreateFacet smart constructor.

Constructors

CreateFacet' 

Fields

  • facetStyle :: Maybe 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.

  • objectType :: Maybe 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.
  • attributes :: Maybe [FacetAttribute]

    The attributes that are associated with the Facet.

  • schemaArn :: Text

    The schema ARN in which the new Facet will be created. For more information, see arns.

  • name :: Text

    The name of the Facet, which is unique for a given schema.

Instances

Instances details
Eq CreateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateFacet

Read CreateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateFacet

Show CreateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateFacet

Generic CreateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateFacet

Associated Types

type Rep CreateFacet :: Type -> Type #

NFData CreateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateFacet

Methods

rnf :: CreateFacet -> () #

Hashable CreateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateFacet

ToJSON CreateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateFacet

AWSRequest CreateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateFacet

Associated Types

type AWSResponse CreateFacet #

ToHeaders CreateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateFacet

Methods

toHeaders :: CreateFacet -> [Header] #

ToPath CreateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateFacet

ToQuery CreateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateFacet

type Rep CreateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateFacet

type Rep CreateFacet = D1 ('MetaData "CreateFacet" "Amazonka.CloudDirectory.CreateFacet" "libZSservicesZSamazonka-clouddirectoryZSamazonka-clouddirectory" 'False) (C1 ('MetaCons "CreateFacet'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "facetStyle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FacetStyle)) :*: S1 ('MetaSel ('Just "objectType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ObjectType))) :*: (S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [FacetAttribute])) :*: (S1 ('MetaSel ('Just "schemaArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse CreateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateFacet

newCreateFacet Source #

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.

Constructors

CreateFacetResponse' 

Fields

Instances

Instances details
Eq CreateFacetResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateFacet

Read CreateFacetResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateFacet

Show CreateFacetResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateFacet

Generic CreateFacetResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateFacet

Associated Types

type Rep CreateFacetResponse :: Type -> Type #

NFData CreateFacetResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateFacet

Methods

rnf :: CreateFacetResponse -> () #

type Rep CreateFacetResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateFacet

type Rep CreateFacetResponse = D1 ('MetaData "CreateFacetResponse" "Amazonka.CloudDirectory.CreateFacet" "libZSservicesZSamazonka-clouddirectoryZSamazonka-clouddirectory" 'False) (C1 ('MetaCons "CreateFacetResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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