amazonka-clouddirectory-2.0: Amazon CloudDirectory SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudDirectory.UpdateFacet

Description

Does the following:

  1. Adds new Attributes, Rules, or ObjectTypes.
  2. Updates existing Attributes, Rules, or ObjectTypes.
  3. Deletes existing Attributes, Rules, or ObjectTypes.
Synopsis

Creating a Request

data UpdateFacet Source #

See: newUpdateFacet smart constructor.

Constructors

UpdateFacet' 

Fields

  • attributeUpdates :: Maybe [FacetAttributeUpdate]

    List of attributes that need to be updated in a given schema Facet. Each attribute is followed by AttributeAction, which specifies the type of update operation to perform.

  • objectType :: Maybe ObjectType

    The object type that is associated with the facet. See CreateFacetRequest$ObjectType for more details.

  • schemaArn :: Text

    The Amazon Resource Name (ARN) that is associated with the Facet. For more information, see arns.

  • name :: Text

    The name of the facet.

Instances

Instances details
ToJSON UpdateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

ToHeaders UpdateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

Methods

toHeaders :: UpdateFacet -> [Header] #

ToPath UpdateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

ToQuery UpdateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

AWSRequest UpdateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

Associated Types

type AWSResponse UpdateFacet #

Generic UpdateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

Associated Types

type Rep UpdateFacet :: Type -> Type #

Read UpdateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

Show UpdateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

NFData UpdateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

Methods

rnf :: UpdateFacet -> () #

Eq UpdateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

Hashable UpdateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

type AWSResponse UpdateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

type Rep UpdateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

type Rep UpdateFacet = D1 ('MetaData "UpdateFacet" "Amazonka.CloudDirectory.UpdateFacet" "amazonka-clouddirectory-2.0-JYRSwrX5Vm289hhbSwe2zQ" 'False) (C1 ('MetaCons "UpdateFacet'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "attributeUpdates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [FacetAttributeUpdate])) :*: S1 ('MetaSel ('Just "objectType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ObjectType))) :*: (S1 ('MetaSel ('Just "schemaArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newUpdateFacet Source #

Create a value of UpdateFacet 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:

UpdateFacet, updateFacet_attributeUpdates - List of attributes that need to be updated in a given schema Facet. Each attribute is followed by AttributeAction, which specifies the type of update operation to perform.

UpdateFacet, updateFacet_objectType - The object type that is associated with the facet. See CreateFacetRequest$ObjectType for more details.

UpdateFacet, updateFacet_schemaArn - The Amazon Resource Name (ARN) that is associated with the Facet. For more information, see arns.

UpdateFacet, updateFacet_name - The name of the facet.

Request Lenses

updateFacet_attributeUpdates :: Lens' UpdateFacet (Maybe [FacetAttributeUpdate]) Source #

List of attributes that need to be updated in a given schema Facet. Each attribute is followed by AttributeAction, which specifies the type of update operation to perform.

updateFacet_objectType :: Lens' UpdateFacet (Maybe ObjectType) Source #

The object type that is associated with the facet. See CreateFacetRequest$ObjectType for more details.

updateFacet_schemaArn :: Lens' UpdateFacet Text Source #

The Amazon Resource Name (ARN) that is associated with the Facet. For more information, see arns.

updateFacet_name :: Lens' UpdateFacet Text Source #

The name of the facet.

Destructuring the Response

data UpdateFacetResponse Source #

See: newUpdateFacetResponse smart constructor.

Constructors

UpdateFacetResponse' 

Fields

Instances

Instances details
Generic UpdateFacetResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

Associated Types

type Rep UpdateFacetResponse :: Type -> Type #

Read UpdateFacetResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

Show UpdateFacetResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

NFData UpdateFacetResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

Methods

rnf :: UpdateFacetResponse -> () #

Eq UpdateFacetResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

type Rep UpdateFacetResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

type Rep UpdateFacetResponse = D1 ('MetaData "UpdateFacetResponse" "Amazonka.CloudDirectory.UpdateFacet" "amazonka-clouddirectory-2.0-JYRSwrX5Vm289hhbSwe2zQ" 'False) (C1 ('MetaCons "UpdateFacetResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateFacetResponse Source #

Create a value of UpdateFacetResponse 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:UpdateFacetResponse', updateFacetResponse_httpStatus - The response's http status code.

Response Lenses