File Coverage

blib/lib/Paws/CloudTrail/UpdateTrail.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


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