line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Paws::CloudTrail::CreateTrail; |
3
|
1
|
|
|
1
|
|
472
|
use Moose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
11
|
|
4
|
|
|
|
|
|
|
has CloudWatchLogsLogGroupArn => (is => 'ro', isa => 'Str'); |
5
|
|
|
|
|
|
|
has CloudWatchLogsRoleArn => (is => 'ro', isa => 'Str'); |
6
|
|
|
|
|
|
|
has EnableLogFileValidation => (is => 'ro', isa => 'Bool'); |
7
|
|
|
|
|
|
|
has IncludeGlobalServiceEvents => (is => 'ro', isa => 'Bool'); |
8
|
|
|
|
|
|
|
has IsMultiRegionTrail => (is => 'ro', isa => 'Bool'); |
9
|
|
|
|
|
|
|
has KmsKeyId => (is => 'ro', isa => 'Str'); |
10
|
|
|
|
|
|
|
has Name => (is => 'ro', isa => 'Str', required => 1); |
11
|
|
|
|
|
|
|
has S3BucketName => (is => 'ro', isa => 'Str', required => 1); |
12
|
|
|
|
|
|
|
has S3KeyPrefix => (is => 'ro', isa => 'Str'); |
13
|
|
|
|
|
|
|
has SnsTopicName => (is => 'ro', isa => 'Str'); |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
8388
|
use MooseX::ClassAttribute; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
11
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateTrail'); |
18
|
|
|
|
|
|
|
class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CloudTrail::CreateTrailResponse'); |
19
|
|
|
|
|
|
|
class_has _result_key => (isa => 'Str', is => 'ro'); |
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
### main pod documentation begin ### |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 NAME |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
Paws::CloudTrail::CreateTrail - Arguments for method CreateTrail on Paws::CloudTrail |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 DESCRIPTION |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
This class represents the parameters used for calling the method CreateTrail on the |
31
|
|
|
|
|
|
|
AWS CloudTrail service. Use the attributes of this class |
32
|
|
|
|
|
|
|
as arguments to method CreateTrail. |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateTrail. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
As an example: |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
$service_obj->CreateTrail(Att1 => $value1, Att2 => $value2, ...); |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
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. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head2 CloudWatchLogsLogGroupArn => Str |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Specifies a log group name using an Amazon Resource Name (ARN), a |
48
|
|
|
|
|
|
|
unique identifier that represents the log group to which CloudTrail |
49
|
|
|
|
|
|
|
logs will be delivered. Not required unless you specify |
50
|
|
|
|
|
|
|
CloudWatchLogsRoleArn. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head2 CloudWatchLogsRoleArn => Str |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Specifies the role for the CloudWatch Logs endpoint to assume to write |
57
|
|
|
|
|
|
|
to a user's log group. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head2 EnableLogFileValidation => Bool |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Specifies whether log file integrity validation is enabled. The default |
64
|
|
|
|
|
|
|
is false. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
When you disable log file integrity validation, the chain of digest |
67
|
|
|
|
|
|
|
files is broken after one hour. CloudTrail will not create digest files |
68
|
|
|
|
|
|
|
for log files that were delivered during a period in which log file |
69
|
|
|
|
|
|
|
integrity validation was disabled. For example, if you enable log file |
70
|
|
|
|
|
|
|
integrity validation at noon on January 1, disable it at noon on |
71
|
|
|
|
|
|
|
January 2, and re-enable it at noon on January 10, digest files will |
72
|
|
|
|
|
|
|
not be created for the log files delivered from noon on January 2 to |
73
|
|
|
|
|
|
|
noon on January 10. The same applies whenever you stop CloudTrail |
74
|
|
|
|
|
|
|
logging or delete a trail. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head2 IncludeGlobalServiceEvents => Bool |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Specifies whether the trail is publishing events from global services |
81
|
|
|
|
|
|
|
such as IAM to the log files. |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head2 IsMultiRegionTrail => Bool |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
Specifies whether the trail is created in the current region or in all |
88
|
|
|
|
|
|
|
regions. The default is false. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head2 KmsKeyId => Str |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
Specifies the KMS key ID to use to encrypt the logs delivered by |
95
|
|
|
|
|
|
|
CloudTrail. The value can be an alias name prefixed by "alias/", a |
96
|
|
|
|
|
|
|
fully specified ARN to an alias, a fully specified ARN to a key, or a |
97
|
|
|
|
|
|
|
globally unique identifier. |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
Examples: |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=over |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=item * |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
alias/MyAliasName |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=item * |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
arn:aws:kms:us-east-1:123456789012:alias/MyAliasName |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=item * |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=item * |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
12345678-1234-1234-1234-123456789012 |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=back |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=head2 B<REQUIRED> Name => Str |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
Specifies the name of the trail. The name must meet the following |
127
|
|
|
|
|
|
|
requirements: |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
=over |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
=item * |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), |
134
|
|
|
|
|
|
|
underscores (_), or dashes (-) |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=item * |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
Start with a letter or number, and end with a letter or number |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=item * |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
Be between 3 and 128 characters |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=item * |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
Have no adjacent periods, underscores or dashes. Names like |
147
|
|
|
|
|
|
|
C<my-_namespace> and C<my--namespace> are invalid. |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
=item * |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
Not be in IP address format (for example, 192.168.5.4) |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
=back |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
=head2 B<REQUIRED> S3BucketName => Str |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
Specifies the name of the Amazon S3 bucket designated for publishing |
161
|
|
|
|
|
|
|
log files. See Amazon S3 Bucket Naming Requirements. |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
=head2 S3KeyPrefix => Str |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
Specifies the Amazon S3 key prefix that comes after the name of the |
168
|
|
|
|
|
|
|
bucket you have designated for log file delivery. For more information, |
169
|
|
|
|
|
|
|
see Finding Your CloudTrail Log Files. The maximum length is 200 |
170
|
|
|
|
|
|
|
characters. |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
=head2 SnsTopicName => Str |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
Specifies the name of the Amazon SNS topic defined for notification of |
177
|
|
|
|
|
|
|
log file delivery. The maximum length is 256 characters. |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
=head1 SEE ALSO |
183
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
This class forms part of L<Paws>, documenting arguments for method CreateTrail in L<Paws::CloudTrail> |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
=head1 BUGS and CONTRIBUTIONS |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
The source code is located here: https://github.com/pplu/aws-sdk-perl |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
=cut |
193
|
|
|
|
|
|
|
|