blib/lib/Paws/CloudTrail/PutEventSelectors.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::CloudTrail::PutEventSelectors;
3 use Moose;
4 has AdvancedEventSelectors => (is => 'ro', isa => 'ArrayRef[Paws::CloudTrail::AdvancedEventSelector]');
5 has EventSelectors => (is => 'ro', isa => 'ArrayRef[Paws::CloudTrail::EventSelector]');
6 has TrailName => (is => 'ro', isa => 'Str', required => 1);
7  
8 use MooseX::ClassAttribute;
9  
10 class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutEventSelectors');
11 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CloudTrail::PutEventSelectorsResponse');
12 class_has _result_key => (isa => 'Str', is => 'ro');
13 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::CloudTrail::PutEventSelectors - Arguments for method PutEventSelectors on L<Paws::CloudTrail>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method PutEventSelectors on the
24 L<AWS CloudTrail|Paws::CloudTrail> service. Use the attributes of this class
25 as arguments to method PutEventSelectors.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutEventSelectors.
28  
29 =head1 SYNOPSIS
30  
31 my $cloudtrail = Paws->service('CloudTrail');
32 my $PutEventSelectorsResponse = $cloudtrail->PutEventSelectors(
33 TrailName => 'MyString',
34 AdvancedEventSelectors => [
35 {
36 FieldSelectors => [
37 {
38 Field => 'MySelectorField', # min: 1, max: 1000
39 EndsWith => [
40 'MyOperatorValue', ... # min: 1, max: 2048
41 ], # min: 1; OPTIONAL
42 Equals => [
43 'MyOperatorValue', ... # min: 1, max: 2048
44 ], # min: 1; OPTIONAL
45 NotEndsWith => [
46 'MyOperatorValue', ... # min: 1, max: 2048
47 ], # min: 1; OPTIONAL
48 NotEquals => [
49 'MyOperatorValue', ... # min: 1, max: 2048
50 ], # min: 1; OPTIONAL
51 NotStartsWith => [
52 'MyOperatorValue', ... # min: 1, max: 2048
53 ], # min: 1; OPTIONAL
54 StartsWith => [
55 'MyOperatorValue', ... # min: 1, max: 2048
56 ], # min: 1; OPTIONAL
57 },
58 ...
59 ], # min: 1
60 Name => 'MySelectorName', # max: 1000; OPTIONAL
61 },
62 ...
63 ], # OPTIONAL
64 EventSelectors => [
65 {
66 DataResources => [
67 {
68 Type => 'MyString',
69 Values => [ 'MyString', ... ], # OPTIONAL
70 },
71 ...
72 ], # OPTIONAL
73 ExcludeManagementEventSources => [ 'MyString', ... ], # OPTIONAL
74 IncludeManagementEvents => 1, # OPTIONAL
75 ReadWriteType =>
76 'ReadOnly', # values: ReadOnly, WriteOnly, All; OPTIONAL
77 },
78 ...
79 ], # OPTIONAL
80 );
81  
82 # Results:
83 my $AdvancedEventSelectors =
84 $PutEventSelectorsResponse->AdvancedEventSelectors;
85 my $EventSelectors = $PutEventSelectorsResponse->EventSelectors;
86 my $TrailARN = $PutEventSelectorsResponse->TrailARN;
87  
88 # Returns a L<Paws::CloudTrail::PutEventSelectorsResponse> object.
89  
90 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.
91 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/cloudtrail/PutEventSelectors>
92  
93 =head1 ATTRIBUTES
94  
95  
96 =head2 AdvancedEventSelectors => ArrayRef[L<Paws::CloudTrail::AdvancedEventSelector>]
97  
98 Specifies the settings for advanced event selectors. You can add
99 advanced event selectors, and conditions for your advanced event
100 selectors, up to a maximum of 500 values for all conditions and
101 selectors on a trail. You can use either C<AdvancedEventSelectors> or
102 C<EventSelectors>, but not both. If you apply C<AdvancedEventSelectors>
103 to a trail, any existing C<EventSelectors> are overwritten. For more
104 information about advanced event selectors, see Logging data events for
105 trails
106 (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html)
107 in the I<AWS CloudTrail User Guide>.
108  
109  
110  
111 =head2 EventSelectors => ArrayRef[L<Paws::CloudTrail::EventSelector>]
112  
113 Specifies the settings for your event selectors. You can configure up
114 to five event selectors for a trail. You can use either
115 C<EventSelectors> or C<AdvancedEventSelectors> in a
116 C<PutEventSelectors> request, but not both. If you apply
117 C<EventSelectors> to a trail, any existing C<AdvancedEventSelectors>
118 are overwritten.
119  
120  
121  
122 =head2 B<REQUIRED> TrailName => Str
123  
124 Specifies the name of the trail or trail ARN. If you specify a trail
125 name, the string must meet the following requirements:
126  
127 =over
128  
129 =item *
130  
131 Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.),
132 underscores (_), or dashes (-)
133  
134 =item *
135  
136 Start with a letter or number, and end with a letter or number
137  
138 =item *
139  
140 Be between 3 and 128 characters
141  
142 =item *
143  
144 Have no adjacent periods, underscores or dashes. Names like
145 C<my-_namespace> and C<my--namespace> are invalid.
146  
147 =item *
148  
149 Not be in IP address format (for example, 192.168.5.4)
150  
151 =back
152  
153 If you specify a trail ARN, it must be in the format:
154  
155 C<arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail>
156  
157  
158  
159  
160 =head1 SEE ALSO
161  
162 This class forms part of L<Paws>, documenting arguments for method PutEventSelectors in L<Paws::CloudTrail>
163  
164 =head1 BUGS and CONTRIBUTIONS
165  
166 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
167  
168 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
169  
170 =cut
171