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 |
Synopsis
- data BackupJob = BackupJob' {
- iamRoleArn :: Maybe Text
- state :: Maybe BackupJobState
- resourceType :: Maybe Text
- percentDone :: Maybe Text
- startBy :: Maybe POSIX
- createdBy :: Maybe RecoveryPointCreator
- expectedCompletionDate :: Maybe POSIX
- bytesTransferred :: Maybe Integer
- backupVaultArn :: Maybe Text
- accountId :: Maybe Text
- backupJobId :: Maybe Text
- resourceArn :: Maybe Text
- statusMessage :: Maybe Text
- recoveryPointArn :: Maybe Text
- backupSizeInBytes :: Maybe Integer
- creationDate :: Maybe POSIX
- completionDate :: Maybe POSIX
- backupVaultName :: Maybe Text
- backupType :: Maybe Text
- backupOptions :: Maybe (HashMap Text Text)
- newBackupJob :: BackupJob
- backupJob_iamRoleArn :: Lens' BackupJob (Maybe Text)
- backupJob_state :: Lens' BackupJob (Maybe BackupJobState)
- backupJob_resourceType :: Lens' BackupJob (Maybe Text)
- backupJob_percentDone :: Lens' BackupJob (Maybe Text)
- backupJob_startBy :: Lens' BackupJob (Maybe UTCTime)
- backupJob_createdBy :: Lens' BackupJob (Maybe RecoveryPointCreator)
- backupJob_expectedCompletionDate :: Lens' BackupJob (Maybe UTCTime)
- backupJob_bytesTransferred :: Lens' BackupJob (Maybe Integer)
- backupJob_backupVaultArn :: Lens' BackupJob (Maybe Text)
- backupJob_accountId :: Lens' BackupJob (Maybe Text)
- backupJob_backupJobId :: Lens' BackupJob (Maybe Text)
- backupJob_resourceArn :: Lens' BackupJob (Maybe Text)
- backupJob_statusMessage :: Lens' BackupJob (Maybe Text)
- backupJob_recoveryPointArn :: Lens' BackupJob (Maybe Text)
- backupJob_backupSizeInBytes :: Lens' BackupJob (Maybe Integer)
- backupJob_creationDate :: Lens' BackupJob (Maybe UTCTime)
- backupJob_completionDate :: Lens' BackupJob (Maybe UTCTime)
- backupJob_backupVaultName :: Lens' BackupJob (Maybe Text)
- backupJob_backupType :: Lens' BackupJob (Maybe Text)
- backupJob_backupOptions :: Lens' BackupJob (Maybe (HashMap Text Text))
Documentation
Contains detailed information about a backup job.
See: newBackupJob
smart constructor.
BackupJob' | |
|
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: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:state:BackupJob'
, backupJob_state
- The current state of a resource recovery point.
$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:percentDone:BackupJob'
, backupJob_percentDone
- Contains an estimated percentage complete of a job at the time the job
status was queried.
$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: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: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:bytesTransferred:BackupJob'
, backupJob_bytesTransferred
- The size in bytes transferred to a backup vault at the time that the job
status was queried.
$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: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:resourceArn:BackupJob'
, backupJob_resourceArn
- An ARN that uniquely identifies a resource. The format of the ARN
depends on the resource type.
$sel:statusMessage:BackupJob'
, backupJob_statusMessage
- A detailed message explaining the status of the job to back up a
resource.
$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:backupSizeInBytes:BackupJob'
, backupJob_backupSizeInBytes
- The size, in bytes, of a backup.
$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: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: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:backupType:BackupJob'
, backupJob_backupType
- Represents the type of backup for a backup job.
$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.
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_state :: Lens' BackupJob (Maybe BackupJobState) Source #
The current state of a resource recovery point.
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_percentDone :: Lens' BackupJob (Maybe Text) Source #
Contains an estimated percentage complete of a job at the time the job status was queried.
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_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_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_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_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_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_resourceArn :: Lens' BackupJob (Maybe Text) Source #
An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.
backupJob_statusMessage :: Lens' BackupJob (Maybe Text) Source #
A detailed message explaining the status of the job to back up a resource.
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_backupSizeInBytes :: Lens' BackupJob (Maybe Integer) Source #
The size, in bytes, of a backup.
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_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_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_backupType :: Lens' BackupJob (Maybe Text) Source #
Represents the type of backup for a backup job.
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.