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 |
This action returns metadata about active and previous legal holds.
This operation returns paginated results.
Synopsis
- data ListLegalHolds = ListLegalHolds' {}
- newListLegalHolds :: ListLegalHolds
- listLegalHolds_maxResults :: Lens' ListLegalHolds (Maybe Natural)
- listLegalHolds_nextToken :: Lens' ListLegalHolds (Maybe Text)
- data ListLegalHoldsResponse = ListLegalHoldsResponse' {
- legalHolds :: Maybe [LegalHold]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListLegalHoldsResponse :: Int -> ListLegalHoldsResponse
- listLegalHoldsResponse_legalHolds :: Lens' ListLegalHoldsResponse (Maybe [LegalHold])
- listLegalHoldsResponse_nextToken :: Lens' ListLegalHoldsResponse (Maybe Text)
- listLegalHoldsResponse_httpStatus :: Lens' ListLegalHoldsResponse Int
Creating a Request
data ListLegalHolds Source #
See: newListLegalHolds
smart constructor.
ListLegalHolds' | |
|
Instances
newListLegalHolds :: ListLegalHolds Source #
Create a value of ListLegalHolds
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:maxResults:ListLegalHolds'
, listLegalHolds_maxResults
- The maximum number of resource list items to be returned.
ListLegalHolds
, listLegalHolds_nextToken
- The next item following a partial list of returned resources. For
example, if a request is made to return maxResults
number of
resources, NextToken
allows you to return more items in your list
starting at the location pointed to by the next token.
Request Lenses
listLegalHolds_maxResults :: Lens' ListLegalHolds (Maybe Natural) Source #
The maximum number of resource list items to be returned.
listLegalHolds_nextToken :: Lens' ListLegalHolds (Maybe Text) Source #
The next item following a partial list of returned resources. For
example, if a request is made to return maxResults
number of
resources, NextToken
allows you to return more items in your list
starting at the location pointed to by the next token.
Destructuring the Response
data ListLegalHoldsResponse Source #
See: newListLegalHoldsResponse
smart constructor.
ListLegalHoldsResponse' | |
|
Instances
newListLegalHoldsResponse Source #
Create a value of ListLegalHoldsResponse
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:legalHolds:ListLegalHoldsResponse'
, listLegalHoldsResponse_legalHolds
- This is an array of returned legal holds, both active and previous.
ListLegalHolds
, listLegalHoldsResponse_nextToken
- The next item following a partial list of returned resources. For
example, if a request is made to return maxResults
number of
resources, NextToken
allows you to return more items in your list
starting at the location pointed to by the next token.
$sel:httpStatus:ListLegalHoldsResponse'
, listLegalHoldsResponse_httpStatus
- The response's http status code.
Response Lenses
listLegalHoldsResponse_legalHolds :: Lens' ListLegalHoldsResponse (Maybe [LegalHold]) Source #
This is an array of returned legal holds, both active and previous.
listLegalHoldsResponse_nextToken :: Lens' ListLegalHoldsResponse (Maybe Text) Source #
The next item following a partial list of returned resources. For
example, if a request is made to return maxResults
number of
resources, NextToken
allows you to return more items in your list
starting at the location pointed to by the next token.
listLegalHoldsResponse_httpStatus :: Lens' ListLegalHoldsResponse Int Source #
The response's http status code.