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 |
Returns an array of resources successfully backed up by Backup, including the time the resource was saved, an Amazon Resource Name (ARN) of the resource, and a resource type.
This operation returns paginated results.
Synopsis
- data ListProtectedResources = ListProtectedResources' {}
- newListProtectedResources :: ListProtectedResources
- listProtectedResources_maxResults :: Lens' ListProtectedResources (Maybe Natural)
- listProtectedResources_nextToken :: Lens' ListProtectedResources (Maybe Text)
- data ListProtectedResourcesResponse = ListProtectedResourcesResponse' {
- nextToken :: Maybe Text
- results :: Maybe [ProtectedResource]
- httpStatus :: Int
- newListProtectedResourcesResponse :: Int -> ListProtectedResourcesResponse
- listProtectedResourcesResponse_nextToken :: Lens' ListProtectedResourcesResponse (Maybe Text)
- listProtectedResourcesResponse_results :: Lens' ListProtectedResourcesResponse (Maybe [ProtectedResource])
- listProtectedResourcesResponse_httpStatus :: Lens' ListProtectedResourcesResponse Int
Creating a Request
data ListProtectedResources Source #
See: newListProtectedResources
smart constructor.
ListProtectedResources' | |
|
Instances
newListProtectedResources :: ListProtectedResources Source #
Create a value of ListProtectedResources
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:ListProtectedResources'
, listProtectedResources_maxResults
- The maximum number of items to be returned.
ListProtectedResources
, listProtectedResources_nextToken
- The next item following a partial list of returned items. For example,
if a request is made to return maxResults
number of items, NextToken
allows you to return more items in your list starting at the location
pointed to by the next token.
Request Lenses
listProtectedResources_maxResults :: Lens' ListProtectedResources (Maybe Natural) Source #
The maximum number of items to be returned.
listProtectedResources_nextToken :: Lens' ListProtectedResources (Maybe Text) Source #
The next item following a partial list of returned items. For example,
if a request is made to return maxResults
number of items, NextToken
allows you to return more items in your list starting at the location
pointed to by the next token.
Destructuring the Response
data ListProtectedResourcesResponse Source #
See: newListProtectedResourcesResponse
smart constructor.
ListProtectedResourcesResponse' | |
|
Instances
newListProtectedResourcesResponse Source #
Create a value of ListProtectedResourcesResponse
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:
ListProtectedResources
, listProtectedResourcesResponse_nextToken
- The next item following a partial list of returned items. For example,
if a request is made to return maxResults
number of items, NextToken
allows you to return more items in your list starting at the location
pointed to by the next token.
$sel:results:ListProtectedResourcesResponse'
, listProtectedResourcesResponse_results
- An array of resources successfully backed up by Backup including the
time the resource was saved, an Amazon Resource Name (ARN) of the
resource, and a resource type.
$sel:httpStatus:ListProtectedResourcesResponse'
, listProtectedResourcesResponse_httpStatus
- The response's http status code.
Response Lenses
listProtectedResourcesResponse_nextToken :: Lens' ListProtectedResourcesResponse (Maybe Text) Source #
The next item following a partial list of returned items. For example,
if a request is made to return maxResults
number of items, NextToken
allows you to return more items in your list starting at the location
pointed to by the next token.
listProtectedResourcesResponse_results :: Lens' ListProtectedResourcesResponse (Maybe [ProtectedResource]) Source #
An array of resources successfully backed up by Backup including the time the resource was saved, an Amazon Resource Name (ARN) of the resource, and a resource type.
listProtectedResourcesResponse_httpStatus :: Lens' ListProtectedResourcesResponse Int Source #
The response's http status code.