blib/lib/Paws/IoT/ValidateSecurityProfileBehaviors.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::IoT::ValidateSecurityProfileBehaviors;
3 use Moose;
4 has Behaviors => (is => 'ro', isa => 'ArrayRef[Paws::IoT::Behavior]', traits => ['NameInRequest'], request_name => 'behaviors', required => 1);
5  
6 use MooseX::ClassAttribute;
7  
8 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ValidateSecurityProfileBehaviors');
9 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/security-profile-behaviors/validate');
10 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
11 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IoT::ValidateSecurityProfileBehaviorsResponse');
12 1;
13  
14 ### main pod documentation begin ###
15  
16 =head1 NAME
17  
18 Paws::IoT::ValidateSecurityProfileBehaviors - Arguments for method ValidateSecurityProfileBehaviors on L<Paws::IoT>
19  
20 =head1 DESCRIPTION
21  
22 This class represents the parameters used for calling the method ValidateSecurityProfileBehaviors on the
23 L<AWS IoT|Paws::IoT> service. Use the attributes of this class
24 as arguments to method ValidateSecurityProfileBehaviors.
25  
26 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ValidateSecurityProfileBehaviors.
27  
28 =head1 SYNOPSIS
29  
30 my $iot = Paws->service('IoT');
31 my $ValidateSecurityProfileBehaviorsResponse =
32 $iot->ValidateSecurityProfileBehaviors(
33 Behaviors => [
34 {
35 Name => 'MyBehaviorName', # min: 1, max: 128
36 Criteria => {
37 ComparisonOperator => 'less-than'
38 , # values: less-than, less-than-equals, greater-than, greater-than-equals, in-cidr-set, not-in-cidr-set, in-port-set, not-in-port-set, in-set, not-in-set; OPTIONAL
39 ConsecutiveDatapointsToAlarm => 1, # min: 1, max: 10; OPTIONAL
40 ConsecutiveDatapointsToClear => 1, # min: 1, max: 10; OPTIONAL
41 DurationSeconds => 1, # OPTIONAL
42 MlDetectionConfig => {
43 ConfidenceLevel => 'LOW', # values: LOW, MEDIUM, HIGH
44  
45 }, # OPTIONAL
46 StatisticalThreshold => {
47 Statistic => 'MyEvaluationStatistic', # OPTIONAL
48 }, # OPTIONAL
49 Value => {
50 Cidrs => [
51 'MyCidr', ... # min: 2, max: 43
52 ], # OPTIONAL
53 Count => 1, # OPTIONAL
54 Number => 1, # OPTIONAL
55 Numbers => [
56 1, ... # OPTIONAL
57 ], # OPTIONAL
58 Ports => [
59 1, ... # max: 65535
60 ], # OPTIONAL
61 Strings => [ 'MystringValue', ... ], # OPTIONAL
62 }, # OPTIONAL
63 }, # OPTIONAL
64 Metric => 'MyBehaviorMetric', # OPTIONAL
65 MetricDimension => {
66 DimensionName => 'MyDimensionName', # min: 1, max: 128
67 Operator => 'IN', # values: IN, NOT_IN; OPTIONAL
68 }, # OPTIONAL
69 SuppressAlerts => 1, # OPTIONAL
70 },
71 ...
72 ],
73  
74 );
75  
76 # Results:
77 my $Valid = $ValidateSecurityProfileBehaviorsResponse->Valid;
78 my $ValidationErrors =
79 $ValidateSecurityProfileBehaviorsResponse->ValidationErrors;
80  
81 # Returns a L<Paws::IoT::ValidateSecurityProfileBehaviorsResponse> object.
82  
83 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.
84 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iot/ValidateSecurityProfileBehaviors>
85  
86 =head1 ATTRIBUTES
87  
88  
89 =head2 B<REQUIRED> Behaviors => ArrayRef[L<Paws::IoT::Behavior>]
90  
91 Specifies the behaviors that, when violated by a device (thing), cause
92 an alert.
93  
94  
95  
96  
97 =head1 SEE ALSO
98  
99 This class forms part of L<Paws>, documenting arguments for method ValidateSecurityProfileBehaviors in L<Paws::IoT>
100  
101 =head1 BUGS and CONTRIBUTIONS
102  
103 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
104  
105 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
106  
107 =cut
108