aws-sdk-cloudtrail 1.18.0 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/lib/aws-sdk-cloudtrail.rb +7 -4
- data/lib/aws-sdk-cloudtrail/client.rb +321 -40
- data/lib/aws-sdk-cloudtrail/client_api.rb +223 -0
- data/lib/aws-sdk-cloudtrail/errors.rb +484 -0
- data/lib/aws-sdk-cloudtrail/resource.rb +1 -0
- data/lib/aws-sdk-cloudtrail/types.rb +655 -44
- metadata +3 -3
@@ -49,6 +49,35 @@ module Aws::CloudTrail
|
|
49
49
|
#
|
50
50
|
class AddTagsResponse < Aws::EmptyStructure; end
|
51
51
|
|
52
|
+
# This exception is thrown when an operation is called with an invalid
|
53
|
+
# trail ARN. The format of a trail ARN is:
|
54
|
+
#
|
55
|
+
# `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
|
56
|
+
#
|
57
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CloudTrailARNInvalidException AWS API Documentation
|
58
|
+
#
|
59
|
+
class CloudTrailARNInvalidException < Aws::EmptyStructure; end
|
60
|
+
|
61
|
+
# This exception is thrown when trusted access has not been enabled
|
62
|
+
# between AWS CloudTrail and AWS Organizations. For more information,
|
63
|
+
# see [Enabling Trusted Access with Other AWS Services][1] and [Prepare
|
64
|
+
# For Creating a Trail For Your Organization][2].
|
65
|
+
#
|
66
|
+
#
|
67
|
+
#
|
68
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
|
69
|
+
# [2]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html
|
70
|
+
#
|
71
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CloudTrailAccessNotEnabledException AWS API Documentation
|
72
|
+
#
|
73
|
+
class CloudTrailAccessNotEnabledException < Aws::EmptyStructure; end
|
74
|
+
|
75
|
+
# Cannot set a CloudWatch Logs delivery for this region.
|
76
|
+
#
|
77
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CloudWatchLogsDeliveryUnavailableException AWS API Documentation
|
78
|
+
#
|
79
|
+
class CloudWatchLogsDeliveryUnavailableException < Aws::EmptyStructure; end
|
80
|
+
|
52
81
|
# Specifies the settings for each trail.
|
53
82
|
#
|
54
83
|
# @note When making an API call, you may pass CreateTrailRequest
|
@@ -66,6 +95,12 @@ module Aws::CloudTrail
|
|
66
95
|
# cloud_watch_logs_role_arn: "String",
|
67
96
|
# kms_key_id: "String",
|
68
97
|
# is_organization_trail: false,
|
98
|
+
# tags_list: [
|
99
|
+
# {
|
100
|
+
# key: "String", # required
|
101
|
+
# value: "String",
|
102
|
+
# },
|
103
|
+
# ],
|
69
104
|
# }
|
70
105
|
#
|
71
106
|
# @!attribute [rw] name
|
@@ -91,7 +126,7 @@ module Aws::CloudTrail
|
|
91
126
|
#
|
92
127
|
#
|
93
128
|
#
|
94
|
-
# [1]:
|
129
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html
|
95
130
|
# @return [String]
|
96
131
|
#
|
97
132
|
# @!attribute [rw] s3_key_prefix
|
@@ -102,7 +137,7 @@ module Aws::CloudTrail
|
|
102
137
|
#
|
103
138
|
#
|
104
139
|
#
|
105
|
-
# [1]:
|
140
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html
|
106
141
|
# @return [String]
|
107
142
|
#
|
108
143
|
# @!attribute [rw] sns_topic_name
|
@@ -117,7 +152,9 @@ module Aws::CloudTrail
|
|
117
152
|
#
|
118
153
|
# @!attribute [rw] is_multi_region_trail
|
119
154
|
# Specifies whether the trail is created in the current region or in
|
120
|
-
# all regions. The default is false
|
155
|
+
# all regions. The default is false, which creates a trail only in the
|
156
|
+
# region where you are signed in. As a best practice, consider
|
157
|
+
# creating trails that log events in all regions.
|
121
158
|
# @return [Boolean]
|
122
159
|
#
|
123
160
|
# @!attribute [rw] enable_log_file_validation
|
@@ -174,6 +211,10 @@ module Aws::CloudTrail
|
|
174
211
|
# organization in AWS Organizations.
|
175
212
|
# @return [Boolean]
|
176
213
|
#
|
214
|
+
# @!attribute [rw] tags_list
|
215
|
+
# A list of tags.
|
216
|
+
# @return [Array<Types::Tag>]
|
217
|
+
#
|
177
218
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateTrailRequest AWS API Documentation
|
178
219
|
#
|
179
220
|
class CreateTrailRequest < Struct.new(
|
@@ -187,7 +228,8 @@ module Aws::CloudTrail
|
|
187
228
|
:cloud_watch_logs_log_group_arn,
|
188
229
|
:cloud_watch_logs_role_arn,
|
189
230
|
:kms_key_id,
|
190
|
-
:is_organization_trail
|
231
|
+
:is_organization_trail,
|
232
|
+
:tags_list)
|
191
233
|
include Aws::Structure
|
192
234
|
end
|
193
235
|
|
@@ -210,11 +252,11 @@ module Aws::CloudTrail
|
|
210
252
|
#
|
211
253
|
#
|
212
254
|
#
|
213
|
-
# [1]:
|
255
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html
|
214
256
|
# @return [String]
|
215
257
|
#
|
216
258
|
# @!attribute [rw] sns_topic_name
|
217
|
-
# This field is
|
259
|
+
# This field is no longer in use. Use SnsTopicARN.
|
218
260
|
# @return [String]
|
219
261
|
#
|
220
262
|
# @!attribute [rw] sns_topic_arn
|
@@ -288,9 +330,9 @@ module Aws::CloudTrail
|
|
288
330
|
|
289
331
|
# The Amazon S3 buckets or AWS Lambda functions that you specify in your
|
290
332
|
# event selectors for your trail to log data events. Data events provide
|
291
|
-
#
|
292
|
-
# itself. These are also known as data plane operations. You
|
293
|
-
# up to 250 data resources for a trail.
|
333
|
+
# information about the resource operations performed on or within a
|
334
|
+
# resource itself. These are also known as data plane operations. You
|
335
|
+
# can specify up to 250 data resources for a trail.
|
294
336
|
#
|
295
337
|
# <note markdown="1"> The total number of allowed data resources is 250. This number can be
|
296
338
|
# distributed between 1 and 5 event selectors, but the total cannot
|
@@ -300,7 +342,7 @@ module Aws::CloudTrail
|
|
300
342
|
#
|
301
343
|
# The following example demonstrates how logging works when you
|
302
344
|
# configure logging of all data events for an S3 bucket named
|
303
|
-
# `bucket-1`. In this example, the CloudTrail user
|
345
|
+
# `bucket-1`. In this example, the CloudTrail user specified an empty
|
304
346
|
# prefix, and the option to log both `Read` and `Write` data events.
|
305
347
|
#
|
306
348
|
# 1. A user uploads an image file to `bucket-1`.
|
@@ -364,11 +406,6 @@ module Aws::CloudTrail
|
|
364
406
|
#
|
365
407
|
# </note>
|
366
408
|
#
|
367
|
-
# * To log data events for all objects in all S3 buckets that include
|
368
|
-
# *my-bucket* in their names, specify the prefix as
|
369
|
-
# `aws:s3:::my-bucket`. The trail logs data events for all objects
|
370
|
-
# in all buckets whose name contains a match for *my-bucket*.
|
371
|
-
#
|
372
409
|
# * To log data events for all objects in an S3 bucket, specify the
|
373
410
|
# bucket and an empty object prefix such as
|
374
411
|
# `arn:aws:s3:::bucket-1/`. The trail logs data events for all
|
@@ -388,11 +425,11 @@ module Aws::CloudTrail
|
|
388
425
|
#
|
389
426
|
# </note>
|
390
427
|
#
|
391
|
-
# * To log data
|
428
|
+
# * To log data events for a specific Lambda function, specify the
|
392
429
|
# function ARN.
|
393
430
|
#
|
394
|
-
# <note markdown="1"> Lambda function ARNs are exact.
|
395
|
-
#
|
431
|
+
# <note markdown="1"> Lambda function ARNs are exact. For example, if you specify a
|
432
|
+
# function ARN
|
396
433
|
# *arn:aws:lambda:us-west-2:111111111111:function:helloworld*, data
|
397
434
|
# events will only be logged for
|
398
435
|
# *arn:aws:lambda:us-west-2:111111111111:function:helloworld*. They
|
@@ -495,7 +532,12 @@ module Aws::CloudTrail
|
|
495
532
|
# returns an error.
|
496
533
|
#
|
497
534
|
# @!attribute [rw] trail_list
|
498
|
-
# The list of trail objects.
|
535
|
+
# The list of trail objects. Trail objects with string values are only
|
536
|
+
# returned if values for the objects exist in a trail's
|
537
|
+
# configuration. For example, `SNSTopicName` and `SNSTopicARN` are
|
538
|
+
# only returned in results if a trail is configured to send SNS
|
539
|
+
# notifications. Similarly, `KMSKeyId` only appears in results if a
|
540
|
+
# trail's log files are encrypted with AWS KMS-managed keys.
|
499
541
|
# @return [Array<Types::Trail>]
|
500
542
|
#
|
501
543
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DescribeTrailsResponse AWS API Documentation
|
@@ -586,6 +628,7 @@ module Aws::CloudTrail
|
|
586
628
|
# values: ["String"],
|
587
629
|
# },
|
588
630
|
# ],
|
631
|
+
# exclude_management_event_sources: ["String"],
|
589
632
|
# }
|
590
633
|
#
|
591
634
|
# @!attribute [rw] read_write_type
|
@@ -608,7 +651,7 @@ module Aws::CloudTrail
|
|
608
651
|
#
|
609
652
|
#
|
610
653
|
#
|
611
|
-
# [1]:
|
654
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html#logging-management-events
|
612
655
|
# @return [Boolean]
|
613
656
|
#
|
614
657
|
# @!attribute [rw] data_resources
|
@@ -624,16 +667,26 @@ module Aws::CloudTrail
|
|
624
667
|
#
|
625
668
|
#
|
626
669
|
#
|
627
|
-
# [1]:
|
670
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html#logging-data-events
|
628
671
|
# [2]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html
|
629
672
|
# @return [Array<Types::DataResource>]
|
630
673
|
#
|
674
|
+
# @!attribute [rw] exclude_management_event_sources
|
675
|
+
# An optional list of service event sources from which you do not want
|
676
|
+
# management events to be logged on your trail. In this release, the
|
677
|
+
# list can be empty (disables the filter), or it can filter out AWS
|
678
|
+
# Key Management Service events by containing `"kms.amazonaws.com"`.
|
679
|
+
# By default, `ExcludeManagementEventSources` is empty, and AWS KMS
|
680
|
+
# events are included in events that are logged to your trail.
|
681
|
+
# @return [Array<String>]
|
682
|
+
#
|
631
683
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/EventSelector AWS API Documentation
|
632
684
|
#
|
633
685
|
class EventSelector < Struct.new(
|
634
686
|
:read_write_type,
|
635
687
|
:include_management_events,
|
636
|
-
:data_resources
|
688
|
+
:data_resources,
|
689
|
+
:exclude_management_event_sources)
|
637
690
|
include Aws::Structure
|
638
691
|
end
|
639
692
|
|
@@ -688,6 +741,90 @@ module Aws::CloudTrail
|
|
688
741
|
include Aws::Structure
|
689
742
|
end
|
690
743
|
|
744
|
+
# @note When making an API call, you may pass GetInsightSelectorsRequest
|
745
|
+
# data as a hash:
|
746
|
+
#
|
747
|
+
# {
|
748
|
+
# trail_name: "String", # required
|
749
|
+
# }
|
750
|
+
#
|
751
|
+
# @!attribute [rw] trail_name
|
752
|
+
# Specifies the name of the trail or trail ARN. If you specify a trail
|
753
|
+
# name, the string must meet the following requirements:
|
754
|
+
#
|
755
|
+
# * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.),
|
756
|
+
# underscores (\_), or dashes (-)
|
757
|
+
#
|
758
|
+
# * Start with a letter or number, and end with a letter or number
|
759
|
+
#
|
760
|
+
# * Be between 3 and 128 characters
|
761
|
+
#
|
762
|
+
# * Have no adjacent periods, underscores or dashes. Names like
|
763
|
+
# `my-_namespace` and `my--namespace` are not valid.
|
764
|
+
#
|
765
|
+
# * Not be in IP address format (for example, 192.168.5.4)
|
766
|
+
#
|
767
|
+
# If you specify a trail ARN, it must be in the format:
|
768
|
+
#
|
769
|
+
# `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
|
770
|
+
# @return [String]
|
771
|
+
#
|
772
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetInsightSelectorsRequest AWS API Documentation
|
773
|
+
#
|
774
|
+
class GetInsightSelectorsRequest < Struct.new(
|
775
|
+
:trail_name)
|
776
|
+
include Aws::Structure
|
777
|
+
end
|
778
|
+
|
779
|
+
# @!attribute [rw] trail_arn
|
780
|
+
# The Amazon Resource Name (ARN) of a trail for which you want to get
|
781
|
+
# Insights selectors.
|
782
|
+
# @return [String]
|
783
|
+
#
|
784
|
+
# @!attribute [rw] insight_selectors
|
785
|
+
# A JSON string that contains the insight types you want to log on a
|
786
|
+
# trail. In this release, only `ApiCallRateInsight` is supported as an
|
787
|
+
# insight type.
|
788
|
+
# @return [Array<Types::InsightSelector>]
|
789
|
+
#
|
790
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetInsightSelectorsResponse AWS API Documentation
|
791
|
+
#
|
792
|
+
class GetInsightSelectorsResponse < Struct.new(
|
793
|
+
:trail_arn,
|
794
|
+
:insight_selectors)
|
795
|
+
include Aws::Structure
|
796
|
+
end
|
797
|
+
|
798
|
+
# @note When making an API call, you may pass GetTrailRequest
|
799
|
+
# data as a hash:
|
800
|
+
#
|
801
|
+
# {
|
802
|
+
# name: "String", # required
|
803
|
+
# }
|
804
|
+
#
|
805
|
+
# @!attribute [rw] name
|
806
|
+
# The name or the Amazon Resource Name (ARN) of the trail for which
|
807
|
+
# you want to retrieve settings information.
|
808
|
+
# @return [String]
|
809
|
+
#
|
810
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetTrailRequest AWS API Documentation
|
811
|
+
#
|
812
|
+
class GetTrailRequest < Struct.new(
|
813
|
+
:name)
|
814
|
+
include Aws::Structure
|
815
|
+
end
|
816
|
+
|
817
|
+
# @!attribute [rw] trail
|
818
|
+
# The settings for a trail.
|
819
|
+
# @return [Types::Trail]
|
820
|
+
#
|
821
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetTrailResponse AWS API Documentation
|
822
|
+
#
|
823
|
+
class GetTrailResponse < Struct.new(
|
824
|
+
:trail)
|
825
|
+
include Aws::Structure
|
826
|
+
end
|
827
|
+
|
691
828
|
# The name of a trail about which you want the current status.
|
692
829
|
#
|
693
830
|
# @note When making an API call, you may pass GetTrailStatusRequest
|
@@ -736,7 +873,7 @@ module Aws::CloudTrail
|
|
736
873
|
#
|
737
874
|
#
|
738
875
|
#
|
739
|
-
# [1]:
|
876
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
|
740
877
|
# @return [String]
|
741
878
|
#
|
742
879
|
# @!attribute [rw] latest_notification_error
|
@@ -746,7 +883,7 @@ module Aws::CloudTrail
|
|
746
883
|
#
|
747
884
|
#
|
748
885
|
#
|
749
|
-
# [1]:
|
886
|
+
# [1]: https://docs.aws.amazon.com/sns/latest/dg/welcome.html
|
750
887
|
# @return [String]
|
751
888
|
#
|
752
889
|
# @!attribute [rw] latest_delivery_time
|
@@ -801,31 +938,31 @@ module Aws::CloudTrail
|
|
801
938
|
#
|
802
939
|
#
|
803
940
|
#
|
804
|
-
# [1]:
|
941
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
|
805
942
|
# @return [String]
|
806
943
|
#
|
807
944
|
# @!attribute [rw] latest_delivery_attempt_time
|
808
|
-
# This field is
|
945
|
+
# This field is no longer in use.
|
809
946
|
# @return [String]
|
810
947
|
#
|
811
948
|
# @!attribute [rw] latest_notification_attempt_time
|
812
|
-
# This field is
|
949
|
+
# This field is no longer in use.
|
813
950
|
# @return [String]
|
814
951
|
#
|
815
952
|
# @!attribute [rw] latest_notification_attempt_succeeded
|
816
|
-
# This field is
|
953
|
+
# This field is no longer in use.
|
817
954
|
# @return [String]
|
818
955
|
#
|
819
956
|
# @!attribute [rw] latest_delivery_attempt_succeeded
|
820
|
-
# This field is
|
957
|
+
# This field is no longer in use.
|
821
958
|
# @return [String]
|
822
959
|
#
|
823
960
|
# @!attribute [rw] time_logging_started
|
824
|
-
# This field is
|
961
|
+
# This field is no longer in use.
|
825
962
|
# @return [String]
|
826
963
|
#
|
827
964
|
# @!attribute [rw] time_logging_stopped
|
828
|
-
# This field is
|
965
|
+
# This field is no longer in use.
|
829
966
|
# @return [String]
|
830
967
|
#
|
831
968
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetTrailStatusResponse AWS API Documentation
|
@@ -851,6 +988,245 @@ module Aws::CloudTrail
|
|
851
988
|
include Aws::Structure
|
852
989
|
end
|
853
990
|
|
991
|
+
# If you run `GetInsightSelectors` on a trail that does not have
|
992
|
+
# Insights events enabled, the operation throws the exception
|
993
|
+
# `InsightNotEnabledException`.
|
994
|
+
#
|
995
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InsightNotEnabledException AWS API Documentation
|
996
|
+
#
|
997
|
+
class InsightNotEnabledException < Aws::EmptyStructure; end
|
998
|
+
|
999
|
+
# A JSON string that contains a list of insight types that are logged on
|
1000
|
+
# a trail.
|
1001
|
+
#
|
1002
|
+
# @note When making an API call, you may pass InsightSelector
|
1003
|
+
# data as a hash:
|
1004
|
+
#
|
1005
|
+
# {
|
1006
|
+
# insight_type: "ApiCallRateInsight", # accepts ApiCallRateInsight
|
1007
|
+
# }
|
1008
|
+
#
|
1009
|
+
# @!attribute [rw] insight_type
|
1010
|
+
# The type of insights to log on a trail. In this release, only
|
1011
|
+
# `ApiCallRateInsight` is supported as an insight type.
|
1012
|
+
# @return [String]
|
1013
|
+
#
|
1014
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InsightSelector AWS API Documentation
|
1015
|
+
#
|
1016
|
+
class InsightSelector < Struct.new(
|
1017
|
+
:insight_type)
|
1018
|
+
include Aws::Structure
|
1019
|
+
end
|
1020
|
+
|
1021
|
+
# This exception is thrown when the IAM user or role that is used to
|
1022
|
+
# create the organization trail is lacking one or more required
|
1023
|
+
# permissions for creating an organization trail in a required service.
|
1024
|
+
# For more information, see [Prepare For Creating a Trail For Your
|
1025
|
+
# Organization][1].
|
1026
|
+
#
|
1027
|
+
#
|
1028
|
+
#
|
1029
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html
|
1030
|
+
#
|
1031
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InsufficientDependencyServiceAccessPermissionException AWS API Documentation
|
1032
|
+
#
|
1033
|
+
class InsufficientDependencyServiceAccessPermissionException < Aws::EmptyStructure; end
|
1034
|
+
|
1035
|
+
# This exception is thrown when the policy on the S3 bucket or KMS key
|
1036
|
+
# is not sufficient.
|
1037
|
+
#
|
1038
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InsufficientEncryptionPolicyException AWS API Documentation
|
1039
|
+
#
|
1040
|
+
class InsufficientEncryptionPolicyException < Aws::EmptyStructure; end
|
1041
|
+
|
1042
|
+
# This exception is thrown when the policy on the S3 bucket is not
|
1043
|
+
# sufficient.
|
1044
|
+
#
|
1045
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InsufficientS3BucketPolicyException AWS API Documentation
|
1046
|
+
#
|
1047
|
+
class InsufficientS3BucketPolicyException < Aws::EmptyStructure; end
|
1048
|
+
|
1049
|
+
# This exception is thrown when the policy on the SNS topic is not
|
1050
|
+
# sufficient.
|
1051
|
+
#
|
1052
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InsufficientSnsTopicPolicyException AWS API Documentation
|
1053
|
+
#
|
1054
|
+
class InsufficientSnsTopicPolicyException < Aws::EmptyStructure; end
|
1055
|
+
|
1056
|
+
# This exception is thrown when the provided CloudWatch log group is not
|
1057
|
+
# valid.
|
1058
|
+
#
|
1059
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidCloudWatchLogsLogGroupArnException AWS API Documentation
|
1060
|
+
#
|
1061
|
+
class InvalidCloudWatchLogsLogGroupArnException < Aws::EmptyStructure; end
|
1062
|
+
|
1063
|
+
# This exception is thrown when the provided role is not valid.
|
1064
|
+
#
|
1065
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidCloudWatchLogsRoleArnException AWS API Documentation
|
1066
|
+
#
|
1067
|
+
class InvalidCloudWatchLogsRoleArnException < Aws::EmptyStructure; end
|
1068
|
+
|
1069
|
+
# Occurs if an event category that is not valid is specified as a value
|
1070
|
+
# of `EventCategory`.
|
1071
|
+
#
|
1072
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidEventCategoryException AWS API Documentation
|
1073
|
+
#
|
1074
|
+
class InvalidEventCategoryException < Aws::EmptyStructure; end
|
1075
|
+
|
1076
|
+
# This exception is thrown when the `PutEventSelectors` operation is
|
1077
|
+
# called with a number of event selectors or data resources that is not
|
1078
|
+
# valid. The combination of event selectors and data resources is not
|
1079
|
+
# valid. A trail can have up to 5 event selectors. A trail is limited to
|
1080
|
+
# 250 data resources. These data resources can be distributed across
|
1081
|
+
# event selectors, but the overall total cannot exceed 250.
|
1082
|
+
#
|
1083
|
+
# You can:
|
1084
|
+
#
|
1085
|
+
# * Specify a valid number of event selectors (1 to 5) for a trail.
|
1086
|
+
#
|
1087
|
+
# * Specify a valid number of data resources (1 to 250) for an event
|
1088
|
+
# selector. The limit of number of resources on an individual event
|
1089
|
+
# selector is configurable up to 250. However, this upper limit is
|
1090
|
+
# allowed only if the total number of data resources does not exceed
|
1091
|
+
# 250 across all event selectors for a trail.
|
1092
|
+
#
|
1093
|
+
# * Specify a valid value for a parameter. For example, specifying the
|
1094
|
+
# `ReadWriteType` parameter with a value of `read-only` is invalid.
|
1095
|
+
#
|
1096
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidEventSelectorsException AWS API Documentation
|
1097
|
+
#
|
1098
|
+
class InvalidEventSelectorsException < Aws::EmptyStructure; end
|
1099
|
+
|
1100
|
+
# This exception is thrown when an operation is called on a trail from a
|
1101
|
+
# region other than the region in which the trail was created.
|
1102
|
+
#
|
1103
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidHomeRegionException AWS API Documentation
|
1104
|
+
#
|
1105
|
+
class InvalidHomeRegionException < Aws::EmptyStructure; end
|
1106
|
+
|
1107
|
+
# The formatting or syntax of the `InsightSelectors` JSON statement in
|
1108
|
+
# your `PutInsightSelectors` or `GetInsightSelectors` request is not
|
1109
|
+
# valid, or the specified insight type in the `InsightSelectors`
|
1110
|
+
# statement is not a valid insight type.
|
1111
|
+
#
|
1112
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidInsightSelectorsException AWS API Documentation
|
1113
|
+
#
|
1114
|
+
class InvalidInsightSelectorsException < Aws::EmptyStructure; end
|
1115
|
+
|
1116
|
+
# This exception is thrown when the KMS key ARN is invalid.
|
1117
|
+
#
|
1118
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidKmsKeyIdException AWS API Documentation
|
1119
|
+
#
|
1120
|
+
class InvalidKmsKeyIdException < Aws::EmptyStructure; end
|
1121
|
+
|
1122
|
+
# Occurs when an invalid lookup attribute is specified.
|
1123
|
+
#
|
1124
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidLookupAttributesException AWS API Documentation
|
1125
|
+
#
|
1126
|
+
class InvalidLookupAttributesException < Aws::EmptyStructure; end
|
1127
|
+
|
1128
|
+
# This exception is thrown if the limit specified is invalid.
|
1129
|
+
#
|
1130
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidMaxResultsException AWS API Documentation
|
1131
|
+
#
|
1132
|
+
class InvalidMaxResultsException < Aws::EmptyStructure; end
|
1133
|
+
|
1134
|
+
# Invalid token or token that was previously used in a request with
|
1135
|
+
# different parameters. This exception is thrown if the token is
|
1136
|
+
# invalid.
|
1137
|
+
#
|
1138
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidNextTokenException AWS API Documentation
|
1139
|
+
#
|
1140
|
+
class InvalidNextTokenException < Aws::EmptyStructure; end
|
1141
|
+
|
1142
|
+
# This exception is thrown when the combination of parameters provided
|
1143
|
+
# is not valid.
|
1144
|
+
#
|
1145
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidParameterCombinationException AWS API Documentation
|
1146
|
+
#
|
1147
|
+
class InvalidParameterCombinationException < Aws::EmptyStructure; end
|
1148
|
+
|
1149
|
+
# This exception is thrown when the provided S3 bucket name is not
|
1150
|
+
# valid.
|
1151
|
+
#
|
1152
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidS3BucketNameException AWS API Documentation
|
1153
|
+
#
|
1154
|
+
class InvalidS3BucketNameException < Aws::EmptyStructure; end
|
1155
|
+
|
1156
|
+
# This exception is thrown when the provided S3 prefix is not valid.
|
1157
|
+
#
|
1158
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidS3PrefixException AWS API Documentation
|
1159
|
+
#
|
1160
|
+
class InvalidS3PrefixException < Aws::EmptyStructure; end
|
1161
|
+
|
1162
|
+
# This exception is thrown when the provided SNS topic name is not
|
1163
|
+
# valid.
|
1164
|
+
#
|
1165
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidSnsTopicNameException AWS API Documentation
|
1166
|
+
#
|
1167
|
+
class InvalidSnsTopicNameException < Aws::EmptyStructure; end
|
1168
|
+
|
1169
|
+
# This exception is thrown when the specified tag key or values are not
|
1170
|
+
# valid. It can also occur if there are duplicate tags or too many tags
|
1171
|
+
# on the resource.
|
1172
|
+
#
|
1173
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidTagParameterException AWS API Documentation
|
1174
|
+
#
|
1175
|
+
class InvalidTagParameterException < Aws::EmptyStructure; end
|
1176
|
+
|
1177
|
+
# Occurs if the timestamp values are invalid. Either the start time
|
1178
|
+
# occurs after the end time or the time range is outside the range of
|
1179
|
+
# possible values.
|
1180
|
+
#
|
1181
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidTimeRangeException AWS API Documentation
|
1182
|
+
#
|
1183
|
+
class InvalidTimeRangeException < Aws::EmptyStructure; end
|
1184
|
+
|
1185
|
+
# Reserved for future use.
|
1186
|
+
#
|
1187
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidTokenException AWS API Documentation
|
1188
|
+
#
|
1189
|
+
class InvalidTokenException < Aws::EmptyStructure; end
|
1190
|
+
|
1191
|
+
# This exception is thrown when the provided trail name is not valid.
|
1192
|
+
# Trail names must meet the following requirements:
|
1193
|
+
#
|
1194
|
+
# * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.),
|
1195
|
+
# underscores (\_), or dashes (-)
|
1196
|
+
#
|
1197
|
+
# * Start with a letter or number, and end with a letter or number
|
1198
|
+
#
|
1199
|
+
# * Be between 3 and 128 characters
|
1200
|
+
#
|
1201
|
+
# * Have no adjacent periods, underscores or dashes. Names like
|
1202
|
+
# `my-_namespace` and `my--namespace` are invalid.
|
1203
|
+
#
|
1204
|
+
# * Not be in IP address format (for example, 192.168.5.4)
|
1205
|
+
#
|
1206
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidTrailNameException AWS API Documentation
|
1207
|
+
#
|
1208
|
+
class InvalidTrailNameException < Aws::EmptyStructure; end
|
1209
|
+
|
1210
|
+
# This exception is thrown when there is an issue with the specified KMS
|
1211
|
+
# key and the trail can’t be updated.
|
1212
|
+
#
|
1213
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/KmsException AWS API Documentation
|
1214
|
+
#
|
1215
|
+
class KmsException < Aws::EmptyStructure; end
|
1216
|
+
|
1217
|
+
# This exception is no longer in use.
|
1218
|
+
#
|
1219
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/KmsKeyDisabledException AWS API Documentation
|
1220
|
+
#
|
1221
|
+
class KmsKeyDisabledException < Aws::EmptyStructure; end
|
1222
|
+
|
1223
|
+
# This exception is thrown when the KMS key does not exist, or when the
|
1224
|
+
# S3 bucket and the KMS key are not in the same region.
|
1225
|
+
#
|
1226
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/KmsKeyNotFoundException AWS API Documentation
|
1227
|
+
#
|
1228
|
+
class KmsKeyNotFoundException < Aws::EmptyStructure; end
|
1229
|
+
|
854
1230
|
# Requests the public keys for a specified time range.
|
855
1231
|
#
|
856
1232
|
# @note When making an API call, you may pass ListPublicKeysRequest
|
@@ -958,6 +1334,51 @@ module Aws::CloudTrail
|
|
958
1334
|
include Aws::Structure
|
959
1335
|
end
|
960
1336
|
|
1337
|
+
# @note When making an API call, you may pass ListTrailsRequest
|
1338
|
+
# data as a hash:
|
1339
|
+
#
|
1340
|
+
# {
|
1341
|
+
# next_token: "String",
|
1342
|
+
# }
|
1343
|
+
#
|
1344
|
+
# @!attribute [rw] next_token
|
1345
|
+
# The token to use to get the next page of results after a previous
|
1346
|
+
# API call. This token must be passed in with the same parameters that
|
1347
|
+
# were specified in the the original call. For example, if the
|
1348
|
+
# original call specified an AttributeKey of 'Username' with a value
|
1349
|
+
# of 'root', the call with NextToken should include those same
|
1350
|
+
# parameters.
|
1351
|
+
# @return [String]
|
1352
|
+
#
|
1353
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListTrailsRequest AWS API Documentation
|
1354
|
+
#
|
1355
|
+
class ListTrailsRequest < Struct.new(
|
1356
|
+
:next_token)
|
1357
|
+
include Aws::Structure
|
1358
|
+
end
|
1359
|
+
|
1360
|
+
# @!attribute [rw] trails
|
1361
|
+
# Returns the name, ARN, and home region of trails in the current
|
1362
|
+
# account.
|
1363
|
+
# @return [Array<Types::TrailInfo>]
|
1364
|
+
#
|
1365
|
+
# @!attribute [rw] next_token
|
1366
|
+
# The token to use to get the next page of results after a previous
|
1367
|
+
# API call. If the token does not appear, there are no more results to
|
1368
|
+
# return. The token must be passed in with the same parameters as the
|
1369
|
+
# previous call. For example, if the original call specified an
|
1370
|
+
# AttributeKey of 'Username' with a value of 'root', the call with
|
1371
|
+
# NextToken should include those same parameters.
|
1372
|
+
# @return [String]
|
1373
|
+
#
|
1374
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListTrailsResponse AWS API Documentation
|
1375
|
+
#
|
1376
|
+
class ListTrailsResponse < Struct.new(
|
1377
|
+
:trails,
|
1378
|
+
:next_token)
|
1379
|
+
include Aws::Structure
|
1380
|
+
end
|
1381
|
+
|
961
1382
|
# Specifies an attribute and value that filter the events returned.
|
962
1383
|
#
|
963
1384
|
# @note When making an API call, you may pass LookupAttribute
|
@@ -998,6 +1419,7 @@ module Aws::CloudTrail
|
|
998
1419
|
# ],
|
999
1420
|
# start_time: Time.now,
|
1000
1421
|
# end_time: Time.now,
|
1422
|
+
# event_category: "insight", # accepts insight
|
1001
1423
|
# max_results: 1,
|
1002
1424
|
# next_token: "NextToken",
|
1003
1425
|
# }
|
@@ -1019,6 +1441,13 @@ module Aws::CloudTrail
|
|
1019
1441
|
# start time, an error is returned.
|
1020
1442
|
# @return [Time]
|
1021
1443
|
#
|
1444
|
+
# @!attribute [rw] event_category
|
1445
|
+
# Specifies the event category. If you do not specify an event
|
1446
|
+
# category, events of the category are not returned in the response.
|
1447
|
+
# For example, if you do not specify `insight` as the value of
|
1448
|
+
# `EventCategory`, no Insights events are returned.
|
1449
|
+
# @return [String]
|
1450
|
+
#
|
1022
1451
|
# @!attribute [rw] max_results
|
1023
1452
|
# The number of events to return. Possible values are 1 through 50.
|
1024
1453
|
# The default is 50.
|
@@ -1039,6 +1468,7 @@ module Aws::CloudTrail
|
|
1039
1468
|
:lookup_attributes,
|
1040
1469
|
:start_time,
|
1041
1470
|
:end_time,
|
1471
|
+
:event_category,
|
1042
1472
|
:max_results,
|
1043
1473
|
:next_token)
|
1044
1474
|
include Aws::Structure
|
@@ -1069,6 +1499,53 @@ module Aws::CloudTrail
|
|
1069
1499
|
include Aws::Structure
|
1070
1500
|
end
|
1071
1501
|
|
1502
|
+
# This exception is thrown when the maximum number of trails is reached.
|
1503
|
+
#
|
1504
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/MaximumNumberOfTrailsExceededException AWS API Documentation
|
1505
|
+
#
|
1506
|
+
class MaximumNumberOfTrailsExceededException < Aws::EmptyStructure; end
|
1507
|
+
|
1508
|
+
# This exception is thrown when the AWS account making the request to
|
1509
|
+
# create or update an organization trail is not the master account for
|
1510
|
+
# an organization in AWS Organizations. For more information, see
|
1511
|
+
# [Prepare For Creating a Trail For Your Organization][1].
|
1512
|
+
#
|
1513
|
+
#
|
1514
|
+
#
|
1515
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html
|
1516
|
+
#
|
1517
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/NotOrganizationMasterAccountException AWS API Documentation
|
1518
|
+
#
|
1519
|
+
class NotOrganizationMasterAccountException < Aws::EmptyStructure; end
|
1520
|
+
|
1521
|
+
# This exception is thrown when the requested operation is not
|
1522
|
+
# permitted.
|
1523
|
+
#
|
1524
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/OperationNotPermittedException AWS API Documentation
|
1525
|
+
#
|
1526
|
+
class OperationNotPermittedException < Aws::EmptyStructure; end
|
1527
|
+
|
1528
|
+
# This exception is thrown when AWS Organizations is not configured to
|
1529
|
+
# support all features. All features must be enabled in AWS Organization
|
1530
|
+
# to support creating an organization trail. For more information, see
|
1531
|
+
# [Prepare For Creating a Trail For Your Organization][1].
|
1532
|
+
#
|
1533
|
+
#
|
1534
|
+
#
|
1535
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html
|
1536
|
+
#
|
1537
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/OrganizationNotInAllFeaturesModeException AWS API Documentation
|
1538
|
+
#
|
1539
|
+
class OrganizationNotInAllFeaturesModeException < Aws::EmptyStructure; end
|
1540
|
+
|
1541
|
+
# This exception is thrown when the request is made from an AWS account
|
1542
|
+
# that is not a member of an organization. To make this request, sign in
|
1543
|
+
# using the credentials of an account that belongs to an organization.
|
1544
|
+
#
|
1545
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/OrganizationsNotInUseException AWS API Documentation
|
1546
|
+
#
|
1547
|
+
class OrganizationsNotInUseException < Aws::EmptyStructure; end
|
1548
|
+
|
1072
1549
|
# Contains information about a returned public key.
|
1073
1550
|
#
|
1074
1551
|
# @!attribute [rw] value
|
@@ -1112,6 +1589,7 @@ module Aws::CloudTrail
|
|
1112
1589
|
# values: ["String"],
|
1113
1590
|
# },
|
1114
1591
|
# ],
|
1592
|
+
# exclude_management_event_sources: ["String"],
|
1115
1593
|
# },
|
1116
1594
|
# ],
|
1117
1595
|
# }
|
@@ -1169,6 +1647,56 @@ module Aws::CloudTrail
|
|
1169
1647
|
include Aws::Structure
|
1170
1648
|
end
|
1171
1649
|
|
1650
|
+
# @note When making an API call, you may pass PutInsightSelectorsRequest
|
1651
|
+
# data as a hash:
|
1652
|
+
#
|
1653
|
+
# {
|
1654
|
+
# trail_name: "String", # required
|
1655
|
+
# insight_selectors: [ # required
|
1656
|
+
# {
|
1657
|
+
# insight_type: "ApiCallRateInsight", # accepts ApiCallRateInsight
|
1658
|
+
# },
|
1659
|
+
# ],
|
1660
|
+
# }
|
1661
|
+
#
|
1662
|
+
# @!attribute [rw] trail_name
|
1663
|
+
# The name of the CloudTrail trail for which you want to change or add
|
1664
|
+
# Insights selectors.
|
1665
|
+
# @return [String]
|
1666
|
+
#
|
1667
|
+
# @!attribute [rw] insight_selectors
|
1668
|
+
# A JSON string that contains the insight types you want to log on a
|
1669
|
+
# trail. In this release, only `ApiCallRateInsight` is supported as an
|
1670
|
+
# insight type.
|
1671
|
+
# @return [Array<Types::InsightSelector>]
|
1672
|
+
#
|
1673
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutInsightSelectorsRequest AWS API Documentation
|
1674
|
+
#
|
1675
|
+
class PutInsightSelectorsRequest < Struct.new(
|
1676
|
+
:trail_name,
|
1677
|
+
:insight_selectors)
|
1678
|
+
include Aws::Structure
|
1679
|
+
end
|
1680
|
+
|
1681
|
+
# @!attribute [rw] trail_arn
|
1682
|
+
# The Amazon Resource Name (ARN) of a trail for which you want to
|
1683
|
+
# change or add Insights selectors.
|
1684
|
+
# @return [String]
|
1685
|
+
#
|
1686
|
+
# @!attribute [rw] insight_selectors
|
1687
|
+
# A JSON string that contains the insight types you want to log on a
|
1688
|
+
# trail. In this release, only `ApiCallRateInsight` is supported as an
|
1689
|
+
# insight type.
|
1690
|
+
# @return [Array<Types::InsightSelector>]
|
1691
|
+
#
|
1692
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutInsightSelectorsResponse AWS API Documentation
|
1693
|
+
#
|
1694
|
+
class PutInsightSelectorsResponse < Struct.new(
|
1695
|
+
:trail_arn,
|
1696
|
+
:insight_selectors)
|
1697
|
+
include Aws::Structure
|
1698
|
+
end
|
1699
|
+
|
1172
1700
|
# Specifies the tags to remove from a trail.
|
1173
1701
|
#
|
1174
1702
|
# @note When making an API call, you may pass RemoveTagsRequest
|
@@ -1216,13 +1744,13 @@ module Aws::CloudTrail
|
|
1216
1744
|
# The type of a resource referenced by the event returned. When the
|
1217
1745
|
# resource type cannot be determined, null is returned. Some examples
|
1218
1746
|
# of resource types are: **Instance** for EC2, **Trail** for
|
1219
|
-
# CloudTrail, **DBInstance** for RDS, and **AccessKey** for IAM.
|
1220
|
-
#
|
1221
|
-
#
|
1747
|
+
# CloudTrail, **DBInstance** for RDS, and **AccessKey** for IAM. To
|
1748
|
+
# learn more about how to look up and filter events by the resource
|
1749
|
+
# types supported for a service, see [Filtering CloudTrail Events][1].
|
1222
1750
|
#
|
1223
1751
|
#
|
1224
1752
|
#
|
1225
|
-
# [1]:
|
1753
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events-console.html#filtering-cloudtrail-events
|
1226
1754
|
# @return [String]
|
1227
1755
|
#
|
1228
1756
|
# @!attribute [rw] resource_name
|
@@ -1240,6 +1768,12 @@ module Aws::CloudTrail
|
|
1240
1768
|
include Aws::Structure
|
1241
1769
|
end
|
1242
1770
|
|
1771
|
+
# This exception is thrown when the specified resource is not found.
|
1772
|
+
#
|
1773
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ResourceNotFoundException AWS API Documentation
|
1774
|
+
#
|
1775
|
+
class ResourceNotFoundException < Aws::EmptyStructure; end
|
1776
|
+
|
1243
1777
|
# A resource tag.
|
1244
1778
|
#
|
1245
1779
|
# @!attribute [rw] resource_id
|
@@ -1258,6 +1792,19 @@ module Aws::CloudTrail
|
|
1258
1792
|
include Aws::Structure
|
1259
1793
|
end
|
1260
1794
|
|
1795
|
+
# This exception is thrown when the specified resource type is not
|
1796
|
+
# supported by CloudTrail.
|
1797
|
+
#
|
1798
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ResourceTypeNotSupportedException AWS API Documentation
|
1799
|
+
#
|
1800
|
+
class ResourceTypeNotSupportedException < Aws::EmptyStructure; end
|
1801
|
+
|
1802
|
+
# This exception is thrown when the specified S3 bucket does not exist.
|
1803
|
+
#
|
1804
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/S3BucketDoesNotExistException AWS API Documentation
|
1805
|
+
#
|
1806
|
+
class S3BucketDoesNotExistException < Aws::EmptyStructure; end
|
1807
|
+
|
1261
1808
|
# The request to CloudTrail to start logging AWS API calls for an
|
1262
1809
|
# account.
|
1263
1810
|
#
|
@@ -1351,6 +1898,13 @@ module Aws::CloudTrail
|
|
1351
1898
|
include Aws::Structure
|
1352
1899
|
end
|
1353
1900
|
|
1901
|
+
# The number of tags per trail has exceeded the permitted amount.
|
1902
|
+
# Currently, the limit is 50.
|
1903
|
+
#
|
1904
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/TagsLimitExceededException AWS API Documentation
|
1905
|
+
#
|
1906
|
+
class TagsLimitExceededException < Aws::EmptyStructure; end
|
1907
|
+
|
1354
1908
|
# The settings for a trail.
|
1355
1909
|
#
|
1356
1910
|
# @!attribute [rw] name
|
@@ -1364,7 +1918,7 @@ module Aws::CloudTrail
|
|
1364
1918
|
#
|
1365
1919
|
#
|
1366
1920
|
#
|
1367
|
-
# [1]:
|
1921
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html
|
1368
1922
|
# @return [String]
|
1369
1923
|
#
|
1370
1924
|
# @!attribute [rw] s3_key_prefix
|
@@ -1375,11 +1929,11 @@ module Aws::CloudTrail
|
|
1375
1929
|
#
|
1376
1930
|
#
|
1377
1931
|
#
|
1378
|
-
# [1]:
|
1932
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html
|
1379
1933
|
# @return [String]
|
1380
1934
|
#
|
1381
1935
|
# @!attribute [rw] sns_topic_name
|
1382
|
-
# This field is
|
1936
|
+
# This field is no longer in use. Use SnsTopicARN.
|
1383
1937
|
# @return [String]
|
1384
1938
|
#
|
1385
1939
|
# @!attribute [rw] sns_topic_arn
|
@@ -1396,7 +1950,7 @@ module Aws::CloudTrail
|
|
1396
1950
|
# @return [Boolean]
|
1397
1951
|
#
|
1398
1952
|
# @!attribute [rw] is_multi_region_trail
|
1399
|
-
# Specifies whether the trail
|
1953
|
+
# Specifies whether the trail exists only in one region or exists in
|
1400
1954
|
# all regions.
|
1401
1955
|
# @return [Boolean]
|
1402
1956
|
#
|
@@ -1436,6 +1990,11 @@ module Aws::CloudTrail
|
|
1436
1990
|
# Specifies if the trail has custom event selectors.
|
1437
1991
|
# @return [Boolean]
|
1438
1992
|
#
|
1993
|
+
# @!attribute [rw] has_insight_selectors
|
1994
|
+
# Specifies whether a trail has insight types specified in an
|
1995
|
+
# `InsightSelector` list.
|
1996
|
+
# @return [Boolean]
|
1997
|
+
#
|
1439
1998
|
# @!attribute [rw] is_organization_trail
|
1440
1999
|
# Specifies whether the trail is an organization trail.
|
1441
2000
|
# @return [Boolean]
|
@@ -1457,10 +2016,61 @@ module Aws::CloudTrail
|
|
1457
2016
|
:cloud_watch_logs_role_arn,
|
1458
2017
|
:kms_key_id,
|
1459
2018
|
:has_custom_event_selectors,
|
2019
|
+
:has_insight_selectors,
|
1460
2020
|
:is_organization_trail)
|
1461
2021
|
include Aws::Structure
|
1462
2022
|
end
|
1463
2023
|
|
2024
|
+
# This exception is thrown when the specified trail already exists.
|
2025
|
+
#
|
2026
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/TrailAlreadyExistsException AWS API Documentation
|
2027
|
+
#
|
2028
|
+
class TrailAlreadyExistsException < Aws::EmptyStructure; end
|
2029
|
+
|
2030
|
+
# Information about a CloudTrail trail, including the trail's name,
|
2031
|
+
# home region, and Amazon Resource Name (ARN).
|
2032
|
+
#
|
2033
|
+
# @!attribute [rw] trail_arn
|
2034
|
+
# The ARN of a trail.
|
2035
|
+
# @return [String]
|
2036
|
+
#
|
2037
|
+
# @!attribute [rw] name
|
2038
|
+
# The name of a trail.
|
2039
|
+
# @return [String]
|
2040
|
+
#
|
2041
|
+
# @!attribute [rw] home_region
|
2042
|
+
# The AWS region in which a trail was created.
|
2043
|
+
# @return [String]
|
2044
|
+
#
|
2045
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/TrailInfo AWS API Documentation
|
2046
|
+
#
|
2047
|
+
class TrailInfo < Struct.new(
|
2048
|
+
:trail_arn,
|
2049
|
+
:name,
|
2050
|
+
:home_region)
|
2051
|
+
include Aws::Structure
|
2052
|
+
end
|
2053
|
+
|
2054
|
+
# This exception is thrown when the trail with the given name is not
|
2055
|
+
# found.
|
2056
|
+
#
|
2057
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/TrailNotFoundException AWS API Documentation
|
2058
|
+
#
|
2059
|
+
class TrailNotFoundException < Aws::EmptyStructure; end
|
2060
|
+
|
2061
|
+
# This exception is no longer in use.
|
2062
|
+
#
|
2063
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/TrailNotProvidedException AWS API Documentation
|
2064
|
+
#
|
2065
|
+
class TrailNotProvidedException < Aws::EmptyStructure; end
|
2066
|
+
|
2067
|
+
# This exception is thrown when the requested operation is not
|
2068
|
+
# supported.
|
2069
|
+
#
|
2070
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UnsupportedOperationException AWS API Documentation
|
2071
|
+
#
|
2072
|
+
class UnsupportedOperationException < Aws::EmptyStructure; end
|
2073
|
+
|
1464
2074
|
# Specifies settings to update for the trail.
|
1465
2075
|
#
|
1466
2076
|
# @note When making an API call, you may pass UpdateTrailRequest
|
@@ -1507,7 +2117,7 @@ module Aws::CloudTrail
|
|
1507
2117
|
#
|
1508
2118
|
#
|
1509
2119
|
#
|
1510
|
-
# [1]:
|
2120
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html
|
1511
2121
|
# @return [String]
|
1512
2122
|
#
|
1513
2123
|
# @!attribute [rw] s3_key_prefix
|
@@ -1518,7 +2128,7 @@ module Aws::CloudTrail
|
|
1518
2128
|
#
|
1519
2129
|
#
|
1520
2130
|
#
|
1521
|
-
# [1]:
|
2131
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html
|
1522
2132
|
# @return [String]
|
1523
2133
|
#
|
1524
2134
|
# @!attribute [rw] sns_topic_name
|
@@ -1538,7 +2148,8 @@ module Aws::CloudTrail
|
|
1538
2148
|
# (replications of the trail) will be created in the other regions. If
|
1539
2149
|
# the trail exists in all regions and this value is set to false, the
|
1540
2150
|
# trail will remain in the region where it was created, and its shadow
|
1541
|
-
# trails in other regions will be deleted.
|
2151
|
+
# trails in other regions will be deleted. As a best practice,
|
2152
|
+
# consider using trails that log events in all regions.
|
1542
2153
|
# @return [Boolean]
|
1543
2154
|
#
|
1544
2155
|
# @!attribute [rw] enable_log_file_validation
|
@@ -1636,11 +2247,11 @@ module Aws::CloudTrail
|
|
1636
2247
|
#
|
1637
2248
|
#
|
1638
2249
|
#
|
1639
|
-
# [1]:
|
2250
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html
|
1640
2251
|
# @return [String]
|
1641
2252
|
#
|
1642
2253
|
# @!attribute [rw] sns_topic_name
|
1643
|
-
# This field is
|
2254
|
+
# This field is no longer in use. Use SnsTopicARN.
|
1644
2255
|
# @return [String]
|
1645
2256
|
#
|
1646
2257
|
# @!attribute [rw] sns_topic_arn
|