« blib/lib/Paws/Backup/UpdateGlobalSettings.pm
↑ Summary
blib/lib/Paws/Backup/UpdateRecoveryPointLifecycleOutput.pm »
| 1 | |||
| 2 | package Paws::Backup::UpdateRecoveryPointLifecycle; | ||
| 3 | use Moose; | ||
| 4 | has BackupVaultName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'backupVaultName', required => 1); | ||
| 5 | has Lifecycle => (is => 'ro', isa => 'Paws::Backup::Lifecycle'); | ||
| 6 | has RecoveryPointArn => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'recoveryPointArn', required => 1); | ||
| 7 | |||
| 8 | use MooseX::ClassAttribute; | ||
| 9 | |||
| 10 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateRecoveryPointLifecycle'); | ||
| 11 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/backup-vaults/{backupVaultName}/recovery-points/{recoveryPointArn}'); | ||
| 12 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 13 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Backup::UpdateRecoveryPointLifecycleOutput'); | ||
| 14 | 1; | ||
| 15 | |||
| 16 | ### main pod documentation begin ### | ||
| 17 | |||
| 18 | =head1 NAME | ||
| 19 | |||
| 20 | Paws::Backup::UpdateRecoveryPointLifecycle - Arguments for method UpdateRecoveryPointLifecycle on L<Paws::Backup> | ||
| 21 | |||
| 22 | =head1 DESCRIPTION | ||
| 23 | |||
| 24 | This class represents the parameters used for calling the method UpdateRecoveryPointLifecycle on the | ||
| 25 | L<AWS Backup|Paws::Backup> service. Use the attributes of this class | ||
| 26 | as arguments to method UpdateRecoveryPointLifecycle. | ||
| 27 | |||
| 28 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateRecoveryPointLifecycle. | ||
| 29 | |||
| 30 | =head1 SYNOPSIS | ||
| 31 | |||
| 32 | my $backup = Paws->service('Backup'); | ||
| 33 | my $UpdateRecoveryPointLifecycleOutput = | ||
| 34 | $backup->UpdateRecoveryPointLifecycle( | ||
| 35 | BackupVaultName => 'MyBackupVaultName', | ||
| 36 | RecoveryPointArn => 'MyARN', | ||
| 37 | Lifecycle => { | ||
| 38 | DeleteAfterDays => 1, # OPTIONAL | ||
| 39 | MoveToColdStorageAfterDays => 1, # OPTIONAL | ||
| 40 | }, # OPTIONAL | ||
| 41 | ); | ||
| 42 | |||
| 43 | # Results: | ||
| 44 | my $BackupVaultArn = $UpdateRecoveryPointLifecycleOutput->BackupVaultArn; | ||
| 45 | my $CalculatedLifecycle = | ||
| 46 | $UpdateRecoveryPointLifecycleOutput->CalculatedLifecycle; | ||
| 47 | my $Lifecycle = $UpdateRecoveryPointLifecycleOutput->Lifecycle; | ||
| 48 | my $RecoveryPointArn = | ||
| 49 | $UpdateRecoveryPointLifecycleOutput->RecoveryPointArn; | ||
| 50 | |||
| 51 | # Returns a L<Paws::Backup::UpdateRecoveryPointLifecycleOutput> object. | ||
| 52 | |||
| 53 | Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. | ||
| 54 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/backup/UpdateRecoveryPointLifecycle> | ||
| 55 | |||
| 56 | =head1 ATTRIBUTES | ||
| 57 | |||
| 58 | |||
| 59 | =head2 B<REQUIRED> BackupVaultName => Str | ||
| 60 | |||
| 61 | The name of a logical container where backups are stored. Backup vaults | ||
| 62 | are identified by names that are unique to the account used to create | ||
| 63 | them and the AWS Region where they are created. They consist of | ||
| 64 | lowercase letters, numbers, and hyphens. | ||
| 65 | |||
| 66 | |||
| 67 | |||
| 68 | =head2 Lifecycle => L<Paws::Backup::Lifecycle> | ||
| 69 | |||
| 70 | The lifecycle defines when a protected resource is transitioned to cold | ||
| 71 | storage and when it expires. AWS Backup transitions and expires backups | ||
| 72 | automatically according to the lifecycle that you define. | ||
| 73 | |||
| 74 | Backups transitioned to cold storage must be stored in cold storage for | ||
| 75 | a minimum of 90 days. Therefore, the E<ldquo>expire after daysE<rdquo> | ||
| 76 | setting must be 90 days greater than the E<ldquo>transition to cold | ||
| 77 | after daysE<rdquo> setting. The E<ldquo>transition to cold after | ||
| 78 | daysE<rdquo> setting cannot be changed after a backup has been | ||
| 79 | transitioned to cold. | ||
| 80 | |||
| 81 | |||
| 82 | |||
| 83 | =head2 B<REQUIRED> RecoveryPointArn => Str | ||
| 84 | |||
| 85 | An Amazon Resource Name (ARN) that uniquely identifies a recovery | ||
| 86 | point; for example, | ||
| 87 | C<arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45>. | ||
| 88 | |||
| 89 | |||
| 90 | |||
| 91 | |||
| 92 | =head1 SEE ALSO | ||
| 93 | |||
| 94 | This class forms part of L<Paws>, documenting arguments for method UpdateRecoveryPointLifecycle in L<Paws::Backup> | ||
| 95 | |||
| 96 | =head1 BUGS and CONTRIBUTIONS | ||
| 97 | |||
| 98 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 99 | |||
| 100 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 101 | |||
| 102 | =cut | ||
| 103 |