File Coverage

blib/lib/Paws/Inspector/AssessmentTemplate.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::Inspector::AssessmentTemplate;
2 1     1   311 use Moose;
  1         2  
  1         7  
3             has Arn => (is => 'ro', isa => 'Str', request_name => 'arn', traits => ['NameInRequest'], required => 1);
4             has AssessmentTargetArn => (is => 'ro', isa => 'Str', request_name => 'assessmentTargetArn', traits => ['NameInRequest'], required => 1);
5             has CreatedAt => (is => 'ro', isa => 'Str', request_name => 'createdAt', traits => ['NameInRequest'], required => 1);
6             has DurationInSeconds => (is => 'ro', isa => 'Int', request_name => 'durationInSeconds', traits => ['NameInRequest'], required => 1);
7             has Name => (is => 'ro', isa => 'Str', request_name => 'name', traits => ['NameInRequest'], required => 1);
8             has RulesPackageArns => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'rulesPackageArns', traits => ['NameInRequest'], required => 1);
9             has UserAttributesForFindings => (is => 'ro', isa => 'ArrayRef[Paws::Inspector::Attribute]', request_name => 'userAttributesForFindings', traits => ['NameInRequest'], required => 1);
10             1;
11              
12             ### main pod documentation begin ###
13              
14             =head1 NAME
15              
16             Paws::Inspector::AssessmentTemplate
17              
18             =head1 USAGE
19              
20             This class represents one of two things:
21              
22             =head3 Arguments in a call to a service
23              
24             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
25             Each attribute should be used as a named argument in the calls that expect this type of object.
26              
27             As an example, if Att1 is expected to be a Paws::Inspector::AssessmentTemplate object:
28              
29             $service_obj->Method(Att1 => { Arn => $value, ..., UserAttributesForFindings => $value });
30              
31             =head3 Results returned from an API call
32              
33             Use accessors for each attribute. If Att1 is expected to be an Paws::Inspector::AssessmentTemplate object:
34              
35             $result = $service_obj->Method(...);
36             $result->Att1->Arn
37              
38             =head1 DESCRIPTION
39              
40             Contains information about an Amazon Inspector assessment template.
41             This data type is used as the response element in the
42             DescribeAssessmentTemplates action.
43              
44             =head1 ATTRIBUTES
45              
46              
47             =head2 B<REQUIRED> Arn => Str
48              
49             The ARN of the assessment template.
50              
51              
52             =head2 B<REQUIRED> AssessmentTargetArn => Str
53              
54             The ARN of the assessment target that corresponds to this assessment
55             template.
56              
57              
58             =head2 B<REQUIRED> CreatedAt => Str
59              
60             The time at which the assessment template is created.
61              
62              
63             =head2 B<REQUIRED> DurationInSeconds => Int
64              
65             The duration in seconds specified for this assessment tempate. The
66             default value is 3600 seconds (one hour). The maximum value is 86400
67             seconds (one day).
68              
69              
70             =head2 B<REQUIRED> Name => Str
71              
72             The name of the assessment template.
73              
74              
75             =head2 B<REQUIRED> RulesPackageArns => ArrayRef[Str|Undef]
76              
77             The rules packages that are specified for this assessment template.
78              
79              
80             =head2 B<REQUIRED> UserAttributesForFindings => ArrayRef[L<Paws::Inspector::Attribute>]
81              
82             The user-defined attributes that are assigned to every generated
83             finding from the assessment run that uses this assessment template.
84              
85              
86              
87             =head1 SEE ALSO
88              
89             This class forms part of L<Paws>, describing an object used in L<Paws::Inspector>
90              
91             =head1 BUGS and CONTRIBUTIONS
92              
93             The source code is located here: https://github.com/pplu/aws-sdk-perl
94              
95             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
96              
97             =cut
98