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

Description

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

Synopsis

Creating a Request

data CreateCustomMetadata Source #

See: newCreateCustomMetadata smart constructor.

Constructors

CreateCustomMetadata' 

Fields

Instances

Instances details
ToJSON CreateCustomMetadata Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

ToHeaders CreateCustomMetadata Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

ToPath CreateCustomMetadata Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

ToQuery CreateCustomMetadata Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

AWSRequest CreateCustomMetadata Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

Associated Types

type AWSResponse CreateCustomMetadata #

Generic CreateCustomMetadata Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

Associated Types

type Rep CreateCustomMetadata :: Type -> Type #

Show CreateCustomMetadata Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

NFData CreateCustomMetadata Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

Methods

rnf :: CreateCustomMetadata -> () #

Eq CreateCustomMetadata Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

Hashable CreateCustomMetadata Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

type AWSResponse CreateCustomMetadata Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

type Rep CreateCustomMetadata Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

type Rep CreateCustomMetadata = D1 ('MetaData "CreateCustomMetadata" "Amazonka.WorkDocs.CreateCustomMetadata" "amazonka-workdocs-2.0-2rElYnFvcad3yrUkWYMHCU" 'False) (C1 ('MetaCons "CreateCustomMetadata'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "authenticationToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 ('MetaSel ('Just "versionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "resourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "customMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text Text)))))

newCreateCustomMetadata Source #

Create a value of CreateCustomMetadata 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:authenticationToken:CreateCustomMetadata', createCustomMetadata_authenticationToken - Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.

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

$sel:resourceId:CreateCustomMetadata', createCustomMetadata_resourceId - The ID of the resource.

$sel:customMetadata:CreateCustomMetadata', createCustomMetadata_customMetadata - Custom metadata in the form of name-value pairs.

Request Lenses

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

Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.

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

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

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

Custom metadata in the form of name-value pairs.

Destructuring the Response

data CreateCustomMetadataResponse Source #

See: newCreateCustomMetadataResponse smart constructor.

Constructors

CreateCustomMetadataResponse' 

Fields

Instances

Instances details
Generic CreateCustomMetadataResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

Associated Types

type Rep CreateCustomMetadataResponse :: Type -> Type #

Read CreateCustomMetadataResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

Show CreateCustomMetadataResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

NFData CreateCustomMetadataResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

Eq CreateCustomMetadataResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

type Rep CreateCustomMetadataResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

type Rep CreateCustomMetadataResponse = D1 ('MetaData "CreateCustomMetadataResponse" "Amazonka.WorkDocs.CreateCustomMetadata" "amazonka-workdocs-2.0-2rElYnFvcad3yrUkWYMHCU" 'False) (C1 ('MetaCons "CreateCustomMetadataResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateCustomMetadataResponse Source #

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

Response Lenses