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 |
Lists all folders in an account.
Synopsis
- data ListFolders = ListFolders' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- awsAccountId :: Text
- newListFolders :: Text -> ListFolders
- listFolders_nextToken :: Lens' ListFolders (Maybe Text)
- listFolders_maxResults :: Lens' ListFolders (Maybe Natural)
- listFolders_awsAccountId :: Lens' ListFolders Text
- data ListFoldersResponse = ListFoldersResponse' {}
- newListFoldersResponse :: Int -> ListFoldersResponse
- listFoldersResponse_requestId :: Lens' ListFoldersResponse (Maybe Text)
- listFoldersResponse_nextToken :: Lens' ListFoldersResponse (Maybe Text)
- listFoldersResponse_folderSummaryList :: Lens' ListFoldersResponse (Maybe [FolderSummary])
- listFoldersResponse_status :: Lens' ListFoldersResponse Int
Creating a Request
data ListFolders Source #
See: newListFolders
smart constructor.
ListFolders' | |
|
Instances
Create a value of ListFolders
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:nextToken:ListFolders'
, listFolders_nextToken
- The token for the next set of results, or null if there are no more
results.
$sel:maxResults:ListFolders'
, listFolders_maxResults
- The maximum number of results to be returned per request.
$sel:awsAccountId:ListFolders'
, listFolders_awsAccountId
- The AWS account ID.
Request Lenses
listFolders_nextToken :: Lens' ListFolders (Maybe Text) Source #
The token for the next set of results, or null if there are no more results.
listFolders_maxResults :: Lens' ListFolders (Maybe Natural) Source #
The maximum number of results to be returned per request.
listFolders_awsAccountId :: Lens' ListFolders Text Source #
The AWS account ID.
Destructuring the Response
data ListFoldersResponse Source #
See: newListFoldersResponse
smart constructor.
ListFoldersResponse' | |
|
Instances
newListFoldersResponse Source #
Create a value of ListFoldersResponse
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:requestId:ListFoldersResponse'
, listFoldersResponse_requestId
- The request ID.
$sel:nextToken:ListFolders'
, listFoldersResponse_nextToken
- The token for the next set of results, or null if there are no more
results.
$sel:folderSummaryList:ListFoldersResponse'
, listFoldersResponse_folderSummaryList
- A structure that contains all of the folders in your AWS account. This
structure provides basic information about the folders.
$sel:status:ListFoldersResponse'
, listFoldersResponse_status
- The status. If succeeded, the status is SC_OK
Response Lenses
listFoldersResponse_requestId :: Lens' ListFoldersResponse (Maybe Text) Source #
The request ID.
listFoldersResponse_nextToken :: Lens' ListFoldersResponse (Maybe Text) Source #
The token for the next set of results, or null if there are no more results.
listFoldersResponse_folderSummaryList :: Lens' ListFoldersResponse (Maybe [FolderSummary]) Source #
A structure that contains all of the folders in your AWS account. This structure provides basic information about the folders.
listFoldersResponse_status :: Lens' ListFoldersResponse Int Source #
The status. If succeeded, the status is SC_OK