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 |
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_userId :: Lens' GetResources (Maybe Text)
- getResources_marker :: Lens' GetResources (Maybe Text)
- getResources_limit :: Lens' GetResources (Maybe Natural)
- getResources_collectionType :: Lens' GetResources (Maybe ResourceCollectionType)
- data GetResourcesResponse = GetResourcesResponse' {
- folders :: Maybe [FolderMetadata]
- documents :: Maybe [DocumentMetadata]
- marker :: Maybe Text
- httpStatus :: Int
- newGetResourcesResponse :: Int -> GetResourcesResponse
- getResourcesResponse_folders :: Lens' GetResourcesResponse (Maybe [FolderMetadata])
- getResourcesResponse_documents :: Lens' GetResourcesResponse (Maybe [DocumentMetadata])
- getResourcesResponse_marker :: Lens' GetResourcesResponse (Maybe Text)
- getResourcesResponse_httpStatus :: Lens' GetResourcesResponse Int
Creating a Request
data GetResources Source #
See: newGetResources
smart constructor.
GetResources' | |
|
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:userId:GetResources'
, getResources_userId
- The user ID for the resource collection. This is a required field for
accessing the API operation using IAM credentials.
$sel:marker:GetResources'
, getResources_marker
- The marker for the next set of results. This marker was received from a
previous call.
$sel:limit:GetResources'
, getResources_limit
- The maximum number of resources to return.
$sel:collectionType:GetResources'
, getResources_collectionType
- The collection type.
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_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.
getResources_marker :: Lens' GetResources (Maybe Text) Source #
The marker for the next set of results. This marker was received from a previous call.
getResources_limit :: Lens' GetResources (Maybe Natural) Source #
The maximum number of resources to return.
getResources_collectionType :: Lens' GetResources (Maybe ResourceCollectionType) Source #
The collection type.
Destructuring the Response
data GetResourcesResponse Source #
See: newGetResourcesResponse
smart constructor.
GetResourcesResponse' | |
|
Instances
newGetResourcesResponse Source #
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:folders:GetResourcesResponse'
, getResourcesResponse_folders
- The folders in the specified folder.
$sel:documents:GetResourcesResponse'
, getResourcesResponse_documents
- The documents in the specified collection.
$sel:marker: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_folders :: Lens' GetResourcesResponse (Maybe [FolderMetadata]) Source #
The folders in the specified folder.
getResourcesResponse_documents :: Lens' GetResourcesResponse (Maybe [DocumentMetadata]) Source #
The documents in the specified collection.
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.