libZSservicesZSamazonka-workdocsZSamazonka-workdocs
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.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
Eq CreateCustomMetadata Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

Show CreateCustomMetadata Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

Generic CreateCustomMetadata Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

Associated Types

type Rep CreateCustomMetadata :: Type -> Type #

NFData CreateCustomMetadata Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

Methods

rnf :: CreateCustomMetadata -> () #

Hashable CreateCustomMetadata Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

ToJSON CreateCustomMetadata Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

AWSRequest CreateCustomMetadata Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

Associated Types

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

type Rep CreateCustomMetadata Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

type Rep CreateCustomMetadata = D1 ('MetaData "CreateCustomMetadata" "Amazonka.WorkDocs.CreateCustomMetadata" "libZSservicesZSamazonka-workdocsZSamazonka-workdocs" 'False) (C1 ('MetaCons "CreateCustomMetadata'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "versionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "authenticationToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text)))) :*: (S1 ('MetaSel ('Just "resourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "customMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text Text)))))
type AWSResponse CreateCustomMetadata Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

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:versionId:CreateCustomMetadata', createCustomMetadata_versionId - The ID of the version, if the custom metadata is being added to a document version.

$sel:authenticationToken:CreateCustomMetadata', createCustomMetadata_authenticationToken - Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.

$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_versionId :: Lens' CreateCustomMetadata (Maybe Text) Source #

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

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

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

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

Defined in Amazonka.WorkDocs.CreateCustomMetadata

Read CreateCustomMetadataResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

Show CreateCustomMetadataResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

Generic CreateCustomMetadataResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.CreateCustomMetadata

Associated Types

type Rep CreateCustomMetadataResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-workdocsZSamazonka-workdocs" '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