blib/lib/Paws/CloudTrail/EventSelector.pm untested

filter: Statementstmt 0.0% 0 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 8 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::CloudTrail::EventSelector;
3 use Moose;
4 has DataResources => (is => 'ro', isa => 'ArrayRef[Paws::CloudTrail::DataResource]');
5 has ExcludeManagementEventSources => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
6 has IncludeManagementEvents => (is => 'ro', isa => 'Bool');
7 has ReadWriteType => (is => 'ro', isa => 'Str');
8  
9 1;
10  
11 ### main pod documentation begin ###
12  
13 =head1 NAME
14  
15 Paws::CloudTrail::EventSelector
16  
17 =head1 USAGE
18  
19 This class represents one of two things:
20  
21 =head3 Arguments in a call to a service
22  
23 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
24 Each attribute should be used as a named argument in the calls that expect this type of object.
25  
26 As an example, if Att1 is expected to be a Paws::CloudTrail::EventSelector object:
27  
28 $service_obj->Method(Att1 => { DataResources => $value, ..., ReadWriteType => $value });
29  
30 =head3 Results returned from an API call
31  
32 Use accessors for each attribute. If Att1 is expected to be an Paws::CloudTrail::EventSelector object:
33  
34 $result = $service_obj->Method(...);
35 $result->Att1->DataResources
36  
37 =head1 DESCRIPTION
38  
39 Use event selectors to further specify the management and data event
40 settings for your trail. By default, trails created without specific
41 event selectors will be configured to log all read and write management
42 events, and no data events. When an event occurs in your account,
43 CloudTrail evaluates the event selector for all trails. For each trail,
44 if the event matches any event selector, the trail processes and logs
45 the event. If the event doesn't match any event selector, the trail
46 doesn't log the event.
47  
48 You can configure up to five event selectors for a trail.
49  
50 You cannot apply both event selectors and advanced event selectors to a
51 trail.
52  
53 =head1 ATTRIBUTES
54  
55  
56 =head2 DataResources => ArrayRef[L<Paws::CloudTrail::DataResource>]
57  
58 CloudTrail supports data event logging for Amazon S3 objects and AWS
59 Lambda functions with basic event selectors. You can specify up to 250
60 resources for an individual event selector, but the total number of
61 data resources cannot exceed 250 across all event selectors in a trail.
62 This limit does not apply if you configure resource logging for all
63 data events.
64  
65 For more information, see Data Events
66 (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html#logging-data-events)
67 and Limits in AWS CloudTrail
68 (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html)
69 in the I<AWS CloudTrail User Guide>.
70  
71  
72 =head2 ExcludeManagementEventSources => ArrayRef[Str|Undef]
73  
74 An optional list of service event sources from which you do not want
75 management events to be logged on your trail. In this release, the list
76 can be empty (disables the filter), or it can filter out AWS Key
77 Management Service events by containing C<"kms.amazonaws.com">. By
78 default, C<ExcludeManagementEventSources> is empty, and AWS KMS events
79 are included in events that are logged to your trail.
80  
81  
82 =head2 IncludeManagementEvents => Bool
83  
84 Specify if you want your event selector to include management events
85 for your trail.
86  
87 For more information, see Management Events
88 (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html#logging-management-events)
89 in the I<AWS CloudTrail User Guide>.
90  
91 By default, the value is C<true>.
92  
93 The first copy of management events is free. You are charged for
94 additional copies of management events that you are logging on any
95 subsequent trail in the same region. For more information about
96 CloudTrail pricing, see AWS CloudTrail Pricing
97 (http://aws.amazon.com/cloudtrail/pricing/).
98  
99  
100 =head2 ReadWriteType => Str
101  
102 Specify if you want your trail to log read-only events, write-only
103 events, or all. For example, the EC2 C<GetConsoleOutput> is a read-only
104 API operation and C<RunInstances> is a write-only API operation.
105  
106 By default, the value is C<All>.
107  
108  
109  
110 =head1 SEE ALSO
111  
112 This class forms part of L<Paws>, describing an object used in L<Paws::CloudTrail>
113  
114 =head1 BUGS and CONTRIBUTIONS
115  
116 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
117  
118 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
119  
120 =cut
121