File Coverage

blib/lib/Paws/EC2/ModifyImageAttribute.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::EC2::ModifyImageAttribute;
3 1     1   290 use Moose;
  1         3  
  1         5  
4             has Attribute => (is => 'ro', isa => 'Str');
5             has Description => (is => 'ro', isa => 'Paws::EC2::AttributeValue');
6             has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
7             has ImageId => (is => 'ro', isa => 'Str', required => 1);
8             has LaunchPermission => (is => 'ro', isa => 'Paws::EC2::LaunchPermissionModifications');
9             has OperationType => (is => 'ro', isa => 'Str');
10             has ProductCodes => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'ProductCode' );
11             has UserGroups => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'UserGroup' );
12             has UserIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'UserId' );
13             has Value => (is => 'ro', isa => 'Str');
14              
15 1     1   5302 use MooseX::ClassAttribute;
  1         3  
  1         5  
16              
17             class_has _api_call => (isa => 'Str', is => 'ro', default => 'ModifyImageAttribute');
18             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
19             class_has _result_key => (isa => 'Str', is => 'ro');
20             1;
21              
22             ### main pod documentation begin ###
23              
24             =head1 NAME
25              
26             Paws::EC2::ModifyImageAttribute - Arguments for method ModifyImageAttribute on Paws::EC2
27              
28             =head1 DESCRIPTION
29              
30             This class represents the parameters used for calling the method ModifyImageAttribute on the
31             Amazon Elastic Compute Cloud service. Use the attributes of this class
32             as arguments to method ModifyImageAttribute.
33              
34             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ModifyImageAttribute.
35              
36             As an example:
37              
38             $service_obj->ModifyImageAttribute(Att1 => $value1, Att2 => $value2, ...);
39              
40             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.
41              
42             =head1 ATTRIBUTES
43              
44              
45             =head2 Attribute => Str
46              
47             The name of the attribute to modify.
48              
49              
50              
51             =head2 Description => L<Paws::EC2::AttributeValue>
52              
53             A description for the AMI.
54              
55              
56              
57             =head2 DryRun => Bool
58              
59             Checks whether you have the required permissions for the action,
60             without actually making the request, and provides an error response. If
61             you have the required permissions, the error response is
62             C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
63              
64              
65              
66             =head2 B<REQUIRED> ImageId => Str
67              
68             The ID of the AMI.
69              
70              
71              
72             =head2 LaunchPermission => L<Paws::EC2::LaunchPermissionModifications>
73              
74             A launch permission modification.
75              
76              
77              
78             =head2 OperationType => Str
79              
80             The operation type.
81              
82             Valid values are: C<"add">, C<"remove">
83              
84             =head2 ProductCodes => ArrayRef[Str|Undef]
85              
86             One or more product codes. After you add a product code to an AMI, it
87             can't be removed. This is only valid when modifying the C<productCodes>
88             attribute.
89              
90              
91              
92             =head2 UserGroups => ArrayRef[Str|Undef]
93              
94             One or more user groups. This is only valid when modifying the
95             C<launchPermission> attribute.
96              
97              
98              
99             =head2 UserIds => ArrayRef[Str|Undef]
100              
101             One or more AWS account IDs. This is only valid when modifying the
102             C<launchPermission> attribute.
103              
104              
105              
106             =head2 Value => Str
107              
108             The value of the attribute being modified. This is only valid when
109             modifying the C<description> attribute.
110              
111              
112              
113              
114             =head1 SEE ALSO
115              
116             This class forms part of L<Paws>, documenting arguments for method ModifyImageAttribute in L<Paws::EC2>
117              
118             =head1 BUGS and CONTRIBUTIONS
119              
120             The source code is located here: https://github.com/pplu/aws-sdk-perl
121              
122             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
123              
124             =cut
125