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

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Backup::CreateBackupSelection;
3 use Moose;
4 has BackupPlanId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'backupPlanId', required => 1);
5 has BackupSelection => (is => 'ro', isa => 'Paws::Backup::BackupSelection', required => 1);
6 has CreatorRequestId => (is => 'ro', isa => 'Str');
7  
8 use MooseX::ClassAttribute;
9  
10 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateBackupSelection');
11 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/backup/plans/{backupPlanId}/selections/');
12 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Backup::CreateBackupSelectionOutput');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::Backup::CreateBackupSelection - Arguments for method CreateBackupSelection on L<Paws::Backup>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method CreateBackupSelection on the
25 L<AWS Backup|Paws::Backup> service. Use the attributes of this class
26 as arguments to method CreateBackupSelection.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateBackupSelection.
29  
30 =head1 SYNOPSIS
31  
32 my $backup = Paws->service('Backup');
33 my $CreateBackupSelectionOutput = $backup->CreateBackupSelection(
34 BackupPlanId => 'Mystring',
35 BackupSelection => {
36 IamRoleArn => 'MyIAMRoleArn',
37 SelectionName => 'MyBackupSelectionName',
38 ListOfTags => [
39 {
40 ConditionKey => 'MyConditionKey',
41 ConditionType => 'STRINGEQUALS', # values: STRINGEQUALS
42 ConditionValue => 'MyConditionValue',
43  
44 },
45 ...
46 ], # OPTIONAL
47 Resources => [ 'MyARN', ... ], # OPTIONAL
48 },
49 CreatorRequestId => 'Mystring', # OPTIONAL
50 );
51  
52 # Results:
53 my $BackupPlanId = $CreateBackupSelectionOutput->BackupPlanId;
54 my $CreationDate = $CreateBackupSelectionOutput->CreationDate;
55 my $SelectionId = $CreateBackupSelectionOutput->SelectionId;
56  
57 # Returns a L<Paws::Backup::CreateBackupSelectionOutput> object.
58  
59 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.
60 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/backup/CreateBackupSelection>
61  
62 =head1 ATTRIBUTES
63  
64  
65 =head2 B<REQUIRED> BackupPlanId => Str
66  
67 Uniquely identifies the backup plan to be associated with the selection
68 of resources.
69  
70  
71  
72 =head2 B<REQUIRED> BackupSelection => L<Paws::Backup::BackupSelection>
73  
74 Specifies the body of a request to assign a set of resources to a
75 backup plan.
76  
77  
78  
79 =head2 CreatorRequestId => Str
80  
81 A unique string that identifies the request and allows failed requests
82 to be retried without the risk of running the operation twice.
83  
84  
85  
86  
87 =head1 SEE ALSO
88  
89 This class forms part of L<Paws>, documenting arguments for method CreateBackupSelection in L<Paws::Backup>
90  
91 =head1 BUGS and CONTRIBUTIONS
92  
93 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
94  
95 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
96  
97 =cut
98