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 the S3 resources associated with Amazon Macie Classic. If memberAccountId isn't specified, the action lists the S3 resources associated with Macie Classic for the current Macie Classic administrator account. If memberAccountId is specified, the action lists the S3 resources associated with Macie Classic for the specified member account.
This operation returns paginated results.
Synopsis
- data ListS3Resources = ListS3Resources' {
- memberAccountId :: Maybe Text
- nextToken :: Maybe Text
- maxResults :: Maybe Int
- newListS3Resources :: ListS3Resources
- listS3Resources_memberAccountId :: Lens' ListS3Resources (Maybe Text)
- listS3Resources_nextToken :: Lens' ListS3Resources (Maybe Text)
- listS3Resources_maxResults :: Lens' ListS3Resources (Maybe Int)
- data ListS3ResourcesResponse = ListS3ResourcesResponse' {}
- newListS3ResourcesResponse :: Int -> ListS3ResourcesResponse
- listS3ResourcesResponse_nextToken :: Lens' ListS3ResourcesResponse (Maybe Text)
- listS3ResourcesResponse_s3Resources :: Lens' ListS3ResourcesResponse (Maybe [S3ResourceClassification])
- listS3ResourcesResponse_httpStatus :: Lens' ListS3ResourcesResponse Int
Creating a Request
data ListS3Resources Source #
See: newListS3Resources
smart constructor.
ListS3Resources' | |
|
Instances
newListS3Resources :: ListS3Resources Source #
Create a value of ListS3Resources
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:memberAccountId:ListS3Resources'
, listS3Resources_memberAccountId
- The Amazon Macie Classic member account ID whose associated S3 resources
you want to list.
$sel:nextToken:ListS3Resources'
, listS3Resources_nextToken
- Use this parameter when paginating results. Set its value to null on
your first call to the ListS3Resources action. Subsequent calls to the
action fill nextToken in the request with the value of nextToken from
the previous response to continue listing data.
$sel:maxResults:ListS3Resources'
, listS3Resources_maxResults
- Use this parameter to indicate the maximum number of items that you want
in the response. The default value is 250.
Request Lenses
listS3Resources_memberAccountId :: Lens' ListS3Resources (Maybe Text) Source #
The Amazon Macie Classic member account ID whose associated S3 resources you want to list.
listS3Resources_nextToken :: Lens' ListS3Resources (Maybe Text) Source #
Use this parameter when paginating results. Set its value to null on your first call to the ListS3Resources action. Subsequent calls to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data.
listS3Resources_maxResults :: Lens' ListS3Resources (Maybe Int) Source #
Use this parameter to indicate the maximum number of items that you want in the response. The default value is 250.
Destructuring the Response
data ListS3ResourcesResponse Source #
See: newListS3ResourcesResponse
smart constructor.
ListS3ResourcesResponse' | |
|
Instances
newListS3ResourcesResponse Source #
Create a value of ListS3ResourcesResponse
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:ListS3Resources'
, listS3ResourcesResponse_nextToken
- When a response is generated, if there is more data to be listed, this
parameter is present in the response and contains the value to use for
the nextToken parameter in a subsequent pagination request. If there is
no more data to be listed, this parameter is set to null.
$sel:s3Resources:ListS3ResourcesResponse'
, listS3ResourcesResponse_s3Resources
- A list of the associated S3 resources returned by the action.
$sel:httpStatus:ListS3ResourcesResponse'
, listS3ResourcesResponse_httpStatus
- The response's http status code.
Response Lenses
listS3ResourcesResponse_nextToken :: Lens' ListS3ResourcesResponse (Maybe Text) Source #
When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
listS3ResourcesResponse_s3Resources :: Lens' ListS3ResourcesResponse (Maybe [S3ResourceClassification]) Source #
A list of the associated S3 resources returned by the action.
listS3ResourcesResponse_httpStatus :: Lens' ListS3ResourcesResponse Int Source #
The response's http status code.