File Coverage

blib/lib/Paws/CloudTrail/EventSelector.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::CloudTrail::EventSelector;
2 1     1   286 use Moose;
  1         2  
  1         6  
3             has DataResources => (is => 'ro', isa => 'ArrayRef[Paws::CloudTrail::DataResource]');
4             has IncludeManagementEvents => (is => 'ro', isa => 'Bool');
5             has ReadWriteType => (is => 'ro', isa => 'Str');
6             1;
7              
8             ### main pod documentation begin ###
9              
10             =head1 NAME
11              
12             Paws::CloudTrail::EventSelector
13              
14             =head1 USAGE
15              
16             This class represents one of two things:
17              
18             =head3 Arguments in a call to a service
19              
20             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
21             Each attribute should be used as a named argument in the calls that expect this type of object.
22              
23             As an example, if Att1 is expected to be a Paws::CloudTrail::EventSelector object:
24              
25             $service_obj->Method(Att1 => { DataResources => $value, ..., ReadWriteType => $value });
26              
27             =head3 Results returned from an API call
28              
29             Use accessors for each attribute. If Att1 is expected to be an Paws::CloudTrail::EventSelector object:
30              
31             $result = $service_obj->Method(...);
32             $result->Att1->DataResources
33              
34             =head1 DESCRIPTION
35              
36             Use event selectors to specify whether you want your trail to log
37             management and/or data events. When an event occurs in your account,
38             CloudTrail evaluates the event selector for all trails. For each trail,
39             if the event matches any event selector, the trail processes and logs
40             the event. If the event doesn't match any event selector, the trail
41             doesn't log the event.
42              
43             You can configure up to five event selectors for a trail.
44              
45             =head1 ATTRIBUTES
46              
47              
48             =head2 DataResources => ArrayRef[L<Paws::CloudTrail::DataResource>]
49              
50             CloudTrail supports logging only data events for S3 objects. You can
51             specify up to 250 S3 buckets and object prefixes for a trail.
52              
53             For more information, see Data Events in the I<AWS CloudTrail User
54             Guide>.
55              
56              
57             =head2 IncludeManagementEvents => Bool
58              
59             Specify if you want your event selector to include management events
60             for your trail.
61              
62             For more information, see Management Events in the I<AWS CloudTrail
63             User Guide>.
64              
65             By default, the value is C<true>.
66              
67              
68             =head2 ReadWriteType => Str
69              
70             Specify if you want your trail to log read-only events, write-only
71             events, or all. For example, the EC2 C<GetConsoleOutput> is a read-only
72             API operation and C<RunInstances> is a write-only API operation.
73              
74             By default, the value is C<All>.
75              
76              
77              
78             =head1 SEE ALSO
79              
80             This class forms part of L<Paws>, describing an object used in L<Paws::CloudTrail>
81              
82             =head1 BUGS and CONTRIBUTIONS
83              
84             The source code is located here: https://github.com/pplu/aws-sdk-perl
85              
86             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
87              
88             =cut
89