blib/lib/Paws/Inspector/ListAssessmentRuns.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Inspector::ListAssessmentRuns;
3 use Moose;
4 has AssessmentTemplateArns => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'assessmentTemplateArns' );
5 has Filter => (is => 'ro', isa => 'Paws::Inspector::AssessmentRunFilter', traits => ['NameInRequest'], request_name => 'filter' );
6 has MaxResults => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'maxResults' );
7 has NextToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'nextToken' );
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ListAssessmentRuns');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Inspector::ListAssessmentRunsResponse');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::Inspector::ListAssessmentRuns - Arguments for method ListAssessmentRuns on L<Paws::Inspector>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method ListAssessmentRuns on the
25 L<Amazon Inspector|Paws::Inspector> service. Use the attributes of this class
26 as arguments to method ListAssessmentRuns.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ListAssessmentRuns.
29  
30 =head1 SYNOPSIS
31  
32 my $inspector = Paws->service('Inspector');
33 # List assessment runs
34 # Lists the assessment runs that correspond to the assessment templates that are
35 # specified by the ARNs of the assessment templates.
36 my $ListAssessmentRunsResponse = $inspector->ListAssessmentRuns(
37 'AssessmentTemplateArns' => [
38 'arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw'
39 ],
40 'MaxResults' => 123
41 );
42  
43 # Results:
44 my $assessmentRunArns = $ListAssessmentRunsResponse->assessmentRunArns;
45 my $nextToken = $ListAssessmentRunsResponse->nextToken;
46  
47 # Returns a L<Paws::Inspector::ListAssessmentRunsResponse> object.
48  
49 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.
50 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/inspector/ListAssessmentRuns>
51  
52 =head1 ATTRIBUTES
53  
54  
55 =head2 AssessmentTemplateArns => ArrayRef[Str|Undef]
56  
57 The ARNs that specify the assessment templates whose assessment runs
58 you want to list.
59  
60  
61  
62 =head2 Filter => L<Paws::Inspector::AssessmentRunFilter>
63  
64 You can use this parameter to specify a subset of data to be included
65 in the action's response.
66  
67 For a record to match a filter, all specified filter attributes must
68 match. When multiple values are specified for a filter attribute, any
69 of the values can match.
70  
71  
72  
73 =head2 MaxResults => Int
74  
75 You can use this parameter to indicate the maximum number of items that
76 you want in the response. The default value is 10. The maximum value is
77 500.
78  
79  
80  
81 =head2 NextToken => Str
82  
83 You can use this parameter when paginating results. Set the value of
84 this parameter to null on your first call to the B<ListAssessmentRuns>
85 action. Subsequent calls to the action fill B<nextToken> in the request
86 with the value of B<NextToken> from the previous response to continue
87 listing data.
88  
89  
90  
91  
92 =head1 SEE ALSO
93  
94 This class forms part of L<Paws>, documenting arguments for method ListAssessmentRuns in L<Paws::Inspector>
95  
96 =head1 BUGS and CONTRIBUTIONS
97  
98 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
99  
100 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
101  
102 =cut
103