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 |
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.
Synopsis
- data ListProtectedResources = ListProtectedResources' {}
- newListProtectedResources :: ListProtectedResources
- listProtectedResources_nextToken :: Lens' ListProtectedResources (Maybe Text)
- listProtectedResources_maxResults :: Lens' ListProtectedResources (Maybe Natural)
- data ListProtectedResourcesResponse = ListProtectedResourcesResponse' {
- results :: Maybe [ProtectedResource]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListProtectedResourcesResponse :: Int -> ListProtectedResourcesResponse
- listProtectedResourcesResponse_results :: Lens' ListProtectedResourcesResponse (Maybe [ProtectedResource])
- listProtectedResourcesResponse_nextToken :: Lens' ListProtectedResourcesResponse (Maybe Text)
- 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:nextToken: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.
$sel:maxResults:ListProtectedResources'
, listProtectedResources_maxResults
- The maximum number of items to be returned.
Request Lenses
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.
listProtectedResources_maxResults :: Lens' ListProtectedResources (Maybe Natural) Source #
The maximum number of items to be returned.
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:
$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:nextToken: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:httpStatus:ListProtectedResourcesResponse'
, listProtectedResourcesResponse_httpStatus
- The response's http status code.
Response Lenses
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_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_httpStatus :: Lens' ListProtectedResourcesResponse Int Source #
The response's http status code.