| 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.GetResources
Description
Retrieves a collection of resources, including folders and documents.
The only CollectionType supported is SHARED_WITH_ME.
Synopsis
- data GetResources = GetResources' {}
- newGetResources :: GetResources
- getResources_authenticationToken :: Lens' GetResources (Maybe Text)
- getResources_collectionType :: Lens' GetResources (Maybe ResourceCollectionType)
- getResources_limit :: Lens' GetResources (Maybe Natural)
- getResources_marker :: Lens' GetResources (Maybe Text)
- getResources_userId :: Lens' GetResources (Maybe Text)
- data GetResourcesResponse = GetResourcesResponse' {
- documents :: Maybe [DocumentMetadata]
- folders :: Maybe [FolderMetadata]
- marker :: Maybe Text
- httpStatus :: Int
- newGetResourcesResponse :: Int -> GetResourcesResponse
- getResourcesResponse_documents :: Lens' GetResourcesResponse (Maybe [DocumentMetadata])
- getResourcesResponse_folders :: Lens' GetResourcesResponse (Maybe [FolderMetadata])
- getResourcesResponse_marker :: Lens' GetResourcesResponse (Maybe Text)
- getResourcesResponse_httpStatus :: Lens' GetResourcesResponse Int
Creating a Request
data GetResources Source #
See: newGetResources smart constructor.
Constructors
| GetResources' | |
Fields
| |
Instances
newGetResources :: GetResources Source #
Create a value of GetResources 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:GetResources', getResources_authenticationToken - The Amazon WorkDocs authentication token. Not required when using AWS
administrator credentials to access the API.
$sel:collectionType:GetResources', getResources_collectionType - The collection type.
$sel:limit:GetResources', getResources_limit - The maximum number of resources to return.
GetResources, getResources_marker - The marker for the next set of results. This marker was received from a
previous call.
$sel:userId:GetResources', getResources_userId - The user ID for the resource collection. This is a required field for
accessing the API operation using IAM credentials.
Request Lenses
getResources_authenticationToken :: Lens' GetResources (Maybe Text) Source #
The Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
getResources_collectionType :: Lens' GetResources (Maybe ResourceCollectionType) Source #
The collection type.
getResources_limit :: Lens' GetResources (Maybe Natural) Source #
The maximum number of resources to return.
getResources_marker :: Lens' GetResources (Maybe Text) Source #
The marker for the next set of results. This marker was received from a previous call.
getResources_userId :: Lens' GetResources (Maybe Text) Source #
The user ID for the resource collection. This is a required field for accessing the API operation using IAM credentials.
Destructuring the Response
data GetResourcesResponse Source #
See: newGetResourcesResponse smart constructor.
Constructors
| GetResourcesResponse' | |
Fields
| |
Instances
newGetResourcesResponse Source #
Arguments
| :: Int | |
| -> GetResourcesResponse |
Create a value of GetResourcesResponse 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:documents:GetResourcesResponse', getResourcesResponse_documents - The documents in the specified collection.
$sel:folders:GetResourcesResponse', getResourcesResponse_folders - The folders in the specified folder.
GetResources, getResourcesResponse_marker - The marker to use when requesting the next set of results. If there are
no additional results, the string is empty.
$sel:httpStatus:GetResourcesResponse', getResourcesResponse_httpStatus - The response's http status code.
Response Lenses
getResourcesResponse_documents :: Lens' GetResourcesResponse (Maybe [DocumentMetadata]) Source #
The documents in the specified collection.
getResourcesResponse_folders :: Lens' GetResourcesResponse (Maybe [FolderMetadata]) Source #
The folders in the specified folder.
getResourcesResponse_marker :: Lens' GetResourcesResponse (Maybe Text) Source #
The marker to use when requesting the next set of results. If there are no additional results, the string is empty.
getResourcesResponse_httpStatus :: Lens' GetResourcesResponse Int Source #
The response's http status code.