amazonka-clouddirectory-1.5.0: Amazon CloudDirectory SDK.

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

Network.AWS.CloudDirectory.UpdateFacet

Contents

Description

Does the following:

  • Adds new Attributes , Rules , or ObjectTypes .
  • Updates existing Attributes , Rules , or ObjectTypes .
  • Deletes existing Attributes , Rules , or ObjectTypes .

Synopsis

Creating a Request

updateFacet Source #

Creates a value of UpdateFacet with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • ufObjectType - The object type that is associated with the facet. See 'CreateFacetRequest$ObjectType' for more details.
  • ufAttributeUpdates - 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.
  • ufSchemaARN - The Amazon Resource Name (ARN) that is associated with the Facet . For more information, see arns .
  • ufName - The name of the facet.

data UpdateFacet Source #

See: updateFacet smart constructor.

Instances

Eq UpdateFacet Source # 
Data UpdateFacet Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateFacet -> c UpdateFacet #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateFacet #

toConstr :: UpdateFacet -> Constr #

dataTypeOf :: UpdateFacet -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdateFacet) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateFacet) #

gmapT :: (forall b. Data b => b -> b) -> UpdateFacet -> UpdateFacet #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateFacet -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateFacet -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateFacet -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateFacet -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateFacet -> m UpdateFacet #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateFacet -> m UpdateFacet #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateFacet -> m UpdateFacet #

Read UpdateFacet Source # 
Show UpdateFacet Source # 
Generic UpdateFacet Source # 

Associated Types

type Rep UpdateFacet :: * -> * #

Hashable UpdateFacet Source # 
ToJSON UpdateFacet Source # 
NFData UpdateFacet Source # 

Methods

rnf :: UpdateFacet -> () #

AWSRequest UpdateFacet Source # 
ToQuery UpdateFacet Source # 
ToPath UpdateFacet Source # 
ToHeaders UpdateFacet Source # 

Methods

toHeaders :: UpdateFacet -> [Header] #

type Rep UpdateFacet Source # 
type Rep UpdateFacet = D1 (MetaData "UpdateFacet" "Network.AWS.CloudDirectory.UpdateFacet" "amazonka-clouddirectory-1.5.0-4g2rtj0PtNBHCN8G8qmiXW" False) (C1 (MetaCons "UpdateFacet'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ufObjectType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ObjectType))) (S1 (MetaSel (Just Symbol "_ufAttributeUpdates") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [FacetAttributeUpdate])))) ((:*:) (S1 (MetaSel (Just Symbol "_ufSchemaARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_ufName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs UpdateFacet Source # 

Request Lenses

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

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

ufAttributeUpdates :: Lens' UpdateFacet [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.

ufSchemaARN :: Lens' UpdateFacet Text Source #

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

ufName :: Lens' UpdateFacet Text Source #

The name of the facet.

Destructuring the Response

updateFacetResponse Source #

Creates a value of UpdateFacetResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UpdateFacetResponse Source #

See: updateFacetResponse smart constructor.

Instances

Eq UpdateFacetResponse Source # 
Data UpdateFacetResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateFacetResponse -> c UpdateFacetResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateFacetResponse #

toConstr :: UpdateFacetResponse -> Constr #

dataTypeOf :: UpdateFacetResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdateFacetResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateFacetResponse) #

gmapT :: (forall b. Data b => b -> b) -> UpdateFacetResponse -> UpdateFacetResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateFacetResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateFacetResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateFacetResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateFacetResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateFacetResponse -> m UpdateFacetResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateFacetResponse -> m UpdateFacetResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateFacetResponse -> m UpdateFacetResponse #

Read UpdateFacetResponse Source # 
Show UpdateFacetResponse Source # 
Generic UpdateFacetResponse Source # 
NFData UpdateFacetResponse Source # 

Methods

rnf :: UpdateFacetResponse -> () #

type Rep UpdateFacetResponse Source # 
type Rep UpdateFacetResponse = D1 (MetaData "UpdateFacetResponse" "Network.AWS.CloudDirectory.UpdateFacet" "amazonka-clouddirectory-1.5.0-4g2rtj0PtNBHCN8G8qmiXW" True) (C1 (MetaCons "UpdateFacetResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_ufrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses

ufrsResponseStatus :: Lens' UpdateFacetResponse Int Source #

  • - | The response status code.