blib/lib/Paws/Config/PutEvaluations.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Config::PutEvaluations;
3 use Moose;
4 has Evaluations => (is => 'ro', isa => 'ArrayRef[Paws::Config::Evaluation]');
5 has ResultToken => (is => 'ro', isa => 'Str', required => 1);
6 has TestMode => (is => 'ro', isa => 'Bool');
7  
8 use MooseX::ClassAttribute;
9  
10 class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutEvaluations');
11 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Config::PutEvaluationsResponse');
12 class_has _result_key => (isa => 'Str', is => 'ro');
13 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::Config::PutEvaluations - Arguments for method PutEvaluations on L<Paws::Config>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method PutEvaluations on the
24 L<AWS Config|Paws::Config> service. Use the attributes of this class
25 as arguments to method PutEvaluations.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutEvaluations.
28  
29 =head1 SYNOPSIS
30  
31 my $config = Paws->service('Config');
32 my $PutEvaluationsResponse = $config->PutEvaluations(
33 ResultToken => 'MyString',
34 Evaluations => [
35 {
36 ComplianceResourceId => 'MyBaseResourceId', # min: 1, max: 768
37 ComplianceResourceType =>
38 'MyStringWithCharLimit256', # min: 1, max: 256
39 ComplianceType => 'COMPLIANT'
40 , # values: COMPLIANT, NON_COMPLIANT, NOT_APPLICABLE, INSUFFICIENT_DATA
41 OrderingTimestamp => '1970-01-01T01:00:00',
42 Annotation => 'MyStringWithCharLimit256', # min: 1, max: 256
43 },
44 ...
45 ], # OPTIONAL
46 TestMode => 1, # OPTIONAL
47 );
48  
49 # Results:
50 my $FailedEvaluations = $PutEvaluationsResponse->FailedEvaluations;
51  
52 # Returns a L<Paws::Config::PutEvaluationsResponse> object.
53  
54 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.
55 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/config/PutEvaluations>
56  
57 =head1 ATTRIBUTES
58  
59  
60 =head2 Evaluations => ArrayRef[L<Paws::Config::Evaluation>]
61  
62 The assessments that the AWS Lambda function performs. Each evaluation
63 identifies an AWS resource and indicates whether it complies with the
64 AWS Config rule that invokes the AWS Lambda function.
65  
66  
67  
68 =head2 B<REQUIRED> ResultToken => Str
69  
70 An encrypted token that associates an evaluation with an AWS Config
71 rule. Identifies the rule and the event that triggered the evaluation.
72  
73  
74  
75 =head2 TestMode => Bool
76  
77 Use this parameter to specify a test run for C<PutEvaluations>. You can
78 verify whether your AWS Lambda function will deliver evaluation results
79 to AWS Config. No updates occur to your existing evaluations, and
80 evaluation results are not sent to AWS Config.
81  
82 When C<TestMode> is C<true>, C<PutEvaluations> doesn't require a valid
83 value for the C<ResultToken> parameter, but the value cannot be null.
84  
85  
86  
87  
88 =head1 SEE ALSO
89  
90 This class forms part of L<Paws>, documenting arguments for method PutEvaluations in L<Paws::Config>
91  
92 =head1 BUGS and CONTRIBUTIONS
93  
94 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
95  
96 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
97  
98 =cut
99