blib/lib/Paws/Backup/UpdateBackupPlan.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Backup::UpdateBackupPlan;
3 use Moose;
4 has BackupPlan => (is => 'ro', isa => 'Paws::Backup::BackupPlanInput', required => 1);
5 has BackupPlanId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'backupPlanId', required => 1);
6  
7 use MooseX::ClassAttribute;
8  
9 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateBackupPlan');
10 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/backup/plans/{backupPlanId}');
11 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Backup::UpdateBackupPlanOutput');
13 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::Backup::UpdateBackupPlan - Arguments for method UpdateBackupPlan on L<Paws::Backup>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method UpdateBackupPlan on the
24 L<AWS Backup|Paws::Backup> service. Use the attributes of this class
25 as arguments to method UpdateBackupPlan.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateBackupPlan.
28  
29 =head1 SYNOPSIS
30  
31 my $backup = Paws->service('Backup');
32 my $UpdateBackupPlanOutput = $backup->UpdateBackupPlan(
33 BackupPlan => {
34 BackupPlanName => 'MyBackupPlanName',
35 Rules => [
36 {
37 RuleName => 'MyBackupRuleName',
38 TargetBackupVaultName => 'MyBackupVaultName',
39 CompletionWindowMinutes => 1, # OPTIONAL
40 CopyActions => [
41 {
42 DestinationBackupVaultArn => 'MyARN',
43 Lifecycle => {
44 DeleteAfterDays => 1, # OPTIONAL
45 MoveToColdStorageAfterDays => 1, # OPTIONAL
46 }, # OPTIONAL
47 },
48 ...
49 ], # OPTIONAL
50 EnableContinuousBackup => 1, # OPTIONAL
51 Lifecycle => {
52 DeleteAfterDays => 1, # OPTIONAL
53 MoveToColdStorageAfterDays => 1, # OPTIONAL
54 }, # OPTIONAL
55 RecoveryPointTags => { 'MyTagKey' => 'MyTagValue', }, # OPTIONAL
56 ScheduleExpression => 'MyCronExpression', # OPTIONAL
57 StartWindowMinutes => 1, # OPTIONAL
58 },
59 ...
60 ],
61 AdvancedBackupSettings => [
62 {
63 BackupOptions => { 'MyBackupOptionKey' => 'MyBackupOptionValue', }
64 , # OPTIONAL
65 ResourceType => 'MyResourceType', # OPTIONAL
66 },
67 ...
68 ], # OPTIONAL
69 },
70 BackupPlanId => 'Mystring',
71  
72 );
73  
74 # Results:
75 my $AdvancedBackupSettings =
76 $UpdateBackupPlanOutput->AdvancedBackupSettings;
77 my $BackupPlanArn = $UpdateBackupPlanOutput->BackupPlanArn;
78 my $BackupPlanId = $UpdateBackupPlanOutput->BackupPlanId;
79 my $CreationDate = $UpdateBackupPlanOutput->CreationDate;
80 my $VersionId = $UpdateBackupPlanOutput->VersionId;
81  
82 # Returns a L<Paws::Backup::UpdateBackupPlanOutput> object.
83  
84 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.
85 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/backup/UpdateBackupPlan>
86  
87 =head1 ATTRIBUTES
88  
89  
90 =head2 B<REQUIRED> BackupPlan => L<Paws::Backup::BackupPlanInput>
91  
92 Specifies the body of a backup plan. Includes a C<BackupPlanName> and
93 one or more sets of C<Rules>.
94  
95  
96  
97 =head2 B<REQUIRED> BackupPlanId => Str
98  
99 Uniquely identifies a backup plan.
100  
101  
102  
103  
104 =head1 SEE ALSO
105  
106 This class forms part of L<Paws>, documenting arguments for method UpdateBackupPlan in L<Paws::Backup>
107  
108 =head1 BUGS and CONTRIBUTIONS
109  
110 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
111  
112 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
113  
114 =cut
115