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.Types.BackupJob
Description
Synopsis
- data BackupJob = BackupJob' {
- accountId :: Maybe Text
- backupJobId :: Maybe Text
- backupOptions :: Maybe (HashMap Text Text)
- backupSizeInBytes :: Maybe Integer
- backupType :: Maybe Text
- backupVaultArn :: Maybe Text
- backupVaultName :: Maybe Text
- bytesTransferred :: Maybe Integer
- completionDate :: Maybe POSIX
- createdBy :: Maybe RecoveryPointCreator
- creationDate :: Maybe POSIX
- expectedCompletionDate :: Maybe POSIX
- iamRoleArn :: Maybe Text
- isParent :: Maybe Bool
- parentJobId :: Maybe Text
- percentDone :: Maybe Text
- recoveryPointArn :: Maybe Text
- resourceArn :: Maybe Text
- resourceType :: Maybe Text
- startBy :: Maybe POSIX
- state :: Maybe BackupJobState
- statusMessage :: Maybe Text
- newBackupJob :: BackupJob
- backupJob_accountId :: Lens' BackupJob (Maybe Text)
- backupJob_backupJobId :: Lens' BackupJob (Maybe Text)
- backupJob_backupOptions :: Lens' BackupJob (Maybe (HashMap Text Text))
- backupJob_backupSizeInBytes :: Lens' BackupJob (Maybe Integer)
- backupJob_backupType :: Lens' BackupJob (Maybe Text)
- backupJob_backupVaultArn :: Lens' BackupJob (Maybe Text)
- backupJob_backupVaultName :: Lens' BackupJob (Maybe Text)
- backupJob_bytesTransferred :: Lens' BackupJob (Maybe Integer)
- backupJob_completionDate :: Lens' BackupJob (Maybe UTCTime)
- backupJob_createdBy :: Lens' BackupJob (Maybe RecoveryPointCreator)
- backupJob_creationDate :: Lens' BackupJob (Maybe UTCTime)
- backupJob_expectedCompletionDate :: Lens' BackupJob (Maybe UTCTime)
- backupJob_iamRoleArn :: Lens' BackupJob (Maybe Text)
- backupJob_isParent :: Lens' BackupJob (Maybe Bool)
- backupJob_parentJobId :: Lens' BackupJob (Maybe Text)
- backupJob_percentDone :: Lens' BackupJob (Maybe Text)
- backupJob_recoveryPointArn :: Lens' BackupJob (Maybe Text)
- backupJob_resourceArn :: Lens' BackupJob (Maybe Text)
- backupJob_resourceType :: Lens' BackupJob (Maybe Text)
- backupJob_startBy :: Lens' BackupJob (Maybe UTCTime)
- backupJob_state :: Lens' BackupJob (Maybe BackupJobState)
- backupJob_statusMessage :: Lens' BackupJob (Maybe Text)
Documentation
Contains detailed information about a backup job.
See: newBackupJob
smart constructor.
Constructors
BackupJob' | |
Fields
|
Instances
newBackupJob :: BackupJob Source #
Create a value of BackupJob
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:accountId:BackupJob'
, backupJob_accountId
- The account ID that owns the backup job.
$sel:backupJobId:BackupJob'
, backupJob_backupJobId
- Uniquely identifies a request to Backup to back up a resource.
$sel:backupOptions:BackupJob'
, backupJob_backupOptions
- Specifies the backup option for a selected resource. This option is only
available for Windows Volume Shadow Copy Service (VSS) backup jobs.
Valid values: Set to "WindowsVSS":"enabled"
to enable the
WindowsVSS
backup option and create a Windows VSS backup. Set to
"WindowsVSS":"disabled"
to create a regular backup. If you specify
an invalid option, you get an InvalidParameterValueException
exception.
$sel:backupSizeInBytes:BackupJob'
, backupJob_backupSizeInBytes
- The size, in bytes, of a backup.
$sel:backupType:BackupJob'
, backupJob_backupType
- Represents the type of backup for a backup job.
$sel:backupVaultArn:BackupJob'
, backupJob_backupVaultArn
- An Amazon Resource Name (ARN) that uniquely identifies a backup vault;
for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
$sel:backupVaultName:BackupJob'
, backupJob_backupVaultName
- The name of a logical container where backups are stored. Backup vaults
are identified by names that are unique to the account used to create
them and the Amazon Web Services Region where they are created. They
consist of lowercase letters, numbers, and hyphens.
$sel:bytesTransferred:BackupJob'
, backupJob_bytesTransferred
- The size in bytes transferred to a backup vault at the time that the job
status was queried.
$sel:completionDate:BackupJob'
, backupJob_completionDate
- The date and time a job to create a backup job 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:createdBy:BackupJob'
, backupJob_createdBy
- Contains identifying information about the creation of a backup job,
including the BackupPlanArn
, BackupPlanId
, BackupPlanVersion
, and
BackupRuleId
of the backup plan used to create it.
$sel:creationDate:BackupJob'
, backupJob_creationDate
- The date and time a backup 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:expectedCompletionDate:BackupJob'
, backupJob_expectedCompletionDate
- The date and time a job to back up resources is expected to be
completed, in Unix format and Coordinated Universal Time (UTC). The
value of ExpectedCompletionDate
is accurate to milliseconds. For
example, the value 1516925490.087 represents Friday, January 26, 2018
12:11:30.087 AM.
$sel:iamRoleArn:BackupJob'
, backupJob_iamRoleArn
- Specifies the IAM role ARN used to create the target recovery point. IAM
roles other than the default role must include either AWSBackup
or
AwsBackup
in the role name. For example,
arn:aws:iam::123456789012:role/AWSBackupRDSAccess
. Role names without
those strings lack permissions to perform backup jobs.
$sel:isParent:BackupJob'
, backupJob_isParent
- This is a boolean value indicating this is a parent (composite) backup
job.
$sel:parentJobId:BackupJob'
, backupJob_parentJobId
- This uniquely identifies a request to Backup to back up a resource. The
return will be the parent (composite) job ID.
$sel:percentDone:BackupJob'
, backupJob_percentDone
- Contains an estimated percentage complete of a job at the time the job
status was queried.
$sel:recoveryPointArn:BackupJob'
, backupJob_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:resourceArn:BackupJob'
, backupJob_resourceArn
- An ARN that uniquely identifies a resource. The format of the ARN
depends on the resource type.
$sel:resourceType:BackupJob'
, backupJob_resourceType
- The type of Amazon Web Services resource to be backed up; for example,
an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon
Relational Database Service (Amazon RDS) database. For Windows Volume
Shadow Copy Service (VSS) backups, the only supported resource type is
Amazon EC2.
$sel:startBy:BackupJob'
, backupJob_startBy
- Specifies the time in Unix format and Coordinated Universal Time (UTC)
when a backup job must be started before it is canceled. The value is
calculated by adding the start window to the scheduled time. So if the
scheduled time were 6:00 PM and the start window is 2 hours, the
StartBy
time would be 8:00 PM on the date specified. The value of
StartBy
is accurate to milliseconds. For example, the value
1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
$sel:state:BackupJob'
, backupJob_state
- The current state of a resource recovery point.
$sel:statusMessage:BackupJob'
, backupJob_statusMessage
- A detailed message explaining the status of the job to back up a
resource.
backupJob_accountId :: Lens' BackupJob (Maybe Text) Source #
The account ID that owns the backup job.
backupJob_backupJobId :: Lens' BackupJob (Maybe Text) Source #
Uniquely identifies a request to Backup to back up a resource.
backupJob_backupOptions :: Lens' BackupJob (Maybe (HashMap Text Text)) Source #
Specifies the backup option for a selected resource. This option is only available for Windows Volume Shadow Copy Service (VSS) backup jobs.
Valid values: Set to "WindowsVSS":"enabled"
to enable the
WindowsVSS
backup option and create a Windows VSS backup. Set to
"WindowsVSS":"disabled"
to create a regular backup. If you specify
an invalid option, you get an InvalidParameterValueException
exception.
backupJob_backupSizeInBytes :: Lens' BackupJob (Maybe Integer) Source #
The size, in bytes, of a backup.
backupJob_backupType :: Lens' BackupJob (Maybe Text) Source #
Represents the type of backup for a backup job.
backupJob_backupVaultArn :: Lens' BackupJob (Maybe Text) Source #
An Amazon Resource Name (ARN) that uniquely identifies a backup vault;
for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault
.
backupJob_backupVaultName :: Lens' BackupJob (Maybe Text) Source #
The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens.
backupJob_bytesTransferred :: Lens' BackupJob (Maybe Integer) Source #
The size in bytes transferred to a backup vault at the time that the job status was queried.
backupJob_completionDate :: Lens' BackupJob (Maybe UTCTime) Source #
The date and time a job to create a backup job 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.
backupJob_createdBy :: Lens' BackupJob (Maybe RecoveryPointCreator) Source #
Contains identifying information about the creation of a backup job,
including the BackupPlanArn
, BackupPlanId
, BackupPlanVersion
, and
BackupRuleId
of the backup plan used to create it.
backupJob_creationDate :: Lens' BackupJob (Maybe UTCTime) Source #
The date and time a backup 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.
backupJob_expectedCompletionDate :: Lens' BackupJob (Maybe UTCTime) Source #
The date and time a job to back up resources is expected to be
completed, in Unix format and Coordinated Universal Time (UTC). The
value of ExpectedCompletionDate
is accurate to milliseconds. For
example, the value 1516925490.087 represents Friday, January 26, 2018
12:11:30.087 AM.
backupJob_iamRoleArn :: Lens' BackupJob (Maybe Text) Source #
Specifies the IAM role ARN used to create the target recovery point. IAM
roles other than the default role must include either AWSBackup
or
AwsBackup
in the role name. For example,
arn:aws:iam::123456789012:role/AWSBackupRDSAccess
. Role names without
those strings lack permissions to perform backup jobs.
backupJob_isParent :: Lens' BackupJob (Maybe Bool) Source #
This is a boolean value indicating this is a parent (composite) backup job.
backupJob_parentJobId :: Lens' BackupJob (Maybe Text) Source #
This uniquely identifies a request to Backup to back up a resource. The return will be the parent (composite) job ID.
backupJob_percentDone :: Lens' BackupJob (Maybe Text) Source #
Contains an estimated percentage complete of a job at the time the job status was queried.
backupJob_recoveryPointArn :: Lens' BackupJob (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
.
backupJob_resourceArn :: Lens' BackupJob (Maybe Text) Source #
An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.
backupJob_resourceType :: Lens' BackupJob (Maybe Text) Source #
The type of Amazon Web Services resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only supported resource type is Amazon EC2.
backupJob_startBy :: Lens' BackupJob (Maybe UTCTime) Source #
Specifies the time in Unix format and Coordinated Universal Time (UTC)
when a backup job must be started before it is canceled. The value is
calculated by adding the start window to the scheduled time. So if the
scheduled time were 6:00 PM and the start window is 2 hours, the
StartBy
time would be 8:00 PM on the date specified. The value of
StartBy
is accurate to milliseconds. For example, the value
1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
backupJob_state :: Lens' BackupJob (Maybe BackupJobState) Source #
The current state of a resource recovery point.