aws-sdk-cloudwatchlogs 1.1.0 → 1.2.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/lib/aws-sdk-cloudwatchlogs.rb +1 -1
- data/lib/aws-sdk-cloudwatchlogs/client.rb +112 -12
- data/lib/aws-sdk-cloudwatchlogs/client_api.rb +36 -0
- data/lib/aws-sdk-cloudwatchlogs/types.rb +77 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 830933777385cd177196133ddf6ce74d47711020
|
4
|
+
data.tar.gz: 563f03002863e63a5f07fc5505125890129ef055
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67fad492e7ee8db088fa5fc0edafe10b43640aa3e72d88e8c974e001457cd65742c34e3ed8e7448d1fc2d367ad67c053227968e7d1805a42c20e95ea97471fb8
|
7
|
+
data.tar.gz: 9706b3fc983118c5a9db1c923de014be546581b2f07201e2eb366f84a9eeb9dfc964337f895ccd92e774a968d7694d280ecdf95e57cc38952f8ff24a1fbc46b8
|
@@ -155,6 +155,54 @@ module Aws::CloudWatchLogs
|
|
155
155
|
|
156
156
|
# @!group API Operations
|
157
157
|
|
158
|
+
# Associates the specified AWS Key Management Service (AWS KMS) customer
|
159
|
+
# master key (CMK) with the specified log group.
|
160
|
+
#
|
161
|
+
# Associating an AWS KMS CMK with a log group overrides any existing
|
162
|
+
# associations between the log group and a CMK. After a CMK is
|
163
|
+
# associated with a log group, all newly ingested data for the log group
|
164
|
+
# is encrypted using the CMK. This association is stored as long as the
|
165
|
+
# data encrypted with the CMK is still within Amazon CloudWatch Logs.
|
166
|
+
# This enables Amazon CloudWatch Logs to decrypt this data whenever it
|
167
|
+
# is requested.
|
168
|
+
#
|
169
|
+
# Note that it can take up to 5 minutes for this operation to take
|
170
|
+
# effect.
|
171
|
+
#
|
172
|
+
# If you attempt to associate a CMK with a log group but the CMK does
|
173
|
+
# not exist or the CMK is disabled, you will receive an
|
174
|
+
# `InvalidParameterException` error.
|
175
|
+
#
|
176
|
+
# @option params [required, String] :log_group_name
|
177
|
+
# The name of the log group.
|
178
|
+
#
|
179
|
+
# @option params [required, String] :kms_key_id
|
180
|
+
# The Amazon Resource Name (ARN) of the CMK to use when encrypting log
|
181
|
+
# data. For more information, see [Amazon Resource Names - AWS Key
|
182
|
+
# Management Service (AWS KMS)][1].
|
183
|
+
#
|
184
|
+
#
|
185
|
+
#
|
186
|
+
# [1]: http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms
|
187
|
+
#
|
188
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
189
|
+
#
|
190
|
+
# @example Request syntax with placeholder values
|
191
|
+
#
|
192
|
+
# resp = client.associate_kms_key({
|
193
|
+
# log_group_name: "LogGroupName", # required
|
194
|
+
# kms_key_id: "KmsKeyId", # required
|
195
|
+
# })
|
196
|
+
#
|
197
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/AssociateKmsKey AWS API Documentation
|
198
|
+
#
|
199
|
+
# @overload associate_kms_key(params = {})
|
200
|
+
# @param [Hash] params ({})
|
201
|
+
def associate_kms_key(params = {}, options = {})
|
202
|
+
req = build_request(:associate_kms_key, params)
|
203
|
+
req.send_request(options)
|
204
|
+
end
|
205
|
+
|
158
206
|
# Cancels the specified export task.
|
159
207
|
#
|
160
208
|
# The task must be in the `PENDING` or `RUNNING` state.
|
@@ -265,9 +313,28 @@ module Aws::CloudWatchLogs
|
|
265
313
|
# '\_' (underscore), '-' (hyphen), '/' (forward slash), and
|
266
314
|
# '.' (period).
|
267
315
|
#
|
316
|
+
# If you associate a AWS Key Management Service (AWS KMS) customer
|
317
|
+
# master key (CMK) with the log group, ingested data is encrypted using
|
318
|
+
# the CMK. This association is stored as long as the data encrypted with
|
319
|
+
# the CMK is still within Amazon CloudWatch Logs. This enables Amazon
|
320
|
+
# CloudWatch Logs to decrypt this data whenever it is requested.
|
321
|
+
#
|
322
|
+
# If you attempt to associate a CMK with the log group but the CMK does
|
323
|
+
# not exist or the CMK is disabled, you will receive an
|
324
|
+
# `InvalidParameterException` error.
|
325
|
+
#
|
268
326
|
# @option params [required, String] :log_group_name
|
269
327
|
# The name of the log group.
|
270
328
|
#
|
329
|
+
# @option params [String] :kms_key_id
|
330
|
+
# The Amazon Resource Name (ARN) of the CMK to use when encrypting log
|
331
|
+
# data. For more information, see [Amazon Resource Names - AWS Key
|
332
|
+
# Management Service (AWS KMS)][1].
|
333
|
+
#
|
334
|
+
#
|
335
|
+
#
|
336
|
+
# [1]: http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms
|
337
|
+
#
|
271
338
|
# @option params [Hash<String,String>] :tags
|
272
339
|
# The key-value pairs to use for the tags.
|
273
340
|
#
|
@@ -277,6 +344,7 @@ module Aws::CloudWatchLogs
|
|
277
344
|
#
|
278
345
|
# resp = client.create_log_group({
|
279
346
|
# log_group_name: "LogGroupName", # required
|
347
|
+
# kms_key_id: "KmsKeyId",
|
280
348
|
# tags: {
|
281
349
|
# "TagKey" => "TagValue",
|
282
350
|
# },
|
@@ -645,6 +713,7 @@ module Aws::CloudWatchLogs
|
|
645
713
|
# resp.log_groups[0].metric_filter_count #=> Integer
|
646
714
|
# resp.log_groups[0].arn #=> String
|
647
715
|
# resp.log_groups[0].stored_bytes #=> Integer
|
716
|
+
# resp.log_groups[0].kms_key_id #=> String
|
648
717
|
# resp.next_token #=> String
|
649
718
|
#
|
650
719
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogGroups AWS API Documentation
|
@@ -738,7 +807,7 @@ module Aws::CloudWatchLogs
|
|
738
807
|
end
|
739
808
|
|
740
809
|
# Lists the specified metric filters. You can list all the metric
|
741
|
-
# filters or filter the results by log name, prefix, metric name,
|
810
|
+
# filters or filter the results by log name, prefix, metric name, or
|
742
811
|
# metric namespace. The results are ASCII-sorted by filter name.
|
743
812
|
#
|
744
813
|
# @option params [String] :log_group_name
|
@@ -756,7 +825,9 @@ module Aws::CloudWatchLogs
|
|
756
825
|
# the default is up to 50 items.
|
757
826
|
#
|
758
827
|
# @option params [String] :metric_name
|
759
|
-
# The name of the CloudWatch metric
|
828
|
+
# The name of the CloudWatch metric to which the monitored log
|
829
|
+
# information should be published. For example, you may publish to a
|
830
|
+
# metric called ErrorCount.
|
760
831
|
#
|
761
832
|
# @option params [String] :metric_namespace
|
762
833
|
# The namespace of the CloudWatch metric.
|
@@ -893,6 +964,38 @@ module Aws::CloudWatchLogs
|
|
893
964
|
req.send_request(options)
|
894
965
|
end
|
895
966
|
|
967
|
+
# Disassociates the associated AWS Key Management Service (AWS KMS)
|
968
|
+
# customer master key (CMK) from the specified log group.
|
969
|
+
#
|
970
|
+
# After the AWS KMS CMK is disassociated from the log group, AWS
|
971
|
+
# CloudWatch Logs stops encrypting newly ingested data for the log
|
972
|
+
# group. All previously ingested data remains encrypted, and AWS
|
973
|
+
# CloudWatch Logs requires permissions for the CMK whenever the
|
974
|
+
# encrypted data is requested.
|
975
|
+
#
|
976
|
+
# Note that it can take up to 5 minutes for this operation to take
|
977
|
+
# effect.
|
978
|
+
#
|
979
|
+
# @option params [required, String] :log_group_name
|
980
|
+
# The name of the log group.
|
981
|
+
#
|
982
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
983
|
+
#
|
984
|
+
# @example Request syntax with placeholder values
|
985
|
+
#
|
986
|
+
# resp = client.disassociate_kms_key({
|
987
|
+
# log_group_name: "LogGroupName", # required
|
988
|
+
# })
|
989
|
+
#
|
990
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DisassociateKmsKey AWS API Documentation
|
991
|
+
#
|
992
|
+
# @overload disassociate_kms_key(params = {})
|
993
|
+
# @param [Hash] params ({})
|
994
|
+
def disassociate_kms_key(params = {}, options = {})
|
995
|
+
req = build_request(:disassociate_kms_key, params)
|
996
|
+
req.send_request(options)
|
997
|
+
end
|
998
|
+
|
896
999
|
# Lists log events from the specified log group. You can list all the
|
897
1000
|
# log events or filter the results using a filter pattern, a time range,
|
898
1001
|
# and the name of the log stream.
|
@@ -982,9 +1085,8 @@ module Aws::CloudWatchLogs
|
|
982
1085
|
# log events or filter using a time range.
|
983
1086
|
#
|
984
1087
|
# By default, this operation returns as many log events as can fit in a
|
985
|
-
# response size of
|
986
|
-
#
|
987
|
-
# call.
|
1088
|
+
# response size of 1MB (up to 10,000 log events). You can get additional
|
1089
|
+
# log events by specifying one of the tokens in a subsequent call.
|
988
1090
|
#
|
989
1091
|
# @option params [required, String] :log_group_name
|
990
1092
|
# The name of the log group.
|
@@ -1054,8 +1156,6 @@ module Aws::CloudWatchLogs
|
|
1054
1156
|
|
1055
1157
|
# Lists the tags for the specified log group.
|
1056
1158
|
#
|
1057
|
-
# To add tags, use TagLogGroup. To remove tags, use UntagLogGroup.
|
1058
|
-
#
|
1059
1159
|
# @option params [required, String] :log_group_name
|
1060
1160
|
# The name of the log group.
|
1061
1161
|
#
|
@@ -1438,10 +1538,10 @@ module Aws::CloudWatchLogs
|
|
1438
1538
|
# cross-account delivery.
|
1439
1539
|
#
|
1440
1540
|
# @option params [String] :distribution
|
1441
|
-
# The method used to distribute log data to the destination
|
1442
|
-
#
|
1443
|
-
#
|
1444
|
-
#
|
1541
|
+
# The method used to distribute log data to the destination. By default
|
1542
|
+
# log data is grouped by log stream, but the grouping can be set to
|
1543
|
+
# random for a more even distribution. This property is only applicable
|
1544
|
+
# when the destination is an Amazon Kinesis stream.
|
1445
1545
|
#
|
1446
1546
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1447
1547
|
#
|
@@ -1586,7 +1686,7 @@ module Aws::CloudWatchLogs
|
|
1586
1686
|
params: params,
|
1587
1687
|
config: config)
|
1588
1688
|
context[:gem_name] = 'aws-sdk-cloudwatchlogs'
|
1589
|
-
context[:gem_version] = '1.
|
1689
|
+
context[:gem_version] = '1.2.0'
|
1590
1690
|
Seahorse::Client::Request.new(handlers, context)
|
1591
1691
|
end
|
1592
1692
|
|
@@ -13,6 +13,7 @@ module Aws::CloudWatchLogs
|
|
13
13
|
|
14
14
|
AccessPolicy = Shapes::StringShape.new(name: 'AccessPolicy')
|
15
15
|
Arn = Shapes::StringShape.new(name: 'Arn')
|
16
|
+
AssociateKmsKeyRequest = Shapes::StructureShape.new(name: 'AssociateKmsKeyRequest')
|
16
17
|
CancelExportTaskRequest = Shapes::StructureShape.new(name: 'CancelExportTaskRequest')
|
17
18
|
CreateExportTaskRequest = Shapes::StructureShape.new(name: 'CreateExportTaskRequest')
|
18
19
|
CreateExportTaskResponse = Shapes::StructureShape.new(name: 'CreateExportTaskResponse')
|
@@ -48,6 +49,7 @@ module Aws::CloudWatchLogs
|
|
48
49
|
DestinationArn = Shapes::StringShape.new(name: 'DestinationArn')
|
49
50
|
DestinationName = Shapes::StringShape.new(name: 'DestinationName')
|
50
51
|
Destinations = Shapes::ListShape.new(name: 'Destinations')
|
52
|
+
DisassociateKmsKeyRequest = Shapes::StructureShape.new(name: 'DisassociateKmsKeyRequest')
|
51
53
|
Distribution = Shapes::StringShape.new(name: 'Distribution')
|
52
54
|
EventId = Shapes::StringShape.new(name: 'EventId')
|
53
55
|
EventMessage = Shapes::StringShape.new(name: 'EventMessage')
|
@@ -80,6 +82,7 @@ module Aws::CloudWatchLogs
|
|
80
82
|
InvalidOperationException = Shapes::StructureShape.new(name: 'InvalidOperationException')
|
81
83
|
InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
|
82
84
|
InvalidSequenceTokenException = Shapes::StructureShape.new(name: 'InvalidSequenceTokenException')
|
85
|
+
KmsKeyId = Shapes::StringShape.new(name: 'KmsKeyId')
|
83
86
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
84
87
|
ListTagsLogGroupRequest = Shapes::StructureShape.new(name: 'ListTagsLogGroupRequest')
|
85
88
|
ListTagsLogGroupResponse = Shapes::StructureShape.new(name: 'ListTagsLogGroupResponse')
|
@@ -145,6 +148,10 @@ module Aws::CloudWatchLogs
|
|
145
148
|
UntagLogGroupRequest = Shapes::StructureShape.new(name: 'UntagLogGroupRequest')
|
146
149
|
Value = Shapes::StringShape.new(name: 'Value')
|
147
150
|
|
151
|
+
AssociateKmsKeyRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, required: true, location_name: "logGroupName"))
|
152
|
+
AssociateKmsKeyRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, required: true, location_name: "kmsKeyId"))
|
153
|
+
AssociateKmsKeyRequest.struct_class = Types::AssociateKmsKeyRequest
|
154
|
+
|
148
155
|
CancelExportTaskRequest.add_member(:task_id, Shapes::ShapeRef.new(shape: ExportTaskId, required: true, location_name: "taskId"))
|
149
156
|
CancelExportTaskRequest.struct_class = Types::CancelExportTaskRequest
|
150
157
|
|
@@ -161,6 +168,7 @@ module Aws::CloudWatchLogs
|
|
161
168
|
CreateExportTaskResponse.struct_class = Types::CreateExportTaskResponse
|
162
169
|
|
163
170
|
CreateLogGroupRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, required: true, location_name: "logGroupName"))
|
171
|
+
CreateLogGroupRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "kmsKeyId"))
|
164
172
|
CreateLogGroupRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
|
165
173
|
CreateLogGroupRequest.struct_class = Types::CreateLogGroupRequest
|
166
174
|
|
@@ -272,6 +280,9 @@ module Aws::CloudWatchLogs
|
|
272
280
|
|
273
281
|
Destinations.member = Shapes::ShapeRef.new(shape: Destination)
|
274
282
|
|
283
|
+
DisassociateKmsKeyRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, required: true, location_name: "logGroupName"))
|
284
|
+
DisassociateKmsKeyRequest.struct_class = Types::DisassociateKmsKeyRequest
|
285
|
+
|
275
286
|
ExportTask.add_member(:task_id, Shapes::ShapeRef.new(shape: ExportTaskId, location_name: "taskId"))
|
276
287
|
ExportTask.add_member(:task_name, Shapes::ShapeRef.new(shape: ExportTaskName, location_name: "taskName"))
|
277
288
|
ExportTask.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, location_name: "logGroupName"))
|
@@ -354,6 +365,7 @@ module Aws::CloudWatchLogs
|
|
354
365
|
LogGroup.add_member(:metric_filter_count, Shapes::ShapeRef.new(shape: FilterCount, location_name: "metricFilterCount"))
|
355
366
|
LogGroup.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "arn"))
|
356
367
|
LogGroup.add_member(:stored_bytes, Shapes::ShapeRef.new(shape: StoredBytes, location_name: "storedBytes"))
|
368
|
+
LogGroup.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "kmsKeyId"))
|
357
369
|
LogGroup.struct_class = Types::LogGroup
|
358
370
|
|
359
371
|
LogGroups.member = Shapes::ShapeRef.new(shape: LogGroup)
|
@@ -514,6 +526,18 @@ module Aws::CloudWatchLogs
|
|
514
526
|
"targetPrefix" => "Logs_20140328",
|
515
527
|
}
|
516
528
|
|
529
|
+
api.add_operation(:associate_kms_key, Seahorse::Model::Operation.new.tap do |o|
|
530
|
+
o.name = "AssociateKmsKey"
|
531
|
+
o.http_method = "POST"
|
532
|
+
o.http_request_uri = "/"
|
533
|
+
o.input = Shapes::ShapeRef.new(shape: AssociateKmsKeyRequest)
|
534
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
535
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
536
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
537
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationAbortedException)
|
538
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
539
|
+
end)
|
540
|
+
|
517
541
|
api.add_operation(:cancel_export_task, Seahorse::Model::Operation.new.tap do |o|
|
518
542
|
o.name = "CancelExportTask"
|
519
543
|
o.http_method = "POST"
|
@@ -751,6 +775,18 @@ module Aws::CloudWatchLogs
|
|
751
775
|
)
|
752
776
|
end)
|
753
777
|
|
778
|
+
api.add_operation(:disassociate_kms_key, Seahorse::Model::Operation.new.tap do |o|
|
779
|
+
o.name = "DisassociateKmsKey"
|
780
|
+
o.http_method = "POST"
|
781
|
+
o.http_request_uri = "/"
|
782
|
+
o.input = Shapes::ShapeRef.new(shape: DisassociateKmsKeyRequest)
|
783
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
784
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
785
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
786
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationAbortedException)
|
787
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
788
|
+
end)
|
789
|
+
|
754
790
|
api.add_operation(:filter_log_events, Seahorse::Model::Operation.new.tap do |o|
|
755
791
|
o.name = "FilterLogEvents"
|
756
792
|
o.http_method = "POST"
|
@@ -8,6 +8,36 @@
|
|
8
8
|
module Aws::CloudWatchLogs
|
9
9
|
module Types
|
10
10
|
|
11
|
+
# @note When making an API call, you may pass AssociateKmsKeyRequest
|
12
|
+
# data as a hash:
|
13
|
+
#
|
14
|
+
# {
|
15
|
+
# log_group_name: "LogGroupName", # required
|
16
|
+
# kms_key_id: "KmsKeyId", # required
|
17
|
+
# }
|
18
|
+
#
|
19
|
+
# @!attribute [rw] log_group_name
|
20
|
+
# The name of the log group.
|
21
|
+
# @return [String]
|
22
|
+
#
|
23
|
+
# @!attribute [rw] kms_key_id
|
24
|
+
# The Amazon Resource Name (ARN) of the CMK to use when encrypting log
|
25
|
+
# data. For more information, see [Amazon Resource Names - AWS Key
|
26
|
+
# Management Service (AWS KMS)][1].
|
27
|
+
#
|
28
|
+
#
|
29
|
+
#
|
30
|
+
# [1]: http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/AssociateKmsKeyRequest AWS API Documentation
|
34
|
+
#
|
35
|
+
class AssociateKmsKeyRequest < Struct.new(
|
36
|
+
:log_group_name,
|
37
|
+
:kms_key_id)
|
38
|
+
include Aws::Structure
|
39
|
+
end
|
40
|
+
|
11
41
|
# @note When making an API call, you may pass CancelExportTaskRequest
|
12
42
|
# data as a hash:
|
13
43
|
#
|
@@ -103,6 +133,7 @@ module Aws::CloudWatchLogs
|
|
103
133
|
#
|
104
134
|
# {
|
105
135
|
# log_group_name: "LogGroupName", # required
|
136
|
+
# kms_key_id: "KmsKeyId",
|
106
137
|
# tags: {
|
107
138
|
# "TagKey" => "TagValue",
|
108
139
|
# },
|
@@ -112,6 +143,16 @@ module Aws::CloudWatchLogs
|
|
112
143
|
# The name of the log group.
|
113
144
|
# @return [String]
|
114
145
|
#
|
146
|
+
# @!attribute [rw] kms_key_id
|
147
|
+
# The Amazon Resource Name (ARN) of the CMK to use when encrypting log
|
148
|
+
# data. For more information, see [Amazon Resource Names - AWS Key
|
149
|
+
# Management Service (AWS KMS)][1].
|
150
|
+
#
|
151
|
+
#
|
152
|
+
#
|
153
|
+
# [1]: http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms
|
154
|
+
# @return [String]
|
155
|
+
#
|
115
156
|
# @!attribute [rw] tags
|
116
157
|
# The key-value pairs to use for the tags.
|
117
158
|
# @return [Hash<String,String>]
|
@@ -120,6 +161,7 @@ module Aws::CloudWatchLogs
|
|
120
161
|
#
|
121
162
|
class CreateLogGroupRequest < Struct.new(
|
122
163
|
:log_group_name,
|
164
|
+
:kms_key_id,
|
123
165
|
:tags)
|
124
166
|
include Aws::Structure
|
125
167
|
end
|
@@ -562,7 +604,9 @@ module Aws::CloudWatchLogs
|
|
562
604
|
# @return [Integer]
|
563
605
|
#
|
564
606
|
# @!attribute [rw] metric_name
|
565
|
-
# The name of the CloudWatch metric
|
607
|
+
# The name of the CloudWatch metric to which the monitored log
|
608
|
+
# information should be published. For example, you may publish to a
|
609
|
+
# metric called ErrorCount.
|
566
610
|
# @return [String]
|
567
611
|
#
|
568
612
|
# @!attribute [rw] metric_namespace
|
@@ -740,6 +784,24 @@ module Aws::CloudWatchLogs
|
|
740
784
|
include Aws::Structure
|
741
785
|
end
|
742
786
|
|
787
|
+
# @note When making an API call, you may pass DisassociateKmsKeyRequest
|
788
|
+
# data as a hash:
|
789
|
+
#
|
790
|
+
# {
|
791
|
+
# log_group_name: "LogGroupName", # required
|
792
|
+
# }
|
793
|
+
#
|
794
|
+
# @!attribute [rw] log_group_name
|
795
|
+
# The name of the log group.
|
796
|
+
# @return [String]
|
797
|
+
#
|
798
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DisassociateKmsKeyRequest AWS API Documentation
|
799
|
+
#
|
800
|
+
class DisassociateKmsKeyRequest < Struct.new(
|
801
|
+
:log_group_name)
|
802
|
+
include Aws::Structure
|
803
|
+
end
|
804
|
+
|
743
805
|
# Represents an export task.
|
744
806
|
#
|
745
807
|
# @!attribute [rw] task_id
|
@@ -1099,7 +1161,7 @@ module Aws::CloudWatchLogs
|
|
1099
1161
|
end
|
1100
1162
|
|
1101
1163
|
# @!attribute [rw] tags
|
1102
|
-
# The tags.
|
1164
|
+
# The tags for the log group.
|
1103
1165
|
# @return [Hash<String,String>]
|
1104
1166
|
#
|
1105
1167
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListTagsLogGroupResponse AWS API Documentation
|
@@ -1138,6 +1200,11 @@ module Aws::CloudWatchLogs
|
|
1138
1200
|
# The number of bytes stored.
|
1139
1201
|
# @return [Integer]
|
1140
1202
|
#
|
1203
|
+
# @!attribute [rw] kms_key_id
|
1204
|
+
# The Amazon Resource Name (ARN) of the CMK to use when encrypting log
|
1205
|
+
# data.
|
1206
|
+
# @return [String]
|
1207
|
+
#
|
1141
1208
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/LogGroup AWS API Documentation
|
1142
1209
|
#
|
1143
1210
|
class LogGroup < Struct.new(
|
@@ -1146,7 +1213,8 @@ module Aws::CloudWatchLogs
|
|
1146
1213
|
:retention_in_days,
|
1147
1214
|
:metric_filter_count,
|
1148
1215
|
:arn,
|
1149
|
-
:stored_bytes
|
1216
|
+
:stored_bytes,
|
1217
|
+
:kms_key_id)
|
1150
1218
|
include Aws::Structure
|
1151
1219
|
end
|
1152
1220
|
|
@@ -1637,10 +1705,10 @@ module Aws::CloudWatchLogs
|
|
1637
1705
|
# @return [String]
|
1638
1706
|
#
|
1639
1707
|
# @!attribute [rw] distribution
|
1640
|
-
# The method used to distribute log data to the destination
|
1641
|
-
#
|
1642
|
-
#
|
1643
|
-
#
|
1708
|
+
# The method used to distribute log data to the destination. By
|
1709
|
+
# default log data is grouped by log stream, but the grouping can be
|
1710
|
+
# set to random for a more even distribution. This property is only
|
1711
|
+
# applicable when the destination is an Amazon Kinesis stream.
|
1644
1712
|
# @return [String]
|
1645
1713
|
#
|
1646
1714
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutSubscriptionFilterRequest AWS API Documentation
|
@@ -1746,8 +1814,8 @@ module Aws::CloudWatchLogs
|
|
1746
1814
|
# @return [String]
|
1747
1815
|
#
|
1748
1816
|
# @!attribute [rw] distribution
|
1749
|
-
# The method used to distribute log data to the destination,
|
1750
|
-
#
|
1817
|
+
# The method used to distribute log data to the destination, which can
|
1818
|
+
# be either random or grouped by log stream.
|
1751
1819
|
# @return [String]
|
1752
1820
|
#
|
1753
1821
|
# @!attribute [rw] creation_time
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-cloudwatchlogs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|