aws-sdk-cloudwatchlogs 1.89.0 → 1.93.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.
@@ -40,11 +40,20 @@ module Aws::CloudWatchLogs
40
40
  context[:auth_scheme] =
41
41
  Aws::Endpoints.resolve_auth_scheme(context, endpoint)
42
42
 
43
- @handler.call(context)
43
+ with_metrics(context) { @handler.call(context) }
44
44
  end
45
45
 
46
46
  private
47
47
 
48
+ def with_metrics(context, &block)
49
+ metrics = []
50
+ metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint
51
+ if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
52
+ metrics << 'SIGV4A_SIGNING'
53
+ end
54
+ Aws::Plugins::UserAgent.metric(*metrics, &block)
55
+ end
56
+
48
57
  def apply_endpoint_headers(context, headers)
49
58
  headers.each do |key, values|
50
59
  value = values
@@ -104,6 +113,8 @@ module Aws::CloudWatchLogs
104
113
  Aws::CloudWatchLogs::Endpoints::DeleteSubscriptionFilter.build(context)
105
114
  when :describe_account_policies
106
115
  Aws::CloudWatchLogs::Endpoints::DescribeAccountPolicies.build(context)
116
+ when :describe_configuration_templates
117
+ Aws::CloudWatchLogs::Endpoints::DescribeConfigurationTemplates.build(context)
107
118
  when :describe_deliveries
108
119
  Aws::CloudWatchLogs::Endpoints::DescribeDeliveries.build(context)
109
120
  when :describe_delivery_destinations
@@ -204,6 +215,8 @@ module Aws::CloudWatchLogs
204
215
  Aws::CloudWatchLogs::Endpoints::UntagResource.build(context)
205
216
  when :update_anomaly
206
217
  Aws::CloudWatchLogs::Endpoints::UpdateAnomaly.build(context)
218
+ when :update_delivery_configuration
219
+ Aws::CloudWatchLogs::Endpoints::UpdateDeliveryConfiguration.build(context)
207
220
  when :update_log_anomaly_detector
208
221
  Aws::CloudWatchLogs::Endpoints::UpdateLogAnomalyDetector.build(context)
209
222
  end
@@ -351,6 +351,147 @@ module Aws::CloudWatchLogs
351
351
  include Aws::Structure
352
352
  end
353
353
 
354
+ # A structure containing information about the deafult settings and
355
+ # available settings that you can use to configure a [delivery][1] or a
356
+ # [delivery destination][2].
357
+ #
358
+ #
359
+ #
360
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_Delivery.html
361
+ # [2]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DeliveryDestination.html
362
+ #
363
+ # @!attribute [rw] service
364
+ # A string specifying which service this configuration template
365
+ # applies to. For more information about supported services see
366
+ # [Enable logging from Amazon Web Services services.][1].
367
+ #
368
+ #
369
+ #
370
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html
371
+ # @return [String]
372
+ #
373
+ # @!attribute [rw] log_type
374
+ # A string specifying which log type this configuration template
375
+ # applies to.
376
+ # @return [String]
377
+ #
378
+ # @!attribute [rw] resource_type
379
+ # A string specifying which resource type this configuration template
380
+ # applies to.
381
+ # @return [String]
382
+ #
383
+ # @!attribute [rw] delivery_destination_type
384
+ # A string specifying which destination type this configuration
385
+ # template applies to.
386
+ # @return [String]
387
+ #
388
+ # @!attribute [rw] default_delivery_config_values
389
+ # A mapping that displays the default value of each property within a
390
+ # delivery’s configuration, if it is not specified in the request.
391
+ # @return [Types::ConfigurationTemplateDeliveryConfigValues]
392
+ #
393
+ # @!attribute [rw] allowed_fields
394
+ # The allowed fields that a caller can use in the `recordFields`
395
+ # parameter of a [CreateDelivery][1] or
396
+ # [UpdateDeliveryConfiguration][2] operation.
397
+ #
398
+ #
399
+ #
400
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html
401
+ # [2]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateDeliveryConfiguration.html
402
+ # @return [Array<Types::RecordField>]
403
+ #
404
+ # @!attribute [rw] allowed_output_formats
405
+ # The list of delivery destination output formats that are supported
406
+ # by this log source.
407
+ # @return [Array<String>]
408
+ #
409
+ # @!attribute [rw] allowed_action_for_allow_vended_logs_delivery_for_resource
410
+ # The action permissions that a caller needs to have to be able to
411
+ # successfully create a delivery source on the desired resource type
412
+ # when calling [PutDeliverySource][1].
413
+ #
414
+ #
415
+ #
416
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html
417
+ # @return [String]
418
+ #
419
+ # @!attribute [rw] allowed_field_delimiters
420
+ # The valid values that a caller can use as field delimiters when
421
+ # calling [CreateDelivery][1] or [UpdateDeliveryConfiguration][2] on a
422
+ # delivery that delivers in `Plain`, `W3C`, or `Raw` format.
423
+ #
424
+ #
425
+ #
426
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html
427
+ # [2]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateDeliveryConfiguration.html
428
+ # @return [Array<String>]
429
+ #
430
+ # @!attribute [rw] allowed_suffix_path_fields
431
+ # The list of variable fields that can be used in the suffix path of a
432
+ # delivery that delivers to an S3 bucket.
433
+ # @return [Array<String>]
434
+ #
435
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ConfigurationTemplate AWS API Documentation
436
+ #
437
+ class ConfigurationTemplate < Struct.new(
438
+ :service,
439
+ :log_type,
440
+ :resource_type,
441
+ :delivery_destination_type,
442
+ :default_delivery_config_values,
443
+ :allowed_fields,
444
+ :allowed_output_formats,
445
+ :allowed_action_for_allow_vended_logs_delivery_for_resource,
446
+ :allowed_field_delimiters,
447
+ :allowed_suffix_path_fields)
448
+ SENSITIVE = []
449
+ include Aws::Structure
450
+ end
451
+
452
+ # This structure contains the default values that are used for each
453
+ # configuration parameter when you use [CreateDelivery][1] to create a
454
+ # deliver under the current service type, resource type, and log type.
455
+ #
456
+ #
457
+ #
458
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html
459
+ #
460
+ # @!attribute [rw] record_fields
461
+ # The default record fields that will be delivered when a list of
462
+ # record fields is not provided in a [CreateDelivery][1] operation.
463
+ #
464
+ #
465
+ #
466
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html
467
+ # @return [Array<String>]
468
+ #
469
+ # @!attribute [rw] field_delimiter
470
+ # The default field delimiter that is used in a [CreateDelivery][1]
471
+ # operation when the field delimiter is not specified in that
472
+ # operation. The field delimiter is used only when the final output
473
+ # delivery is in `Plain`, `W3C`, or `Raw` format.
474
+ #
475
+ #
476
+ #
477
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html
478
+ # @return [String]
479
+ #
480
+ # @!attribute [rw] s3_delivery_configuration
481
+ # The delivery parameters that are used when you create a delivery to
482
+ # a delivery destination that is an S3 Bucket.
483
+ # @return [Types::S3DeliveryConfiguration]
484
+ #
485
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ConfigurationTemplateDeliveryConfigValues AWS API Documentation
486
+ #
487
+ class ConfigurationTemplateDeliveryConfigValues < Struct.new(
488
+ :record_fields,
489
+ :field_delimiter,
490
+ :s3_delivery_configuration)
491
+ SENSITIVE = []
492
+ include Aws::Structure
493
+ end
494
+
354
495
  # This operation attempted to create a resource that already exists.
355
496
  #
356
497
  # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ConflictException AWS API Documentation
@@ -365,6 +506,22 @@ module Aws::CloudWatchLogs
365
506
  # The ARN of the delivery destination to use for this delivery.
366
507
  # @return [String]
367
508
  #
509
+ # @!attribute [rw] record_fields
510
+ # The list of record fields to be delivered to the destination, in
511
+ # order. If the delivery’s log source has mandatory fields, they must
512
+ # be included in this list.
513
+ # @return [Array<String>]
514
+ #
515
+ # @!attribute [rw] field_delimiter
516
+ # The field delimiter to use between record fields when the final
517
+ # output format of a delivery is in `Plain`, `W3C`, or `Raw` format.
518
+ # @return [String]
519
+ #
520
+ # @!attribute [rw] s3_delivery_configuration
521
+ # This structure contains parameters that are valid only when the
522
+ # delivery’s delivery destination is an S3 bucket.
523
+ # @return [Types::S3DeliveryConfiguration]
524
+ #
368
525
  # @!attribute [rw] tags
369
526
  # An optional list of key-value pairs to associate with the resource.
370
527
  #
@@ -381,6 +538,9 @@ module Aws::CloudWatchLogs
381
538
  class CreateDeliveryRequest < Struct.new(
382
539
  :delivery_source_name,
383
540
  :delivery_destination_arn,
541
+ :record_fields,
542
+ :field_delimiter,
543
+ :s3_delivery_configuration,
384
544
  :tags)
385
545
  SENSITIVE = []
386
546
  include Aws::Structure
@@ -928,6 +1088,21 @@ module Aws::CloudWatchLogs
928
1088
  # delivery is CloudWatch Logs, Amazon S3, or Firehose.
929
1089
  # @return [String]
930
1090
  #
1091
+ # @!attribute [rw] record_fields
1092
+ # The record fields used in this delivery.
1093
+ # @return [Array<String>]
1094
+ #
1095
+ # @!attribute [rw] field_delimiter
1096
+ # The field delimiter that is used between record fields when the
1097
+ # final output format of a delivery is in `Plain`, `W3C`, or `Raw`
1098
+ # format.
1099
+ # @return [String]
1100
+ #
1101
+ # @!attribute [rw] s3_delivery_configuration
1102
+ # This structure contains delivery configurations that apply only when
1103
+ # the delivery destination resource is an S3 bucket.
1104
+ # @return [Types::S3DeliveryConfiguration]
1105
+ #
931
1106
  # @!attribute [rw] tags
932
1107
  # The tags that have been assigned to this delivery.
933
1108
  # @return [Hash<String,String>]
@@ -940,6 +1115,9 @@ module Aws::CloudWatchLogs
940
1115
  :delivery_source_name,
941
1116
  :delivery_destination_arn,
942
1117
  :delivery_destination_type,
1118
+ :record_fields,
1119
+ :field_delimiter,
1120
+ :s3_delivery_configuration,
943
1121
  :tags)
944
1122
  SENSITIVE = []
945
1123
  include Aws::Structure
@@ -1165,6 +1343,72 @@ module Aws::CloudWatchLogs
1165
1343
  include Aws::Structure
1166
1344
  end
1167
1345
 
1346
+ # @!attribute [rw] service
1347
+ # Use this parameter to filter the response to include only the
1348
+ # configuration templates that apply to the Amazon Web Services
1349
+ # service that you specify here.
1350
+ # @return [String]
1351
+ #
1352
+ # @!attribute [rw] log_types
1353
+ # Use this parameter to filter the response to include only the
1354
+ # configuration templates that apply to the log types that you specify
1355
+ # here.
1356
+ # @return [Array<String>]
1357
+ #
1358
+ # @!attribute [rw] resource_types
1359
+ # Use this parameter to filter the response to include only the
1360
+ # configuration templates that apply to the resource types that you
1361
+ # specify here.
1362
+ # @return [Array<String>]
1363
+ #
1364
+ # @!attribute [rw] delivery_destination_types
1365
+ # Use this parameter to filter the response to include only the
1366
+ # configuration templates that apply to the delivery destination types
1367
+ # that you specify here.
1368
+ # @return [Array<String>]
1369
+ #
1370
+ # @!attribute [rw] next_token
1371
+ # The token for the next set of items to return. The token expires
1372
+ # after 24 hours.
1373
+ # @return [String]
1374
+ #
1375
+ # @!attribute [rw] limit
1376
+ # Use this parameter to limit the number of configuration templates
1377
+ # that are returned in the response.
1378
+ # @return [Integer]
1379
+ #
1380
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeConfigurationTemplatesRequest AWS API Documentation
1381
+ #
1382
+ class DescribeConfigurationTemplatesRequest < Struct.new(
1383
+ :service,
1384
+ :log_types,
1385
+ :resource_types,
1386
+ :delivery_destination_types,
1387
+ :next_token,
1388
+ :limit)
1389
+ SENSITIVE = []
1390
+ include Aws::Structure
1391
+ end
1392
+
1393
+ # @!attribute [rw] configuration_templates
1394
+ # An array of objects, where each object describes one configuration
1395
+ # template that matches the filters that you specified in the request.
1396
+ # @return [Array<Types::ConfigurationTemplate>]
1397
+ #
1398
+ # @!attribute [rw] next_token
1399
+ # The token for the next set of items to return. The token expires
1400
+ # after 24 hours.
1401
+ # @return [String]
1402
+ #
1403
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeConfigurationTemplatesResponse AWS API Documentation
1404
+ #
1405
+ class DescribeConfigurationTemplatesResponse < Struct.new(
1406
+ :configuration_templates,
1407
+ :next_token)
1408
+ SENSITIVE = []
1409
+ include Aws::Structure
1410
+ end
1411
+
1168
1412
  # @!attribute [rw] next_token
1169
1413
  # The token for the next set of items to return. The token expires
1170
1414
  # after 24 hours.
@@ -1896,14 +2140,14 @@ module Aws::CloudWatchLogs
1896
2140
  include Aws::Structure
1897
2141
  end
1898
2142
 
1899
- # Reserved for future use.
2143
+ # Reserved for internal use.
1900
2144
  #
1901
2145
  # @!attribute [rw] key_attributes
1902
- # Reserved for future use.
2146
+ # Reserved for internal use.
1903
2147
  # @return [Hash<String,String>]
1904
2148
  #
1905
2149
  # @!attribute [rw] attributes
1906
- # Reserved for future use.
2150
+ # Reserved for internal use.
1907
2151
  # @return [Hash<String,String>]
1908
2152
  #
1909
2153
  # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/Entity AWS API Documentation
@@ -3980,7 +4224,7 @@ module Aws::CloudWatchLogs
3980
4224
  # @return [String]
3981
4225
  #
3982
4226
  # @!attribute [rw] entity
3983
- # Reserved for future use.
4227
+ # Reserved for internal use.
3984
4228
  # @return [Types::Entity]
3985
4229
  #
3986
4230
  # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutLogEventsRequest AWS API Documentation
@@ -4013,7 +4257,7 @@ module Aws::CloudWatchLogs
4013
4257
  # @return [Types::RejectedLogEventsInfo]
4014
4258
  #
4015
4259
  # @!attribute [rw] rejected_entity_info
4016
- # Reserved for future use.
4260
+ # Reserved for internal use.
4017
4261
  # @return [Types::RejectedEntityInfo]
4018
4262
  #
4019
4263
  # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutLogEventsResponse AWS API Documentation
@@ -4431,10 +4675,43 @@ module Aws::CloudWatchLogs
4431
4675
  include Aws::Structure
4432
4676
  end
4433
4677
 
4434
- # Reserved for future use.
4678
+ # A structure that represents a valid record field header and whether it
4679
+ # is mandatory.
4680
+ #
4681
+ # @!attribute [rw] name
4682
+ # The name to use when specifying this record field in a
4683
+ # [CreateDelivery][1] or [UpdateDeliveryConfiguration][2] operation.
4684
+ #
4685
+ #
4686
+ #
4687
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html
4688
+ # [2]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateDeliveryConfiguration.html
4689
+ # @return [String]
4690
+ #
4691
+ # @!attribute [rw] mandatory
4692
+ # If this is `true`, the record field must be present in the
4693
+ # `recordFields` parameter provided to a [CreateDelivery][1] or
4694
+ # [UpdateDeliveryConfiguration][2] operation.
4695
+ #
4696
+ #
4697
+ #
4698
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html
4699
+ # [2]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateDeliveryConfiguration.html
4700
+ # @return [Boolean]
4701
+ #
4702
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/RecordField AWS API Documentation
4703
+ #
4704
+ class RecordField < Struct.new(
4705
+ :name,
4706
+ :mandatory)
4707
+ SENSITIVE = []
4708
+ include Aws::Structure
4709
+ end
4710
+
4711
+ # Reserved for internal use.
4435
4712
  #
4436
4713
  # @!attribute [rw] error_type
4437
- # Reserved for future use.
4714
+ # Reserved for internal use.
4438
4715
  # @return [String]
4439
4716
  #
4440
4717
  # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/RejectedEntityInfo AWS API Documentation
@@ -4536,6 +4813,31 @@ module Aws::CloudWatchLogs
4536
4813
  include Aws::Structure
4537
4814
  end
4538
4815
 
4816
+ # This structure contains delivery configurations that apply only when
4817
+ # the delivery destination resource is an S3 bucket.
4818
+ #
4819
+ # @!attribute [rw] suffix_path
4820
+ # This string allows re-configuring the S3 object prefix to contain
4821
+ # either static or variable sections. The valid variables to use in
4822
+ # the suffix path will vary by each log source. See
4823
+ # ConfigurationTemplate$allowedSuffixPathFields for more info on what
4824
+ # values are supported in the suffix path for each log source.
4825
+ # @return [String]
4826
+ #
4827
+ # @!attribute [rw] enable_hive_compatible_path
4828
+ # This parameter causes the S3 objects that contain delivered logs to
4829
+ # use a prefix structure that allows for integration with Apache Hive.
4830
+ # @return [Boolean]
4831
+ #
4832
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/S3DeliveryConfiguration AWS API Documentation
4833
+ #
4834
+ class S3DeliveryConfiguration < Struct.new(
4835
+ :suffix_path,
4836
+ :enable_hive_compatible_path)
4837
+ SENSITIVE = []
4838
+ include Aws::Structure
4839
+ end
4840
+
4539
4841
  # Represents the search status of a log stream.
4540
4842
  #
4541
4843
  # @!attribute [rw] log_stream_name
@@ -5069,6 +5371,41 @@ module Aws::CloudWatchLogs
5069
5371
  include Aws::Structure
5070
5372
  end
5071
5373
 
5374
+ # @!attribute [rw] id
5375
+ # The ID of the delivery to be updated by this request.
5376
+ # @return [String]
5377
+ #
5378
+ # @!attribute [rw] record_fields
5379
+ # The list of record fields to be delivered to the destination, in
5380
+ # order. If the delivery’s log source has mandatory fields, they must
5381
+ # be included in this list.
5382
+ # @return [Array<String>]
5383
+ #
5384
+ # @!attribute [rw] field_delimiter
5385
+ # The field delimiter to use between record fields when the final
5386
+ # output format of a delivery is in `Plain`, `W3C`, or `Raw` format.
5387
+ # @return [String]
5388
+ #
5389
+ # @!attribute [rw] s3_delivery_configuration
5390
+ # This structure contains parameters that are valid only when the
5391
+ # delivery’s delivery destination is an S3 bucket.
5392
+ # @return [Types::S3DeliveryConfiguration]
5393
+ #
5394
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UpdateDeliveryConfigurationRequest AWS API Documentation
5395
+ #
5396
+ class UpdateDeliveryConfigurationRequest < Struct.new(
5397
+ :id,
5398
+ :record_fields,
5399
+ :field_delimiter,
5400
+ :s3_delivery_configuration)
5401
+ SENSITIVE = []
5402
+ include Aws::Structure
5403
+ end
5404
+
5405
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UpdateDeliveryConfigurationResponse AWS API Documentation
5406
+ #
5407
+ class UpdateDeliveryConfigurationResponse < Aws::EmptyStructure; end
5408
+
5072
5409
  # @!attribute [rw] anomaly_detector_arn
5073
5410
  # The ARN of the anomaly detector that you want to update.
5074
5411
  # @return [String]
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-cloudwatchlogs/event_streams'
53
53
  # @!group service
54
54
  module Aws::CloudWatchLogs
55
55
 
56
- GEM_VERSION = '1.89.0'
56
+ GEM_VERSION = '1.93.0'
57
57
 
58
58
  end
data/sig/client.rbs CHANGED
@@ -54,6 +54,7 @@ module Aws
54
54
  ?sigv4a_signing_region_set: Array[String],
55
55
  ?simple_json: bool,
56
56
  ?stub_responses: untyped,
57
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
57
58
  ?token_provider: untyped,
58
59
  ?use_dualstack_endpoint: bool,
59
60
  ?use_fips_endpoint: bool,
@@ -99,6 +100,12 @@ module Aws
99
100
  def create_delivery: (
100
101
  delivery_source_name: ::String,
101
102
  delivery_destination_arn: ::String,
103
+ ?record_fields: Array[::String],
104
+ ?field_delimiter: ::String,
105
+ ?s3_delivery_configuration: {
106
+ suffix_path: ::String?,
107
+ enable_hive_compatible_path: bool?
108
+ },
102
109
  ?tags: Hash[::String, ::String]
103
110
  ) -> _CreateDeliveryResponseSuccess
104
111
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateDeliveryResponseSuccess
@@ -261,6 +268,22 @@ module Aws
261
268
  ) -> _DescribeAccountPoliciesResponseSuccess
262
269
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeAccountPoliciesResponseSuccess
263
270
 
271
+ interface _DescribeConfigurationTemplatesResponseSuccess
272
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeConfigurationTemplatesResponse]
273
+ def configuration_templates: () -> ::Array[Types::ConfigurationTemplate]
274
+ def next_token: () -> ::String
275
+ end
276
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#describe_configuration_templates-instance_method
277
+ def describe_configuration_templates: (
278
+ ?service: ::String,
279
+ ?log_types: Array[::String],
280
+ ?resource_types: Array[::String],
281
+ ?delivery_destination_types: Array[("S3" | "CWL" | "FH")],
282
+ ?next_token: ::String,
283
+ ?limit: ::Integer
284
+ ) -> _DescribeConfigurationTemplatesResponseSuccess
285
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeConfigurationTemplatesResponseSuccess
286
+
264
287
  interface _DescribeDeliveriesResponseSuccess
265
288
  include ::Seahorse::Client::_ResponseSuccess[Types::DescribeDeliveriesResponse]
266
289
  def deliveries: () -> ::Array[Types::Delivery]
@@ -892,6 +915,21 @@ module Aws
892
915
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
893
916
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
894
917
 
918
+ interface _UpdateDeliveryConfigurationResponseSuccess
919
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateDeliveryConfigurationResponse]
920
+ end
921
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#update_delivery_configuration-instance_method
922
+ def update_delivery_configuration: (
923
+ id: ::String,
924
+ ?record_fields: Array[::String],
925
+ ?field_delimiter: ::String,
926
+ ?s3_delivery_configuration: {
927
+ suffix_path: ::String?,
928
+ enable_hive_compatible_path: bool?
929
+ }
930
+ ) -> _UpdateDeliveryConfigurationResponseSuccess
931
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateDeliveryConfigurationResponseSuccess
932
+
895
933
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#update_log_anomaly_detector-instance_method
896
934
  def update_log_anomaly_detector: (
897
935
  anomaly_detector_arn: ::String,
data/sig/resource.rbs CHANGED
@@ -54,6 +54,7 @@ module Aws
54
54
  ?sigv4a_signing_region_set: Array[String],
55
55
  ?simple_json: bool,
56
56
  ?stub_responses: untyped,
57
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
57
58
  ?token_provider: untyped,
58
59
  ?use_dualstack_endpoint: bool,
59
60
  ?use_fips_endpoint: bool,
data/sig/types.rbs CHANGED
@@ -71,12 +71,36 @@ module Aws::CloudWatchLogs
71
71
  SENSITIVE: []
72
72
  end
73
73
 
74
+ class ConfigurationTemplate
75
+ attr_accessor service: ::String
76
+ attr_accessor log_type: ::String
77
+ attr_accessor resource_type: ::String
78
+ attr_accessor delivery_destination_type: ("S3" | "CWL" | "FH")
79
+ attr_accessor default_delivery_config_values: Types::ConfigurationTemplateDeliveryConfigValues
80
+ attr_accessor allowed_fields: ::Array[Types::RecordField]
81
+ attr_accessor allowed_output_formats: ::Array[("json" | "plain" | "w3c" | "raw" | "parquet")]
82
+ attr_accessor allowed_action_for_allow_vended_logs_delivery_for_resource: ::String
83
+ attr_accessor allowed_field_delimiters: ::Array[::String]
84
+ attr_accessor allowed_suffix_path_fields: ::Array[::String]
85
+ SENSITIVE: []
86
+ end
87
+
88
+ class ConfigurationTemplateDeliveryConfigValues
89
+ attr_accessor record_fields: ::Array[::String]
90
+ attr_accessor field_delimiter: ::String
91
+ attr_accessor s3_delivery_configuration: Types::S3DeliveryConfiguration
92
+ SENSITIVE: []
93
+ end
94
+
74
95
  class ConflictException < Aws::EmptyStructure
75
96
  end
76
97
 
77
98
  class CreateDeliveryRequest
78
99
  attr_accessor delivery_source_name: ::String
79
100
  attr_accessor delivery_destination_arn: ::String
101
+ attr_accessor record_fields: ::Array[::String]
102
+ attr_accessor field_delimiter: ::String
103
+ attr_accessor s3_delivery_configuration: Types::S3DeliveryConfiguration
80
104
  attr_accessor tags: ::Hash[::String, ::String]
81
105
  SENSITIVE: []
82
106
  end
@@ -227,6 +251,9 @@ module Aws::CloudWatchLogs
227
251
  attr_accessor delivery_source_name: ::String
228
252
  attr_accessor delivery_destination_arn: ::String
229
253
  attr_accessor delivery_destination_type: ("S3" | "CWL" | "FH")
254
+ attr_accessor record_fields: ::Array[::String]
255
+ attr_accessor field_delimiter: ::String
256
+ attr_accessor s3_delivery_configuration: Types::S3DeliveryConfiguration
230
257
  attr_accessor tags: ::Hash[::String, ::String]
231
258
  SENSITIVE: []
232
259
  end
@@ -268,6 +295,22 @@ module Aws::CloudWatchLogs
268
295
  SENSITIVE: []
269
296
  end
270
297
 
298
+ class DescribeConfigurationTemplatesRequest
299
+ attr_accessor service: ::String
300
+ attr_accessor log_types: ::Array[::String]
301
+ attr_accessor resource_types: ::Array[::String]
302
+ attr_accessor delivery_destination_types: ::Array[("S3" | "CWL" | "FH")]
303
+ attr_accessor next_token: ::String
304
+ attr_accessor limit: ::Integer
305
+ SENSITIVE: []
306
+ end
307
+
308
+ class DescribeConfigurationTemplatesResponse
309
+ attr_accessor configuration_templates: ::Array[Types::ConfigurationTemplate]
310
+ attr_accessor next_token: ::String
311
+ SENSITIVE: []
312
+ end
313
+
271
314
  class DescribeDeliveriesRequest
272
315
  attr_accessor next_token: ::String
273
316
  attr_accessor limit: ::Integer
@@ -1016,6 +1059,12 @@ module Aws::CloudWatchLogs
1016
1059
  SENSITIVE: []
1017
1060
  end
1018
1061
 
1062
+ class RecordField
1063
+ attr_accessor name: ::String
1064
+ attr_accessor mandatory: bool
1065
+ SENSITIVE: []
1066
+ end
1067
+
1019
1068
  class RejectedEntityInfo
1020
1069
  attr_accessor error_type: ("InvalidEntity" | "InvalidTypeValue" | "InvalidKeyAttributes" | "InvalidAttributes" | "EntitySizeTooLarge" | "UnsupportedLogGroupType" | "MissingRequiredFields")
1021
1070
  SENSITIVE: []
@@ -1047,6 +1096,12 @@ module Aws::CloudWatchLogs
1047
1096
  SENSITIVE: []
1048
1097
  end
1049
1098
 
1099
+ class S3DeliveryConfiguration
1100
+ attr_accessor suffix_path: ::String
1101
+ attr_accessor enable_hive_compatible_path: bool
1102
+ SENSITIVE: []
1103
+ end
1104
+
1050
1105
  class SearchedLogStream
1051
1106
  attr_accessor log_stream_name: ::String
1052
1107
  attr_accessor searched_completely: bool
@@ -1183,6 +1238,17 @@ module Aws::CloudWatchLogs
1183
1238
  SENSITIVE: []
1184
1239
  end
1185
1240
 
1241
+ class UpdateDeliveryConfigurationRequest
1242
+ attr_accessor id: ::String
1243
+ attr_accessor record_fields: ::Array[::String]
1244
+ attr_accessor field_delimiter: ::String
1245
+ attr_accessor s3_delivery_configuration: Types::S3DeliveryConfiguration
1246
+ SENSITIVE: []
1247
+ end
1248
+
1249
+ class UpdateDeliveryConfigurationResponse < Aws::EmptyStructure
1250
+ end
1251
+
1186
1252
  class UpdateLogAnomalyDetectorRequest
1187
1253
  attr_accessor anomaly_detector_arn: ::String
1188
1254
  attr_accessor evaluation_frequency: ("ONE_MIN" | "FIVE_MIN" | "TEN_MIN" | "FIFTEEN_MIN" | "THIRTY_MIN" | "ONE_HOUR")