Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Adds one or more custom properties to the specified resource (a folder, document, or version).
Synopsis
- data CreateCustomMetadata = CreateCustomMetadata' {}
- newCreateCustomMetadata :: Text -> CreateCustomMetadata
- createCustomMetadata_versionId :: Lens' CreateCustomMetadata (Maybe Text)
- createCustomMetadata_authenticationToken :: 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.
CreateCustomMetadata' | |
|
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: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_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.
CreateCustomMetadataResponse' | |
|
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.