| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.WorkDocs.CreateCustomMetadata
Description
Adds one or more custom properties to the specified resource (a folder, document, or version).
Synopsis
- data CreateCustomMetadata = CreateCustomMetadata' {}
- newCreateCustomMetadata :: Text -> CreateCustomMetadata
- createCustomMetadata_authenticationToken :: Lens' CreateCustomMetadata (Maybe Text)
- createCustomMetadata_versionId :: Lens' CreateCustomMetadata (Maybe Text)
- createCustomMetadata_resourceId :: Lens' CreateCustomMetadata Text
- createCustomMetadata_customMetadata :: Lens' CreateCustomMetadata (HashMap Text Text)
- data CreateCustomMetadataResponse = CreateCustomMetadataResponse' {
- httpStatus :: Int
- newCreateCustomMetadataResponse :: Int -> CreateCustomMetadataResponse
- createCustomMetadataResponse_httpStatus :: Lens' CreateCustomMetadataResponse Int
Creating a Request
data CreateCustomMetadata Source #
See: newCreateCustomMetadata smart constructor.
Constructors
| CreateCustomMetadata' | |
Fields
| |
Instances
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_resourceId :: Lens' CreateCustomMetadata Text Source #
The ID of the resource.
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
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
createCustomMetadataResponse_httpStatus :: Lens' CreateCustomMetadataResponse Int Source #
The response's http status code.