File Coverage

blib/lib/Paws/Inspector/CreateAssessmentTemplate.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::Inspector::CreateAssessmentTemplate;
3 1     1   441 use Moose;
  1         3  
  1         8  
4             has AssessmentTargetArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'assessmentTargetArn' , required => 1);
5             has AssessmentTemplateName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'assessmentTemplateName' , required => 1);
6             has DurationInSeconds => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'durationInSeconds' , required => 1);
7             has RulesPackageArns => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'rulesPackageArns' , required => 1);
8             has UserAttributesForFindings => (is => 'ro', isa => 'ArrayRef[Paws::Inspector::Attribute]', traits => ['NameInRequest'], request_name => 'userAttributesForFindings' );
9              
10 1     1   6300 use MooseX::ClassAttribute;
  1         3  
  1         10  
11              
12             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateAssessmentTemplate');
13             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Inspector::CreateAssessmentTemplateResponse');
14             class_has _result_key => (isa => 'Str', is => 'ro');
15             1;
16              
17             ### main pod documentation begin ###
18              
19             =head1 NAME
20              
21             Paws::Inspector::CreateAssessmentTemplate - Arguments for method CreateAssessmentTemplate on Paws::Inspector
22              
23             =head1 DESCRIPTION
24              
25             This class represents the parameters used for calling the method CreateAssessmentTemplate on the
26             Amazon Inspector service. Use the attributes of this class
27             as arguments to method CreateAssessmentTemplate.
28              
29             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateAssessmentTemplate.
30              
31             As an example:
32              
33             $service_obj->CreateAssessmentTemplate(Att1 => $value1, Att2 => $value2, ...);
34              
35             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.
36              
37             =head1 ATTRIBUTES
38              
39              
40             =head2 B<REQUIRED> AssessmentTargetArn => Str
41              
42             The ARN that specifies the assessment target for which you want to
43             create the assessment template.
44              
45              
46              
47             =head2 B<REQUIRED> AssessmentTemplateName => Str
48              
49             The user-defined name that identifies the assessment template that you
50             want to create. You can create several assessment templates for an
51             assessment target. The names of the assessment templates that
52             correspond to a particular assessment target must be unique.
53              
54              
55              
56             =head2 B<REQUIRED> DurationInSeconds => Int
57              
58             The duration of the assessment run in seconds. The default value is
59             3600 seconds (one hour).
60              
61              
62              
63             =head2 B<REQUIRED> RulesPackageArns => ArrayRef[Str|Undef]
64              
65             The ARNs that specify the rules packages that you want to attach to the
66             assessment template.
67              
68              
69              
70             =head2 UserAttributesForFindings => ArrayRef[L<Paws::Inspector::Attribute>]
71              
72             The user-defined attributes that are assigned to every finding that is
73             generated by the assessment run that uses this assessment template. An
74             attribute is a key and value pair (an Attribute object). Within an
75             assessment template, each key must be unique.
76              
77              
78              
79              
80             =head1 SEE ALSO
81              
82             This class forms part of L<Paws>, documenting arguments for method CreateAssessmentTemplate in L<Paws::Inspector>
83              
84             =head1 BUGS and CONTRIBUTIONS
85              
86             The source code is located here: https://github.com/pplu/aws-sdk-perl
87              
88             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
89              
90             =cut
91