aws-sdk-cloudwatchlogs 1.129.0 → 1.130.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.
@@ -55,7 +55,7 @@ module Aws::CloudWatchLogs
55
55
  autoload :Endpoints, 'aws-sdk-cloudwatchlogs/endpoints'
56
56
  autoload :EventStreams, 'aws-sdk-cloudwatchlogs/event_streams'
57
57
 
58
- GEM_VERSION = '1.129.0'
58
+ GEM_VERSION = '1.130.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -162,6 +162,35 @@ module Aws
162
162
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
163
163
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
164
164
 
165
+ interface _CreateScheduledQueryResponseSuccess
166
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateScheduledQueryResponse]
167
+ def scheduled_query_arn: () -> ::String
168
+ def state: () -> ("ENABLED" | "DISABLED")
169
+ end
170
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#create_scheduled_query-instance_method
171
+ def create_scheduled_query: (
172
+ name: ::String,
173
+ ?description: ::String,
174
+ query_language: ("CWLI" | "SQL" | "PPL"),
175
+ query_string: ::String,
176
+ ?log_group_identifiers: Array[::String],
177
+ schedule_expression: ::String,
178
+ ?timezone: ::String,
179
+ ?start_time_offset: ::Integer,
180
+ ?destination_configuration: {
181
+ s3_configuration: {
182
+ destination_identifier: ::String,
183
+ role_arn: ::String
184
+ }
185
+ },
186
+ ?schedule_start_time: ::Integer,
187
+ ?schedule_end_time: ::Integer,
188
+ execution_role_arn: ::String,
189
+ ?state: ("ENABLED" | "DISABLED"),
190
+ ?tags: Hash[::String, ::String]
191
+ ) -> _CreateScheduledQueryResponseSuccess
192
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateScheduledQueryResponseSuccess
193
+
165
194
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#delete_account_policy-instance_method
166
195
  def delete_account_policy: (
167
196
  policy_name: ::String,
@@ -274,6 +303,15 @@ module Aws
274
303
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
275
304
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
276
305
 
306
+ interface _DeleteScheduledQueryResponseSuccess
307
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteScheduledQueryResponse]
308
+ end
309
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#delete_scheduled_query-instance_method
310
+ def delete_scheduled_query: (
311
+ identifier: ::String
312
+ ) -> _DeleteScheduledQueryResponseSuccess
313
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteScheduledQueryResponseSuccess
314
+
277
315
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#delete_subscription_filter-instance_method
278
316
  def delete_subscription_filter: (
279
317
  log_group_name: ::String,
@@ -692,6 +730,51 @@ module Aws
692
730
  ) -> _GetQueryResultsResponseSuccess
693
731
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetQueryResultsResponseSuccess
694
732
 
733
+ interface _GetScheduledQueryResponseSuccess
734
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetScheduledQueryResponse]
735
+ def scheduled_query_arn: () -> ::String
736
+ def name: () -> ::String
737
+ def description: () -> ::String
738
+ def query_language: () -> ("CWLI" | "SQL" | "PPL")
739
+ def query_string: () -> ::String
740
+ def log_group_identifiers: () -> ::Array[::String]
741
+ def schedule_expression: () -> ::String
742
+ def timezone: () -> ::String
743
+ def start_time_offset: () -> ::Integer
744
+ def destination_configuration: () -> Types::DestinationConfiguration
745
+ def state: () -> ("ENABLED" | "DISABLED")
746
+ def last_triggered_time: () -> ::Integer
747
+ def last_execution_status: () -> ("Running" | "InvalidQuery" | "Complete" | "Failed" | "Timeout")
748
+ def schedule_start_time: () -> ::Integer
749
+ def schedule_end_time: () -> ::Integer
750
+ def execution_role_arn: () -> ::String
751
+ def creation_time: () -> ::Integer
752
+ def last_updated_time: () -> ::Integer
753
+ end
754
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#get_scheduled_query-instance_method
755
+ def get_scheduled_query: (
756
+ identifier: ::String
757
+ ) -> _GetScheduledQueryResponseSuccess
758
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetScheduledQueryResponseSuccess
759
+
760
+ interface _GetScheduledQueryHistoryResponseSuccess
761
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetScheduledQueryHistoryResponse]
762
+ def name: () -> ::String
763
+ def scheduled_query_arn: () -> ::String
764
+ def trigger_history: () -> ::Array[Types::TriggerHistoryRecord]
765
+ def next_token: () -> ::String
766
+ end
767
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#get_scheduled_query_history-instance_method
768
+ def get_scheduled_query_history: (
769
+ identifier: ::String,
770
+ start_time: ::Integer,
771
+ end_time: ::Integer,
772
+ ?execution_statuses: Array[("Running" | "InvalidQuery" | "Complete" | "Failed" | "Timeout")],
773
+ ?max_results: ::Integer,
774
+ ?next_token: ::String
775
+ ) -> _GetScheduledQueryHistoryResponseSuccess
776
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetScheduledQueryHistoryResponseSuccess
777
+
695
778
  interface _GetTransformerResponseSuccess
696
779
  include ::Seahorse::Client::_ResponseSuccess[Types::GetTransformerResponse]
697
780
  def log_group_identifier: () -> ::String
@@ -773,6 +856,19 @@ module Aws
773
856
  ) -> _ListLogGroupsForQueryResponseSuccess
774
857
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListLogGroupsForQueryResponseSuccess
775
858
 
859
+ interface _ListScheduledQueriesResponseSuccess
860
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListScheduledQueriesResponse]
861
+ def next_token: () -> ::String
862
+ def scheduled_queries: () -> ::Array[Types::ScheduledQuerySummary]
863
+ end
864
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#list_scheduled_queries-instance_method
865
+ def list_scheduled_queries: (
866
+ ?max_results: ::Integer,
867
+ ?next_token: ::String,
868
+ ?state: ("ENABLED" | "DISABLED")
869
+ ) -> _ListScheduledQueriesResponseSuccess
870
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListScheduledQueriesResponseSuccess
871
+
776
872
  interface _ListTagsForResourceResponseSuccess
777
873
  include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceResponse]
778
874
  def tags: () -> ::Hash[::String, ::String]
@@ -1415,6 +1511,50 @@ module Aws
1415
1511
  enabled: bool
1416
1512
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
1417
1513
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
1514
+
1515
+ interface _UpdateScheduledQueryResponseSuccess
1516
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateScheduledQueryResponse]
1517
+ def scheduled_query_arn: () -> ::String
1518
+ def name: () -> ::String
1519
+ def description: () -> ::String
1520
+ def query_language: () -> ("CWLI" | "SQL" | "PPL")
1521
+ def query_string: () -> ::String
1522
+ def log_group_identifiers: () -> ::Array[::String]
1523
+ def schedule_expression: () -> ::String
1524
+ def timezone: () -> ::String
1525
+ def start_time_offset: () -> ::Integer
1526
+ def destination_configuration: () -> Types::DestinationConfiguration
1527
+ def state: () -> ("ENABLED" | "DISABLED")
1528
+ def last_triggered_time: () -> ::Integer
1529
+ def last_execution_status: () -> ("Running" | "InvalidQuery" | "Complete" | "Failed" | "Timeout")
1530
+ def schedule_start_time: () -> ::Integer
1531
+ def schedule_end_time: () -> ::Integer
1532
+ def execution_role_arn: () -> ::String
1533
+ def creation_time: () -> ::Integer
1534
+ def last_updated_time: () -> ::Integer
1535
+ end
1536
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#update_scheduled_query-instance_method
1537
+ def update_scheduled_query: (
1538
+ identifier: ::String,
1539
+ ?description: ::String,
1540
+ query_language: ("CWLI" | "SQL" | "PPL"),
1541
+ query_string: ::String,
1542
+ ?log_group_identifiers: Array[::String],
1543
+ schedule_expression: ::String,
1544
+ ?timezone: ::String,
1545
+ ?start_time_offset: ::Integer,
1546
+ ?destination_configuration: {
1547
+ s3_configuration: {
1548
+ destination_identifier: ::String,
1549
+ role_arn: ::String
1550
+ }
1551
+ },
1552
+ ?schedule_start_time: ::Integer,
1553
+ ?schedule_end_time: ::Integer,
1554
+ execution_role_arn: ::String,
1555
+ ?state: ("ENABLED" | "DISABLED")
1556
+ ) -> _UpdateScheduledQueryResponseSuccess
1557
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateScheduledQueryResponseSuccess
1418
1558
  end
1419
1559
  end
1420
1560
  end
data/sig/errors.rbs CHANGED
@@ -18,6 +18,8 @@ module Aws
18
18
  class DataAlreadyAcceptedException < ::Aws::Errors::ServiceError
19
19
  def expected_sequence_token: () -> ::String
20
20
  end
21
+ class InternalServerException < ::Aws::Errors::ServiceError
22
+ end
21
23
  class InternalStreamingException < ::Aws::Errors::ServiceError
22
24
  def message: () -> ::String
23
25
  end
data/sig/types.rbs CHANGED
@@ -188,6 +188,30 @@ module Aws::CloudWatchLogs
188
188
  SENSITIVE: []
189
189
  end
190
190
 
191
+ class CreateScheduledQueryRequest
192
+ attr_accessor name: ::String
193
+ attr_accessor description: ::String
194
+ attr_accessor query_language: ("CWLI" | "SQL" | "PPL")
195
+ attr_accessor query_string: ::String
196
+ attr_accessor log_group_identifiers: ::Array[::String]
197
+ attr_accessor schedule_expression: ::String
198
+ attr_accessor timezone: ::String
199
+ attr_accessor start_time_offset: ::Integer
200
+ attr_accessor destination_configuration: Types::DestinationConfiguration
201
+ attr_accessor schedule_start_time: ::Integer
202
+ attr_accessor schedule_end_time: ::Integer
203
+ attr_accessor execution_role_arn: ::String
204
+ attr_accessor state: ("ENABLED" | "DISABLED")
205
+ attr_accessor tags: ::Hash[::String, ::String]
206
+ SENSITIVE: []
207
+ end
208
+
209
+ class CreateScheduledQueryResponse
210
+ attr_accessor scheduled_query_arn: ::String
211
+ attr_accessor state: ("ENABLED" | "DISABLED")
212
+ SENSITIVE: []
213
+ end
214
+
191
215
  class DataAlreadyAcceptedException
192
216
  attr_accessor expected_sequence_token: ::String
193
217
  SENSITIVE: []
@@ -306,6 +330,14 @@ module Aws::CloudWatchLogs
306
330
  SENSITIVE: []
307
331
  end
308
332
 
333
+ class DeleteScheduledQueryRequest
334
+ attr_accessor identifier: ::String
335
+ SENSITIVE: []
336
+ end
337
+
338
+ class DeleteScheduledQueryResponse < Aws::EmptyStructure
339
+ end
340
+
309
341
  class DeleteSubscriptionFilterRequest
310
342
  attr_accessor log_group_name: ::String
311
343
  attr_accessor filter_name: ::String
@@ -590,6 +622,11 @@ module Aws::CloudWatchLogs
590
622
  SENSITIVE: []
591
623
  end
592
624
 
625
+ class DestinationConfiguration
626
+ attr_accessor s3_configuration: Types::S3Configuration
627
+ SENSITIVE: []
628
+ end
629
+
593
630
  class DisassociateKmsKeyRequest
594
631
  attr_accessor log_group_name: ::String
595
632
  attr_accessor resource_identifier: ::String
@@ -824,6 +861,51 @@ module Aws::CloudWatchLogs
824
861
  SENSITIVE: []
825
862
  end
826
863
 
864
+ class GetScheduledQueryHistoryRequest
865
+ attr_accessor identifier: ::String
866
+ attr_accessor start_time: ::Integer
867
+ attr_accessor end_time: ::Integer
868
+ attr_accessor execution_statuses: ::Array[("Running" | "InvalidQuery" | "Complete" | "Failed" | "Timeout")]
869
+ attr_accessor max_results: ::Integer
870
+ attr_accessor next_token: ::String
871
+ SENSITIVE: []
872
+ end
873
+
874
+ class GetScheduledQueryHistoryResponse
875
+ attr_accessor name: ::String
876
+ attr_accessor scheduled_query_arn: ::String
877
+ attr_accessor trigger_history: ::Array[Types::TriggerHistoryRecord]
878
+ attr_accessor next_token: ::String
879
+ SENSITIVE: []
880
+ end
881
+
882
+ class GetScheduledQueryRequest
883
+ attr_accessor identifier: ::String
884
+ SENSITIVE: []
885
+ end
886
+
887
+ class GetScheduledQueryResponse
888
+ attr_accessor scheduled_query_arn: ::String
889
+ attr_accessor name: ::String
890
+ attr_accessor description: ::String
891
+ attr_accessor query_language: ("CWLI" | "SQL" | "PPL")
892
+ attr_accessor query_string: ::String
893
+ attr_accessor log_group_identifiers: ::Array[::String]
894
+ attr_accessor schedule_expression: ::String
895
+ attr_accessor timezone: ::String
896
+ attr_accessor start_time_offset: ::Integer
897
+ attr_accessor destination_configuration: Types::DestinationConfiguration
898
+ attr_accessor state: ("ENABLED" | "DISABLED")
899
+ attr_accessor last_triggered_time: ::Integer
900
+ attr_accessor last_execution_status: ("Running" | "InvalidQuery" | "Complete" | "Failed" | "Timeout")
901
+ attr_accessor schedule_start_time: ::Integer
902
+ attr_accessor schedule_end_time: ::Integer
903
+ attr_accessor execution_role_arn: ::String
904
+ attr_accessor creation_time: ::Integer
905
+ attr_accessor last_updated_time: ::Integer
906
+ SENSITIVE: []
907
+ end
908
+
827
909
  class GetTransformerRequest
828
910
  attr_accessor log_group_identifier: ::String
829
911
  SENSITIVE: []
@@ -876,6 +958,9 @@ module Aws::CloudWatchLogs
876
958
  SENSITIVE: []
877
959
  end
878
960
 
961
+ class InternalServerException < Aws::EmptyStructure
962
+ end
963
+
879
964
  class InternalStreamingException
880
965
  attr_accessor message: ::String
881
966
  attr_accessor event_type: untyped
@@ -964,6 +1049,19 @@ module Aws::CloudWatchLogs
964
1049
  SENSITIVE: []
965
1050
  end
966
1051
 
1052
+ class ListScheduledQueriesRequest
1053
+ attr_accessor max_results: ::Integer
1054
+ attr_accessor next_token: ::String
1055
+ attr_accessor state: ("ENABLED" | "DISABLED")
1056
+ SENSITIVE: []
1057
+ end
1058
+
1059
+ class ListScheduledQueriesResponse
1060
+ attr_accessor next_token: ::String
1061
+ attr_accessor scheduled_queries: ::Array[Types::ScheduledQuerySummary]
1062
+ SENSITIVE: []
1063
+ end
1064
+
967
1065
  class ListTagsForResourceRequest
968
1066
  attr_accessor resource_arn: ::String
969
1067
  SENSITIVE: []
@@ -1596,12 +1694,41 @@ module Aws::CloudWatchLogs
1596
1694
  SENSITIVE: []
1597
1695
  end
1598
1696
 
1697
+ class S3Configuration
1698
+ attr_accessor destination_identifier: ::String
1699
+ attr_accessor role_arn: ::String
1700
+ SENSITIVE: []
1701
+ end
1702
+
1599
1703
  class S3DeliveryConfiguration
1600
1704
  attr_accessor suffix_path: ::String
1601
1705
  attr_accessor enable_hive_compatible_path: bool
1602
1706
  SENSITIVE: []
1603
1707
  end
1604
1708
 
1709
+ class ScheduledQueryDestination
1710
+ attr_accessor destination_type: ("S3")
1711
+ attr_accessor destination_identifier: ::String
1712
+ attr_accessor status: ("IN_PROGRESS" | "CLIENT_ERROR" | "FAILED" | "COMPLETE")
1713
+ attr_accessor processed_identifier: ::String
1714
+ attr_accessor error_message: ::String
1715
+ SENSITIVE: []
1716
+ end
1717
+
1718
+ class ScheduledQuerySummary
1719
+ attr_accessor scheduled_query_arn: ::String
1720
+ attr_accessor name: ::String
1721
+ attr_accessor state: ("ENABLED" | "DISABLED")
1722
+ attr_accessor last_triggered_time: ::Integer
1723
+ attr_accessor last_execution_status: ("Running" | "InvalidQuery" | "Complete" | "Failed" | "Timeout")
1724
+ attr_accessor schedule_expression: ::String
1725
+ attr_accessor timezone: ::String
1726
+ attr_accessor destination_configuration: Types::DestinationConfiguration
1727
+ attr_accessor creation_time: ::Integer
1728
+ attr_accessor last_updated_time: ::Integer
1729
+ SENSITIVE: []
1730
+ end
1731
+
1605
1732
  class SearchedLogStream
1606
1733
  attr_accessor log_stream_name: ::String
1607
1734
  attr_accessor searched_completely: bool
@@ -1759,6 +1886,15 @@ module Aws::CloudWatchLogs
1759
1886
  SENSITIVE: []
1760
1887
  end
1761
1888
 
1889
+ class TriggerHistoryRecord
1890
+ attr_accessor query_id: ::String
1891
+ attr_accessor execution_status: ("Running" | "InvalidQuery" | "Complete" | "Failed" | "Timeout")
1892
+ attr_accessor triggered_timestamp: ::Integer
1893
+ attr_accessor error_message: ::String
1894
+ attr_accessor destinations: ::Array[Types::ScheduledQueryDestination]
1895
+ SENSITIVE: []
1896
+ end
1897
+
1762
1898
  class TrimString
1763
1899
  attr_accessor with_keys: ::Array[::String]
1764
1900
  SENSITIVE: []
@@ -1820,6 +1956,45 @@ module Aws::CloudWatchLogs
1820
1956
  SENSITIVE: []
1821
1957
  end
1822
1958
 
1959
+ class UpdateScheduledQueryRequest
1960
+ attr_accessor identifier: ::String
1961
+ attr_accessor description: ::String
1962
+ attr_accessor query_language: ("CWLI" | "SQL" | "PPL")
1963
+ attr_accessor query_string: ::String
1964
+ attr_accessor log_group_identifiers: ::Array[::String]
1965
+ attr_accessor schedule_expression: ::String
1966
+ attr_accessor timezone: ::String
1967
+ attr_accessor start_time_offset: ::Integer
1968
+ attr_accessor destination_configuration: Types::DestinationConfiguration
1969
+ attr_accessor schedule_start_time: ::Integer
1970
+ attr_accessor schedule_end_time: ::Integer
1971
+ attr_accessor execution_role_arn: ::String
1972
+ attr_accessor state: ("ENABLED" | "DISABLED")
1973
+ SENSITIVE: []
1974
+ end
1975
+
1976
+ class UpdateScheduledQueryResponse
1977
+ attr_accessor scheduled_query_arn: ::String
1978
+ attr_accessor name: ::String
1979
+ attr_accessor description: ::String
1980
+ attr_accessor query_language: ("CWLI" | "SQL" | "PPL")
1981
+ attr_accessor query_string: ::String
1982
+ attr_accessor log_group_identifiers: ::Array[::String]
1983
+ attr_accessor schedule_expression: ::String
1984
+ attr_accessor timezone: ::String
1985
+ attr_accessor start_time_offset: ::Integer
1986
+ attr_accessor destination_configuration: Types::DestinationConfiguration
1987
+ attr_accessor state: ("ENABLED" | "DISABLED")
1988
+ attr_accessor last_triggered_time: ::Integer
1989
+ attr_accessor last_execution_status: ("Running" | "InvalidQuery" | "Complete" | "Failed" | "Timeout")
1990
+ attr_accessor schedule_start_time: ::Integer
1991
+ attr_accessor schedule_end_time: ::Integer
1992
+ attr_accessor execution_role_arn: ::String
1993
+ attr_accessor creation_time: ::Integer
1994
+ attr_accessor last_updated_time: ::Integer
1995
+ SENSITIVE: []
1996
+ end
1997
+
1823
1998
  class UpperCaseString
1824
1999
  attr_accessor with_keys: ::Array[::String]
1825
2000
  SENSITIVE: []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudwatchlogs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.129.0
4
+ version: 1.130.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services