aws-sdk-cloudwatchlogs 1.88.0 → 1.96.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +40 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudwatchlogs/client.rb +254 -25
- data/lib/aws-sdk-cloudwatchlogs/client_api.rb +145 -0
- data/lib/aws-sdk-cloudwatchlogs/endpoints.rb +96 -296
- data/lib/aws-sdk-cloudwatchlogs/plugins/endpoints.rb +22 -6
- data/lib/aws-sdk-cloudwatchlogs/types.rb +393 -11
- data/lib/aws-sdk-cloudwatchlogs.rb +16 -12
- data/sig/client.rbs +45 -1
- data/sig/resource.rbs +2 -0
- data/sig/types.rbs +79 -0
- metadata +4 -4
|
@@ -15,11 +15,11 @@ module Aws::CloudWatchLogs
|
|
|
15
15
|
:endpoint_provider,
|
|
16
16
|
doc_type: 'Aws::CloudWatchLogs::EndpointProvider',
|
|
17
17
|
rbs_type: 'untyped',
|
|
18
|
-
docstring:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
docstring: <<~DOCS) do |_cfg|
|
|
19
|
+
The endpoint provider used to resolve endpoints. Any object that responds to
|
|
20
|
+
`#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
|
|
21
|
+
`Aws::CloudWatchLogs::EndpointParameters`.
|
|
22
|
+
DOCS
|
|
23
23
|
Aws::CloudWatchLogs::EndpointProvider.new
|
|
24
24
|
end
|
|
25
25
|
|
|
@@ -40,11 +40,23 @@ 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
|
+
if context.config.credentials&.credentials&.account_id
|
|
55
|
+
metrics << 'RESOLVED_ACCOUNT_ID'
|
|
56
|
+
end
|
|
57
|
+
Aws::Plugins::UserAgent.metric(*metrics, &block)
|
|
58
|
+
end
|
|
59
|
+
|
|
48
60
|
def apply_endpoint_headers(context, headers)
|
|
49
61
|
headers.each do |key, values|
|
|
50
62
|
value = values
|
|
@@ -104,6 +116,8 @@ module Aws::CloudWatchLogs
|
|
|
104
116
|
Aws::CloudWatchLogs::Endpoints::DeleteSubscriptionFilter.build(context)
|
|
105
117
|
when :describe_account_policies
|
|
106
118
|
Aws::CloudWatchLogs::Endpoints::DescribeAccountPolicies.build(context)
|
|
119
|
+
when :describe_configuration_templates
|
|
120
|
+
Aws::CloudWatchLogs::Endpoints::DescribeConfigurationTemplates.build(context)
|
|
107
121
|
when :describe_deliveries
|
|
108
122
|
Aws::CloudWatchLogs::Endpoints::DescribeDeliveries.build(context)
|
|
109
123
|
when :describe_delivery_destinations
|
|
@@ -204,6 +218,8 @@ module Aws::CloudWatchLogs
|
|
|
204
218
|
Aws::CloudWatchLogs::Endpoints::UntagResource.build(context)
|
|
205
219
|
when :update_anomaly
|
|
206
220
|
Aws::CloudWatchLogs::Endpoints::UpdateAnomaly.build(context)
|
|
221
|
+
when :update_delivery_configuration
|
|
222
|
+
Aws::CloudWatchLogs::Endpoints::UpdateDeliveryConfiguration.build(context)
|
|
207
223
|
when :update_log_anomaly_detector
|
|
208
224
|
Aws::CloudWatchLogs::Endpoints::UpdateLogAnomalyDetector.build(context)
|
|
209
225
|
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,6 +2140,25 @@ module Aws::CloudWatchLogs
|
|
|
1896
2140
|
include Aws::Structure
|
|
1897
2141
|
end
|
|
1898
2142
|
|
|
2143
|
+
# Reserved for internal use.
|
|
2144
|
+
#
|
|
2145
|
+
# @!attribute [rw] key_attributes
|
|
2146
|
+
# Reserved for internal use.
|
|
2147
|
+
# @return [Hash<String,String>]
|
|
2148
|
+
#
|
|
2149
|
+
# @!attribute [rw] attributes
|
|
2150
|
+
# Reserved for internal use.
|
|
2151
|
+
# @return [Hash<String,String>]
|
|
2152
|
+
#
|
|
2153
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/Entity AWS API Documentation
|
|
2154
|
+
#
|
|
2155
|
+
class Entity < Struct.new(
|
|
2156
|
+
:key_attributes,
|
|
2157
|
+
:attributes)
|
|
2158
|
+
SENSITIVE = []
|
|
2159
|
+
include Aws::Structure
|
|
2160
|
+
end
|
|
2161
|
+
|
|
1899
2162
|
# Represents an export task.
|
|
1900
2163
|
#
|
|
1901
2164
|
# @!attribute [rw] task_id
|
|
@@ -2018,9 +2281,9 @@ module Aws::CloudWatchLogs
|
|
|
2018
2281
|
# @!attribute [rw] log_stream_names
|
|
2019
2282
|
# Filters the results to only logs from the log streams in this list.
|
|
2020
2283
|
#
|
|
2021
|
-
# If you specify a value for both `
|
|
2022
|
-
# `
|
|
2023
|
-
# error.
|
|
2284
|
+
# If you specify a value for both `logStreamNames` and
|
|
2285
|
+
# `logStreamNamePrefix`, the action returns an
|
|
2286
|
+
# `InvalidParameterException` error.
|
|
2024
2287
|
# @return [Array<String>]
|
|
2025
2288
|
#
|
|
2026
2289
|
# @!attribute [rw] log_stream_name_prefix
|
|
@@ -2028,9 +2291,8 @@ module Aws::CloudWatchLogs
|
|
|
2028
2291
|
# have names starting with this prefix.
|
|
2029
2292
|
#
|
|
2030
2293
|
# If you specify a value for both `logStreamNamePrefix` and
|
|
2031
|
-
# `logStreamNames`,
|
|
2032
|
-
#
|
|
2033
|
-
# returns an `InvalidParameterException` error.
|
|
2294
|
+
# `logStreamNames`, the action returns an `InvalidParameterException`
|
|
2295
|
+
# error.
|
|
2034
2296
|
# @return [String]
|
|
2035
2297
|
#
|
|
2036
2298
|
# @!attribute [rw] start_time
|
|
@@ -3434,7 +3696,7 @@ module Aws::CloudWatchLogs
|
|
|
3434
3696
|
include Aws::Structure
|
|
3435
3697
|
end
|
|
3436
3698
|
|
|
3437
|
-
# A
|
|
3699
|
+
# A structure that contains information about one pattern token related
|
|
3438
3700
|
# to an anomaly.
|
|
3439
3701
|
#
|
|
3440
3702
|
# For more information about patterns and tokens, see
|
|
@@ -3567,7 +3829,7 @@ module Aws::CloudWatchLogs
|
|
|
3567
3829
|
# * **FilterPattern** A filter pattern for subscribing to a filtered
|
|
3568
3830
|
# stream of log events.
|
|
3569
3831
|
#
|
|
3570
|
-
# * **Distribution**The method used to distribute log data to the
|
|
3832
|
+
# * **Distribution** The method used to distribute log data to the
|
|
3571
3833
|
# destination. By default, log data is grouped by log stream, but
|
|
3572
3834
|
# the grouping can be set to `Random` for a more even distribution.
|
|
3573
3835
|
# This property is only applicable when the destination is an
|
|
@@ -3805,9 +4067,11 @@ module Aws::CloudWatchLogs
|
|
|
3805
4067
|
# @!attribute [rw] log_type
|
|
3806
4068
|
# Defines the type of log that the source is sending.
|
|
3807
4069
|
#
|
|
4070
|
+
# * For Amazon Bedrock, the valid value is `APPLICATION_LOGS`.
|
|
4071
|
+
#
|
|
3808
4072
|
# * For Amazon CodeWhisperer, the valid value is `EVENT_LOGS`.
|
|
3809
4073
|
#
|
|
3810
|
-
# * For IAM Identity
|
|
4074
|
+
# * For IAM Identity Center, the valid value is `ERROR_LOGS`.
|
|
3811
4075
|
#
|
|
3812
4076
|
# * For Amazon WorkMail, the valid values are `ACCESS_CONTROL_LOGS`,
|
|
3813
4077
|
# `AUTHENTICATION_LOGS`, `WORKMAIL_AVAILABILITY_PROVIDER_LOGS`, and
|
|
@@ -3959,13 +4223,18 @@ module Aws::CloudWatchLogs
|
|
|
3959
4223
|
# even if the sequence token is not valid.
|
|
3960
4224
|
# @return [String]
|
|
3961
4225
|
#
|
|
4226
|
+
# @!attribute [rw] entity
|
|
4227
|
+
# Reserved for internal use.
|
|
4228
|
+
# @return [Types::Entity]
|
|
4229
|
+
#
|
|
3962
4230
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutLogEventsRequest AWS API Documentation
|
|
3963
4231
|
#
|
|
3964
4232
|
class PutLogEventsRequest < Struct.new(
|
|
3965
4233
|
:log_group_name,
|
|
3966
4234
|
:log_stream_name,
|
|
3967
4235
|
:log_events,
|
|
3968
|
-
:sequence_token
|
|
4236
|
+
:sequence_token,
|
|
4237
|
+
:entity)
|
|
3969
4238
|
SENSITIVE = []
|
|
3970
4239
|
include Aws::Structure
|
|
3971
4240
|
end
|
|
@@ -3987,11 +4256,16 @@ module Aws::CloudWatchLogs
|
|
|
3987
4256
|
# The rejected events.
|
|
3988
4257
|
# @return [Types::RejectedLogEventsInfo]
|
|
3989
4258
|
#
|
|
4259
|
+
# @!attribute [rw] rejected_entity_info
|
|
4260
|
+
# Reserved for internal use.
|
|
4261
|
+
# @return [Types::RejectedEntityInfo]
|
|
4262
|
+
#
|
|
3990
4263
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutLogEventsResponse AWS API Documentation
|
|
3991
4264
|
#
|
|
3992
4265
|
class PutLogEventsResponse < Struct.new(
|
|
3993
4266
|
:next_sequence_token,
|
|
3994
|
-
:rejected_log_events_info
|
|
4267
|
+
:rejected_log_events_info,
|
|
4268
|
+
:rejected_entity_info)
|
|
3995
4269
|
SENSITIVE = []
|
|
3996
4270
|
include Aws::Structure
|
|
3997
4271
|
end
|
|
@@ -4401,6 +4675,53 @@ module Aws::CloudWatchLogs
|
|
|
4401
4675
|
include Aws::Structure
|
|
4402
4676
|
end
|
|
4403
4677
|
|
|
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.
|
|
4712
|
+
#
|
|
4713
|
+
# @!attribute [rw] error_type
|
|
4714
|
+
# Reserved for internal use.
|
|
4715
|
+
# @return [String]
|
|
4716
|
+
#
|
|
4717
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/RejectedEntityInfo AWS API Documentation
|
|
4718
|
+
#
|
|
4719
|
+
class RejectedEntityInfo < Struct.new(
|
|
4720
|
+
:error_type)
|
|
4721
|
+
SENSITIVE = []
|
|
4722
|
+
include Aws::Structure
|
|
4723
|
+
end
|
|
4724
|
+
|
|
4404
4725
|
# Represents the rejected events.
|
|
4405
4726
|
#
|
|
4406
4727
|
# @!attribute [rw] too_new_log_event_start_index
|
|
@@ -4492,6 +4813,31 @@ module Aws::CloudWatchLogs
|
|
|
4492
4813
|
include Aws::Structure
|
|
4493
4814
|
end
|
|
4494
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
|
+
|
|
4495
4841
|
# Represents the search status of a log stream.
|
|
4496
4842
|
#
|
|
4497
4843
|
# @!attribute [rw] log_stream_name
|
|
@@ -5025,6 +5371,41 @@ module Aws::CloudWatchLogs
|
|
|
5025
5371
|
include Aws::Structure
|
|
5026
5372
|
end
|
|
5027
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
|
+
|
|
5028
5409
|
# @!attribute [rw] anomaly_detector_arn
|
|
5029
5410
|
# The ARN of the anomaly detector that you want to update.
|
|
5030
5411
|
# @return [String]
|
|
@@ -5102,3 +5483,4 @@ module Aws::CloudWatchLogs
|
|
|
5102
5483
|
|
|
5103
5484
|
end
|
|
5104
5485
|
end
|
|
5486
|
+
|
|
@@ -11,17 +11,7 @@
|
|
|
11
11
|
require 'aws-sdk-core'
|
|
12
12
|
require 'aws-sigv4'
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
require_relative 'aws-sdk-cloudwatchlogs/client_api'
|
|
16
|
-
require_relative 'aws-sdk-cloudwatchlogs/plugins/endpoints.rb'
|
|
17
|
-
require_relative 'aws-sdk-cloudwatchlogs/client'
|
|
18
|
-
require_relative 'aws-sdk-cloudwatchlogs/errors'
|
|
19
|
-
require_relative 'aws-sdk-cloudwatchlogs/resource'
|
|
20
|
-
require_relative 'aws-sdk-cloudwatchlogs/endpoint_parameters'
|
|
21
|
-
require_relative 'aws-sdk-cloudwatchlogs/endpoint_provider'
|
|
22
|
-
require_relative 'aws-sdk-cloudwatchlogs/endpoints'
|
|
23
|
-
require_relative 'aws-sdk-cloudwatchlogs/customizations'
|
|
24
|
-
require_relative 'aws-sdk-cloudwatchlogs/event_streams'
|
|
14
|
+
Aws::Plugins::GlobalConfiguration.add_identifier(:cloudwatchlogs)
|
|
25
15
|
|
|
26
16
|
# This module provides support for Amazon CloudWatch Logs. This module is available in the
|
|
27
17
|
# `aws-sdk-cloudwatchlogs` gem.
|
|
@@ -52,7 +42,21 @@ require_relative 'aws-sdk-cloudwatchlogs/event_streams'
|
|
|
52
42
|
#
|
|
53
43
|
# @!group service
|
|
54
44
|
module Aws::CloudWatchLogs
|
|
45
|
+
autoload :Types, 'aws-sdk-cloudwatchlogs/types'
|
|
46
|
+
autoload :ClientApi, 'aws-sdk-cloudwatchlogs/client_api'
|
|
47
|
+
module Plugins
|
|
48
|
+
autoload :Endpoints, 'aws-sdk-cloudwatchlogs/plugins/endpoints.rb'
|
|
49
|
+
end
|
|
50
|
+
autoload :Client, 'aws-sdk-cloudwatchlogs/client'
|
|
51
|
+
autoload :Errors, 'aws-sdk-cloudwatchlogs/errors'
|
|
52
|
+
autoload :Resource, 'aws-sdk-cloudwatchlogs/resource'
|
|
53
|
+
autoload :EndpointParameters, 'aws-sdk-cloudwatchlogs/endpoint_parameters'
|
|
54
|
+
autoload :EndpointProvider, 'aws-sdk-cloudwatchlogs/endpoint_provider'
|
|
55
|
+
autoload :Endpoints, 'aws-sdk-cloudwatchlogs/endpoints'
|
|
56
|
+
autoload :EventStreams, 'aws-sdk-cloudwatchlogs/event_streams'
|
|
55
57
|
|
|
56
|
-
GEM_VERSION = '1.
|
|
58
|
+
GEM_VERSION = '1.96.0'
|
|
57
59
|
|
|
58
60
|
end
|
|
61
|
+
|
|
62
|
+
require_relative 'aws-sdk-cloudwatchlogs/customizations'
|