| 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 |
Amazonka.Backup.ListRecoveryPointsByResource
Description
Returns detailed information about all the recovery points of the type specified by a resource Amazon Resource Name (ARN).
For Amazon EFS and Amazon EC2, this action only lists recovery points created by Backup.
This operation returns paginated results.
Synopsis
- data ListRecoveryPointsByResource = ListRecoveryPointsByResource' {
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- resourceArn :: Text
- newListRecoveryPointsByResource :: Text -> ListRecoveryPointsByResource
- listRecoveryPointsByResource_maxResults :: Lens' ListRecoveryPointsByResource (Maybe Natural)
- listRecoveryPointsByResource_nextToken :: Lens' ListRecoveryPointsByResource (Maybe Text)
- listRecoveryPointsByResource_resourceArn :: Lens' ListRecoveryPointsByResource Text
- data ListRecoveryPointsByResourceResponse = ListRecoveryPointsByResourceResponse' {}
- newListRecoveryPointsByResourceResponse :: Int -> ListRecoveryPointsByResourceResponse
- listRecoveryPointsByResourceResponse_nextToken :: Lens' ListRecoveryPointsByResourceResponse (Maybe Text)
- listRecoveryPointsByResourceResponse_recoveryPoints :: Lens' ListRecoveryPointsByResourceResponse (Maybe [RecoveryPointByResource])
- listRecoveryPointsByResourceResponse_httpStatus :: Lens' ListRecoveryPointsByResourceResponse Int
Creating a Request
data ListRecoveryPointsByResource Source #
See: newListRecoveryPointsByResource smart constructor.
Constructors
| ListRecoveryPointsByResource' | |
Fields
| |
Instances
newListRecoveryPointsByResource Source #
Arguments
| :: Text | |
| -> ListRecoveryPointsByResource |
Create a value of ListRecoveryPointsByResource 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:ListRecoveryPointsByResource', listRecoveryPointsByResource_maxResults - The maximum number of items to be returned.
Amazon RDS requires a value of at least 20.
ListRecoveryPointsByResource, listRecoveryPointsByResource_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.
ListRecoveryPointsByResource, listRecoveryPointsByResource_resourceArn - An ARN that uniquely identifies a resource. The format of the ARN
depends on the resource type.
Request Lenses
listRecoveryPointsByResource_maxResults :: Lens' ListRecoveryPointsByResource (Maybe Natural) Source #
The maximum number of items to be returned.
Amazon RDS requires a value of at least 20.
listRecoveryPointsByResource_nextToken :: Lens' ListRecoveryPointsByResource (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.
listRecoveryPointsByResource_resourceArn :: Lens' ListRecoveryPointsByResource Text Source #
An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.
Destructuring the Response
data ListRecoveryPointsByResourceResponse Source #
See: newListRecoveryPointsByResourceResponse smart constructor.
Constructors
| ListRecoveryPointsByResourceResponse' | |
Fields
| |
Instances
newListRecoveryPointsByResourceResponse Source #
Arguments
| :: Int | |
| -> ListRecoveryPointsByResourceResponse |
Create a value of ListRecoveryPointsByResourceResponse 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:
ListRecoveryPointsByResource, listRecoveryPointsByResourceResponse_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:recoveryPoints:ListRecoveryPointsByResourceResponse', listRecoveryPointsByResourceResponse_recoveryPoints - An array of objects that contain detailed information about recovery
points of the specified resource type.
Only Amazon EFS and Amazon EC2 recovery points return BackupVaultName.
$sel:httpStatus:ListRecoveryPointsByResourceResponse', listRecoveryPointsByResourceResponse_httpStatus - The response's http status code.
Response Lenses
listRecoveryPointsByResourceResponse_nextToken :: Lens' ListRecoveryPointsByResourceResponse (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.
listRecoveryPointsByResourceResponse_recoveryPoints :: Lens' ListRecoveryPointsByResourceResponse (Maybe [RecoveryPointByResource]) Source #
An array of objects that contain detailed information about recovery points of the specified resource type.
Only Amazon EFS and Amazon EC2 recovery points return BackupVaultName.
listRecoveryPointsByResourceResponse_httpStatus :: Lens' ListRecoveryPointsByResourceResponse Int Source #
The response's http status code.