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

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Inspector::CreateAssessmentTemplate;
3 use Moose;
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 use MooseX::ClassAttribute;
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 L<Paws::Inspector>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method CreateAssessmentTemplate on the
26 L<Amazon Inspector|Paws::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 =head1 SYNOPSIS
32  
33 my $inspector = Paws->service('Inspector');
34 # Create assessment template
35 # Creates an assessment template for the assessment target that is specified by
36 # the ARN of the assessment target.
37 my $CreateAssessmentTemplateResponse = $inspector->CreateAssessmentTemplate(
38 'AssessmentTargetArn' =>
39 'arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX',
40 'AssessmentTemplateName' => 'ExampleAssessmentTemplate',
41 'DurationInSeconds' => 180,
42 'RulesPackageArns' =>
43 ['arn:aws:inspector:us-west-2:758058086616:rulespackage/0-11B9DBXp'],
44 'UserAttributesForFindings' => [
45  
46 {
47 'Key' => 'Example',
48 'Value' => 'example'
49 }
50 ]
51 );
52  
53 # Results:
54 my $assessmentTemplateArn =
55 $CreateAssessmentTemplateResponse->assessmentTemplateArn;
56  
57 # Returns a L<Paws::Inspector::CreateAssessmentTemplateResponse> object.
58  
59 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.
60 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/inspector/CreateAssessmentTemplate>
61  
62 =head1 ATTRIBUTES
63  
64  
65 =head2 B<REQUIRED> AssessmentTargetArn => Str
66  
67 The ARN that specifies the assessment target for which you want to
68 create the assessment template.
69  
70  
71  
72 =head2 B<REQUIRED> AssessmentTemplateName => Str
73  
74 The user-defined name that identifies the assessment template that you
75 want to create. You can create several assessment templates for an
76 assessment target. The names of the assessment templates that
77 correspond to a particular assessment target must be unique.
78  
79  
80  
81 =head2 B<REQUIRED> DurationInSeconds => Int
82  
83 The duration of the assessment run in seconds.
84  
85  
86  
87 =head2 B<REQUIRED> RulesPackageArns => ArrayRef[Str|Undef]
88  
89 The ARNs that specify the rules packages that you want to attach to the
90 assessment template.
91  
92  
93  
94 =head2 UserAttributesForFindings => ArrayRef[L<Paws::Inspector::Attribute>]
95  
96 The user-defined attributes that are assigned to every finding that is
97 generated by the assessment run that uses this assessment template. An
98 attribute is a key and value pair (an Attribute object). Within an
99 assessment template, each key must be unique.
100  
101  
102  
103  
104 =head1 SEE ALSO
105  
106 This class forms part of L<Paws>, documenting arguments for method CreateAssessmentTemplate in L<Paws::Inspector>
107  
108 =head1 BUGS and CONTRIBUTIONS
109  
110 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
111  
112 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
113  
114 =cut
115