Copyright | (c) 2013-2017 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 |
Language | Haskell2010 |
Adds one or more custom properties to the specified resource (a folder, document, or version).
- createCustomMetadata :: Text -> CreateCustomMetadata
- data CreateCustomMetadata
- ccmVersionId :: Lens' CreateCustomMetadata (Maybe Text)
- ccmAuthenticationToken :: Lens' CreateCustomMetadata (Maybe Text)
- ccmResourceId :: Lens' CreateCustomMetadata Text
- ccmCustomMetadata :: Lens' CreateCustomMetadata (HashMap Text Text)
- createCustomMetadataResponse :: Int -> CreateCustomMetadataResponse
- data CreateCustomMetadataResponse
- ccmrsResponseStatus :: Lens' CreateCustomMetadataResponse Int
Creating a Request
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.
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.
ccmResourceId :: Lens' CreateCustomMetadata Text Source #
The ID of the resource.
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:
ccmrsResponseStatus
- -- | The response status code.
data CreateCustomMetadataResponse Source #
See: createCustomMetadataResponse
smart constructor.
Response Lenses
ccmrsResponseStatus :: Lens' CreateCustomMetadataResponse Int Source #
- - | The response status code.