aws-sdk-cloudwatchlogs 1.101.0 → 1.103.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.101.0'
58
+ GEM_VERSION = '1.103.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -162,7 +162,7 @@ module Aws
162
162
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#delete_account_policy-instance_method
163
163
  def delete_account_policy: (
164
164
  policy_name: ::String,
165
- policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY")
165
+ policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY" | "FIELD_INDEX_POLICY" | "TRANSFORMER_POLICY")
166
166
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
167
167
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
168
168
 
@@ -202,6 +202,15 @@ module Aws
202
202
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
203
203
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
204
204
 
205
+ interface _DeleteIndexPolicyResponseSuccess
206
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteIndexPolicyResponse]
207
+ end
208
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#delete_index_policy-instance_method
209
+ def delete_index_policy: (
210
+ log_group_identifier: ::String
211
+ ) -> _DeleteIndexPolicyResponseSuccess
212
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteIndexPolicyResponseSuccess
213
+
205
214
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#delete_log_anomaly_detector-instance_method
206
215
  def delete_log_anomaly_detector: (
207
216
  anomaly_detector_arn: ::String
@@ -257,15 +266,23 @@ module Aws
257
266
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
258
267
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
259
268
 
269
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#delete_transformer-instance_method
270
+ def delete_transformer: (
271
+ log_group_identifier: ::String
272
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
273
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
274
+
260
275
  interface _DescribeAccountPoliciesResponseSuccess
261
276
  include ::Seahorse::Client::_ResponseSuccess[Types::DescribeAccountPoliciesResponse]
262
277
  def account_policies: () -> ::Array[Types::AccountPolicy]
278
+ def next_token: () -> ::String
263
279
  end
264
280
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#describe_account_policies-instance_method
265
281
  def describe_account_policies: (
266
- policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY"),
282
+ policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY" | "FIELD_INDEX_POLICY" | "TRANSFORMER_POLICY"),
267
283
  ?policy_name: ::String,
268
- ?account_identifiers: Array[::String]
284
+ ?account_identifiers: Array[::String],
285
+ ?next_token: ::String
269
286
  ) -> _DescribeAccountPoliciesResponseSuccess
270
287
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeAccountPoliciesResponseSuccess
271
288
 
@@ -348,6 +365,30 @@ module Aws
348
365
  ) -> _DescribeExportTasksResponseSuccess
349
366
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeExportTasksResponseSuccess
350
367
 
368
+ interface _DescribeFieldIndexesResponseSuccess
369
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeFieldIndexesResponse]
370
+ def field_indexes: () -> ::Array[Types::FieldIndex]
371
+ def next_token: () -> ::String
372
+ end
373
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#describe_field_indexes-instance_method
374
+ def describe_field_indexes: (
375
+ log_group_identifiers: Array[::String],
376
+ ?next_token: ::String
377
+ ) -> _DescribeFieldIndexesResponseSuccess
378
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeFieldIndexesResponseSuccess
379
+
380
+ interface _DescribeIndexPoliciesResponseSuccess
381
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeIndexPoliciesResponse]
382
+ def index_policies: () -> ::Array[Types::IndexPolicy]
383
+ def next_token: () -> ::String
384
+ end
385
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#describe_index_policies-instance_method
386
+ def describe_index_policies: (
387
+ log_group_identifiers: Array[::String],
388
+ ?next_token: ::String
389
+ ) -> _DescribeIndexPoliciesResponseSuccess
390
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeIndexPoliciesResponseSuccess
391
+
351
392
  interface _DescribeLogGroupsResponseSuccess
352
393
  include ::Seahorse::Client::_ResponseSuccess[Types::DescribeLogGroupsResponse]
353
394
  def log_groups: () -> ::Array[Types::LogGroup]
@@ -606,6 +647,19 @@ module Aws
606
647
  ) -> _GetQueryResultsResponseSuccess
607
648
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetQueryResultsResponseSuccess
608
649
 
650
+ interface _GetTransformerResponseSuccess
651
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetTransformerResponse]
652
+ def log_group_identifier: () -> ::String
653
+ def creation_time: () -> ::Integer
654
+ def last_modified_time: () -> ::Integer
655
+ def transformer_config: () -> ::Array[Types::Processor]
656
+ end
657
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#get_transformer-instance_method
658
+ def get_transformer: (
659
+ log_group_identifier: ::String
660
+ ) -> _GetTransformerResponseSuccess
661
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetTransformerResponseSuccess
662
+
609
663
  interface _ListAnomaliesResponseSuccess
610
664
  include ::Seahorse::Client::_ResponseSuccess[Types::ListAnomaliesResponse]
611
665
  def anomalies: () -> ::Array[Types::Anomaly]
@@ -633,6 +687,19 @@ module Aws
633
687
  ) -> _ListLogAnomalyDetectorsResponseSuccess
634
688
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListLogAnomalyDetectorsResponseSuccess
635
689
 
690
+ interface _ListLogGroupsForQueryResponseSuccess
691
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListLogGroupsForQueryResponse]
692
+ def log_group_identifiers: () -> ::Array[::String]
693
+ def next_token: () -> ::String
694
+ end
695
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#list_log_groups_for_query-instance_method
696
+ def list_log_groups_for_query: (
697
+ query_id: ::String,
698
+ ?next_token: ::String,
699
+ ?max_results: ::Integer
700
+ ) -> _ListLogGroupsForQueryResponseSuccess
701
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListLogGroupsForQueryResponseSuccess
702
+
636
703
  interface _ListTagsForResourceResponseSuccess
637
704
  include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceResponse]
638
705
  def tags: () -> ::Hash[::String, ::String]
@@ -661,7 +728,7 @@ module Aws
661
728
  def put_account_policy: (
662
729
  policy_name: ::String,
663
730
  policy_document: ::String,
664
- policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY"),
731
+ policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY" | "FIELD_INDEX_POLICY" | "TRANSFORMER_POLICY"),
665
732
  ?scope: ("ALL"),
666
733
  ?selection_criteria: ::String
667
734
  ) -> _PutAccountPolicyResponseSuccess
@@ -740,6 +807,17 @@ module Aws
740
807
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
741
808
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
742
809
 
810
+ interface _PutIndexPolicyResponseSuccess
811
+ include ::Seahorse::Client::_ResponseSuccess[Types::PutIndexPolicyResponse]
812
+ def index_policy: () -> Types::IndexPolicy
813
+ end
814
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#put_index_policy-instance_method
815
+ def put_index_policy: (
816
+ log_group_identifier: ::String,
817
+ policy_document: ::String
818
+ ) -> _PutIndexPolicyResponseSuccess
819
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutIndexPolicyResponseSuccess
820
+
743
821
  interface _PutLogEventsResponseSuccess
744
822
  include ::Seahorse::Client::_ResponseSuccess[Types::PutLogEventsResponse]
745
823
  def next_sequence_token: () -> ::String
@@ -778,7 +856,8 @@ module Aws
778
856
  dimensions: Hash[::String, ::String]?,
779
857
  unit: ("Seconds" | "Microseconds" | "Milliseconds" | "Bytes" | "Kilobytes" | "Megabytes" | "Gigabytes" | "Terabytes" | "Bits" | "Kilobits" | "Megabits" | "Gigabits" | "Terabits" | "Percent" | "Count" | "Bytes/Second" | "Kilobytes/Second" | "Megabytes/Second" | "Gigabytes/Second" | "Terabytes/Second" | "Bits/Second" | "Kilobits/Second" | "Megabits/Second" | "Gigabits/Second" | "Terabits/Second" | "Count/Second" | "None")?
780
858
  },
781
- ]
859
+ ],
860
+ ?apply_on_transformed_logs: bool
782
861
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
783
862
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
784
863
 
@@ -821,10 +900,149 @@ module Aws
821
900
  filter_pattern: ::String,
822
901
  destination_arn: ::String,
823
902
  ?role_arn: ::String,
824
- ?distribution: ("Random" | "ByLogStream")
903
+ ?distribution: ("Random" | "ByLogStream"),
904
+ ?apply_on_transformed_logs: bool
825
905
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
826
906
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
827
907
 
908
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#put_transformer-instance_method
909
+ def put_transformer: (
910
+ log_group_identifier: ::String,
911
+ transformer_config: Array[
912
+ {
913
+ add_keys: {
914
+ entries: Array[
915
+ {
916
+ key: ::String,
917
+ value: ::String,
918
+ overwrite_if_exists: bool?
919
+ },
920
+ ]
921
+ }?,
922
+ copy_value: {
923
+ entries: Array[
924
+ {
925
+ source: ::String,
926
+ target: ::String,
927
+ overwrite_if_exists: bool?
928
+ },
929
+ ]
930
+ }?,
931
+ csv: {
932
+ quote_character: ::String?,
933
+ delimiter: ::String?,
934
+ columns: Array[::String]?,
935
+ source: ::String?
936
+ }?,
937
+ date_time_converter: {
938
+ source: ::String,
939
+ target: ::String,
940
+ target_format: ::String?,
941
+ match_patterns: Array[::String],
942
+ source_timezone: ::String?,
943
+ target_timezone: ::String?,
944
+ locale: ::String?
945
+ }?,
946
+ delete_keys: {
947
+ with_keys: Array[::String]
948
+ }?,
949
+ grok: {
950
+ source: ::String?,
951
+ match: ::String
952
+ }?,
953
+ list_to_map: {
954
+ source: ::String,
955
+ key: ::String,
956
+ value_key: ::String?,
957
+ target: ::String?,
958
+ flatten: bool?,
959
+ flattened_element: ("first" | "last")?
960
+ }?,
961
+ lower_case_string: {
962
+ with_keys: Array[::String]
963
+ }?,
964
+ move_keys: {
965
+ entries: Array[
966
+ {
967
+ source: ::String,
968
+ target: ::String,
969
+ overwrite_if_exists: bool?
970
+ },
971
+ ]
972
+ }?,
973
+ parse_cloudfront: {
974
+ source: ::String?
975
+ }?,
976
+ parse_json: {
977
+ source: ::String?,
978
+ destination: ::String?
979
+ }?,
980
+ parse_key_value: {
981
+ source: ::String?,
982
+ destination: ::String?,
983
+ field_delimiter: ::String?,
984
+ key_value_delimiter: ::String?,
985
+ key_prefix: ::String?,
986
+ non_match_value: ::String?,
987
+ overwrite_if_exists: bool?
988
+ }?,
989
+ parse_route_53: {
990
+ source: ::String?
991
+ }?,
992
+ parse_postgres: {
993
+ source: ::String?
994
+ }?,
995
+ parse_vpc: {
996
+ source: ::String?
997
+ }?,
998
+ parse_waf: {
999
+ source: ::String?
1000
+ }?,
1001
+ rename_keys: {
1002
+ entries: Array[
1003
+ {
1004
+ key: ::String,
1005
+ rename_to: ::String,
1006
+ overwrite_if_exists: bool?
1007
+ },
1008
+ ]
1009
+ }?,
1010
+ split_string: {
1011
+ entries: Array[
1012
+ {
1013
+ source: ::String,
1014
+ delimiter: ::String
1015
+ },
1016
+ ]
1017
+ }?,
1018
+ substitute_string: {
1019
+ entries: Array[
1020
+ {
1021
+ source: ::String,
1022
+ from: ::String,
1023
+ to: ::String
1024
+ },
1025
+ ]
1026
+ }?,
1027
+ trim_string: {
1028
+ with_keys: Array[::String]
1029
+ }?,
1030
+ type_converter: {
1031
+ entries: Array[
1032
+ {
1033
+ key: ::String,
1034
+ type: ("boolean" | "integer" | "double" | "string")
1035
+ },
1036
+ ]
1037
+ }?,
1038
+ upper_case_string: {
1039
+ with_keys: Array[::String]
1040
+ }?
1041
+ },
1042
+ ]
1043
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
1044
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
1045
+
828
1046
  interface _StartLiveTailResponseSuccess
829
1047
  include ::Seahorse::Client::_ResponseSuccess[Types::StartLiveTailResponse]
830
1048
  def response_stream: () -> Types::StartLiveTailResponseStream
@@ -889,6 +1107,148 @@ module Aws
889
1107
  ) -> _TestMetricFilterResponseSuccess
890
1108
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TestMetricFilterResponseSuccess
891
1109
 
1110
+ interface _TestTransformerResponseSuccess
1111
+ include ::Seahorse::Client::_ResponseSuccess[Types::TestTransformerResponse]
1112
+ def transformed_logs: () -> ::Array[Types::TransformedLogRecord]
1113
+ end
1114
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#test_transformer-instance_method
1115
+ def test_transformer: (
1116
+ transformer_config: Array[
1117
+ {
1118
+ add_keys: {
1119
+ entries: Array[
1120
+ {
1121
+ key: ::String,
1122
+ value: ::String,
1123
+ overwrite_if_exists: bool?
1124
+ },
1125
+ ]
1126
+ }?,
1127
+ copy_value: {
1128
+ entries: Array[
1129
+ {
1130
+ source: ::String,
1131
+ target: ::String,
1132
+ overwrite_if_exists: bool?
1133
+ },
1134
+ ]
1135
+ }?,
1136
+ csv: {
1137
+ quote_character: ::String?,
1138
+ delimiter: ::String?,
1139
+ columns: Array[::String]?,
1140
+ source: ::String?
1141
+ }?,
1142
+ date_time_converter: {
1143
+ source: ::String,
1144
+ target: ::String,
1145
+ target_format: ::String?,
1146
+ match_patterns: Array[::String],
1147
+ source_timezone: ::String?,
1148
+ target_timezone: ::String?,
1149
+ locale: ::String?
1150
+ }?,
1151
+ delete_keys: {
1152
+ with_keys: Array[::String]
1153
+ }?,
1154
+ grok: {
1155
+ source: ::String?,
1156
+ match: ::String
1157
+ }?,
1158
+ list_to_map: {
1159
+ source: ::String,
1160
+ key: ::String,
1161
+ value_key: ::String?,
1162
+ target: ::String?,
1163
+ flatten: bool?,
1164
+ flattened_element: ("first" | "last")?
1165
+ }?,
1166
+ lower_case_string: {
1167
+ with_keys: Array[::String]
1168
+ }?,
1169
+ move_keys: {
1170
+ entries: Array[
1171
+ {
1172
+ source: ::String,
1173
+ target: ::String,
1174
+ overwrite_if_exists: bool?
1175
+ },
1176
+ ]
1177
+ }?,
1178
+ parse_cloudfront: {
1179
+ source: ::String?
1180
+ }?,
1181
+ parse_json: {
1182
+ source: ::String?,
1183
+ destination: ::String?
1184
+ }?,
1185
+ parse_key_value: {
1186
+ source: ::String?,
1187
+ destination: ::String?,
1188
+ field_delimiter: ::String?,
1189
+ key_value_delimiter: ::String?,
1190
+ key_prefix: ::String?,
1191
+ non_match_value: ::String?,
1192
+ overwrite_if_exists: bool?
1193
+ }?,
1194
+ parse_route_53: {
1195
+ source: ::String?
1196
+ }?,
1197
+ parse_postgres: {
1198
+ source: ::String?
1199
+ }?,
1200
+ parse_vpc: {
1201
+ source: ::String?
1202
+ }?,
1203
+ parse_waf: {
1204
+ source: ::String?
1205
+ }?,
1206
+ rename_keys: {
1207
+ entries: Array[
1208
+ {
1209
+ key: ::String,
1210
+ rename_to: ::String,
1211
+ overwrite_if_exists: bool?
1212
+ },
1213
+ ]
1214
+ }?,
1215
+ split_string: {
1216
+ entries: Array[
1217
+ {
1218
+ source: ::String,
1219
+ delimiter: ::String
1220
+ },
1221
+ ]
1222
+ }?,
1223
+ substitute_string: {
1224
+ entries: Array[
1225
+ {
1226
+ source: ::String,
1227
+ from: ::String,
1228
+ to: ::String
1229
+ },
1230
+ ]
1231
+ }?,
1232
+ trim_string: {
1233
+ with_keys: Array[::String]
1234
+ }?,
1235
+ type_converter: {
1236
+ entries: Array[
1237
+ {
1238
+ key: ::String,
1239
+ type: ("boolean" | "integer" | "double" | "string")
1240
+ },
1241
+ ]
1242
+ }?,
1243
+ upper_case_string: {
1244
+ with_keys: Array[::String]
1245
+ }?
1246
+ },
1247
+ ],
1248
+ log_event_messages: Array[::String]
1249
+ ) -> _TestTransformerResponseSuccess
1250
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TestTransformerResponseSuccess
1251
+
892
1252
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#untag_log_group-instance_method
893
1253
  def untag_log_group: (
894
1254
  log_group_name: ::String,