| 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 |
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.
Synopsis
- data ListRecoveryPointsByResource = ListRecoveryPointsByResource' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- resourceArn :: Text
- newListRecoveryPointsByResource :: Text -> ListRecoveryPointsByResource
- listRecoveryPointsByResource_nextToken :: Lens' ListRecoveryPointsByResource (Maybe Text)
- listRecoveryPointsByResource_maxResults :: Lens' ListRecoveryPointsByResource (Maybe Natural)
- listRecoveryPointsByResource_resourceArn :: Lens' ListRecoveryPointsByResource Text
- data ListRecoveryPointsByResourceResponse = ListRecoveryPointsByResourceResponse' {}
- newListRecoveryPointsByResourceResponse :: Int -> ListRecoveryPointsByResourceResponse
- listRecoveryPointsByResourceResponse_recoveryPoints :: Lens' ListRecoveryPointsByResourceResponse (Maybe [RecoveryPointByResource])
- listRecoveryPointsByResourceResponse_nextToken :: Lens' ListRecoveryPointsByResourceResponse (Maybe Text)
- listRecoveryPointsByResourceResponse_httpStatus :: Lens' ListRecoveryPointsByResourceResponse Int
Creating a Request
data ListRecoveryPointsByResource Source #
See: newListRecoveryPointsByResource smart constructor.
Constructors
| ListRecoveryPointsByResource' | |
Fields
| |
Instances
newListRecoveryPointsByResource Source #
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:nextToken: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.
$sel:maxResults:ListRecoveryPointsByResource', listRecoveryPointsByResource_maxResults - The maximum number of items to be returned.
Amazon RDS requires a value of at least 20.
$sel:resourceArn:ListRecoveryPointsByResource', listRecoveryPointsByResource_resourceArn - An ARN that uniquely identifies a resource. The format of the ARN
depends on the resource type.
Request Lenses
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_maxResults :: Lens' ListRecoveryPointsByResource (Maybe Natural) Source #
The maximum number of items to be returned.
Amazon RDS requires a value of at least 20.
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:
$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:nextToken: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:httpStatus:ListRecoveryPointsByResourceResponse', listRecoveryPointsByResourceResponse_httpStatus - The response's http status code.
Response Lenses
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_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_httpStatus :: Lens' ListRecoveryPointsByResourceResponse Int Source #
The response's http status code.