libZSservicesZSamazonka-backupZSamazonka-backup
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Backup.UpdateRecoveryPointLifecycle

Description

Sets the transition lifecycle of a recovery point.

The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define.

Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.

Only Amazon EFS file system backups can be transitioned to cold storage.

Does not support continuous backups.

Synopsis

Creating a Request

data UpdateRecoveryPointLifecycle Source #

See: newUpdateRecoveryPointLifecycle smart constructor.

Constructors

UpdateRecoveryPointLifecycle' 

Fields

  • lifecycle :: Maybe Lifecycle

    The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define.

    Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.

  • backupVaultName :: Text

    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.

  • recoveryPointArn :: Text

    An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.

Instances

Instances details
Eq UpdateRecoveryPointLifecycle Source # 
Instance details

Defined in Amazonka.Backup.UpdateRecoveryPointLifecycle

Read UpdateRecoveryPointLifecycle Source # 
Instance details

Defined in Amazonka.Backup.UpdateRecoveryPointLifecycle

Show UpdateRecoveryPointLifecycle Source # 
Instance details

Defined in Amazonka.Backup.UpdateRecoveryPointLifecycle

Generic UpdateRecoveryPointLifecycle Source # 
Instance details

Defined in Amazonka.Backup.UpdateRecoveryPointLifecycle

Associated Types

type Rep UpdateRecoveryPointLifecycle :: Type -> Type #

NFData UpdateRecoveryPointLifecycle Source # 
Instance details

Defined in Amazonka.Backup.UpdateRecoveryPointLifecycle

Hashable UpdateRecoveryPointLifecycle Source # 
Instance details

Defined in Amazonka.Backup.UpdateRecoveryPointLifecycle

ToJSON UpdateRecoveryPointLifecycle Source # 
Instance details

Defined in Amazonka.Backup.UpdateRecoveryPointLifecycle

AWSRequest UpdateRecoveryPointLifecycle Source # 
Instance details

Defined in Amazonka.Backup.UpdateRecoveryPointLifecycle

ToHeaders UpdateRecoveryPointLifecycle Source # 
Instance details

Defined in Amazonka.Backup.UpdateRecoveryPointLifecycle

ToPath UpdateRecoveryPointLifecycle Source # 
Instance details

Defined in Amazonka.Backup.UpdateRecoveryPointLifecycle

ToQuery UpdateRecoveryPointLifecycle Source # 
Instance details

Defined in Amazonka.Backup.UpdateRecoveryPointLifecycle

type Rep UpdateRecoveryPointLifecycle Source # 
Instance details

Defined in Amazonka.Backup.UpdateRecoveryPointLifecycle

type Rep UpdateRecoveryPointLifecycle = D1 ('MetaData "UpdateRecoveryPointLifecycle" "Amazonka.Backup.UpdateRecoveryPointLifecycle" "libZSservicesZSamazonka-backupZSamazonka-backup" 'False) (C1 ('MetaCons "UpdateRecoveryPointLifecycle'" 'PrefixI 'True) (S1 ('MetaSel ('Just "lifecycle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Lifecycle)) :*: (S1 ('MetaSel ('Just "backupVaultName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "recoveryPointArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse UpdateRecoveryPointLifecycle Source # 
Instance details

Defined in Amazonka.Backup.UpdateRecoveryPointLifecycle

newUpdateRecoveryPointLifecycle Source #

Create a value of UpdateRecoveryPointLifecycle 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:lifecycle:UpdateRecoveryPointLifecycle', updateRecoveryPointLifecycle_lifecycle - The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define.

Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.

$sel:backupVaultName:UpdateRecoveryPointLifecycle', updateRecoveryPointLifecycle_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:recoveryPointArn:UpdateRecoveryPointLifecycle', updateRecoveryPointLifecycle_recoveryPointArn - An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.

Request Lenses

updateRecoveryPointLifecycle_lifecycle :: Lens' UpdateRecoveryPointLifecycle (Maybe Lifecycle) Source #

The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define.

Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.

updateRecoveryPointLifecycle_backupVaultName :: Lens' UpdateRecoveryPointLifecycle 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.

updateRecoveryPointLifecycle_recoveryPointArn :: Lens' UpdateRecoveryPointLifecycle Text Source #

An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.

Destructuring the Response

data UpdateRecoveryPointLifecycleResponse Source #

Constructors

UpdateRecoveryPointLifecycleResponse' 

Fields

  • calculatedLifecycle :: Maybe CalculatedLifecycle

    A CalculatedLifecycle object containing DeleteAt and MoveToColdStorageAt timestamps.

  • lifecycle :: Maybe Lifecycle

    The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define.

    Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.

    Only Amazon EFS file system backups can be transitioned to cold storage.

  • backupVaultArn :: Maybe Text

    An ARN that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

  • recoveryPointArn :: Maybe Text

    An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq UpdateRecoveryPointLifecycleResponse Source # 
Instance details

Defined in Amazonka.Backup.UpdateRecoveryPointLifecycle

Read UpdateRecoveryPointLifecycleResponse Source # 
Instance details

Defined in Amazonka.Backup.UpdateRecoveryPointLifecycle

Show UpdateRecoveryPointLifecycleResponse Source # 
Instance details

Defined in Amazonka.Backup.UpdateRecoveryPointLifecycle

Generic UpdateRecoveryPointLifecycleResponse Source # 
Instance details

Defined in Amazonka.Backup.UpdateRecoveryPointLifecycle

NFData UpdateRecoveryPointLifecycleResponse Source # 
Instance details

Defined in Amazonka.Backup.UpdateRecoveryPointLifecycle

type Rep UpdateRecoveryPointLifecycleResponse Source # 
Instance details

Defined in Amazonka.Backup.UpdateRecoveryPointLifecycle

type Rep UpdateRecoveryPointLifecycleResponse = D1 ('MetaData "UpdateRecoveryPointLifecycleResponse" "Amazonka.Backup.UpdateRecoveryPointLifecycle" "libZSservicesZSamazonka-backupZSamazonka-backup" 'False) (C1 ('MetaCons "UpdateRecoveryPointLifecycleResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "calculatedLifecycle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CalculatedLifecycle)) :*: S1 ('MetaSel ('Just "lifecycle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Lifecycle))) :*: (S1 ('MetaSel ('Just "backupVaultArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "recoveryPointArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newUpdateRecoveryPointLifecycleResponse Source #

Create a value of UpdateRecoveryPointLifecycleResponse 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:calculatedLifecycle:UpdateRecoveryPointLifecycleResponse', updateRecoveryPointLifecycleResponse_calculatedLifecycle - A CalculatedLifecycle object containing DeleteAt and MoveToColdStorageAt timestamps.

$sel:lifecycle:UpdateRecoveryPointLifecycle', updateRecoveryPointLifecycleResponse_lifecycle - The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define.

Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.

Only Amazon EFS file system backups can be transitioned to cold storage.

$sel:backupVaultArn:UpdateRecoveryPointLifecycleResponse', updateRecoveryPointLifecycleResponse_backupVaultArn - An ARN that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

$sel:recoveryPointArn:UpdateRecoveryPointLifecycle', updateRecoveryPointLifecycleResponse_recoveryPointArn - An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.

$sel:httpStatus:UpdateRecoveryPointLifecycleResponse', updateRecoveryPointLifecycleResponse_httpStatus - The response's http status code.

Response Lenses

updateRecoveryPointLifecycleResponse_calculatedLifecycle :: Lens' UpdateRecoveryPointLifecycleResponse (Maybe CalculatedLifecycle) Source #

A CalculatedLifecycle object containing DeleteAt and MoveToColdStorageAt timestamps.

updateRecoveryPointLifecycleResponse_lifecycle :: Lens' UpdateRecoveryPointLifecycleResponse (Maybe Lifecycle) Source #

The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define.

Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.

Only Amazon EFS file system backups can be transitioned to cold storage.

updateRecoveryPointLifecycleResponse_backupVaultArn :: Lens' UpdateRecoveryPointLifecycleResponse (Maybe Text) Source #

An ARN that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.

updateRecoveryPointLifecycleResponse_recoveryPointArn :: Lens' UpdateRecoveryPointLifecycleResponse (Maybe Text) Source #

An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.