File Coverage

blib/lib/Paws/EC2/ModifyFpgaImageAttribute.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::ModifyFpgaImageAttribute;
3 1     1   298 use Moose;
  1         2  
  1         7  
4             has Attribute => (is => 'ro', isa => 'Str');
5             has Description => (is => 'ro', isa => 'Str');
6             has DryRun => (is => 'ro', isa => 'Bool');
7             has FpgaImageId => (is => 'ro', isa => 'Str', required => 1);
8             has LoadPermission => (is => 'ro', isa => 'Paws::EC2::LoadPermissionModifications');
9             has Name => (is => 'ro', isa => 'Str');
10             has OperationType => (is => 'ro', isa => 'Str');
11             has ProductCodes => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'ProductCode' );
12             has UserGroups => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'UserGroup' );
13             has UserIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'UserId' );
14              
15 1     1   5329 use MooseX::ClassAttribute;
  1         2  
  1         7  
16              
17             class_has _api_call => (isa => 'Str', is => 'ro', default => 'ModifyFpgaImageAttribute');
18             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::ModifyFpgaImageAttributeResult');
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::ModifyFpgaImageAttribute - Arguments for method ModifyFpgaImageAttribute on Paws::EC2
27              
28             =head1 DESCRIPTION
29              
30             This class represents the parameters used for calling the method ModifyFpgaImageAttribute on the
31             Amazon Elastic Compute Cloud service. Use the attributes of this class
32             as arguments to method ModifyFpgaImageAttribute.
33              
34             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ModifyFpgaImageAttribute.
35              
36             As an example:
37              
38             $service_obj->ModifyFpgaImageAttribute(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.
48              
49             Valid values are: C<"description">, C<"name">, C<"loadPermission">, C<"productCodes">
50              
51             =head2 Description => Str
52              
53             A description for the AFI.
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> FpgaImageId => Str
67              
68             The ID of the AFI.
69              
70              
71              
72             =head2 LoadPermission => L<Paws::EC2::LoadPermissionModifications>
73              
74             The load permission for the AFI.
75              
76              
77              
78             =head2 Name => Str
79              
80             A name for the AFI.
81              
82              
83              
84             =head2 OperationType => Str
85              
86             The operation type.
87              
88             Valid values are: C<"add">, C<"remove">
89              
90             =head2 ProductCodes => ArrayRef[Str|Undef]
91              
92             One or more product codes. After you add a product code to an AFI, it
93             can't be removed. This parameter is valid only when modifying the
94             C<productCodes> attribute.
95              
96              
97              
98             =head2 UserGroups => ArrayRef[Str|Undef]
99              
100             One or more user groups. This parameter is valid only when modifying
101             the C<loadPermission> attribute.
102              
103              
104              
105             =head2 UserIds => ArrayRef[Str|Undef]
106              
107             One or more AWS account IDs. This parameter is valid only when
108             modifying the C<loadPermission> attribute.
109              
110              
111              
112              
113             =head1 SEE ALSO
114              
115             This class forms part of L<Paws>, documenting arguments for method ModifyFpgaImageAttribute in L<Paws::EC2>
116              
117             =head1 BUGS and CONTRIBUTIONS
118              
119             The source code is located here: https://github.com/pplu/aws-sdk-perl
120              
121             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
122              
123             =cut
124