blib/lib/Paws/Inspector/ListAssessmentTemplates.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::ListAssessmentTemplates;
3 use Moose;
4 has AssessmentTargetArns => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'assessmentTargetArns' );
5 has Filter => (is => 'ro', isa => 'Paws::Inspector::AssessmentTemplateFilter', 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 => 'ListAssessmentTemplates');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Inspector::ListAssessmentTemplatesResponse');
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::ListAssessmentTemplates - Arguments for method ListAssessmentTemplates on L<Paws::Inspector>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method ListAssessmentTemplates on the
25 L<Amazon Inspector|Paws::Inspector> service. Use the attributes of this class
26 as arguments to method ListAssessmentTemplates.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ListAssessmentTemplates.
29  
30 =head1 SYNOPSIS
31  
32 my $inspector = Paws->service('Inspector');
33 # List assessment templates
34 # Lists the assessment templates that correspond to the assessment targets that
35 # are specified by the ARNs of the assessment targets.
36 my $ListAssessmentTemplatesResponse = $inspector->ListAssessmentTemplates(
37 'AssessmentTargetArns' =>
38 ['arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq'],
39 'MaxResults' => 123
40 );
41  
42 # Results:
43 my $assessmentTemplateArns =
44 $ListAssessmentTemplatesResponse->assessmentTemplateArns;
45 my $nextToken = $ListAssessmentTemplatesResponse->nextToken;
46  
47 # Returns a L<Paws::Inspector::ListAssessmentTemplatesResponse> 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/ListAssessmentTemplates>
51  
52 =head1 ATTRIBUTES
53  
54  
55 =head2 AssessmentTargetArns => ArrayRef[Str|Undef]
56  
57 A list of ARNs that specifies the assessment targets whose assessment
58 templates you want to list.
59  
60  
61  
62 =head2 Filter => L<Paws::Inspector::AssessmentTemplateFilter>
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 you
76 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
85 B<ListAssessmentTemplates> action. Subsequent calls to the action fill
86 B<nextToken> in the request with the value of B<NextToken> from the
87 previous response to continue listing data.
88  
89  
90  
91  
92 =head1 SEE ALSO
93  
94 This class forms part of L<Paws>, documenting arguments for method ListAssessmentTemplates 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