blib/lib/Paws/Inspector/AddAttributesToFindings.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::Inspector::AddAttributesToFindings;
3 use Moose;
4 has Attributes => (is => 'ro', isa => 'ArrayRef[Paws::Inspector::Attribute]', traits => ['NameInRequest'], request_name => 'attributes' , required => 1);
5 has FindingArns => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'findingArns' , required => 1);
6  
7 use MooseX::ClassAttribute;
8  
9 class_has _api_call => (isa => 'Str', is => 'ro', default => 'AddAttributesToFindings');
10 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Inspector::AddAttributesToFindingsResponse');
11 class_has _result_key => (isa => 'Str', is => 'ro');
12 1;
13  
14 ### main pod documentation begin ###
15  
16 =head1 NAME
17  
18 Paws::Inspector::AddAttributesToFindings - Arguments for method AddAttributesToFindings on L<Paws::Inspector>
19  
20 =head1 DESCRIPTION
21  
22 This class represents the parameters used for calling the method AddAttributesToFindings on the
23 L<Amazon Inspector|Paws::Inspector> service. Use the attributes of this class
24 as arguments to method AddAttributesToFindings.
25  
26 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AddAttributesToFindings.
27  
28 =head1 SYNOPSIS
29  
30 my $inspector = Paws->service('Inspector');
31 # Add attributes to findings
32 # Assigns attributes (key and value pairs) to the findings that are specified by
33 # the ARNs of the findings.
34 my $AddAttributesToFindingsResponse = $inspector->AddAttributesToFindings(
35 'Attributes' => [
36  
37 {
38 'Key' => 'Example',
39 'Value' => 'example'
40 }
41 ],
42 'FindingArns' => [
43 'arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-8l1VIE0D/run/0-Z02cjjug/finding/0-T8yM9mEU'
44 ]
45 );
46  
47 # Results:
48 my $failedItems = $AddAttributesToFindingsResponse->failedItems;
49  
50 # Returns a L<Paws::Inspector::AddAttributesToFindingsResponse> object.
51  
52 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.
53 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/inspector/AddAttributesToFindings>
54  
55 =head1 ATTRIBUTES
56  
57  
58 =head2 B<REQUIRED> Attributes => ArrayRef[L<Paws::Inspector::Attribute>]
59  
60 The array of attributes that you want to assign to specified findings.
61  
62  
63  
64 =head2 B<REQUIRED> FindingArns => ArrayRef[Str|Undef]
65  
66 The ARNs that specify the findings that you want to assign attributes
67 to.
68  
69  
70  
71  
72 =head1 SEE ALSO
73  
74 This class forms part of L<Paws>, documenting arguments for method AddAttributesToFindings in L<Paws::Inspector>
75  
76 =head1 BUGS and CONTRIBUTIONS
77  
78 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
79  
80 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
81  
82 =cut
83