blib/lib/Paws/Inspector.pm untested

filter: Statementstmt 0.0% 0 / 306 Branchbran 0.0% 0 / 36 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 53 Podpod 0.0% 0 / 52 totaltotal 0.0% 0 / 447 CC 19 SCAR 17.6
CC
19
Cov
0%
ListAllAssessmentRunAgents
12.0
ListAllAssessmentRuns
12.0
ListAllAssessmentTargets
12.0
CRAP 5.8
1 package Paws::Inspector;
2 use Moose;
3 sub service { 'inspector' }
4 sub signing_name { 'inspector' }
5 sub version { '2016-02-16' }
6 sub target_prefix { 'InspectorService' }
7 sub json_version { "1.1" }
8 has max_attempts => (is => 'ro', isa => 'Int', default => 5);
9 has retry => (is => 'ro', isa => 'HashRef', default => sub {
10 { base => 'rand', type => 'exponential', growth_factor => 2 }
11 });
12 has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [
13 ] });
14  
15 with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::JsonCaller';
16  
17
18 sub AddAttributesToFindings {
19 my $self = shift;
20 my $call_object = $self->new_with_coercions('Paws::Inspector::AddAttributesToFindings', @_);
21 return $self->caller->do_call($self, $call_object);
22 }
23 sub CreateAssessmentTarget {
24 my $self = shift;
25 my $call_object = $self->new_with_coercions('Paws::Inspector::CreateAssessmentTarget', @_);
26 return $self->caller->do_call($self, $call_object);
27 }
28 sub CreateAssessmentTemplate {
29 my $self = shift;
30 my $call_object = $self->new_with_coercions('Paws::Inspector::CreateAssessmentTemplate', @_);
31 return $self->caller->do_call($self, $call_object);
32 }
33 sub CreateExclusionsPreview {
34 my $self = shift;
35 my $call_object = $self->new_with_coercions('Paws::Inspector::CreateExclusionsPreview', @_);
36 return $self->caller->do_call($self, $call_object);
37 }
38 sub CreateResourceGroup {
39 my $self = shift;
40 my $call_object = $self->new_with_coercions('Paws::Inspector::CreateResourceGroup', @_);
41 return $self->caller->do_call($self, $call_object);
42 }
43 sub DeleteAssessmentRun {
44 my $self = shift;
45 my $call_object = $self->new_with_coercions('Paws::Inspector::DeleteAssessmentRun', @_);
46 return $self->caller->do_call($self, $call_object);
47 }
48 sub DeleteAssessmentTarget {
49 my $self = shift;
50 my $call_object = $self->new_with_coercions('Paws::Inspector::DeleteAssessmentTarget', @_);
51 return $self->caller->do_call($self, $call_object);
52 }
53 sub DeleteAssessmentTemplate {
54 my $self = shift;
55 my $call_object = $self->new_with_coercions('Paws::Inspector::DeleteAssessmentTemplate', @_);
56 return $self->caller->do_call($self, $call_object);
57 }
58 sub DescribeAssessmentRuns {
59 my $self = shift;
60 my $call_object = $self->new_with_coercions('Paws::Inspector::DescribeAssessmentRuns', @_);
61 return $self->caller->do_call($self, $call_object);
62 }
63 sub DescribeAssessmentTargets {
64 my $self = shift;
65 my $call_object = $self->new_with_coercions('Paws::Inspector::DescribeAssessmentTargets', @_);
66 return $self->caller->do_call($self, $call_object);
67 }
68 sub DescribeAssessmentTemplates {
69 my $self = shift;
70 my $call_object = $self->new_with_coercions('Paws::Inspector::DescribeAssessmentTemplates', @_);
71 return $self->caller->do_call($self, $call_object);
72 }
73 sub DescribeCrossAccountAccessRole {
74 my $self = shift;
75 my $call_object = $self->new_with_coercions('Paws::Inspector::DescribeCrossAccountAccessRole', @_);
76 return $self->caller->do_call($self, $call_object);
77 }
78 sub DescribeExclusions {
79 my $self = shift;
80 my $call_object = $self->new_with_coercions('Paws::Inspector::DescribeExclusions', @_);
81 return $self->caller->do_call($self, $call_object);
82 }
83 sub DescribeFindings {
84 my $self = shift;
85 my $call_object = $self->new_with_coercions('Paws::Inspector::DescribeFindings', @_);
86 return $self->caller->do_call($self, $call_object);
87 }
88 sub DescribeResourceGroups {
89 my $self = shift;
90 my $call_object = $self->new_with_coercions('Paws::Inspector::DescribeResourceGroups', @_);
91 return $self->caller->do_call($self, $call_object);
92 }
93 sub DescribeRulesPackages {
94 my $self = shift;
95 my $call_object = $self->new_with_coercions('Paws::Inspector::DescribeRulesPackages', @_);
96 return $self->caller->do_call($self, $call_object);
97 }
98 sub GetAssessmentReport {
99 my $self = shift;
100 my $call_object = $self->new_with_coercions('Paws::Inspector::GetAssessmentReport', @_);
101 return $self->caller->do_call($self, $call_object);
102 }
103 sub GetExclusionsPreview {
104 my $self = shift;
105 my $call_object = $self->new_with_coercions('Paws::Inspector::GetExclusionsPreview', @_);
106 return $self->caller->do_call($self, $call_object);
107 }
108 sub GetTelemetryMetadata {
109 my $self = shift;
110 my $call_object = $self->new_with_coercions('Paws::Inspector::GetTelemetryMetadata', @_);
111 return $self->caller->do_call($self, $call_object);
112 }
113 sub ListAssessmentRunAgents {
114 my $self = shift;
115 my $call_object = $self->new_with_coercions('Paws::Inspector::ListAssessmentRunAgents', @_);
116 return $self->caller->do_call($self, $call_object);
117 }
118 sub ListAssessmentRuns {
119 my $self = shift;
120 my $call_object = $self->new_with_coercions('Paws::Inspector::ListAssessmentRuns', @_);
121 return $self->caller->do_call($self, $call_object);
122 }
123 sub ListAssessmentTargets {
124 my $self = shift;
125 my $call_object = $self->new_with_coercions('Paws::Inspector::ListAssessmentTargets', @_);
126 return $self->caller->do_call($self, $call_object);
127 }
128 sub ListAssessmentTemplates {
129 my $self = shift;
130 my $call_object = $self->new_with_coercions('Paws::Inspector::ListAssessmentTemplates', @_);
131 return $self->caller->do_call($self, $call_object);
132 }
133 sub ListEventSubscriptions {
134 my $self = shift;
135 my $call_object = $self->new_with_coercions('Paws::Inspector::ListEventSubscriptions', @_);
136 return $self->caller->do_call($self, $call_object);
137 }
138 sub ListExclusions {
139 my $self = shift;
140 my $call_object = $self->new_with_coercions('Paws::Inspector::ListExclusions', @_);
141 return $self->caller->do_call($self, $call_object);
142 }
143 sub ListFindings {
144 my $self = shift;
145 my $call_object = $self->new_with_coercions('Paws::Inspector::ListFindings', @_);
146 return $self->caller->do_call($self, $call_object);
147 }
148 sub ListRulesPackages {
149 my $self = shift;
150 my $call_object = $self->new_with_coercions('Paws::Inspector::ListRulesPackages', @_);
151 return $self->caller->do_call($self, $call_object);
152 }
153 sub ListTagsForResource {
154 my $self = shift;
155 my $call_object = $self->new_with_coercions('Paws::Inspector::ListTagsForResource', @_);
156 return $self->caller->do_call($self, $call_object);
157 }
158 sub PreviewAgents {
159 my $self = shift;
160 my $call_object = $self->new_with_coercions('Paws::Inspector::PreviewAgents', @_);
161 return $self->caller->do_call($self, $call_object);
162 }
163 sub RegisterCrossAccountAccessRole {
164 my $self = shift;
165 my $call_object = $self->new_with_coercions('Paws::Inspector::RegisterCrossAccountAccessRole', @_);
166 return $self->caller->do_call($self, $call_object);
167 }
168 sub RemoveAttributesFromFindings {
169 my $self = shift;
170 my $call_object = $self->new_with_coercions('Paws::Inspector::RemoveAttributesFromFindings', @_);
171 return $self->caller->do_call($self, $call_object);
172 }
173 sub SetTagsForResource {
174 my $self = shift;
175 my $call_object = $self->new_with_coercions('Paws::Inspector::SetTagsForResource', @_);
176 return $self->caller->do_call($self, $call_object);
177 }
178 sub StartAssessmentRun {
179 my $self = shift;
180 my $call_object = $self->new_with_coercions('Paws::Inspector::StartAssessmentRun', @_);
181 return $self->caller->do_call($self, $call_object);
182 }
183 sub StopAssessmentRun {
184 my $self = shift;
185 my $call_object = $self->new_with_coercions('Paws::Inspector::StopAssessmentRun', @_);
186 return $self->caller->do_call($self, $call_object);
187 }
188 sub SubscribeToEvent {
189 my $self = shift;
190 my $call_object = $self->new_with_coercions('Paws::Inspector::SubscribeToEvent', @_);
191 return $self->caller->do_call($self, $call_object);
192 }
193 sub UnsubscribeFromEvent {
194 my $self = shift;
195 my $call_object = $self->new_with_coercions('Paws::Inspector::UnsubscribeFromEvent', @_);
196 return $self->caller->do_call($self, $call_object);
197 }
198 sub UpdateAssessmentTarget {
199 my $self = shift;
200 my $call_object = $self->new_with_coercions('Paws::Inspector::UpdateAssessmentTarget', @_);
201 return $self->caller->do_call($self, $call_object);
202 }
203
204 sub ListAllAssessmentRunAgents {
205 my $self = shift;
206  
207 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
208 my $result = $self->ListAssessmentRunAgents(@_);
209 my $next_result = $result;
210  
211 if (not defined $callback) {
212 while ($next_result->nextToken) {
213 $next_result = $self->ListAssessmentRunAgents(@_, nextToken => $next_result->nextToken);
214 push @{ $result->assessmentRunAgents }, @{ $next_result->assessmentRunAgents };
215 }
216 return $result;
217 } else {
218 while ($result->nextToken) {
219 $callback->($_ => 'assessmentRunAgents') foreach (@{ $result->assessmentRunAgents });
220 $result = $self->ListAssessmentRunAgents(@_, nextToken => $result->nextToken);
221 }
222 $callback->($_ => 'assessmentRunAgents') foreach (@{ $result->assessmentRunAgents });
223 }
224  
225 return undef
226 }
227 sub ListAllAssessmentRuns {
228 my $self = shift;
229  
230 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
231 my $result = $self->ListAssessmentRuns(@_);
232 my $next_result = $result;
233  
234 if (not defined $callback) {
235 while ($next_result->nextToken) {
236 $next_result = $self->ListAssessmentRuns(@_, nextToken => $next_result->nextToken);
237 push @{ $result->assessmentRunArns }, @{ $next_result->assessmentRunArns };
238 }
239 return $result;
240 } else {
241 while ($result->nextToken) {
242 $callback->($_ => 'assessmentRunArns') foreach (@{ $result->assessmentRunArns });
243 $result = $self->ListAssessmentRuns(@_, nextToken => $result->nextToken);
244 }
245 $callback->($_ => 'assessmentRunArns') foreach (@{ $result->assessmentRunArns });
246 }
247  
248 return undef
249 }
250 sub ListAllAssessmentTargets {
251 my $self = shift;
252  
253 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
254 my $result = $self->ListAssessmentTargets(@_);
255 my $next_result = $result;
256  
257 if (not defined $callback) {
258 while ($next_result->nextToken) {
259 $next_result = $self->ListAssessmentTargets(@_, nextToken => $next_result->nextToken);
260 push @{ $result->assessmentTargetArns }, @{ $next_result->assessmentTargetArns };
261 }
262 return $result;
263 } else {
264 while ($result->nextToken) {
265 $callback->($_ => 'assessmentTargetArns') foreach (@{ $result->assessmentTargetArns });
266 $result = $self->ListAssessmentTargets(@_, nextToken => $result->nextToken);
267 }
268 $callback->($_ => 'assessmentTargetArns') foreach (@{ $result->assessmentTargetArns });
269 }
270  
271 return undef
272 }
273 sub ListAllAssessmentTemplates {
274 my $self = shift;
275  
276 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
277 my $result = $self->ListAssessmentTemplates(@_);
278 my $next_result = $result;
279  
280 if (not defined $callback) {
281 while ($next_result->nextToken) {
282 $next_result = $self->ListAssessmentTemplates(@_, nextToken => $next_result->nextToken);
283 push @{ $result->assessmentTemplateArns }, @{ $next_result->assessmentTemplateArns };
284 }
285 return $result;
286 } else {
287 while ($result->nextToken) {
288 $callback->($_ => 'assessmentTemplateArns') foreach (@{ $result->assessmentTemplateArns });
289 $result = $self->ListAssessmentTemplates(@_, nextToken => $result->nextToken);
290 }
291 $callback->($_ => 'assessmentTemplateArns') foreach (@{ $result->assessmentTemplateArns });
292 }
293  
294 return undef
295 }
296 sub ListAllEventSubscriptions {
297 my $self = shift;
298  
299 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
300 my $result = $self->ListEventSubscriptions(@_);
301 my $next_result = $result;
302  
303 if (not defined $callback) {
304 while ($next_result->nextToken) {
305 $next_result = $self->ListEventSubscriptions(@_, nextToken => $next_result->nextToken);
306 push @{ $result->subscriptions }, @{ $next_result->subscriptions };
307 }
308 return $result;
309 } else {
310 while ($result->nextToken) {
311 $callback->($_ => 'subscriptions') foreach (@{ $result->subscriptions });
312 $result = $self->ListEventSubscriptions(@_, nextToken => $result->nextToken);
313 }
314 $callback->($_ => 'subscriptions') foreach (@{ $result->subscriptions });
315 }
316  
317 return undef
318 }
319 sub ListAllExclusions {
320 my $self = shift;
321  
322 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
323 my $result = $self->ListExclusions(@_);
324 my $next_result = $result;
325  
326 if (not defined $callback) {
327 while ($next_result->nextToken) {
328 $next_result = $self->ListExclusions(@_, nextToken => $next_result->nextToken);
329 push @{ $result->exclusionArns }, @{ $next_result->exclusionArns };
330 }
331 return $result;
332 } else {
333 while ($result->nextToken) {
334 $callback->($_ => 'exclusionArns') foreach (@{ $result->exclusionArns });
335 $result = $self->ListExclusions(@_, nextToken => $result->nextToken);
336 }
337 $callback->($_ => 'exclusionArns') foreach (@{ $result->exclusionArns });
338 }
339  
340 return undef
341 }
342 sub ListAllFindings {
343 my $self = shift;
344  
345 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
346 my $result = $self->ListFindings(@_);
347 my $next_result = $result;
348  
349 if (not defined $callback) {
350 while ($next_result->nextToken) {
351 $next_result = $self->ListFindings(@_, nextToken => $next_result->nextToken);
352 push @{ $result->findingArns }, @{ $next_result->findingArns };
353 }
354 return $result;
355 } else {
356 while ($result->nextToken) {
357 $callback->($_ => 'findingArns') foreach (@{ $result->findingArns });
358 $result = $self->ListFindings(@_, nextToken => $result->nextToken);
359 }
360 $callback->($_ => 'findingArns') foreach (@{ $result->findingArns });
361 }
362  
363 return undef
364 }
365 sub ListAllRulesPackages {
366 my $self = shift;
367  
368 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
369 my $result = $self->ListRulesPackages(@_);
370 my $next_result = $result;
371  
372 if (not defined $callback) {
373 while ($next_result->nextToken) {
374 $next_result = $self->ListRulesPackages(@_, nextToken => $next_result->nextToken);
375 push @{ $result->rulesPackageArns }, @{ $next_result->rulesPackageArns };
376 }
377 return $result;
378 } else {
379 while ($result->nextToken) {
380 $callback->($_ => 'rulesPackageArns') foreach (@{ $result->rulesPackageArns });
381 $result = $self->ListRulesPackages(@_, nextToken => $result->nextToken);
382 }
383 $callback->($_ => 'rulesPackageArns') foreach (@{ $result->rulesPackageArns });
384 }
385  
386 return undef
387 }
388 sub PreviewAllAgents {
389 my $self = shift;
390  
391 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
392 my $result = $self->PreviewAgents(@_);
393 my $next_result = $result;
394  
395 if (not defined $callback) {
396 while ($next_result->nextToken) {
397 $next_result = $self->PreviewAgents(@_, nextToken => $next_result->nextToken);
398 push @{ $result->agentPreviews }, @{ $next_result->agentPreviews };
399 }
400 return $result;
401 } else {
402 while ($result->nextToken) {
403 $callback->($_ => 'agentPreviews') foreach (@{ $result->agentPreviews });
404 $result = $self->PreviewAgents(@_, nextToken => $result->nextToken);
405 }
406 $callback->($_ => 'agentPreviews') foreach (@{ $result->agentPreviews });
407 }
408  
409 return undef
410 }
411  
412  
413 sub operations { qw/AddAttributesToFindings CreateAssessmentTarget CreateAssessmentTemplate CreateExclusionsPreview CreateResourceGroup DeleteAssessmentRun DeleteAssessmentTarget DeleteAssessmentTemplate DescribeAssessmentRuns DescribeAssessmentTargets DescribeAssessmentTemplates DescribeCrossAccountAccessRole DescribeExclusions DescribeFindings DescribeResourceGroups DescribeRulesPackages GetAssessmentReport GetExclusionsPreview GetTelemetryMetadata ListAssessmentRunAgents ListAssessmentRuns ListAssessmentTargets ListAssessmentTemplates ListEventSubscriptions ListExclusions ListFindings ListRulesPackages ListTagsForResource PreviewAgents RegisterCrossAccountAccessRole RemoveAttributesFromFindings SetTagsForResource StartAssessmentRun StopAssessmentRun SubscribeToEvent UnsubscribeFromEvent UpdateAssessmentTarget / }
414  
415 1;
416  
417 ### main pod documentation begin ###
418  
419 =head1 NAME
420  
421 Paws::Inspector - Perl Interface to AWS Amazon Inspector
422  
423 =head1 SYNOPSIS
424  
425 use Paws;
426  
427 my $obj = Paws->service('Inspector');
428 my $res = $obj->Method(
429 Arg1 => $val1,
430 Arg2 => [ 'V1', 'V2' ],
431 # if Arg3 is an object, the HashRef will be used as arguments to the constructor
432 # of the arguments type
433 Arg3 => { Att1 => 'Val1' },
434 # if Arg4 is an array of objects, the HashRefs will be passed as arguments to
435 # the constructor of the arguments type
436 Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ],
437 );
438  
439 =head1 DESCRIPTION
440  
441 Amazon Inspector
442  
443 Amazon Inspector enables you to analyze the behavior of your AWS
444 resources and to identify potential security issues. For more
445 information, see Amazon Inspector User Guide
446 (https://docs.aws.amazon.com/inspector/latest/userguide/inspector_introduction.html).
447  
448 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16>
449  
450  
451 =head1 METHODS
452  
453 =head2 AddAttributesToFindings
454  
455 =over
456  
457 =item Attributes => ArrayRef[L<Paws::Inspector::Attribute>]
458  
459 =item FindingArns => ArrayRef[Str|Undef]
460  
461  
462 =back
463  
464 Each argument is described in detail in: L<Paws::Inspector::AddAttributesToFindings>
465  
466 Returns: a L<Paws::Inspector::AddAttributesToFindingsResponse> instance
467  
468 Assigns attributes (key and value pairs) to the findings that are
469 specified by the ARNs of the findings.
470  
471  
472 =head2 CreateAssessmentTarget
473  
474 =over
475  
476 =item AssessmentTargetName => Str
477  
478 =item [ResourceGroupArn => Str]
479  
480  
481 =back
482  
483 Each argument is described in detail in: L<Paws::Inspector::CreateAssessmentTarget>
484  
485 Returns: a L<Paws::Inspector::CreateAssessmentTargetResponse> instance
486  
487 Creates a new assessment target using the ARN of the resource group
488 that is generated by CreateResourceGroup. If resourceGroupArn is not
489 specified, all EC2 instances in the current AWS account and region are
490 included in the assessment target. If the service-linked role
491 (https://docs.aws.amazon.com/inspector/latest/userguide/inspector_slr.html)
492 isnE<rsquo>t already registered, this action also creates and registers
493 a service-linked role to grant Amazon Inspector access to AWS Services
494 needed to perform security assessments. You can create up to 50
495 assessment targets per AWS account. You can run up to 500 concurrent
496 agents per AWS account. For more information, see Amazon Inspector
497 Assessment Targets
498 (https://docs.aws.amazon.com/inspector/latest/userguide/inspector_applications.html).
499  
500  
501 =head2 CreateAssessmentTemplate
502  
503 =over
504  
505 =item AssessmentTargetArn => Str
506  
507 =item AssessmentTemplateName => Str
508  
509 =item DurationInSeconds => Int
510  
511 =item RulesPackageArns => ArrayRef[Str|Undef]
512  
513 =item [UserAttributesForFindings => ArrayRef[L<Paws::Inspector::Attribute>]]
514  
515  
516 =back
517  
518 Each argument is described in detail in: L<Paws::Inspector::CreateAssessmentTemplate>
519  
520 Returns: a L<Paws::Inspector::CreateAssessmentTemplateResponse> instance
521  
522 Creates an assessment template for the assessment target that is
523 specified by the ARN of the assessment target. If the service-linked
524 role
525 (https://docs.aws.amazon.com/inspector/latest/userguide/inspector_slr.html)
526 isnE<rsquo>t already registered, this action also creates and registers
527 a service-linked role to grant Amazon Inspector access to AWS Services
528 needed to perform security assessments.
529  
530  
531 =head2 CreateExclusionsPreview
532  
533 =over
534  
535 =item AssessmentTemplateArn => Str
536  
537  
538 =back
539  
540 Each argument is described in detail in: L<Paws::Inspector::CreateExclusionsPreview>
541  
542 Returns: a L<Paws::Inspector::CreateExclusionsPreviewResponse> instance
543  
544 Starts the generation of an exclusions preview for the specified
545 assessment template. The exclusions preview lists the potential
546 exclusions (ExclusionPreview) that Inspector can detect before it runs
547 the assessment.
548  
549  
550 =head2 CreateResourceGroup
551  
552 =over
553  
554 =item ResourceGroupTags => ArrayRef[L<Paws::Inspector::ResourceGroupTag>]
555  
556  
557 =back
558  
559 Each argument is described in detail in: L<Paws::Inspector::CreateResourceGroup>
560  
561 Returns: a L<Paws::Inspector::CreateResourceGroupResponse> instance
562  
563 Creates a resource group using the specified set of tags (key and value
564 pairs) that are used to select the EC2 instances to be included in an
565 Amazon Inspector assessment target. The created resource group is then
566 used to create an Amazon Inspector assessment target. For more
567 information, see CreateAssessmentTarget.
568  
569  
570 =head2 DeleteAssessmentRun
571  
572 =over
573  
574 =item AssessmentRunArn => Str
575  
576  
577 =back
578  
579 Each argument is described in detail in: L<Paws::Inspector::DeleteAssessmentRun>
580  
581 Returns: nothing
582  
583 Deletes the assessment run that is specified by the ARN of the
584 assessment run.
585  
586  
587 =head2 DeleteAssessmentTarget
588  
589 =over
590  
591 =item AssessmentTargetArn => Str
592  
593  
594 =back
595  
596 Each argument is described in detail in: L<Paws::Inspector::DeleteAssessmentTarget>
597  
598 Returns: nothing
599  
600 Deletes the assessment target that is specified by the ARN of the
601 assessment target.
602  
603  
604 =head2 DeleteAssessmentTemplate
605  
606 =over
607  
608 =item AssessmentTemplateArn => Str
609  
610  
611 =back
612  
613 Each argument is described in detail in: L<Paws::Inspector::DeleteAssessmentTemplate>
614  
615 Returns: nothing
616  
617 Deletes the assessment template that is specified by the ARN of the
618 assessment template.
619  
620  
621 =head2 DescribeAssessmentRuns
622  
623 =over
624  
625 =item AssessmentRunArns => ArrayRef[Str|Undef]
626  
627  
628 =back
629  
630 Each argument is described in detail in: L<Paws::Inspector::DescribeAssessmentRuns>
631  
632 Returns: a L<Paws::Inspector::DescribeAssessmentRunsResponse> instance
633  
634 Describes the assessment runs that are specified by the ARNs of the
635 assessment runs.
636  
637  
638 =head2 DescribeAssessmentTargets
639  
640 =over
641  
642 =item AssessmentTargetArns => ArrayRef[Str|Undef]
643  
644  
645 =back
646  
647 Each argument is described in detail in: L<Paws::Inspector::DescribeAssessmentTargets>
648  
649 Returns: a L<Paws::Inspector::DescribeAssessmentTargetsResponse> instance
650  
651 Describes the assessment targets that are specified by the ARNs of the
652 assessment targets.
653  
654  
655 =head2 DescribeAssessmentTemplates
656  
657 =over
658  
659 =item AssessmentTemplateArns => ArrayRef[Str|Undef]
660  
661  
662 =back
663  
664 Each argument is described in detail in: L<Paws::Inspector::DescribeAssessmentTemplates>
665  
666 Returns: a L<Paws::Inspector::DescribeAssessmentTemplatesResponse> instance
667  
668 Describes the assessment templates that are specified by the ARNs of
669 the assessment templates.
670  
671  
672 =head2 DescribeCrossAccountAccessRole
673  
674 =over
675  
676 =item =>
677  
678  
679 =back
680  
681 Each argument is described in detail in: L<Paws::Inspector::DescribeCrossAccountAccessRole>
682  
683 Returns: a L<Paws::Inspector::DescribeCrossAccountAccessRoleResponse> instance
684  
685 Describes the IAM role that enables Amazon Inspector to access your AWS
686 account.
687  
688  
689 =head2 DescribeExclusions
690  
691 =over
692  
693 =item ExclusionArns => ArrayRef[Str|Undef]
694  
695 =item [Locale => Str]
696  
697  
698 =back
699  
700 Each argument is described in detail in: L<Paws::Inspector::DescribeExclusions>
701  
702 Returns: a L<Paws::Inspector::DescribeExclusionsResponse> instance
703  
704 Describes the exclusions that are specified by the exclusions' ARNs.
705  
706  
707 =head2 DescribeFindings
708  
709 =over
710  
711 =item FindingArns => ArrayRef[Str|Undef]
712  
713 =item [Locale => Str]
714  
715  
716 =back
717  
718 Each argument is described in detail in: L<Paws::Inspector::DescribeFindings>
719  
720 Returns: a L<Paws::Inspector::DescribeFindingsResponse> instance
721  
722 Describes the findings that are specified by the ARNs of the findings.
723  
724  
725 =head2 DescribeResourceGroups
726  
727 =over
728  
729 =item ResourceGroupArns => ArrayRef[Str|Undef]
730  
731  
732 =back
733  
734 Each argument is described in detail in: L<Paws::Inspector::DescribeResourceGroups>
735  
736 Returns: a L<Paws::Inspector::DescribeResourceGroupsResponse> instance
737  
738 Describes the resource groups that are specified by the ARNs of the
739 resource groups.
740  
741  
742 =head2 DescribeRulesPackages
743  
744 =over
745  
746 =item RulesPackageArns => ArrayRef[Str|Undef]
747  
748 =item [Locale => Str]
749  
750  
751 =back
752  
753 Each argument is described in detail in: L<Paws::Inspector::DescribeRulesPackages>
754  
755 Returns: a L<Paws::Inspector::DescribeRulesPackagesResponse> instance
756  
757 Describes the rules packages that are specified by the ARNs of the
758 rules packages.
759  
760  
761 =head2 GetAssessmentReport
762  
763 =over
764  
765 =item AssessmentRunArn => Str
766  
767 =item ReportFileFormat => Str
768  
769 =item ReportType => Str
770  
771  
772 =back
773  
774 Each argument is described in detail in: L<Paws::Inspector::GetAssessmentReport>
775  
776 Returns: a L<Paws::Inspector::GetAssessmentReportResponse> instance
777  
778 Produces an assessment report that includes detailed and comprehensive
779 results of a specified assessment run.
780  
781  
782 =head2 GetExclusionsPreview
783  
784 =over
785  
786 =item AssessmentTemplateArn => Str
787  
788 =item PreviewToken => Str
789  
790 =item [Locale => Str]
791  
792 =item [MaxResults => Int]
793  
794 =item [NextToken => Str]
795  
796  
797 =back
798  
799 Each argument is described in detail in: L<Paws::Inspector::GetExclusionsPreview>
800  
801 Returns: a L<Paws::Inspector::GetExclusionsPreviewResponse> instance
802  
803 Retrieves the exclusions preview (a list of ExclusionPreview objects)
804 specified by the preview token. You can obtain the preview token by
805 running the CreateExclusionsPreview API.
806  
807  
808 =head2 GetTelemetryMetadata
809  
810 =over
811  
812 =item AssessmentRunArn => Str
813  
814  
815 =back
816  
817 Each argument is described in detail in: L<Paws::Inspector::GetTelemetryMetadata>
818  
819 Returns: a L<Paws::Inspector::GetTelemetryMetadataResponse> instance
820  
821 Information about the data that is collected for the specified
822 assessment run.
823  
824  
825 =head2 ListAssessmentRunAgents
826  
827 =over
828  
829 =item AssessmentRunArn => Str
830  
831 =item [Filter => L<Paws::Inspector::AgentFilter>]
832  
833 =item [MaxResults => Int]
834  
835 =item [NextToken => Str]
836  
837  
838 =back
839  
840 Each argument is described in detail in: L<Paws::Inspector::ListAssessmentRunAgents>
841  
842 Returns: a L<Paws::Inspector::ListAssessmentRunAgentsResponse> instance
843  
844 Lists the agents of the assessment runs that are specified by the ARNs
845 of the assessment runs.
846  
847  
848 =head2 ListAssessmentRuns
849  
850 =over
851  
852 =item [AssessmentTemplateArns => ArrayRef[Str|Undef]]
853  
854 =item [Filter => L<Paws::Inspector::AssessmentRunFilter>]
855  
856 =item [MaxResults => Int]
857  
858 =item [NextToken => Str]
859  
860  
861 =back
862  
863 Each argument is described in detail in: L<Paws::Inspector::ListAssessmentRuns>
864  
865 Returns: a L<Paws::Inspector::ListAssessmentRunsResponse> instance
866  
867 Lists the assessment runs that correspond to the assessment templates
868 that are specified by the ARNs of the assessment templates.
869  
870  
871 =head2 ListAssessmentTargets
872  
873 =over
874  
875 =item [Filter => L<Paws::Inspector::AssessmentTargetFilter>]
876  
877 =item [MaxResults => Int]
878  
879 =item [NextToken => Str]
880  
881  
882 =back
883  
884 Each argument is described in detail in: L<Paws::Inspector::ListAssessmentTargets>
885  
886 Returns: a L<Paws::Inspector::ListAssessmentTargetsResponse> instance
887  
888 Lists the ARNs of the assessment targets within this AWS account. For
889 more information about assessment targets, see Amazon Inspector
890 Assessment Targets
891 (https://docs.aws.amazon.com/inspector/latest/userguide/inspector_applications.html).
892  
893  
894 =head2 ListAssessmentTemplates
895  
896 =over
897  
898 =item [AssessmentTargetArns => ArrayRef[Str|Undef]]
899  
900 =item [Filter => L<Paws::Inspector::AssessmentTemplateFilter>]
901  
902 =item [MaxResults => Int]
903  
904 =item [NextToken => Str]
905  
906  
907 =back
908  
909 Each argument is described in detail in: L<Paws::Inspector::ListAssessmentTemplates>
910  
911 Returns: a L<Paws::Inspector::ListAssessmentTemplatesResponse> instance
912  
913 Lists the assessment templates that correspond to the assessment
914 targets that are specified by the ARNs of the assessment targets.
915  
916  
917 =head2 ListEventSubscriptions
918  
919 =over
920  
921 =item [MaxResults => Int]
922  
923 =item [NextToken => Str]
924  
925 =item [ResourceArn => Str]
926  
927  
928 =back
929  
930 Each argument is described in detail in: L<Paws::Inspector::ListEventSubscriptions>
931  
932 Returns: a L<Paws::Inspector::ListEventSubscriptionsResponse> instance
933  
934 Lists all the event subscriptions for the assessment template that is
935 specified by the ARN of the assessment template. For more information,
936 see SubscribeToEvent and UnsubscribeFromEvent.
937  
938  
939 =head2 ListExclusions
940  
941 =over
942  
943 =item AssessmentRunArn => Str
944  
945 =item [MaxResults => Int]
946  
947 =item [NextToken => Str]
948  
949  
950 =back
951  
952 Each argument is described in detail in: L<Paws::Inspector::ListExclusions>
953  
954 Returns: a L<Paws::Inspector::ListExclusionsResponse> instance
955  
956 List exclusions that are generated by the assessment run.
957  
958  
959 =head2 ListFindings
960  
961 =over
962  
963 =item [AssessmentRunArns => ArrayRef[Str|Undef]]
964  
965 =item [Filter => L<Paws::Inspector::FindingFilter>]
966  
967 =item [MaxResults => Int]
968  
969 =item [NextToken => Str]
970  
971  
972 =back
973  
974 Each argument is described in detail in: L<Paws::Inspector::ListFindings>
975  
976 Returns: a L<Paws::Inspector::ListFindingsResponse> instance
977  
978 Lists findings that are generated by the assessment runs that are
979 specified by the ARNs of the assessment runs.
980  
981  
982 =head2 ListRulesPackages
983  
984 =over
985  
986 =item [MaxResults => Int]
987  
988 =item [NextToken => Str]
989  
990  
991 =back
992  
993 Each argument is described in detail in: L<Paws::Inspector::ListRulesPackages>
994  
995 Returns: a L<Paws::Inspector::ListRulesPackagesResponse> instance
996  
997 Lists all available Amazon Inspector rules packages.
998  
999  
1000 =head2 ListTagsForResource
1001  
1002 =over
1003  
1004 =item ResourceArn => Str
1005  
1006  
1007 =back
1008  
1009 Each argument is described in detail in: L<Paws::Inspector::ListTagsForResource>
1010  
1011 Returns: a L<Paws::Inspector::ListTagsForResourceResponse> instance
1012  
1013 Lists all tags associated with an assessment template.
1014  
1015  
1016 =head2 PreviewAgents
1017  
1018 =over
1019  
1020 =item PreviewAgentsArn => Str
1021  
1022 =item [MaxResults => Int]
1023  
1024 =item [NextToken => Str]
1025  
1026  
1027 =back
1028  
1029 Each argument is described in detail in: L<Paws::Inspector::PreviewAgents>
1030  
1031 Returns: a L<Paws::Inspector::PreviewAgentsResponse> instance
1032  
1033 Previews the agents installed on the EC2 instances that are part of the
1034 specified assessment target.
1035  
1036  
1037 =head2 RegisterCrossAccountAccessRole
1038  
1039 =over
1040  
1041 =item RoleArn => Str
1042  
1043  
1044 =back
1045  
1046 Each argument is described in detail in: L<Paws::Inspector::RegisterCrossAccountAccessRole>
1047  
1048 Returns: nothing
1049  
1050 Registers the IAM role that grants Amazon Inspector access to AWS
1051 Services needed to perform security assessments.
1052  
1053  
1054 =head2 RemoveAttributesFromFindings
1055  
1056 =over
1057  
1058 =item AttributeKeys => ArrayRef[Str|Undef]
1059  
1060 =item FindingArns => ArrayRef[Str|Undef]
1061  
1062  
1063 =back
1064  
1065 Each argument is described in detail in: L<Paws::Inspector::RemoveAttributesFromFindings>
1066  
1067 Returns: a L<Paws::Inspector::RemoveAttributesFromFindingsResponse> instance
1068  
1069 Removes entire attributes (key and value pairs) from the findings that
1070 are specified by the ARNs of the findings where an attribute with the
1071 specified key exists.
1072  
1073  
1074 =head2 SetTagsForResource
1075  
1076 =over
1077  
1078 =item ResourceArn => Str
1079  
1080 =item [Tags => ArrayRef[L<Paws::Inspector::Tag>]]
1081  
1082  
1083 =back
1084  
1085 Each argument is described in detail in: L<Paws::Inspector::SetTagsForResource>
1086  
1087 Returns: nothing
1088  
1089 Sets tags (key and value pairs) to the assessment template that is
1090 specified by the ARN of the assessment template.
1091  
1092  
1093 =head2 StartAssessmentRun
1094  
1095 =over
1096  
1097 =item AssessmentTemplateArn => Str
1098  
1099 =item [AssessmentRunName => Str]
1100  
1101  
1102 =back
1103  
1104 Each argument is described in detail in: L<Paws::Inspector::StartAssessmentRun>
1105  
1106 Returns: a L<Paws::Inspector::StartAssessmentRunResponse> instance
1107  
1108 Starts the assessment run specified by the ARN of the assessment
1109 template. For this API to function properly, you must not exceed the
1110 limit of running up to 500 concurrent agents per AWS account.
1111  
1112  
1113 =head2 StopAssessmentRun
1114  
1115 =over
1116  
1117 =item AssessmentRunArn => Str
1118  
1119 =item [StopAction => Str]
1120  
1121  
1122 =back
1123  
1124 Each argument is described in detail in: L<Paws::Inspector::StopAssessmentRun>
1125  
1126 Returns: nothing
1127  
1128 Stops the assessment run that is specified by the ARN of the assessment
1129 run.
1130  
1131  
1132 =head2 SubscribeToEvent
1133  
1134 =over
1135  
1136 =item Event => Str
1137  
1138 =item ResourceArn => Str
1139  
1140 =item TopicArn => Str
1141  
1142  
1143 =back
1144  
1145 Each argument is described in detail in: L<Paws::Inspector::SubscribeToEvent>
1146  
1147 Returns: nothing
1148  
1149 Enables the process of sending Amazon Simple Notification Service (SNS)
1150 notifications about a specified event to a specified SNS topic.
1151  
1152  
1153 =head2 UnsubscribeFromEvent
1154  
1155 =over
1156  
1157 =item Event => Str
1158  
1159 =item ResourceArn => Str
1160  
1161 =item TopicArn => Str
1162  
1163  
1164 =back
1165  
1166 Each argument is described in detail in: L<Paws::Inspector::UnsubscribeFromEvent>
1167  
1168 Returns: nothing
1169  
1170 Disables the process of sending Amazon Simple Notification Service
1171 (SNS) notifications about a specified event to a specified SNS topic.
1172  
1173  
1174 =head2 UpdateAssessmentTarget
1175  
1176 =over
1177  
1178 =item AssessmentTargetArn => Str
1179  
1180 =item AssessmentTargetName => Str
1181  
1182 =item [ResourceGroupArn => Str]
1183  
1184  
1185 =back
1186  
1187 Each argument is described in detail in: L<Paws::Inspector::UpdateAssessmentTarget>
1188  
1189 Returns: nothing
1190  
1191 Updates the assessment target that is specified by the ARN of the
1192 assessment target.
1193  
1194 If resourceGroupArn is not specified, all EC2 instances in the current
1195 AWS account and region are included in the assessment target.
1196  
1197  
1198  
1199  
1200 =head1 PAGINATORS
1201  
1202 Paginator methods are helpers that repetively call methods that return partial results
1203  
1204 =head2 ListAllAssessmentRunAgents(sub { },AssessmentRunArn => Str, [Filter => L<Paws::Inspector::AgentFilter>, MaxResults => Int, NextToken => Str])
1205  
1206 =head2 ListAllAssessmentRunAgents(AssessmentRunArn => Str, [Filter => L<Paws::Inspector::AgentFilter>, MaxResults => Int, NextToken => Str])
1207  
1208  
1209 If passed a sub as first parameter, it will call the sub for each element found in :
1210  
1211 - assessmentRunAgents, passing the object as the first parameter, and the string 'assessmentRunAgents' as the second parameter
1212  
1213 If not, it will return a a L<Paws::Inspector::ListAssessmentRunAgentsResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory.
1214  
1215  
1216 =head2 ListAllAssessmentRuns(sub { },[AssessmentTemplateArns => ArrayRef[Str|Undef], Filter => L<Paws::Inspector::AssessmentRunFilter>, MaxResults => Int, NextToken => Str])
1217  
1218 =head2 ListAllAssessmentRuns([AssessmentTemplateArns => ArrayRef[Str|Undef], Filter => L<Paws::Inspector::AssessmentRunFilter>, MaxResults => Int, NextToken => Str])
1219  
1220  
1221 If passed a sub as first parameter, it will call the sub for each element found in :
1222  
1223 - assessmentRunArns, passing the object as the first parameter, and the string 'assessmentRunArns' as the second parameter
1224  
1225 If not, it will return a a L<Paws::Inspector::ListAssessmentRunsResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory.
1226  
1227  
1228 =head2 ListAllAssessmentTargets(sub { },[Filter => L<Paws::Inspector::AssessmentTargetFilter>, MaxResults => Int, NextToken => Str])
1229  
1230 =head2 ListAllAssessmentTargets([Filter => L<Paws::Inspector::AssessmentTargetFilter>, MaxResults => Int, NextToken => Str])
1231  
1232  
1233 If passed a sub as first parameter, it will call the sub for each element found in :
1234  
1235 - assessmentTargetArns, passing the object as the first parameter, and the string 'assessmentTargetArns' as the second parameter
1236  
1237 If not, it will return a a L<Paws::Inspector::ListAssessmentTargetsResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory.
1238  
1239  
1240 =head2 ListAllAssessmentTemplates(sub { },[AssessmentTargetArns => ArrayRef[Str|Undef], Filter => L<Paws::Inspector::AssessmentTemplateFilter>, MaxResults => Int, NextToken => Str])
1241  
1242 =head2 ListAllAssessmentTemplates([AssessmentTargetArns => ArrayRef[Str|Undef], Filter => L<Paws::Inspector::AssessmentTemplateFilter>, MaxResults => Int, NextToken => Str])
1243  
1244  
1245 If passed a sub as first parameter, it will call the sub for each element found in :
1246  
1247 - assessmentTemplateArns, passing the object as the first parameter, and the string 'assessmentTemplateArns' as the second parameter
1248  
1249 If not, it will return a a L<Paws::Inspector::ListAssessmentTemplatesResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory.
1250  
1251  
1252 =head2 ListAllEventSubscriptions(sub { },[MaxResults => Int, NextToken => Str, ResourceArn => Str])
1253  
1254 =head2 ListAllEventSubscriptions([MaxResults => Int, NextToken => Str, ResourceArn => Str])
1255  
1256  
1257 If passed a sub as first parameter, it will call the sub for each element found in :
1258  
1259 - subscriptions, passing the object as the first parameter, and the string 'subscriptions' as the second parameter
1260  
1261 If not, it will return a a L<Paws::Inspector::ListEventSubscriptionsResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory.
1262  
1263  
1264 =head2 ListAllExclusions(sub { },AssessmentRunArn => Str, [MaxResults => Int, NextToken => Str])
1265  
1266 =head2 ListAllExclusions(AssessmentRunArn => Str, [MaxResults => Int, NextToken => Str])
1267  
1268  
1269 If passed a sub as first parameter, it will call the sub for each element found in :
1270  
1271 - exclusionArns, passing the object as the first parameter, and the string 'exclusionArns' as the second parameter
1272  
1273 If not, it will return a a L<Paws::Inspector::ListExclusionsResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory.
1274  
1275  
1276 =head2 ListAllFindings(sub { },[AssessmentRunArns => ArrayRef[Str|Undef], Filter => L<Paws::Inspector::FindingFilter>, MaxResults => Int, NextToken => Str])
1277  
1278 =head2 ListAllFindings([AssessmentRunArns => ArrayRef[Str|Undef], Filter => L<Paws::Inspector::FindingFilter>, MaxResults => Int, NextToken => Str])
1279  
1280  
1281 If passed a sub as first parameter, it will call the sub for each element found in :
1282  
1283 - findingArns, passing the object as the first parameter, and the string 'findingArns' as the second parameter
1284  
1285 If not, it will return a a L<Paws::Inspector::ListFindingsResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory.
1286  
1287  
1288 =head2 ListAllRulesPackages(sub { },[MaxResults => Int, NextToken => Str])
1289  
1290 =head2 ListAllRulesPackages([MaxResults => Int, NextToken => Str])
1291  
1292  
1293 If passed a sub as first parameter, it will call the sub for each element found in :
1294  
1295 - rulesPackageArns, passing the object as the first parameter, and the string 'rulesPackageArns' as the second parameter
1296  
1297 If not, it will return a a L<Paws::Inspector::ListRulesPackagesResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory.
1298  
1299  
1300 =head2 PreviewAllAgents(sub { },PreviewAgentsArn => Str, [MaxResults => Int, NextToken => Str])
1301  
1302 =head2 PreviewAllAgents(PreviewAgentsArn => Str, [MaxResults => Int, NextToken => Str])
1303  
1304  
1305 If passed a sub as first parameter, it will call the sub for each element found in :
1306  
1307 - agentPreviews, passing the object as the first parameter, and the string 'agentPreviews' as the second parameter
1308  
1309 If not, it will return a a L<Paws::Inspector::PreviewAgentsResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory.
1310  
1311  
1312  
1313  
1314  
1315 =head1 SEE ALSO
1316  
1317 This service class forms part of L<Paws>
1318  
1319 =head1 BUGS and CONTRIBUTIONS
1320  
1321 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
1322  
1323 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
1324  
1325 =cut
1326