blib/lib/Paws/Glacier/SetDataRetrievalPolicy.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 15 / 15 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/Glacier/RemoveTagsFromVault.pm ↑ Summary blib/lib/Paws/Glacier/SetVaultAccessPolicy.pm »
1  
2 package Paws::Glacier::SetDataRetrievalPolicy;
3 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 has AccountId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'accountId', required => 1);
5 1 has Policy => (is => 'ro', isa => 'Paws::Glacier::DataRetrievalPolicy');
6  
7 1 ▶ use MooseX::ClassAttribute;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 class_has _api_call => (isa => 'Str', is => 'ro', default => 'SetDataRetrievalPolicy');
10 1 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/{accountId}/policies/data-retrieval');
11 1 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
12 1 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
13 1 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::Glacier::SetDataRetrievalPolicy - Arguments for method SetDataRetrievalPolicy on L<Paws::Glacier>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method SetDataRetrievalPolicy on the
24 L<Amazon Glacier|Paws::Glacier> service. Use the attributes of this class
25 as arguments to method SetDataRetrievalPolicy.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to SetDataRetrievalPolicy.
28  
29 =head1 SYNOPSIS
30  
31 my $glacier = Paws->service('Glacier');
32 # To set and then enact a data retrieval policy
33 # The example sets and then enacts a data retrieval policy.
34 $glacier->SetDataRetrievalPolicy(
35 'Policy' => {
36 'Rules' => [
37  
38 {
39 'BytesPerHour' => 10737418240,
40 'Strategy' => 'BytesPerHour'
41 }
42 ]
43 },
44 'AccountId' => '-'
45 );
46  
47  
48 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.
49 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/glacier/SetDataRetrievalPolicy>
50  
51 =head1 ATTRIBUTES
52  
53  
54 =head2 B<REQUIRED> AccountId => Str
55  
56 The C<AccountId> value is the AWS account ID. This value must match the
57 AWS account ID associated with the credentials used to sign the
58 request. You can either specify an AWS account ID or optionally a
59 single 'C<->' (hyphen), in which case Amazon Glacier uses the AWS
60 account ID associated with the credentials used to sign the request. If
61 you specify your account ID, do not include any hyphens ('-') in the
62 ID.
63  
64  
65  
66 =head2 Policy => L<Paws::Glacier::DataRetrievalPolicy>
67  
68 The data retrieval policy in JSON format.
69  
70  
71  
72  
73 =head1 SEE ALSO
74  
75 This class forms part of L<Paws>, documenting arguments for method SetDataRetrievalPolicy in L<Paws::Glacier>
76  
77 =head1 BUGS and CONTRIBUTIONS
78  
79 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
80  
81 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
82  
83 =cut
84  
« blib/lib/Paws/Glacier/RemoveTagsFromVault.pm ↑ Summary blib/lib/Paws/Glacier/SetVaultAccessPolicy.pm »