blib/lib/Paws/FraudDetector/CreateRule.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 25 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::FraudDetector::CreateRule;
3 use Moose;
4 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description' );
5 has DetectorId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'detectorId' , required => 1);
6 has Expression => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'expression' , required => 1);
7 has Language => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'language' , required => 1);
8 has Outcomes => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'outcomes' , required => 1);
9 has RuleId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'ruleId' , required => 1);
10 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::FraudDetector::Tag]', traits => ['NameInRequest'], request_name => 'tags' );
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateRule');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::FraudDetector::CreateRuleResult');
16 class_has _result_key => (isa => 'Str', is => 'ro');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::FraudDetector::CreateRule - Arguments for method CreateRule on L<Paws::FraudDetector>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method CreateRule on the
28 L<Amazon Fraud Detector|Paws::FraudDetector> service. Use the attributes of this class
29 as arguments to method CreateRule.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateRule.
32  
33 =head1 SYNOPSIS
34  
35 my $frauddetector = Paws->service('FraudDetector');
36 my $CreateRuleResult = $frauddetector->CreateRule(
37 DetectorId => 'Myidentifier',
38 Expression => 'MyruleExpression',
39 Language => 'DETECTORPL',
40 Outcomes => [ 'Mystring', ... ],
41 RuleId => 'Myidentifier',
42 Description => 'Mydescription', # OPTIONAL
43 Tags => [
44 {
45 Key => 'MytagKey', # min: 1, max: 128
46 Value => 'MytagValue', # max: 256
47  
48 },
49 ...
50 ], # OPTIONAL
51 );
52  
53 # Results:
54 my $Rule = $CreateRuleResult->Rule;
55  
56 # Returns a L<Paws::FraudDetector::CreateRuleResult> object.
57  
58 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.
59 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/frauddetector/CreateRule>
60  
61 =head1 ATTRIBUTES
62  
63  
64 =head2 Description => Str
65  
66 The rule description.
67  
68  
69  
70 =head2 B<REQUIRED> DetectorId => Str
71  
72 The detector ID for the rule's parent detector.
73  
74  
75  
76 =head2 B<REQUIRED> Expression => Str
77  
78 The rule expression.
79  
80  
81  
82 =head2 B<REQUIRED> Language => Str
83  
84 The language of the rule.
85  
86 Valid values are: C<"DETECTORPL">
87  
88 =head2 B<REQUIRED> Outcomes => ArrayRef[Str|Undef]
89  
90 The outcome or outcomes returned when the rule expression matches.
91  
92  
93  
94 =head2 B<REQUIRED> RuleId => Str
95  
96 The rule ID.
97  
98  
99  
100 =head2 Tags => ArrayRef[L<Paws::FraudDetector::Tag>]
101  
102 A collection of key and value pairs.
103  
104  
105  
106  
107 =head1 SEE ALSO
108  
109 This class forms part of L<Paws>, documenting arguments for method CreateRule in L<Paws::FraudDetector>
110  
111 =head1 BUGS and CONTRIBUTIONS
112  
113 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
114  
115 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
116  
117 =cut
118