blib/lib/Paws/EFS/PutLifecycleConfiguration.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::EFS::PutLifecycleConfiguration;
3 use Moose;
4 has FileSystemId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'FileSystemId', required => 1);
5 has LifecyclePolicies => (is => 'ro', isa => 'ArrayRef[Paws::EFS::LifecyclePolicy]', required => 1);
6  
7 use MooseX::ClassAttribute;
8  
9 class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutLifecycleConfiguration');
10 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2015-02-01/file-systems/{FileSystemId}/lifecycle-configuration');
11 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EFS::LifecycleConfigurationDescription');
13 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::EFS::PutLifecycleConfiguration - Arguments for method PutLifecycleConfiguration on L<Paws::EFS>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method PutLifecycleConfiguration on the
24 L<Amazon Elastic File System|Paws::EFS> service. Use the attributes of this class
25 as arguments to method PutLifecycleConfiguration.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutLifecycleConfiguration.
28  
29 =head1 SYNOPSIS
30  
31 my $elasticfilesystem = Paws->service('EFS');
32 # Creates a new lifecycleconfiguration object for a file system
33 # This operation enables lifecycle management on a file system by creating a new
34 # LifecycleConfiguration object. A LifecycleConfiguration object defines when
35 # files in an Amazon EFS file system are automatically transitioned to the
36 # lower-cost EFS Infrequent Access (IA) storage class. A LifecycleConfiguration
37 # applies to all files in a file system.
38 my $LifecycleConfigurationDescription =
39 $elasticfilesystem->PutLifecycleConfiguration(
40 'FileSystemId' => 'fs-01234567',
41 'LifecyclePolicies' => [
42  
43 {
44 'TransitionToIA' => 'AFTER_30_DAYS'
45 }
46 ]
47 );
48  
49 # Results:
50 my $LifecyclePolicies =
51 $LifecycleConfigurationDescription->LifecyclePolicies;
52  
53 # Returns a L<Paws::EFS::LifecycleConfigurationDescription> object.
54  
55 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.
56 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem/PutLifecycleConfiguration>
57  
58 =head1 ATTRIBUTES
59  
60  
61 =head2 B<REQUIRED> FileSystemId => Str
62  
63 The ID of the file system for which you are creating the
64 C<LifecycleConfiguration> object (String).
65  
66  
67  
68 =head2 B<REQUIRED> LifecyclePolicies => ArrayRef[L<Paws::EFS::LifecyclePolicy>]
69  
70 An array of C<LifecyclePolicy> objects that define the file system's
71 C<LifecycleConfiguration> object. A C<LifecycleConfiguration> object
72 tells lifecycle management when to transition files from the Standard
73 storage class to the Infrequent Access storage class.
74  
75  
76  
77  
78 =head1 SEE ALSO
79  
80 This class forms part of L<Paws>, documenting arguments for method PutLifecycleConfiguration in L<Paws::EFS>
81  
82 =head1 BUGS and CONTRIBUTIONS
83  
84 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
85  
86 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
87  
88 =cut
89