File Coverage

blib/lib/Paws/EC2/ModifySnapshotAttribute.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::EC2::ModifySnapshotAttribute;
3 1     1   1241 use Moose;
  1     1   4  
  1         11  
  1         418  
  1         2  
  1         7  
4             has Attribute => (is => 'ro', isa => 'Str');
5             has CreateVolumePermission => (is => 'ro', isa => 'Paws::EC2::CreateVolumePermissionModifications');
6             has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
7             has GroupNames => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'UserGroup' );
8             has OperationType => (is => 'ro', isa => 'Str');
9             has SnapshotId => (is => 'ro', isa => 'Str', required => 1);
10             has UserIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'UserId' );
11              
12 1     1   13113 use MooseX::ClassAttribute;
  1     1   5  
  1         12  
  1         5838  
  1         2  
  1         7  
13              
14             class_has _api_call => (isa => 'Str', is => 'ro', default => 'ModifySnapshotAttribute');
15             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
16             class_has _result_key => (isa => 'Str', is => 'ro');
17             1;
18              
19             ### main pod documentation begin ###
20              
21             =head1 NAME
22              
23             Paws::EC2::ModifySnapshotAttribute - Arguments for method ModifySnapshotAttribute on Paws::EC2
24              
25             =head1 DESCRIPTION
26              
27             This class represents the parameters used for calling the method ModifySnapshotAttribute on the
28             Amazon Elastic Compute Cloud service. Use the attributes of this class
29             as arguments to method ModifySnapshotAttribute.
30              
31             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ModifySnapshotAttribute.
32              
33             As an example:
34              
35             $service_obj->ModifySnapshotAttribute(Att1 => $value1, Att2 => $value2, ...);
36              
37             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.
38              
39             =head1 ATTRIBUTES
40              
41              
42             =head2 Attribute => Str
43              
44             The snapshot attribute to modify.
45              
46             Only volume creation permissions may be modified at the customer level.
47              
48             Valid values are: C<"productCodes">, C<"createVolumePermission">
49              
50             =head2 CreateVolumePermission => L<Paws::EC2::CreateVolumePermissionModifications>
51              
52             A JSON representation of the snapshot attribute modification.
53              
54              
55              
56             =head2 DryRun => Bool
57              
58             Checks whether you have the required permissions for the action,
59             without actually making the request, and provides an error response. If
60             you have the required permissions, the error response is
61             C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
62              
63              
64              
65             =head2 GroupNames => ArrayRef[Str|Undef]
66              
67             The group to modify for the snapshot.
68              
69              
70              
71             =head2 OperationType => Str
72              
73             The type of operation to perform to the attribute.
74              
75             Valid values are: C<"add">, C<"remove">
76              
77             =head2 B<REQUIRED> SnapshotId => Str
78              
79             The ID of the snapshot.
80              
81              
82              
83             =head2 UserIds => ArrayRef[Str|Undef]
84              
85             The account ID to modify for the snapshot.
86              
87              
88              
89              
90             =head1 SEE ALSO
91              
92             This class forms part of L<Paws>, documenting arguments for method ModifySnapshotAttribute in L<Paws::EC2>
93              
94             =head1 BUGS and CONTRIBUTIONS
95              
96             The source code is located here: https://github.com/pplu/aws-sdk-perl
97              
98             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
99              
100             =cut
101