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.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

  • objectType :: Maybe ObjectType

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

  • 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.

  • 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
Eq UpdateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

Read UpdateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

Show UpdateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

Generic UpdateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

Associated Types

type Rep UpdateFacet :: Type -> Type #

NFData UpdateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

Methods

rnf :: UpdateFacet -> () #

Hashable UpdateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

ToJSON UpdateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

AWSRequest UpdateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

Associated Types

type AWSResponse 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

type Rep UpdateFacet Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

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

Defined in Amazonka.CloudDirectory.UpdateFacet

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:

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

$sel:attributeUpdates: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.

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

$sel:name:UpdateFacet', updateFacet_name - The name of the facet.

Request Lenses

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

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

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_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
Eq UpdateFacetResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

Read UpdateFacetResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

Show UpdateFacetResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

Generic UpdateFacetResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

Associated Types

type Rep UpdateFacetResponse :: Type -> Type #

NFData UpdateFacetResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

Methods

rnf :: UpdateFacetResponse -> () #

type Rep UpdateFacetResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpdateFacet

type Rep UpdateFacetResponse = D1 ('MetaData "UpdateFacetResponse" "Amazonka.CloudDirectory.UpdateFacet" "libZSservicesZSamazonka-clouddirectoryZSamazonka-clouddirectory" '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