aws-sdk-cloudwatchlogs 1.89.0 → 1.93.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 291d433b3c173334e692ff0b137bea60e9da6b6958a48af558789dd94378d3e0
4
- data.tar.gz: 82b110be23b1b22668038741850a17ee4b35b84edbe25159248bbb2afb032077
3
+ metadata.gz: 5c5e1c39b12f7dfe4b4a04f67e3910d7157eced180c801999c69173545cf17b9
4
+ data.tar.gz: 876a662deb30d941b85d23a603be7f1a0c974d448eca593d74b9f3eeb6f98aec
5
5
  SHA512:
6
- metadata.gz: '02688e40bb4777891f030e65b8071f8222ab425c08ff5db01e2155ec4980ff82f5c1c6c67173a8d175d7beea785d2a4c4c8f5c742c25bb27be052d19a2a6b0e2'
7
- data.tar.gz: 62e3237cb8d51b353f4dbfd35cb27370e3bfa13bc91e6294833d53cc18eae48a048b90652290a21c25fb177e4f7bc44688a2a84671a546176d48f2096001561f
6
+ metadata.gz: 9202bc364cc88a88ca2921478ad4a6ffa60bed0db6209603db141d4f35c3f63c02db14b594c21959d288f1f8eea02ae727e3af9142f77aefe0dc36df17c32fd1
7
+ data.tar.gz: 5b6227a69dc82afed60df230b3c321c573b8411826cf81696a3c6d234e52f9dfd6d0463dbc6bea4837a8038b78071493fbd54d2a28474e0c783f15886ee6aa3c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.93.0 (2024-09-11)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.92.0 (2024-09-10)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.91.0 (2024-09-04)
15
+ ------------------
16
+
17
+ * Feature - Update to support new APIs for delivery of logs from AWS services.
18
+
19
+ 1.90.0 (2024-09-03)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
4
24
  1.89.0 (2024-08-30)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.89.0
1
+ 1.93.0
@@ -32,6 +32,7 @@ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
32
32
  require 'aws-sdk-core/plugins/request_compression.rb'
33
33
  require 'aws-sdk-core/plugins/defaults_mode.rb'
34
34
  require 'aws-sdk-core/plugins/recursion_detection.rb'
35
+ require 'aws-sdk-core/plugins/telemetry.rb'
35
36
  require 'aws-sdk-core/plugins/sign.rb'
36
37
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
37
38
  require 'aws-sdk-core/plugins/event_stream_configuration.rb'
@@ -84,6 +85,7 @@ module Aws::CloudWatchLogs
84
85
  add_plugin(Aws::Plugins::RequestCompression)
85
86
  add_plugin(Aws::Plugins::DefaultsMode)
86
87
  add_plugin(Aws::Plugins::RecursionDetection)
88
+ add_plugin(Aws::Plugins::Telemetry)
87
89
  add_plugin(Aws::Plugins::Sign)
88
90
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
89
91
  add_plugin(Aws::Plugins::EventStreamConfiguration)
@@ -348,6 +350,16 @@ module Aws::CloudWatchLogs
348
350
  # ** Please note ** When response stubbing is enabled, no HTTP
349
351
  # requests are made, and retries are disabled.
350
352
  #
353
+ # @option options [Aws::Telemetry::TelemetryProviderBase] :telemetry_provider (Aws::Telemetry::NoOpTelemetryProvider)
354
+ # Allows you to provide a telemetry provider, which is used to
355
+ # emit telemetry data. By default, uses `NoOpTelemetryProvider` which
356
+ # will not record or emit any telemetry data. The SDK supports the
357
+ # following telemetry providers:
358
+ #
359
+ # * OpenTelemetry (OTel) - To use the OTel provider, install and require the
360
+ # `opentelemetry-sdk` gem and then, pass in an instance of a
361
+ # `Aws::Telemetry::OTelProvider` for telemetry provider.
362
+ #
351
363
  # @option options [Aws::TokenProvider] :token_provider
352
364
  # A Bearer Token Provider. This can be an instance of any one of the
353
365
  # following classes:
@@ -431,6 +443,12 @@ module Aws::CloudWatchLogs
431
443
  # @option options [String] :ssl_ca_store
432
444
  # Sets the X509::Store to verify peer certificate.
433
445
  #
446
+ # @option options [OpenSSL::X509::Certificate] :ssl_cert
447
+ # Sets a client certificate when creating http connections.
448
+ #
449
+ # @option options [OpenSSL::PKey] :ssl_key
450
+ # Sets a client key when creating http connections.
451
+ #
434
452
  # @option options [Float] :ssl_timeout
435
453
  # Sets the SSL timeout in seconds
436
454
  #
@@ -645,6 +663,19 @@ module Aws::CloudWatchLogs
645
663
  # @option params [required, String] :delivery_destination_arn
646
664
  # The ARN of the delivery destination to use for this delivery.
647
665
  #
666
+ # @option params [Array<String>] :record_fields
667
+ # The list of record fields to be delivered to the destination, in
668
+ # order. If the delivery’s log source has mandatory fields, they must be
669
+ # included in this list.
670
+ #
671
+ # @option params [String] :field_delimiter
672
+ # The field delimiter to use between record fields when the final output
673
+ # format of a delivery is in `Plain`, `W3C`, or `Raw` format.
674
+ #
675
+ # @option params [Types::S3DeliveryConfiguration] :s3_delivery_configuration
676
+ # This structure contains parameters that are valid only when the
677
+ # delivery’s delivery destination is an S3 bucket.
678
+ #
648
679
  # @option params [Hash<String,String>] :tags
649
680
  # An optional list of key-value pairs to associate with the resource.
650
681
  #
@@ -664,6 +695,12 @@ module Aws::CloudWatchLogs
664
695
  # resp = client.create_delivery({
665
696
  # delivery_source_name: "DeliverySourceName", # required
666
697
  # delivery_destination_arn: "Arn", # required
698
+ # record_fields: ["FieldHeader"],
699
+ # field_delimiter: "FieldDelimiter",
700
+ # s3_delivery_configuration: {
701
+ # suffix_path: "DeliverySuffixPath",
702
+ # enable_hive_compatible_path: false,
703
+ # },
667
704
  # tags: {
668
705
  # "TagKey" => "TagValue",
669
706
  # },
@@ -676,6 +713,11 @@ module Aws::CloudWatchLogs
676
713
  # resp.delivery.delivery_source_name #=> String
677
714
  # resp.delivery.delivery_destination_arn #=> String
678
715
  # resp.delivery.delivery_destination_type #=> String, one of "S3", "CWL", "FH"
716
+ # resp.delivery.record_fields #=> Array
717
+ # resp.delivery.record_fields[0] #=> String
718
+ # resp.delivery.field_delimiter #=> String
719
+ # resp.delivery.s3_delivery_configuration.suffix_path #=> String
720
+ # resp.delivery.s3_delivery_configuration.enable_hive_compatible_path #=> Boolean
679
721
  # resp.delivery.tags #=> Hash
680
722
  # resp.delivery.tags["TagKey"] #=> String
681
723
  #
@@ -1552,6 +1594,94 @@ module Aws::CloudWatchLogs
1552
1594
  req.send_request(options)
1553
1595
  end
1554
1596
 
1597
+ # Use this operation to return the valid and default values that are
1598
+ # used when creating delivery sources, delivery destinations, and
1599
+ # deliveries. For more information about deliveries, see
1600
+ # [CreateDelivery][1].
1601
+ #
1602
+ #
1603
+ #
1604
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html
1605
+ #
1606
+ # @option params [String] :service
1607
+ # Use this parameter to filter the response to include only the
1608
+ # configuration templates that apply to the Amazon Web Services service
1609
+ # that you specify here.
1610
+ #
1611
+ # @option params [Array<String>] :log_types
1612
+ # Use this parameter to filter the response to include only the
1613
+ # configuration templates that apply to the log types that you specify
1614
+ # here.
1615
+ #
1616
+ # @option params [Array<String>] :resource_types
1617
+ # Use this parameter to filter the response to include only the
1618
+ # configuration templates that apply to the resource types that you
1619
+ # specify here.
1620
+ #
1621
+ # @option params [Array<String>] :delivery_destination_types
1622
+ # Use this parameter to filter the response to include only the
1623
+ # configuration templates that apply to the delivery destination types
1624
+ # that you specify here.
1625
+ #
1626
+ # @option params [String] :next_token
1627
+ # The token for the next set of items to return. The token expires after
1628
+ # 24 hours.
1629
+ #
1630
+ # @option params [Integer] :limit
1631
+ # Use this parameter to limit the number of configuration templates that
1632
+ # are returned in the response.
1633
+ #
1634
+ # @return [Types::DescribeConfigurationTemplatesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1635
+ #
1636
+ # * {Types::DescribeConfigurationTemplatesResponse#configuration_templates #configuration_templates} => Array&lt;Types::ConfigurationTemplate&gt;
1637
+ # * {Types::DescribeConfigurationTemplatesResponse#next_token #next_token} => String
1638
+ #
1639
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1640
+ #
1641
+ # @example Request syntax with placeholder values
1642
+ #
1643
+ # resp = client.describe_configuration_templates({
1644
+ # service: "Service",
1645
+ # log_types: ["LogType"],
1646
+ # resource_types: ["ResourceType"],
1647
+ # delivery_destination_types: ["S3"], # accepts S3, CWL, FH
1648
+ # next_token: "NextToken",
1649
+ # limit: 1,
1650
+ # })
1651
+ #
1652
+ # @example Response structure
1653
+ #
1654
+ # resp.configuration_templates #=> Array
1655
+ # resp.configuration_templates[0].service #=> String
1656
+ # resp.configuration_templates[0].log_type #=> String
1657
+ # resp.configuration_templates[0].resource_type #=> String
1658
+ # resp.configuration_templates[0].delivery_destination_type #=> String, one of "S3", "CWL", "FH"
1659
+ # resp.configuration_templates[0].default_delivery_config_values.record_fields #=> Array
1660
+ # resp.configuration_templates[0].default_delivery_config_values.record_fields[0] #=> String
1661
+ # resp.configuration_templates[0].default_delivery_config_values.field_delimiter #=> String
1662
+ # resp.configuration_templates[0].default_delivery_config_values.s3_delivery_configuration.suffix_path #=> String
1663
+ # resp.configuration_templates[0].default_delivery_config_values.s3_delivery_configuration.enable_hive_compatible_path #=> Boolean
1664
+ # resp.configuration_templates[0].allowed_fields #=> Array
1665
+ # resp.configuration_templates[0].allowed_fields[0].name #=> String
1666
+ # resp.configuration_templates[0].allowed_fields[0].mandatory #=> Boolean
1667
+ # resp.configuration_templates[0].allowed_output_formats #=> Array
1668
+ # resp.configuration_templates[0].allowed_output_formats[0] #=> String, one of "json", "plain", "w3c", "raw", "parquet"
1669
+ # resp.configuration_templates[0].allowed_action_for_allow_vended_logs_delivery_for_resource #=> String
1670
+ # resp.configuration_templates[0].allowed_field_delimiters #=> Array
1671
+ # resp.configuration_templates[0].allowed_field_delimiters[0] #=> String
1672
+ # resp.configuration_templates[0].allowed_suffix_path_fields #=> Array
1673
+ # resp.configuration_templates[0].allowed_suffix_path_fields[0] #=> String
1674
+ # resp.next_token #=> String
1675
+ #
1676
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeConfigurationTemplates AWS API Documentation
1677
+ #
1678
+ # @overload describe_configuration_templates(params = {})
1679
+ # @param [Hash] params ({})
1680
+ def describe_configuration_templates(params = {}, options = {})
1681
+ req = build_request(:describe_configuration_templates, params)
1682
+ req.send_request(options)
1683
+ end
1684
+
1555
1685
  # Retrieves a list of the deliveries that have been created in the
1556
1686
  # account.
1557
1687
  #
@@ -1600,6 +1730,11 @@ module Aws::CloudWatchLogs
1600
1730
  # resp.deliveries[0].delivery_source_name #=> String
1601
1731
  # resp.deliveries[0].delivery_destination_arn #=> String
1602
1732
  # resp.deliveries[0].delivery_destination_type #=> String, one of "S3", "CWL", "FH"
1733
+ # resp.deliveries[0].record_fields #=> Array
1734
+ # resp.deliveries[0].record_fields[0] #=> String
1735
+ # resp.deliveries[0].field_delimiter #=> String
1736
+ # resp.deliveries[0].s3_delivery_configuration.suffix_path #=> String
1737
+ # resp.deliveries[0].s3_delivery_configuration.enable_hive_compatible_path #=> Boolean
1603
1738
  # resp.deliveries[0].tags #=> Hash
1604
1739
  # resp.deliveries[0].tags["TagKey"] #=> String
1605
1740
  # resp.next_token #=> String
@@ -2640,6 +2775,11 @@ module Aws::CloudWatchLogs
2640
2775
  # resp.delivery.delivery_source_name #=> String
2641
2776
  # resp.delivery.delivery_destination_arn #=> String
2642
2777
  # resp.delivery.delivery_destination_type #=> String, one of "S3", "CWL", "FH"
2778
+ # resp.delivery.record_fields #=> Array
2779
+ # resp.delivery.record_fields[0] #=> String
2780
+ # resp.delivery.field_delimiter #=> String
2781
+ # resp.delivery.s3_delivery_configuration.suffix_path #=> String
2782
+ # resp.delivery.s3_delivery_configuration.enable_hive_compatible_path #=> Boolean
2643
2783
  # resp.delivery.tags #=> Hash
2644
2784
  # resp.delivery.tags["TagKey"] #=> String
2645
2785
  #
@@ -4144,7 +4284,7 @@ module Aws::CloudWatchLogs
4144
4284
  # if the sequence token is not valid.
4145
4285
  #
4146
4286
  # @option params [Types::Entity] :entity
4147
- # Reserved for future use.
4287
+ # Reserved for internal use.
4148
4288
  #
4149
4289
  # @return [Types::PutLogEventsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4150
4290
  #
@@ -5351,6 +5491,54 @@ module Aws::CloudWatchLogs
5351
5491
  req.send_request(options)
5352
5492
  end
5353
5493
 
5494
+ # Use this operation to update the configuration of a [delivery][1] to
5495
+ # change either the S3 path pattern or the format of the delivered logs.
5496
+ # You can't use this operation to change the source or destination of
5497
+ # the delivery.
5498
+ #
5499
+ #
5500
+ #
5501
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_Delivery.html
5502
+ #
5503
+ # @option params [required, String] :id
5504
+ # The ID of the delivery to be updated by this request.
5505
+ #
5506
+ # @option params [Array<String>] :record_fields
5507
+ # The list of record fields to be delivered to the destination, in
5508
+ # order. If the delivery’s log source has mandatory fields, they must be
5509
+ # included in this list.
5510
+ #
5511
+ # @option params [String] :field_delimiter
5512
+ # The field delimiter to use between record fields when the final output
5513
+ # format of a delivery is in `Plain`, `W3C`, or `Raw` format.
5514
+ #
5515
+ # @option params [Types::S3DeliveryConfiguration] :s3_delivery_configuration
5516
+ # This structure contains parameters that are valid only when the
5517
+ # delivery’s delivery destination is an S3 bucket.
5518
+ #
5519
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
5520
+ #
5521
+ # @example Request syntax with placeholder values
5522
+ #
5523
+ # resp = client.update_delivery_configuration({
5524
+ # id: "DeliveryId", # required
5525
+ # record_fields: ["FieldHeader"],
5526
+ # field_delimiter: "FieldDelimiter",
5527
+ # s3_delivery_configuration: {
5528
+ # suffix_path: "DeliverySuffixPath",
5529
+ # enable_hive_compatible_path: false,
5530
+ # },
5531
+ # })
5532
+ #
5533
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UpdateDeliveryConfiguration AWS API Documentation
5534
+ #
5535
+ # @overload update_delivery_configuration(params = {})
5536
+ # @param [Hash] params ({})
5537
+ def update_delivery_configuration(params = {}, options = {})
5538
+ req = build_request(:update_delivery_configuration, params)
5539
+ req.send_request(options)
5540
+ end
5541
+
5354
5542
  # Updates an existing log anomaly detector.
5355
5543
  #
5356
5544
  # @option params [required, String] :anomaly_detector_arn
@@ -5407,14 +5595,19 @@ module Aws::CloudWatchLogs
5407
5595
  # @api private
5408
5596
  def build_request(operation_name, params = {})
5409
5597
  handlers = @handlers.for(operation_name)
5598
+ tracer = config.telemetry_provider.tracer_provider.tracer(
5599
+ Aws::Telemetry.module_to_tracer_name('Aws::CloudWatchLogs')
5600
+ )
5410
5601
  context = Seahorse::Client::RequestContext.new(
5411
5602
  operation_name: operation_name,
5412
5603
  operation: config.api.operation(operation_name),
5413
5604
  client: self,
5414
5605
  params: params,
5415
- config: config)
5606
+ config: config,
5607
+ tracer: tracer
5608
+ )
5416
5609
  context[:gem_name] = 'aws-sdk-cloudwatchlogs'
5417
- context[:gem_version] = '1.89.0'
5610
+ context[:gem_version] = '1.93.0'
5418
5611
  Seahorse::Client::Request.new(handlers, context)
5419
5612
  end
5420
5613
 
@@ -20,6 +20,9 @@ module Aws::CloudWatchLogs
20
20
  AccountPolicies = Shapes::ListShape.new(name: 'AccountPolicies')
21
21
  AccountPolicy = Shapes::StructureShape.new(name: 'AccountPolicy')
22
22
  AccountPolicyDocument = Shapes::StringShape.new(name: 'AccountPolicyDocument')
23
+ AllowedActionForAllowVendedLogsDeliveryForResource = Shapes::StringShape.new(name: 'AllowedActionForAllowVendedLogsDeliveryForResource')
24
+ AllowedFieldDelimiters = Shapes::ListShape.new(name: 'AllowedFieldDelimiters')
25
+ AllowedFields = Shapes::ListShape.new(name: 'AllowedFields')
23
26
  AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
24
27
  Anomalies = Shapes::ListShape.new(name: 'Anomalies')
25
28
  Anomaly = Shapes::StructureShape.new(name: 'Anomaly')
@@ -34,6 +37,9 @@ module Aws::CloudWatchLogs
34
37
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
35
38
  CancelExportTaskRequest = Shapes::StructureShape.new(name: 'CancelExportTaskRequest')
36
39
  ClientToken = Shapes::StringShape.new(name: 'ClientToken')
40
+ ConfigurationTemplate = Shapes::StructureShape.new(name: 'ConfigurationTemplate')
41
+ ConfigurationTemplateDeliveryConfigValues = Shapes::StructureShape.new(name: 'ConfigurationTemplateDeliveryConfigValues')
42
+ ConfigurationTemplates = Shapes::ListShape.new(name: 'ConfigurationTemplates')
37
43
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
38
44
  Count = Shapes::IntegerShape.new(name: 'Count')
39
45
  CreateDeliveryRequest = Shapes::StructureShape.new(name: 'CreateDeliveryRequest')
@@ -72,14 +78,18 @@ module Aws::CloudWatchLogs
72
78
  DeliveryDestinationName = Shapes::StringShape.new(name: 'DeliveryDestinationName')
73
79
  DeliveryDestinationPolicy = Shapes::StringShape.new(name: 'DeliveryDestinationPolicy')
74
80
  DeliveryDestinationType = Shapes::StringShape.new(name: 'DeliveryDestinationType')
81
+ DeliveryDestinationTypes = Shapes::ListShape.new(name: 'DeliveryDestinationTypes')
75
82
  DeliveryDestinations = Shapes::ListShape.new(name: 'DeliveryDestinations')
76
83
  DeliveryId = Shapes::StringShape.new(name: 'DeliveryId')
77
84
  DeliverySource = Shapes::StructureShape.new(name: 'DeliverySource')
78
85
  DeliverySourceName = Shapes::StringShape.new(name: 'DeliverySourceName')
79
86
  DeliverySources = Shapes::ListShape.new(name: 'DeliverySources')
87
+ DeliverySuffixPath = Shapes::StringShape.new(name: 'DeliverySuffixPath')
80
88
  Descending = Shapes::BooleanShape.new(name: 'Descending')
81
89
  DescribeAccountPoliciesRequest = Shapes::StructureShape.new(name: 'DescribeAccountPoliciesRequest')
82
90
  DescribeAccountPoliciesResponse = Shapes::StructureShape.new(name: 'DescribeAccountPoliciesResponse')
91
+ DescribeConfigurationTemplatesRequest = Shapes::StructureShape.new(name: 'DescribeConfigurationTemplatesRequest')
92
+ DescribeConfigurationTemplatesResponse = Shapes::StructureShape.new(name: 'DescribeConfigurationTemplatesResponse')
83
93
  DescribeDeliveriesRequest = Shapes::StructureShape.new(name: 'DescribeDeliveriesRequest')
84
94
  DescribeDeliveriesResponse = Shapes::StructureShape.new(name: 'DescribeDeliveriesResponse')
85
95
  DescribeDeliveryDestinationsRequest = Shapes::StructureShape.new(name: 'DescribeDeliveryDestinationsRequest')
@@ -146,6 +156,8 @@ module Aws::CloudWatchLogs
146
156
  ExportTasks = Shapes::ListShape.new(name: 'ExportTasks')
147
157
  ExtractedValues = Shapes::MapShape.new(name: 'ExtractedValues')
148
158
  Field = Shapes::StringShape.new(name: 'Field')
159
+ FieldDelimiter = Shapes::StringShape.new(name: 'FieldDelimiter')
160
+ FieldHeader = Shapes::StringShape.new(name: 'FieldHeader')
149
161
  FilterCount = Shapes::IntegerShape.new(name: 'FilterCount')
150
162
  FilterLogEventsRequest = Shapes::StructureShape.new(name: 'FilterLogEventsRequest')
151
163
  FilterLogEventsResponse = Shapes::StructureShape.new(name: 'FilterLogEventsResponse')
@@ -226,6 +238,7 @@ module Aws::CloudWatchLogs
226
238
  LogStreamSearchedCompletely = Shapes::BooleanShape.new(name: 'LogStreamSearchedCompletely')
227
239
  LogStreams = Shapes::ListShape.new(name: 'LogStreams')
228
240
  LogType = Shapes::StringShape.new(name: 'LogType')
241
+ LogTypes = Shapes::ListShape.new(name: 'LogTypes')
229
242
  MalformedQueryException = Shapes::StructureShape.new(name: 'MalformedQueryException')
230
243
  Message = Shapes::StringShape.new(name: 'Message')
231
244
  MetricFilter = Shapes::StructureShape.new(name: 'MetricFilter')
@@ -241,6 +254,7 @@ module Aws::CloudWatchLogs
241
254
  OperationAbortedException = Shapes::StructureShape.new(name: 'OperationAbortedException')
242
255
  OrderBy = Shapes::StringShape.new(name: 'OrderBy')
243
256
  OutputFormat = Shapes::StringShape.new(name: 'OutputFormat')
257
+ OutputFormats = Shapes::ListShape.new(name: 'OutputFormats')
244
258
  OutputLogEvent = Shapes::StructureShape.new(name: 'OutputLogEvent')
245
259
  OutputLogEvents = Shapes::ListShape.new(name: 'OutputLogEvents')
246
260
  PatternId = Shapes::StringShape.new(name: 'PatternId')
@@ -291,6 +305,8 @@ module Aws::CloudWatchLogs
291
305
  QueryStatistics = Shapes::StructureShape.new(name: 'QueryStatistics')
292
306
  QueryStatus = Shapes::StringShape.new(name: 'QueryStatus')
293
307
  QueryString = Shapes::StringShape.new(name: 'QueryString')
308
+ RecordField = Shapes::StructureShape.new(name: 'RecordField')
309
+ RecordFields = Shapes::ListShape.new(name: 'RecordFields')
294
310
  RejectedEntityInfo = Shapes::StructureShape.new(name: 'RejectedEntityInfo')
295
311
  RejectedLogEventsInfo = Shapes::StructureShape.new(name: 'RejectedLogEventsInfo')
296
312
  RequestId = Shapes::StringShape.new(name: 'RequestId')
@@ -300,9 +316,12 @@ module Aws::CloudWatchLogs
300
316
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
301
317
  ResourcePolicies = Shapes::ListShape.new(name: 'ResourcePolicies')
302
318
  ResourcePolicy = Shapes::StructureShape.new(name: 'ResourcePolicy')
319
+ ResourceType = Shapes::StringShape.new(name: 'ResourceType')
320
+ ResourceTypes = Shapes::ListShape.new(name: 'ResourceTypes')
303
321
  ResultField = Shapes::StructureShape.new(name: 'ResultField')
304
322
  ResultRows = Shapes::ListShape.new(name: 'ResultRows')
305
323
  RoleArn = Shapes::StringShape.new(name: 'RoleArn')
324
+ S3DeliveryConfiguration = Shapes::StructureShape.new(name: 'S3DeliveryConfiguration')
306
325
  Scope = Shapes::StringShape.new(name: 'Scope')
307
326
  SearchedLogStream = Shapes::StructureShape.new(name: 'SearchedLogStream')
308
327
  SearchedLogStreams = Shapes::ListShape.new(name: 'SearchedLogStreams')
@@ -357,6 +376,8 @@ module Aws::CloudWatchLogs
357
376
  UntagLogGroupRequest = Shapes::StructureShape.new(name: 'UntagLogGroupRequest')
358
377
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
359
378
  UpdateAnomalyRequest = Shapes::StructureShape.new(name: 'UpdateAnomalyRequest')
379
+ UpdateDeliveryConfigurationRequest = Shapes::StructureShape.new(name: 'UpdateDeliveryConfigurationRequest')
380
+ UpdateDeliveryConfigurationResponse = Shapes::StructureShape.new(name: 'UpdateDeliveryConfigurationResponse')
360
381
  UpdateLogAnomalyDetectorRequest = Shapes::StructureShape.new(name: 'UpdateLogAnomalyDetectorRequest')
361
382
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
362
383
  Value = Shapes::StringShape.new(name: 'Value')
@@ -376,6 +397,10 @@ module Aws::CloudWatchLogs
376
397
  AccountPolicy.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "accountId"))
377
398
  AccountPolicy.struct_class = Types::AccountPolicy
378
399
 
400
+ AllowedFieldDelimiters.member = Shapes::ShapeRef.new(shape: FieldDelimiter)
401
+
402
+ AllowedFields.member = Shapes::ShapeRef.new(shape: RecordField)
403
+
379
404
  Anomalies.member = Shapes::ShapeRef.new(shape: Anomaly)
380
405
 
381
406
  Anomaly.add_member(:anomaly_id, Shapes::ShapeRef.new(shape: AnomalyId, required: true, location_name: "anomalyId"))
@@ -421,10 +446,32 @@ module Aws::CloudWatchLogs
421
446
  CancelExportTaskRequest.add_member(:task_id, Shapes::ShapeRef.new(shape: ExportTaskId, required: true, location_name: "taskId"))
422
447
  CancelExportTaskRequest.struct_class = Types::CancelExportTaskRequest
423
448
 
449
+ ConfigurationTemplate.add_member(:service, Shapes::ShapeRef.new(shape: Service, location_name: "service"))
450
+ ConfigurationTemplate.add_member(:log_type, Shapes::ShapeRef.new(shape: LogType, location_name: "logType"))
451
+ ConfigurationTemplate.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "resourceType"))
452
+ ConfigurationTemplate.add_member(:delivery_destination_type, Shapes::ShapeRef.new(shape: DeliveryDestinationType, location_name: "deliveryDestinationType"))
453
+ ConfigurationTemplate.add_member(:default_delivery_config_values, Shapes::ShapeRef.new(shape: ConfigurationTemplateDeliveryConfigValues, location_name: "defaultDeliveryConfigValues"))
454
+ ConfigurationTemplate.add_member(:allowed_fields, Shapes::ShapeRef.new(shape: AllowedFields, location_name: "allowedFields"))
455
+ ConfigurationTemplate.add_member(:allowed_output_formats, Shapes::ShapeRef.new(shape: OutputFormats, location_name: "allowedOutputFormats"))
456
+ ConfigurationTemplate.add_member(:allowed_action_for_allow_vended_logs_delivery_for_resource, Shapes::ShapeRef.new(shape: AllowedActionForAllowVendedLogsDeliveryForResource, location_name: "allowedActionForAllowVendedLogsDeliveryForResource"))
457
+ ConfigurationTemplate.add_member(:allowed_field_delimiters, Shapes::ShapeRef.new(shape: AllowedFieldDelimiters, location_name: "allowedFieldDelimiters"))
458
+ ConfigurationTemplate.add_member(:allowed_suffix_path_fields, Shapes::ShapeRef.new(shape: RecordFields, location_name: "allowedSuffixPathFields"))
459
+ ConfigurationTemplate.struct_class = Types::ConfigurationTemplate
460
+
461
+ ConfigurationTemplateDeliveryConfigValues.add_member(:record_fields, Shapes::ShapeRef.new(shape: RecordFields, location_name: "recordFields"))
462
+ ConfigurationTemplateDeliveryConfigValues.add_member(:field_delimiter, Shapes::ShapeRef.new(shape: FieldDelimiter, location_name: "fieldDelimiter"))
463
+ ConfigurationTemplateDeliveryConfigValues.add_member(:s3_delivery_configuration, Shapes::ShapeRef.new(shape: S3DeliveryConfiguration, location_name: "s3DeliveryConfiguration"))
464
+ ConfigurationTemplateDeliveryConfigValues.struct_class = Types::ConfigurationTemplateDeliveryConfigValues
465
+
466
+ ConfigurationTemplates.member = Shapes::ShapeRef.new(shape: ConfigurationTemplate)
467
+
424
468
  ConflictException.struct_class = Types::ConflictException
425
469
 
426
470
  CreateDeliveryRequest.add_member(:delivery_source_name, Shapes::ShapeRef.new(shape: DeliverySourceName, required: true, location_name: "deliverySourceName"))
427
471
  CreateDeliveryRequest.add_member(:delivery_destination_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "deliveryDestinationArn"))
472
+ CreateDeliveryRequest.add_member(:record_fields, Shapes::ShapeRef.new(shape: RecordFields, location_name: "recordFields"))
473
+ CreateDeliveryRequest.add_member(:field_delimiter, Shapes::ShapeRef.new(shape: FieldDelimiter, location_name: "fieldDelimiter"))
474
+ CreateDeliveryRequest.add_member(:s3_delivery_configuration, Shapes::ShapeRef.new(shape: S3DeliveryConfiguration, location_name: "s3DeliveryConfiguration"))
428
475
  CreateDeliveryRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
429
476
  CreateDeliveryRequest.struct_class = Types::CreateDeliveryRequest
430
477
 
@@ -527,6 +574,9 @@ module Aws::CloudWatchLogs
527
574
  Delivery.add_member(:delivery_source_name, Shapes::ShapeRef.new(shape: DeliverySourceName, location_name: "deliverySourceName"))
528
575
  Delivery.add_member(:delivery_destination_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "deliveryDestinationArn"))
529
576
  Delivery.add_member(:delivery_destination_type, Shapes::ShapeRef.new(shape: DeliveryDestinationType, location_name: "deliveryDestinationType"))
577
+ Delivery.add_member(:record_fields, Shapes::ShapeRef.new(shape: RecordFields, location_name: "recordFields"))
578
+ Delivery.add_member(:field_delimiter, Shapes::ShapeRef.new(shape: FieldDelimiter, location_name: "fieldDelimiter"))
579
+ Delivery.add_member(:s3_delivery_configuration, Shapes::ShapeRef.new(shape: S3DeliveryConfiguration, location_name: "s3DeliveryConfiguration"))
530
580
  Delivery.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
531
581
  Delivery.struct_class = Types::Delivery
532
582
 
@@ -541,6 +591,8 @@ module Aws::CloudWatchLogs
541
591
  DeliveryDestinationConfiguration.add_member(:destination_resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "destinationResourceArn"))
542
592
  DeliveryDestinationConfiguration.struct_class = Types::DeliveryDestinationConfiguration
543
593
 
594
+ DeliveryDestinationTypes.member = Shapes::ShapeRef.new(shape: DeliveryDestinationType)
595
+
544
596
  DeliveryDestinations.member = Shapes::ShapeRef.new(shape: DeliveryDestination)
545
597
 
546
598
  DeliverySource.add_member(:name, Shapes::ShapeRef.new(shape: DeliverySourceName, location_name: "name"))
@@ -561,6 +613,18 @@ module Aws::CloudWatchLogs
561
613
  DescribeAccountPoliciesResponse.add_member(:account_policies, Shapes::ShapeRef.new(shape: AccountPolicies, location_name: "accountPolicies"))
562
614
  DescribeAccountPoliciesResponse.struct_class = Types::DescribeAccountPoliciesResponse
563
615
 
616
+ DescribeConfigurationTemplatesRequest.add_member(:service, Shapes::ShapeRef.new(shape: Service, location_name: "service"))
617
+ DescribeConfigurationTemplatesRequest.add_member(:log_types, Shapes::ShapeRef.new(shape: LogTypes, location_name: "logTypes"))
618
+ DescribeConfigurationTemplatesRequest.add_member(:resource_types, Shapes::ShapeRef.new(shape: ResourceTypes, location_name: "resourceTypes"))
619
+ DescribeConfigurationTemplatesRequest.add_member(:delivery_destination_types, Shapes::ShapeRef.new(shape: DeliveryDestinationTypes, location_name: "deliveryDestinationTypes"))
620
+ DescribeConfigurationTemplatesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
621
+ DescribeConfigurationTemplatesRequest.add_member(:limit, Shapes::ShapeRef.new(shape: DescribeLimit, location_name: "limit"))
622
+ DescribeConfigurationTemplatesRequest.struct_class = Types::DescribeConfigurationTemplatesRequest
623
+
624
+ DescribeConfigurationTemplatesResponse.add_member(:configuration_templates, Shapes::ShapeRef.new(shape: ConfigurationTemplates, location_name: "configurationTemplates"))
625
+ DescribeConfigurationTemplatesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
626
+ DescribeConfigurationTemplatesResponse.struct_class = Types::DescribeConfigurationTemplatesResponse
627
+
564
628
  DescribeDeliveriesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
565
629
  DescribeDeliveriesRequest.add_member(:limit, Shapes::ShapeRef.new(shape: DescribeLimit, location_name: "limit"))
566
630
  DescribeDeliveriesRequest.struct_class = Types::DescribeDeliveriesRequest
@@ -971,6 +1035,8 @@ module Aws::CloudWatchLogs
971
1035
 
972
1036
  LogStreams.member = Shapes::ShapeRef.new(shape: LogStream)
973
1037
 
1038
+ LogTypes.member = Shapes::ShapeRef.new(shape: LogType)
1039
+
974
1040
  MalformedQueryException.add_member(:query_compile_error, Shapes::ShapeRef.new(shape: QueryCompileError, location_name: "queryCompileError"))
975
1041
  MalformedQueryException.struct_class = Types::MalformedQueryException
976
1042
 
@@ -1002,6 +1068,8 @@ module Aws::CloudWatchLogs
1002
1068
 
1003
1069
  OperationAbortedException.struct_class = Types::OperationAbortedException
1004
1070
 
1071
+ OutputFormats.member = Shapes::ShapeRef.new(shape: OutputFormat)
1072
+
1005
1073
  OutputLogEvent.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "timestamp"))
1006
1074
  OutputLogEvent.add_member(:message, Shapes::ShapeRef.new(shape: EventMessage, location_name: "message"))
1007
1075
  OutputLogEvent.add_member(:ingestion_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ingestionTime"))
@@ -1158,6 +1226,12 @@ module Aws::CloudWatchLogs
1158
1226
  QueryStatistics.add_member(:bytes_scanned, Shapes::ShapeRef.new(shape: StatsValue, location_name: "bytesScanned"))
1159
1227
  QueryStatistics.struct_class = Types::QueryStatistics
1160
1228
 
1229
+ RecordField.add_member(:name, Shapes::ShapeRef.new(shape: FieldHeader, location_name: "name"))
1230
+ RecordField.add_member(:mandatory, Shapes::ShapeRef.new(shape: Boolean, location_name: "mandatory"))
1231
+ RecordField.struct_class = Types::RecordField
1232
+
1233
+ RecordFields.member = Shapes::ShapeRef.new(shape: FieldHeader)
1234
+
1161
1235
  RejectedEntityInfo.add_member(:error_type, Shapes::ShapeRef.new(shape: EntityRejectionErrorType, required: true, location_name: "errorType"))
1162
1236
  RejectedEntityInfo.struct_class = Types::RejectedEntityInfo
1163
1237
 
@@ -1179,12 +1253,18 @@ module Aws::CloudWatchLogs
1179
1253
  ResourcePolicy.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastUpdatedTime"))
1180
1254
  ResourcePolicy.struct_class = Types::ResourcePolicy
1181
1255
 
1256
+ ResourceTypes.member = Shapes::ShapeRef.new(shape: ResourceType)
1257
+
1182
1258
  ResultField.add_member(:field, Shapes::ShapeRef.new(shape: Field, location_name: "field"))
1183
1259
  ResultField.add_member(:value, Shapes::ShapeRef.new(shape: Value, location_name: "value"))
1184
1260
  ResultField.struct_class = Types::ResultField
1185
1261
 
1186
1262
  ResultRows.member = Shapes::ShapeRef.new(shape: ResultField)
1187
1263
 
1264
+ S3DeliveryConfiguration.add_member(:suffix_path, Shapes::ShapeRef.new(shape: DeliverySuffixPath, location_name: "suffixPath"))
1265
+ S3DeliveryConfiguration.add_member(:enable_hive_compatible_path, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableHiveCompatiblePath", metadata: {"box"=>true}))
1266
+ S3DeliveryConfiguration.struct_class = Types::S3DeliveryConfiguration
1267
+
1188
1268
  SearchedLogStream.add_member(:log_stream_name, Shapes::ShapeRef.new(shape: LogStreamName, location_name: "logStreamName"))
1189
1269
  SearchedLogStream.add_member(:searched_completely, Shapes::ShapeRef.new(shape: LogStreamSearchedCompletely, location_name: "searchedCompletely"))
1190
1270
  SearchedLogStream.struct_class = Types::SearchedLogStream
@@ -1298,6 +1378,14 @@ module Aws::CloudWatchLogs
1298
1378
  UpdateAnomalyRequest.add_member(:suppression_period, Shapes::ShapeRef.new(shape: SuppressionPeriod, location_name: "suppressionPeriod"))
1299
1379
  UpdateAnomalyRequest.struct_class = Types::UpdateAnomalyRequest
1300
1380
 
1381
+ UpdateDeliveryConfigurationRequest.add_member(:id, Shapes::ShapeRef.new(shape: DeliveryId, required: true, location_name: "id"))
1382
+ UpdateDeliveryConfigurationRequest.add_member(:record_fields, Shapes::ShapeRef.new(shape: RecordFields, location_name: "recordFields"))
1383
+ UpdateDeliveryConfigurationRequest.add_member(:field_delimiter, Shapes::ShapeRef.new(shape: FieldDelimiter, location_name: "fieldDelimiter"))
1384
+ UpdateDeliveryConfigurationRequest.add_member(:s3_delivery_configuration, Shapes::ShapeRef.new(shape: S3DeliveryConfiguration, location_name: "s3DeliveryConfiguration"))
1385
+ UpdateDeliveryConfigurationRequest.struct_class = Types::UpdateDeliveryConfigurationRequest
1386
+
1387
+ UpdateDeliveryConfigurationResponse.struct_class = Types::UpdateDeliveryConfigurationResponse
1388
+
1301
1389
  UpdateLogAnomalyDetectorRequest.add_member(:anomaly_detector_arn, Shapes::ShapeRef.new(shape: AnomalyDetectorArn, required: true, location_name: "anomalyDetectorArn"))
1302
1390
  UpdateLogAnomalyDetectorRequest.add_member(:evaluation_frequency, Shapes::ShapeRef.new(shape: EvaluationFrequency, location_name: "evaluationFrequency"))
1303
1391
  UpdateLogAnomalyDetectorRequest.add_member(:filter_pattern, Shapes::ShapeRef.new(shape: FilterPattern, location_name: "filterPattern"))
@@ -1614,6 +1702,24 @@ module Aws::CloudWatchLogs
1614
1702
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1615
1703
  end)
1616
1704
 
1705
+ api.add_operation(:describe_configuration_templates, Seahorse::Model::Operation.new.tap do |o|
1706
+ o.name = "DescribeConfigurationTemplates"
1707
+ o.http_method = "POST"
1708
+ o.http_request_uri = "/"
1709
+ o.input = Shapes::ShapeRef.new(shape: DescribeConfigurationTemplatesRequest)
1710
+ o.output = Shapes::ShapeRef.new(shape: DescribeConfigurationTemplatesResponse)
1711
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1712
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1713
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1714
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1715
+ o[:pager] = Aws::Pager.new(
1716
+ limit_key: "limit",
1717
+ tokens: {
1718
+ "next_token" => "next_token"
1719
+ }
1720
+ )
1721
+ end)
1722
+
1617
1723
  api.add_operation(:describe_deliveries, Seahorse::Model::Operation.new.tap do |o|
1618
1724
  o.name = "DescribeDeliveries"
1619
1725
  o.http_method = "POST"
@@ -2273,6 +2379,20 @@ module Aws::CloudWatchLogs
2273
2379
  o.errors << Shapes::ShapeRef.new(shape: OperationAbortedException)
2274
2380
  end)
2275
2381
 
2382
+ api.add_operation(:update_delivery_configuration, Seahorse::Model::Operation.new.tap do |o|
2383
+ o.name = "UpdateDeliveryConfiguration"
2384
+ o.http_method = "POST"
2385
+ o.http_request_uri = "/"
2386
+ o.input = Shapes::ShapeRef.new(shape: UpdateDeliveryConfigurationRequest)
2387
+ o.output = Shapes::ShapeRef.new(shape: UpdateDeliveryConfigurationResponse)
2388
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
2389
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2390
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2391
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2392
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2393
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2394
+ end)
2395
+
2276
2396
  api.add_operation(:update_log_anomaly_detector, Seahorse::Model::Operation.new.tap do |o|
2277
2397
  o.name = "UpdateLogAnomalyDetector"
2278
2398
  o.http_method = "POST"