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 metadata associated with a restore job that is specified by a job ID.
Synopsis
- data DescribeRestoreJob = DescribeRestoreJob' {
- restoreJobId :: Text
- newDescribeRestoreJob :: Text -> DescribeRestoreJob
- describeRestoreJob_restoreJobId :: Lens' DescribeRestoreJob Text
- data DescribeRestoreJobResponse = DescribeRestoreJobResponse' {
- status :: Maybe RestoreJobStatus
- iamRoleArn :: Maybe Text
- expectedCompletionTimeMinutes :: Maybe Integer
- restoreJobId :: Maybe Text
- resourceType :: Maybe Text
- percentDone :: Maybe Text
- accountId :: Maybe Text
- createdResourceArn :: Maybe Text
- statusMessage :: Maybe Text
- recoveryPointArn :: Maybe Text
- backupSizeInBytes :: Maybe Integer
- creationDate :: Maybe POSIX
- completionDate :: Maybe POSIX
- httpStatus :: Int
- newDescribeRestoreJobResponse :: Int -> DescribeRestoreJobResponse
- describeRestoreJobResponse_status :: Lens' DescribeRestoreJobResponse (Maybe RestoreJobStatus)
- describeRestoreJobResponse_iamRoleArn :: Lens' DescribeRestoreJobResponse (Maybe Text)
- describeRestoreJobResponse_expectedCompletionTimeMinutes :: Lens' DescribeRestoreJobResponse (Maybe Integer)
- describeRestoreJobResponse_restoreJobId :: Lens' DescribeRestoreJobResponse (Maybe Text)
- describeRestoreJobResponse_resourceType :: Lens' DescribeRestoreJobResponse (Maybe Text)
- describeRestoreJobResponse_percentDone :: Lens' DescribeRestoreJobResponse (Maybe Text)
- describeRestoreJobResponse_accountId :: Lens' DescribeRestoreJobResponse (Maybe Text)
- describeRestoreJobResponse_createdResourceArn :: Lens' DescribeRestoreJobResponse (Maybe Text)
- describeRestoreJobResponse_statusMessage :: Lens' DescribeRestoreJobResponse (Maybe Text)
- describeRestoreJobResponse_recoveryPointArn :: Lens' DescribeRestoreJobResponse (Maybe Text)
- describeRestoreJobResponse_backupSizeInBytes :: Lens' DescribeRestoreJobResponse (Maybe Integer)
- describeRestoreJobResponse_creationDate :: Lens' DescribeRestoreJobResponse (Maybe UTCTime)
- describeRestoreJobResponse_completionDate :: Lens' DescribeRestoreJobResponse (Maybe UTCTime)
- describeRestoreJobResponse_httpStatus :: Lens' DescribeRestoreJobResponse Int
Creating a Request
data DescribeRestoreJob Source #
See: newDescribeRestoreJob
smart constructor.
DescribeRestoreJob' | |
|
Instances
newDescribeRestoreJob Source #
Create a value of DescribeRestoreJob
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:restoreJobId:DescribeRestoreJob'
, describeRestoreJob_restoreJobId
- Uniquely identifies the job that restores a recovery point.
Request Lenses
describeRestoreJob_restoreJobId :: Lens' DescribeRestoreJob Text Source #
Uniquely identifies the job that restores a recovery point.
Destructuring the Response
data DescribeRestoreJobResponse Source #
See: newDescribeRestoreJobResponse
smart constructor.
DescribeRestoreJobResponse' | |
|
Instances
newDescribeRestoreJobResponse Source #
Create a value of DescribeRestoreJobResponse
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:status:DescribeRestoreJobResponse'
, describeRestoreJobResponse_status
- Status code specifying the state of the job that is initiated by Backup
to restore a recovery point.
$sel:iamRoleArn:DescribeRestoreJobResponse'
, describeRestoreJobResponse_iamRoleArn
- Specifies the IAM role ARN used to create the target recovery point; for
example, arn:aws:iam::123456789012:role/S3Access
.
$sel:expectedCompletionTimeMinutes:DescribeRestoreJobResponse'
, describeRestoreJobResponse_expectedCompletionTimeMinutes
- The amount of time in minutes that a job restoring a recovery point is
expected to take.
$sel:restoreJobId:DescribeRestoreJob'
, describeRestoreJobResponse_restoreJobId
- Uniquely identifies the job that restores a recovery point.
$sel:resourceType:DescribeRestoreJobResponse'
, describeRestoreJobResponse_resourceType
- Returns metadata associated with a restore job listed by resource type.
$sel:percentDone:DescribeRestoreJobResponse'
, describeRestoreJobResponse_percentDone
- Contains an estimated percentage that is complete of a job at the time
the job status was queried.
$sel:accountId:DescribeRestoreJobResponse'
, describeRestoreJobResponse_accountId
- Returns the account ID that owns the restore job.
$sel:createdResourceArn:DescribeRestoreJobResponse'
, describeRestoreJobResponse_createdResourceArn
- An Amazon Resource Name (ARN) that uniquely identifies a resource whose
recovery point is being restored. The format of the ARN depends on the
resource type of the backed-up resource.
$sel:statusMessage:DescribeRestoreJobResponse'
, describeRestoreJobResponse_statusMessage
- A message showing the status of a job to restore a recovery point.
$sel:recoveryPointArn:DescribeRestoreJobResponse'
, describeRestoreJobResponse_recoveryPointArn
- An ARN that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.
$sel:backupSizeInBytes:DescribeRestoreJobResponse'
, describeRestoreJobResponse_backupSizeInBytes
- The size, in bytes, of the restored resource.
$sel:creationDate:DescribeRestoreJobResponse'
, describeRestoreJobResponse_creationDate
- The date and time that a restore job is created, in Unix format and
Coordinated Universal Time (UTC). The value of CreationDate
is
accurate to milliseconds. For example, the value 1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.
$sel:completionDate:DescribeRestoreJobResponse'
, describeRestoreJobResponse_completionDate
- The date and time that a job to restore a recovery point is completed,
in Unix format and Coordinated Universal Time (UTC). The value of
CompletionDate
is accurate to milliseconds. For example, the value
1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
$sel:httpStatus:DescribeRestoreJobResponse'
, describeRestoreJobResponse_httpStatus
- The response's http status code.
Response Lenses
describeRestoreJobResponse_status :: Lens' DescribeRestoreJobResponse (Maybe RestoreJobStatus) Source #
Status code specifying the state of the job that is initiated by Backup to restore a recovery point.
describeRestoreJobResponse_iamRoleArn :: Lens' DescribeRestoreJobResponse (Maybe Text) Source #
Specifies the IAM role ARN used to create the target recovery point; for
example, arn:aws:iam::123456789012:role/S3Access
.
describeRestoreJobResponse_expectedCompletionTimeMinutes :: Lens' DescribeRestoreJobResponse (Maybe Integer) Source #
The amount of time in minutes that a job restoring a recovery point is expected to take.
describeRestoreJobResponse_restoreJobId :: Lens' DescribeRestoreJobResponse (Maybe Text) Source #
Uniquely identifies the job that restores a recovery point.
describeRestoreJobResponse_resourceType :: Lens' DescribeRestoreJobResponse (Maybe Text) Source #
Returns metadata associated with a restore job listed by resource type.
describeRestoreJobResponse_percentDone :: Lens' DescribeRestoreJobResponse (Maybe Text) Source #
Contains an estimated percentage that is complete of a job at the time the job status was queried.
describeRestoreJobResponse_accountId :: Lens' DescribeRestoreJobResponse (Maybe Text) Source #
Returns the account ID that owns the restore job.
describeRestoreJobResponse_createdResourceArn :: Lens' DescribeRestoreJobResponse (Maybe Text) Source #
An Amazon Resource Name (ARN) that uniquely identifies a resource whose recovery point is being restored. The format of the ARN depends on the resource type of the backed-up resource.
describeRestoreJobResponse_statusMessage :: Lens' DescribeRestoreJobResponse (Maybe Text) Source #
A message showing the status of a job to restore a recovery point.
describeRestoreJobResponse_recoveryPointArn :: Lens' DescribeRestoreJobResponse (Maybe Text) Source #
An ARN that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.
describeRestoreJobResponse_backupSizeInBytes :: Lens' DescribeRestoreJobResponse (Maybe Integer) Source #
The size, in bytes, of the restored resource.
describeRestoreJobResponse_creationDate :: Lens' DescribeRestoreJobResponse (Maybe UTCTime) Source #
The date and time that a restore job is created, in Unix format and
Coordinated Universal Time (UTC). The value of CreationDate
is
accurate to milliseconds. For example, the value 1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.
describeRestoreJobResponse_completionDate :: Lens' DescribeRestoreJobResponse (Maybe UTCTime) Source #
The date and time that a job to restore a recovery point is completed,
in Unix format and Coordinated Universal Time (UTC). The value of
CompletionDate
is accurate to milliseconds. For example, the value
1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
describeRestoreJobResponse_httpStatus :: Lens' DescribeRestoreJobResponse Int Source #
The response's http status code.