aws-sdk-cloudtrail 1.113.0 → 1.115.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.
data/sig/client.rbs CHANGED
@@ -422,12 +422,15 @@ module Aws
422
422
 
423
423
  interface _GetEventConfigurationResponseSuccess
424
424
  include ::Seahorse::Client::_ResponseSuccess[Types::GetEventConfigurationResponse]
425
+ def trail_arn: () -> ::String
425
426
  def event_data_store_arn: () -> ::String
426
427
  def max_event_size: () -> ("Standard" | "Large")
427
428
  def context_key_selectors: () -> ::Array[Types::ContextKeySelector]
429
+ def aggregation_configurations: () -> ::Array[Types::AggregationConfiguration]
428
430
  end
429
431
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudTrail/Client.html#get_event_configuration-instance_method
430
432
  def get_event_configuration: (
433
+ ?trail_name: ::String,
431
434
  ?event_data_store: ::String
432
435
  ) -> _GetEventConfigurationResponseSuccess
433
436
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetEventConfigurationResponseSuccess
@@ -631,8 +634,26 @@ module Aws
631
634
  ) -> _ListImportsResponseSuccess
632
635
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListImportsResponseSuccess
633
636
 
637
+ interface _ListInsightsDataResponseSuccess
638
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListInsightsDataResponse]
639
+ def events: () -> ::Array[Types::Event]
640
+ def next_token: () -> ::String
641
+ end
642
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudTrail/Client.html#list_insights_data-instance_method
643
+ def list_insights_data: (
644
+ insight_source: ::String,
645
+ data_type: ("InsightsEvents"),
646
+ ?dimensions: Hash[("EventId" | "EventName" | "EventSource"), ::String],
647
+ ?start_time: ::Time,
648
+ ?end_time: ::Time,
649
+ ?max_results: ::Integer,
650
+ ?next_token: ::String
651
+ ) -> _ListInsightsDataResponseSuccess
652
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListInsightsDataResponseSuccess
653
+
634
654
  interface _ListInsightsMetricDataResponseSuccess
635
655
  include ::Seahorse::Client::_ResponseSuccess[Types::ListInsightsMetricDataResponse]
656
+ def trail_arn: () -> ::String
636
657
  def event_source: () -> ::String
637
658
  def event_name: () -> ::String
638
659
  def insight_type: () -> ("ApiCallRateInsight" | "ApiErrorRateInsight")
@@ -643,6 +664,7 @@ module Aws
643
664
  end
644
665
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudTrail/Client.html#list_insights_metric_data-instance_method
645
666
  def list_insights_metric_data: (
667
+ ?trail_name: ::String,
646
668
  event_source: ::String,
647
669
  event_name: ::String,
648
670
  insight_type: ("ApiCallRateInsight" | "ApiErrorRateInsight"),
@@ -731,22 +753,31 @@ module Aws
731
753
 
732
754
  interface _PutEventConfigurationResponseSuccess
733
755
  include ::Seahorse::Client::_ResponseSuccess[Types::PutEventConfigurationResponse]
756
+ def trail_arn: () -> ::String
734
757
  def event_data_store_arn: () -> ::String
735
758
  def max_event_size: () -> ("Standard" | "Large")
736
759
  def context_key_selectors: () -> ::Array[Types::ContextKeySelector]
760
+ def aggregation_configurations: () -> ::Array[Types::AggregationConfiguration]
737
761
  end
738
762
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudTrail/Client.html#put_event_configuration-instance_method
739
763
  def put_event_configuration: (
764
+ ?trail_name: ::String,
740
765
  ?event_data_store: ::String,
741
- max_event_size: ("Standard" | "Large"),
742
- context_key_selectors: Array[
766
+ ?max_event_size: ("Standard" | "Large"),
767
+ ?context_key_selectors: Array[
743
768
  {
744
769
  type: ("TagContext" | "RequestContext"),
745
770
  equals: Array[::String]
746
771
  },
772
+ ],
773
+ ?aggregation_configurations: Array[
774
+ {
775
+ templates: Array[("API_ACTIVITY" | "RESOURCE_ACCESS" | "USER_ACTIONS")],
776
+ event_category: ("Data")
777
+ },
747
778
  ]
748
779
  ) -> _PutEventConfigurationResponseSuccess
749
- | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutEventConfigurationResponseSuccess
780
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutEventConfigurationResponseSuccess
750
781
 
751
782
  interface _PutEventSelectorsResponseSuccess
752
783
  include ::Seahorse::Client::_ResponseSuccess[Types::PutEventSelectorsResponse]
@@ -801,7 +832,8 @@ module Aws
801
832
  ?trail_name: ::String,
802
833
  insight_selectors: Array[
803
834
  {
804
- insight_type: ("ApiCallRateInsight" | "ApiErrorRateInsight")?
835
+ insight_type: ("ApiCallRateInsight" | "ApiErrorRateInsight")?,
836
+ event_categories: Array[("Management" | "Data")]?
805
837
  },
806
838
  ],
807
839
  ?event_data_store: ::String,
data/sig/types.rbs CHANGED
@@ -49,6 +49,12 @@ module Aws::CloudTrail
49
49
  SENSITIVE: []
50
50
  end
51
51
 
52
+ class AggregationConfiguration
53
+ attr_accessor templates: ::Array[("API_ACTIVITY" | "RESOURCE_ACCESS" | "USER_ACTIONS")]
54
+ attr_accessor event_category: ("Data")
55
+ SENSITIVE: []
56
+ end
57
+
52
58
  class CancelQueryRequest
53
59
  attr_accessor event_data_store: ::String
54
60
  attr_accessor query_id: ::String
@@ -445,14 +451,17 @@ module Aws::CloudTrail
445
451
  end
446
452
 
447
453
  class GetEventConfigurationRequest
454
+ attr_accessor trail_name: ::String
448
455
  attr_accessor event_data_store: ::String
449
456
  SENSITIVE: []
450
457
  end
451
458
 
452
459
  class GetEventConfigurationResponse
460
+ attr_accessor trail_arn: ::String
453
461
  attr_accessor event_data_store_arn: ::String
454
462
  attr_accessor max_event_size: ("Standard" | "Large")
455
463
  attr_accessor context_key_selectors: ::Array[Types::ContextKeySelector]
464
+ attr_accessor aggregation_configurations: ::Array[Types::AggregationConfiguration]
456
465
  SENSITIVE: []
457
466
  end
458
467
 
@@ -645,6 +654,7 @@ module Aws::CloudTrail
645
654
 
646
655
  class InsightSelector
647
656
  attr_accessor insight_type: ("ApiCallRateInsight" | "ApiErrorRateInsight")
657
+ attr_accessor event_categories: ::Array[("Management" | "Data")]
648
658
  SENSITIVE: []
649
659
  end
650
660
 
@@ -815,7 +825,25 @@ module Aws::CloudTrail
815
825
  SENSITIVE: []
816
826
  end
817
827
 
828
+ class ListInsightsDataRequest
829
+ attr_accessor insight_source: ::String
830
+ attr_accessor data_type: ("InsightsEvents")
831
+ attr_accessor dimensions: ::Hash[("EventId" | "EventName" | "EventSource"), ::String]
832
+ attr_accessor start_time: ::Time
833
+ attr_accessor end_time: ::Time
834
+ attr_accessor max_results: ::Integer
835
+ attr_accessor next_token: ::String
836
+ SENSITIVE: []
837
+ end
838
+
839
+ class ListInsightsDataResponse
840
+ attr_accessor events: ::Array[Types::Event]
841
+ attr_accessor next_token: ::String
842
+ SENSITIVE: []
843
+ end
844
+
818
845
  class ListInsightsMetricDataRequest
846
+ attr_accessor trail_name: ::String
819
847
  attr_accessor event_source: ::String
820
848
  attr_accessor event_name: ::String
821
849
  attr_accessor insight_type: ("ApiCallRateInsight" | "ApiErrorRateInsight")
@@ -830,6 +858,7 @@ module Aws::CloudTrail
830
858
  end
831
859
 
832
860
  class ListInsightsMetricDataResponse
861
+ attr_accessor trail_arn: ::String
833
862
  attr_accessor event_source: ::String
834
863
  attr_accessor event_name: ::String
835
864
  attr_accessor insight_type: ("ApiCallRateInsight" | "ApiErrorRateInsight")
@@ -953,16 +982,20 @@ module Aws::CloudTrail
953
982
  end
954
983
 
955
984
  class PutEventConfigurationRequest
985
+ attr_accessor trail_name: ::String
956
986
  attr_accessor event_data_store: ::String
957
987
  attr_accessor max_event_size: ("Standard" | "Large")
958
988
  attr_accessor context_key_selectors: ::Array[Types::ContextKeySelector]
989
+ attr_accessor aggregation_configurations: ::Array[Types::AggregationConfiguration]
959
990
  SENSITIVE: []
960
991
  end
961
992
 
962
993
  class PutEventConfigurationResponse
994
+ attr_accessor trail_arn: ::String
963
995
  attr_accessor event_data_store_arn: ::String
964
996
  attr_accessor max_event_size: ("Standard" | "Large")
965
997
  attr_accessor context_key_selectors: ::Array[Types::ContextKeySelector]
998
+ attr_accessor aggregation_configurations: ::Array[Types::AggregationConfiguration]
966
999
  SENSITIVE: []
967
1000
  end
968
1001
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudtrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.113.0
4
+ version: 1.115.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services