amazonka-workdocs-1.5.0: Amazon WorkDocs 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.WorkDocs.CreateCustomMetadata

Contents

Description

Adds one or more custom properties to the specified resource (a folder, document, or version).

Synopsis

Creating a Request

createCustomMetadata Source #

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

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

  • ccmVersionId - The ID of the version, if the custom metadata is being added to a document version.
  • ccmAuthenticationToken - Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.
  • ccmResourceId - The ID of the resource.
  • ccmCustomMetadata - Custom metadata in the form of name-value pairs.

data CreateCustomMetadata Source #

See: createCustomMetadata smart constructor.

Instances

Eq CreateCustomMetadata Source # 
Data CreateCustomMetadata Source # 

Methods

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

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

toConstr :: CreateCustomMetadata -> Constr #

dataTypeOf :: CreateCustomMetadata -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CreateCustomMetadata Source # 
Generic CreateCustomMetadata Source # 
Hashable CreateCustomMetadata Source # 
ToJSON CreateCustomMetadata Source # 
NFData CreateCustomMetadata Source # 

Methods

rnf :: CreateCustomMetadata -> () #

AWSRequest CreateCustomMetadata Source # 
ToQuery CreateCustomMetadata Source # 
ToPath CreateCustomMetadata Source # 
ToHeaders CreateCustomMetadata Source # 
type Rep CreateCustomMetadata Source # 
type Rep CreateCustomMetadata = D1 (MetaData "CreateCustomMetadata" "Network.AWS.WorkDocs.CreateCustomMetadata" "amazonka-workdocs-1.5.0-BQCQjzmZAyNCgdficzQnx9" False) (C1 (MetaCons "CreateCustomMetadata'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ccmVersionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ccmAuthenticationToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Sensitive Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_ccmResourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_ccmCustomMetadata") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Map Text Text))))))
type Rs CreateCustomMetadata Source # 

Request Lenses

ccmVersionId :: Lens' CreateCustomMetadata (Maybe Text) Source #

The ID of the version, if the custom metadata is being added to a document version.

ccmAuthenticationToken :: Lens' CreateCustomMetadata (Maybe Text) Source #

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

ccmCustomMetadata :: Lens' CreateCustomMetadata (HashMap Text Text) Source #

Custom metadata in the form of name-value pairs.

Destructuring the Response

createCustomMetadataResponse Source #

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

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

data CreateCustomMetadataResponse Source #

See: createCustomMetadataResponse smart constructor.

Instances

Eq CreateCustomMetadataResponse Source # 
Data CreateCustomMetadataResponse Source # 

Methods

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

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

toConstr :: CreateCustomMetadataResponse -> Constr #

dataTypeOf :: CreateCustomMetadataResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateCustomMetadataResponse Source # 
Show CreateCustomMetadataResponse Source # 
Generic CreateCustomMetadataResponse Source # 
NFData CreateCustomMetadataResponse Source # 
type Rep CreateCustomMetadataResponse Source # 
type Rep CreateCustomMetadataResponse = D1 (MetaData "CreateCustomMetadataResponse" "Network.AWS.WorkDocs.CreateCustomMetadata" "amazonka-workdocs-1.5.0-BQCQjzmZAyNCgdficzQnx9" True) (C1 (MetaCons "CreateCustomMetadataResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_ccmrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses