aws-sdk-cloudwatchlogs 1.119.0 → 1.121.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
@@ -164,7 +164,7 @@ module Aws
164
164
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#delete_account_policy-instance_method
165
165
  def delete_account_policy: (
166
166
  policy_name: ::String,
167
- policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY" | "FIELD_INDEX_POLICY" | "TRANSFORMER_POLICY")
167
+ policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY" | "FIELD_INDEX_POLICY" | "TRANSFORMER_POLICY" | "METRIC_EXTRACTION_POLICY")
168
168
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
169
169
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
170
170
 
@@ -261,7 +261,9 @@ module Aws
261
261
 
262
262
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#delete_resource_policy-instance_method
263
263
  def delete_resource_policy: (
264
- ?policy_name: ::String
264
+ ?policy_name: ::String,
265
+ ?resource_arn: ::String,
266
+ ?expected_revision_id: ::String
265
267
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
266
268
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
267
269
 
@@ -291,7 +293,7 @@ module Aws
291
293
  end
292
294
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#describe_account_policies-instance_method
293
295
  def describe_account_policies: (
294
- policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY" | "FIELD_INDEX_POLICY" | "TRANSFORMER_POLICY"),
296
+ policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY" | "FIELD_INDEX_POLICY" | "TRANSFORMER_POLICY" | "METRIC_EXTRACTION_POLICY"),
295
297
  ?policy_name: ::String,
296
298
  ?account_identifiers: Array[::String],
297
299
  ?next_token: ::String
@@ -308,7 +310,7 @@ module Aws
308
310
  ?service: ::String,
309
311
  ?log_types: Array[::String],
310
312
  ?resource_types: Array[::String],
311
- ?delivery_destination_types: Array[("S3" | "CWL" | "FH")],
313
+ ?delivery_destination_types: Array[("S3" | "CWL" | "FH" | "XRAY")],
312
314
  ?next_token: ::String,
313
315
  ?limit: ::Integer
314
316
  ) -> _DescribeConfigurationTemplatesResponseSuccess
@@ -489,7 +491,9 @@ module Aws
489
491
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#describe_resource_policies-instance_method
490
492
  def describe_resource_policies: (
491
493
  ?next_token: ::String,
492
- ?limit: ::Integer
494
+ ?limit: ::Integer,
495
+ ?resource_arn: ::String,
496
+ ?policy_scope: ("ACCOUNT" | "RESOURCE")
493
497
  ) -> _DescribeResourcePoliciesResponseSuccess
494
498
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeResourcePoliciesResponseSuccess
495
499
 
@@ -651,6 +655,17 @@ module Aws
651
655
  ) -> _GetLogGroupFieldsResponseSuccess
652
656
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetLogGroupFieldsResponseSuccess
653
657
 
658
+ interface _GetLogObjectResponseSuccess
659
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetLogObjectResponse]
660
+ def field_stream: () -> Types::GetLogObjectResponseStream
661
+ end
662
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#get_log_object-instance_method
663
+ def get_log_object: (
664
+ ?unmask: bool,
665
+ log_object_pointer: ::String
666
+ ) -> _GetLogObjectResponseSuccess
667
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetLogObjectResponseSuccess
668
+
654
669
  interface _GetLogRecordResponseSuccess
655
670
  include ::Seahorse::Client::_ResponseSuccess[Types::GetLogRecordResponse]
656
671
  def log_record: () -> ::Hash[::String, ::String]
@@ -785,7 +800,7 @@ module Aws
785
800
  def put_account_policy: (
786
801
  policy_name: ::String,
787
802
  policy_document: ::String,
788
- policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY" | "FIELD_INDEX_POLICY" | "TRANSFORMER_POLICY"),
803
+ policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY" | "FIELD_INDEX_POLICY" | "TRANSFORMER_POLICY" | "METRIC_EXTRACTION_POLICY"),
789
804
  ?scope: ("ALL"),
790
805
  ?selection_criteria: ::String
791
806
  ) -> _PutAccountPolicyResponseSuccess
@@ -812,9 +827,10 @@ module Aws
812
827
  def put_delivery_destination: (
813
828
  name: ::String,
814
829
  ?output_format: ("json" | "plain" | "w3c" | "raw" | "parquet"),
815
- delivery_destination_configuration: {
830
+ ?delivery_destination_configuration: {
816
831
  destination_resource_arn: ::String
817
832
  },
833
+ ?delivery_destination_type: ("S3" | "CWL" | "FH" | "XRAY"),
818
834
  ?tags: Hash[::String, ::String]
819
835
  ) -> _PutDeliveryDestinationResponseSuccess
820
836
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutDeliveryDestinationResponseSuccess
@@ -957,11 +973,14 @@ module Aws
957
973
  interface _PutResourcePolicyResponseSuccess
958
974
  include ::Seahorse::Client::_ResponseSuccess[Types::PutResourcePolicyResponse]
959
975
  def resource_policy: () -> Types::ResourcePolicy
976
+ def revision_id: () -> ::String
960
977
  end
961
978
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#put_resource_policy-instance_method
962
979
  def put_resource_policy: (
963
980
  ?policy_name: ::String,
964
- ?policy_document: ::String
981
+ ?policy_document: ::String,
982
+ ?resource_arn: ::String,
983
+ ?expected_revision_id: ::String
965
984
  ) -> _PutResourcePolicyResponseSuccess
966
985
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutResourcePolicyResponseSuccess
967
986
 
data/sig/errors.rbs CHANGED
@@ -18,6 +18,9 @@ module Aws
18
18
  class DataAlreadyAcceptedException < ::Aws::Errors::ServiceError
19
19
  def expected_sequence_token: () -> ::String
20
20
  end
21
+ class InternalStreamingException < ::Aws::Errors::ServiceError
22
+ def message: () -> ::String
23
+ end
21
24
  class InvalidOperationException < ::Aws::Errors::ServiceError
22
25
  end
23
26
  class InvalidParameterException < ::Aws::Errors::ServiceError
data/sig/types.rbs CHANGED
@@ -15,7 +15,7 @@ module Aws::CloudWatchLogs
15
15
  attr_accessor policy_name: ::String
16
16
  attr_accessor policy_document: ::String
17
17
  attr_accessor last_updated_time: ::Integer
18
- attr_accessor policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY" | "FIELD_INDEX_POLICY" | "TRANSFORMER_POLICY")
18
+ attr_accessor policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY" | "FIELD_INDEX_POLICY" | "TRANSFORMER_POLICY" | "METRIC_EXTRACTION_POLICY")
19
19
  attr_accessor scope: ("ALL")
20
20
  attr_accessor selection_criteria: ::String
21
21
  attr_accessor account_id: ::String
@@ -95,7 +95,7 @@ module Aws::CloudWatchLogs
95
95
  attr_accessor service: ::String
96
96
  attr_accessor log_type: ::String
97
97
  attr_accessor resource_type: ::String
98
- attr_accessor delivery_destination_type: ("S3" | "CWL" | "FH")
98
+ attr_accessor delivery_destination_type: ("S3" | "CWL" | "FH" | "XRAY")
99
99
  attr_accessor default_delivery_config_values: Types::ConfigurationTemplateDeliveryConfigValues
100
100
  attr_accessor allowed_fields: ::Array[Types::RecordField]
101
101
  attr_accessor allowed_output_formats: ::Array[("json" | "plain" | "w3c" | "raw" | "parquet")]
@@ -206,7 +206,7 @@ module Aws::CloudWatchLogs
206
206
 
207
207
  class DeleteAccountPolicyRequest
208
208
  attr_accessor policy_name: ::String
209
- attr_accessor policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY" | "FIELD_INDEX_POLICY" | "TRANSFORMER_POLICY")
209
+ attr_accessor policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY" | "FIELD_INDEX_POLICY" | "TRANSFORMER_POLICY" | "METRIC_EXTRACTION_POLICY")
210
210
  SENSITIVE: []
211
211
  end
212
212
 
@@ -296,6 +296,8 @@ module Aws::CloudWatchLogs
296
296
 
297
297
  class DeleteResourcePolicyRequest
298
298
  attr_accessor policy_name: ::String
299
+ attr_accessor resource_arn: ::String
300
+ attr_accessor expected_revision_id: ::String
299
301
  SENSITIVE: []
300
302
  end
301
303
 
@@ -320,7 +322,7 @@ module Aws::CloudWatchLogs
320
322
  attr_accessor arn: ::String
321
323
  attr_accessor delivery_source_name: ::String
322
324
  attr_accessor delivery_destination_arn: ::String
323
- attr_accessor delivery_destination_type: ("S3" | "CWL" | "FH")
325
+ attr_accessor delivery_destination_type: ("S3" | "CWL" | "FH" | "XRAY")
324
326
  attr_accessor record_fields: ::Array[::String]
325
327
  attr_accessor field_delimiter: ::String
326
328
  attr_accessor s3_delivery_configuration: Types::S3DeliveryConfiguration
@@ -331,7 +333,7 @@ module Aws::CloudWatchLogs
331
333
  class DeliveryDestination
332
334
  attr_accessor name: ::String
333
335
  attr_accessor arn: ::String
334
- attr_accessor delivery_destination_type: ("S3" | "CWL" | "FH")
336
+ attr_accessor delivery_destination_type: ("S3" | "CWL" | "FH" | "XRAY")
335
337
  attr_accessor output_format: ("json" | "plain" | "w3c" | "raw" | "parquet")
336
338
  attr_accessor delivery_destination_configuration: Types::DeliveryDestinationConfiguration
337
339
  attr_accessor tags: ::Hash[::String, ::String]
@@ -354,7 +356,7 @@ module Aws::CloudWatchLogs
354
356
  end
355
357
 
356
358
  class DescribeAccountPoliciesRequest
357
- attr_accessor policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY" | "FIELD_INDEX_POLICY" | "TRANSFORMER_POLICY")
359
+ attr_accessor policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY" | "FIELD_INDEX_POLICY" | "TRANSFORMER_POLICY" | "METRIC_EXTRACTION_POLICY")
358
360
  attr_accessor policy_name: ::String
359
361
  attr_accessor account_identifiers: ::Array[::String]
360
362
  attr_accessor next_token: ::String
@@ -371,7 +373,7 @@ module Aws::CloudWatchLogs
371
373
  attr_accessor service: ::String
372
374
  attr_accessor log_types: ::Array[::String]
373
375
  attr_accessor resource_types: ::Array[::String]
374
- attr_accessor delivery_destination_types: ::Array[("S3" | "CWL" | "FH")]
376
+ attr_accessor delivery_destination_types: ::Array[("S3" | "CWL" | "FH" | "XRAY")]
375
377
  attr_accessor next_token: ::String
376
378
  attr_accessor limit: ::Integer
377
379
  SENSITIVE: []
@@ -553,6 +555,8 @@ module Aws::CloudWatchLogs
553
555
  class DescribeResourcePoliciesRequest
554
556
  attr_accessor next_token: ::String
555
557
  attr_accessor limit: ::Integer
558
+ attr_accessor resource_arn: ::String
559
+ attr_accessor policy_scope: ("ACCOUNT" | "RESOURCE")
556
560
  SENSITIVE: []
557
561
  end
558
562
 
@@ -632,6 +636,12 @@ module Aws::CloudWatchLogs
632
636
  SENSITIVE: []
633
637
  end
634
638
 
639
+ class FieldsData
640
+ attr_accessor data: ::String
641
+ attr_accessor event_type: untyped
642
+ SENSITIVE: []
643
+ end
644
+
635
645
  class FilterLogEventsRequest
636
646
  attr_accessor log_group_name: ::String
637
647
  attr_accessor log_group_identifier: ::String
@@ -778,6 +788,17 @@ module Aws::CloudWatchLogs
778
788
  SENSITIVE: []
779
789
  end
780
790
 
791
+ class GetLogObjectRequest
792
+ attr_accessor unmask: bool
793
+ attr_accessor log_object_pointer: ::String
794
+ SENSITIVE: []
795
+ end
796
+
797
+ class GetLogObjectResponse
798
+ attr_accessor field_stream: Types::GetLogObjectResponseStream
799
+ SENSITIVE: []
800
+ end
801
+
781
802
  class GetLogRecordRequest
782
803
  attr_accessor log_record_pointer: ::String
783
804
  attr_accessor unmask: bool
@@ -855,6 +876,12 @@ module Aws::CloudWatchLogs
855
876
  SENSITIVE: []
856
877
  end
857
878
 
879
+ class InternalStreamingException
880
+ attr_accessor message: ::String
881
+ attr_accessor event_type: untyped
882
+ SENSITIVE: []
883
+ end
884
+
858
885
  class InvalidOperationException < Aws::EmptyStructure
859
886
  end
860
887
 
@@ -1275,7 +1302,7 @@ module Aws::CloudWatchLogs
1275
1302
  class PutAccountPolicyRequest
1276
1303
  attr_accessor policy_name: ::String
1277
1304
  attr_accessor policy_document: ::String
1278
- attr_accessor policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY" | "FIELD_INDEX_POLICY" | "TRANSFORMER_POLICY")
1305
+ attr_accessor policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY" | "FIELD_INDEX_POLICY" | "TRANSFORMER_POLICY" | "METRIC_EXTRACTION_POLICY")
1279
1306
  attr_accessor scope: ("ALL")
1280
1307
  attr_accessor selection_criteria: ::String
1281
1308
  SENSITIVE: []
@@ -1314,6 +1341,7 @@ module Aws::CloudWatchLogs
1314
1341
  attr_accessor name: ::String
1315
1342
  attr_accessor output_format: ("json" | "plain" | "w3c" | "raw" | "parquet")
1316
1343
  attr_accessor delivery_destination_configuration: Types::DeliveryDestinationConfiguration
1344
+ attr_accessor delivery_destination_type: ("S3" | "CWL" | "FH" | "XRAY")
1317
1345
  attr_accessor tags: ::Hash[::String, ::String]
1318
1346
  SENSITIVE: []
1319
1347
  end
@@ -1423,11 +1451,14 @@ module Aws::CloudWatchLogs
1423
1451
  class PutResourcePolicyRequest
1424
1452
  attr_accessor policy_name: ::String
1425
1453
  attr_accessor policy_document: ::String
1454
+ attr_accessor resource_arn: ::String
1455
+ attr_accessor expected_revision_id: ::String
1426
1456
  SENSITIVE: []
1427
1457
  end
1428
1458
 
1429
1459
  class PutResourcePolicyResponse
1430
1460
  attr_accessor resource_policy: Types::ResourcePolicy
1461
+ attr_accessor revision_id: ::String
1431
1462
  SENSITIVE: []
1432
1463
  end
1433
1464
 
@@ -1547,6 +1578,9 @@ module Aws::CloudWatchLogs
1547
1578
  attr_accessor policy_name: ::String
1548
1579
  attr_accessor policy_document: ::String
1549
1580
  attr_accessor last_updated_time: ::Integer
1581
+ attr_accessor policy_scope: ("ACCOUNT" | "RESOURCE")
1582
+ attr_accessor resource_arn: ::String
1583
+ attr_accessor revision_id: ::String
1550
1584
  SENSITIVE: []
1551
1585
  end
1552
1586
 
@@ -1786,6 +1820,10 @@ module Aws::CloudWatchLogs
1786
1820
  class ValidationException < Aws::EmptyStructure
1787
1821
  end
1788
1822
 
1823
+ class GetLogObjectResponseStream < Enumerator[untyped, untyped]
1824
+ def event_types: () -> [:fields, :internal_streaming_exception]
1825
+ end
1826
+
1789
1827
  class StartLiveTailResponseStream < Enumerator[untyped, untyped]
1790
1828
  def event_types: () -> [:session_start, :session_update, :session_timeout_exception, :session_streaming_exception]
1791
1829
  end
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.119.0
4
+ version: 1.121.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services