aws-sdk-cloudwatchlogs 1.0.0.rc1 → 1.0.0.rc2

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.
@@ -1,23 +1,14 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
- module Aws
9
- module CloudWatchLogs
10
- module Errors
8
+ module Aws::CloudWatchLogs
9
+ module Errors
11
10
 
12
- extend Aws::Errors::DynamicErrors
11
+ extend Aws::Errors::DynamicErrors
13
12
 
14
- # Raised when calling #load or #data on a resource class that can not be
15
- # loaded. This can happen when:
16
- #
17
- # * A resource class has identifiers, but no data attributes.
18
- # * Resource data is only available when making an API call that
19
- # enumerates all resources of that type.
20
- class ResourceNotLoadable < RuntimeError; end
21
- end
22
13
  end
23
14
  end
@@ -1,25 +1,23 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
- module Aws
9
- module CloudWatchLogs
10
- class Resource
8
+ module Aws::CloudWatchLogs
9
+ class Resource
11
10
 
12
- # @param options ({})
13
- # @option options [Client] :client
14
- def initialize(options = {})
15
- @client = options[:client] || Client.new(options)
16
- end
17
-
18
- # @return [Client]
19
- def client
20
- @client
21
- end
11
+ # @param options ({})
12
+ # @option options [Client] :client
13
+ def initialize(options = {})
14
+ @client = options[:client] || Client.new(options)
15
+ end
22
16
 
17
+ # @return [Client]
18
+ def client
19
+ @client
23
20
  end
21
+
24
22
  end
25
23
  end
@@ -1,1387 +1,1584 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
- module Aws
9
- module CloudWatchLogs
10
- module Types
8
+ module Aws::CloudWatchLogs
9
+ module Types
11
10
 
12
- # @note When making an API call, pass CancelExportTaskRequest
13
- # data as a hash:
14
- #
15
- # {
16
- # task_id: "ExportTaskId", # required
17
- # }
18
- # @!attribute [rw] task_id
19
- # The ID of the export task.
20
- # @return [String]
21
- class CancelExportTaskRequest < Struct.new(
22
- :task_id)
23
- include Aws::Structure
24
- end
11
+ # @note When making an API call, you may pass CancelExportTaskRequest
12
+ # data as a hash:
13
+ #
14
+ # {
15
+ # task_id: "ExportTaskId", # required
16
+ # }
17
+ #
18
+ # @!attribute [rw] task_id
19
+ # The ID of the export task.
20
+ # @return [String]
21
+ #
22
+ class CancelExportTaskRequest < Struct.new(
23
+ :task_id)
24
+ include Aws::Structure
25
+ end
25
26
 
26
- # @note When making an API call, pass CreateExportTaskRequest
27
- # data as a hash:
28
- #
29
- # {
30
- # task_name: "ExportTaskName",
31
- # log_group_name: "LogGroupName", # required
32
- # log_stream_name_prefix: "LogStreamName",
33
- # from: 1, # required
34
- # to: 1, # required
35
- # destination: "ExportDestinationBucket", # required
36
- # destination_prefix: "ExportDestinationPrefix",
37
- # }
38
- # @!attribute [rw] task_name
39
- # The name of the export task.
40
- # @return [String]
41
- #
42
- # @!attribute [rw] log_group_name
43
- # The name of the log group.
44
- # @return [String]
45
- #
46
- # @!attribute [rw] log_stream_name_prefix
47
- # Export only log streams that match the provided prefix. If you
48
- # don't specify a value, no prefix filter is applied.
49
- # @return [String]
50
- #
51
- # @!attribute [rw] from
52
- # The start time of the range for the request, expressed as the number
53
- # of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a
54
- # timestamp earlier than this time are not exported.
55
- # @return [Integer]
56
- #
57
- # @!attribute [rw] to
58
- # The end time of the range for the request, expressed as the number
59
- # of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a
60
- # timestamp later than this time are not exported.
61
- # @return [Integer]
62
- #
63
- # @!attribute [rw] destination
64
- # The name of S3 bucket for the exported log data. The bucket must be
65
- # in the same AWS region.
66
- # @return [String]
67
- #
68
- # @!attribute [rw] destination_prefix
69
- # The prefix used as the start of the key for every object exported.
70
- # If you don't specify a value, the default is `exportedlogs`.
71
- # @return [String]
72
- class CreateExportTaskRequest < Struct.new(
73
- :task_name,
74
- :log_group_name,
75
- :log_stream_name_prefix,
76
- :from,
77
- :to,
78
- :destination,
79
- :destination_prefix)
80
- include Aws::Structure
81
- end
27
+ # @note When making an API call, you may pass CreateExportTaskRequest
28
+ # data as a hash:
29
+ #
30
+ # {
31
+ # task_name: "ExportTaskName",
32
+ # log_group_name: "LogGroupName", # required
33
+ # log_stream_name_prefix: "LogStreamName",
34
+ # from: 1, # required
35
+ # to: 1, # required
36
+ # destination: "ExportDestinationBucket", # required
37
+ # destination_prefix: "ExportDestinationPrefix",
38
+ # }
39
+ #
40
+ # @!attribute [rw] task_name
41
+ # The name of the export task.
42
+ # @return [String]
43
+ #
44
+ # @!attribute [rw] log_group_name
45
+ # The name of the log group.
46
+ # @return [String]
47
+ #
48
+ # @!attribute [rw] log_stream_name_prefix
49
+ # Export only log streams that match the provided prefix. If you
50
+ # don't specify a value, no prefix filter is applied.
51
+ # @return [String]
52
+ #
53
+ # @!attribute [rw] from
54
+ # The start time of the range for the request, expressed as the number
55
+ # of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a
56
+ # timestamp earlier than this time are not exported.
57
+ # @return [Integer]
58
+ #
59
+ # @!attribute [rw] to
60
+ # The end time of the range for the request, expressed as the number
61
+ # of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a
62
+ # timestamp later than this time are not exported.
63
+ # @return [Integer]
64
+ #
65
+ # @!attribute [rw] destination
66
+ # The name of S3 bucket for the exported log data. The bucket must be
67
+ # in the same AWS region.
68
+ # @return [String]
69
+ #
70
+ # @!attribute [rw] destination_prefix
71
+ # The prefix used as the start of the key for every object exported.
72
+ # If you don't specify a value, the default is `exportedlogs`.
73
+ # @return [String]
74
+ #
75
+ class CreateExportTaskRequest < Struct.new(
76
+ :task_name,
77
+ :log_group_name,
78
+ :log_stream_name_prefix,
79
+ :from,
80
+ :to,
81
+ :destination,
82
+ :destination_prefix)
83
+ include Aws::Structure
84
+ end
82
85
 
83
- # @!attribute [rw] task_id
84
- # The ID of the export task.
85
- # @return [String]
86
- class CreateExportTaskResponse < Struct.new(
87
- :task_id)
88
- include Aws::Structure
89
- end
86
+ # @!attribute [rw] task_id
87
+ # The ID of the export task.
88
+ # @return [String]
89
+ #
90
+ class CreateExportTaskResponse < Struct.new(
91
+ :task_id)
92
+ include Aws::Structure
93
+ end
90
94
 
91
- # @note When making an API call, pass CreateLogGroupRequest
92
- # data as a hash:
93
- #
94
- # {
95
- # log_group_name: "LogGroupName", # required
96
- # }
97
- # @!attribute [rw] log_group_name
98
- # The name of the log group.
99
- # @return [String]
100
- class CreateLogGroupRequest < Struct.new(
101
- :log_group_name)
102
- include Aws::Structure
103
- end
95
+ # @note When making an API call, you may pass CreateLogGroupRequest
96
+ # data as a hash:
97
+ #
98
+ # {
99
+ # log_group_name: "LogGroupName", # required
100
+ # tags: {
101
+ # "TagKey" => "TagValue",
102
+ # },
103
+ # }
104
+ #
105
+ # @!attribute [rw] log_group_name
106
+ # The name of the log group.
107
+ # @return [String]
108
+ #
109
+ # @!attribute [rw] tags
110
+ # The key-value pairs to use for the tags.
111
+ # @return [Hash<String,String>]
112
+ #
113
+ class CreateLogGroupRequest < Struct.new(
114
+ :log_group_name,
115
+ :tags)
116
+ include Aws::Structure
117
+ end
104
118
 
105
- # @note When making an API call, pass CreateLogStreamRequest
106
- # data as a hash:
107
- #
108
- # {
109
- # log_group_name: "LogGroupName", # required
110
- # log_stream_name: "LogStreamName", # required
111
- # }
112
- # @!attribute [rw] log_group_name
113
- # The name of the log group.
114
- # @return [String]
115
- #
116
- # @!attribute [rw] log_stream_name
117
- # The name of the log stream.
118
- # @return [String]
119
- class CreateLogStreamRequest < Struct.new(
120
- :log_group_name,
121
- :log_stream_name)
122
- include Aws::Structure
123
- end
119
+ # @note When making an API call, you may pass CreateLogStreamRequest
120
+ # data as a hash:
121
+ #
122
+ # {
123
+ # log_group_name: "LogGroupName", # required
124
+ # log_stream_name: "LogStreamName", # required
125
+ # }
126
+ #
127
+ # @!attribute [rw] log_group_name
128
+ # The name of the log group.
129
+ # @return [String]
130
+ #
131
+ # @!attribute [rw] log_stream_name
132
+ # The name of the log stream.
133
+ # @return [String]
134
+ #
135
+ class CreateLogStreamRequest < Struct.new(
136
+ :log_group_name,
137
+ :log_stream_name)
138
+ include Aws::Structure
139
+ end
124
140
 
125
- # @note When making an API call, pass DeleteDestinationRequest
126
- # data as a hash:
127
- #
128
- # {
129
- # destination_name: "DestinationName", # required
130
- # }
131
- # @!attribute [rw] destination_name
132
- # The name of the destination.
133
- # @return [String]
134
- class DeleteDestinationRequest < Struct.new(
135
- :destination_name)
136
- include Aws::Structure
137
- end
141
+ # @note When making an API call, you may pass DeleteDestinationRequest
142
+ # data as a hash:
143
+ #
144
+ # {
145
+ # destination_name: "DestinationName", # required
146
+ # }
147
+ #
148
+ # @!attribute [rw] destination_name
149
+ # The name of the destination.
150
+ # @return [String]
151
+ #
152
+ class DeleteDestinationRequest < Struct.new(
153
+ :destination_name)
154
+ include Aws::Structure
155
+ end
138
156
 
139
- # @note When making an API call, pass DeleteLogGroupRequest
140
- # data as a hash:
141
- #
142
- # {
143
- # log_group_name: "LogGroupName", # required
144
- # }
145
- # @!attribute [rw] log_group_name
146
- # The name of the log group.
147
- # @return [String]
148
- class DeleteLogGroupRequest < Struct.new(
149
- :log_group_name)
150
- include Aws::Structure
151
- end
157
+ # @note When making an API call, you may pass DeleteLogGroupRequest
158
+ # data as a hash:
159
+ #
160
+ # {
161
+ # log_group_name: "LogGroupName", # required
162
+ # }
163
+ #
164
+ # @!attribute [rw] log_group_name
165
+ # The name of the log group.
166
+ # @return [String]
167
+ #
168
+ class DeleteLogGroupRequest < Struct.new(
169
+ :log_group_name)
170
+ include Aws::Structure
171
+ end
152
172
 
153
- # @note When making an API call, pass DeleteLogStreamRequest
154
- # data as a hash:
155
- #
156
- # {
157
- # log_group_name: "LogGroupName", # required
158
- # log_stream_name: "LogStreamName", # required
159
- # }
160
- # @!attribute [rw] log_group_name
161
- # The name of the log group.
162
- # @return [String]
163
- #
164
- # @!attribute [rw] log_stream_name
165
- # The name of the log stream.
166
- # @return [String]
167
- class DeleteLogStreamRequest < Struct.new(
168
- :log_group_name,
169
- :log_stream_name)
170
- include Aws::Structure
171
- end
173
+ # @note When making an API call, you may pass DeleteLogStreamRequest
174
+ # data as a hash:
175
+ #
176
+ # {
177
+ # log_group_name: "LogGroupName", # required
178
+ # log_stream_name: "LogStreamName", # required
179
+ # }
180
+ #
181
+ # @!attribute [rw] log_group_name
182
+ # The name of the log group.
183
+ # @return [String]
184
+ #
185
+ # @!attribute [rw] log_stream_name
186
+ # The name of the log stream.
187
+ # @return [String]
188
+ #
189
+ class DeleteLogStreamRequest < Struct.new(
190
+ :log_group_name,
191
+ :log_stream_name)
192
+ include Aws::Structure
193
+ end
172
194
 
173
- # @note When making an API call, pass DeleteMetricFilterRequest
174
- # data as a hash:
175
- #
176
- # {
177
- # log_group_name: "LogGroupName", # required
178
- # filter_name: "FilterName", # required
179
- # }
180
- # @!attribute [rw] log_group_name
181
- # The name of the log group.
182
- # @return [String]
183
- #
184
- # @!attribute [rw] filter_name
185
- # The name of the metric filter.
186
- # @return [String]
187
- class DeleteMetricFilterRequest < Struct.new(
188
- :log_group_name,
189
- :filter_name)
190
- include Aws::Structure
191
- end
195
+ # @note When making an API call, you may pass DeleteMetricFilterRequest
196
+ # data as a hash:
197
+ #
198
+ # {
199
+ # log_group_name: "LogGroupName", # required
200
+ # filter_name: "FilterName", # required
201
+ # }
202
+ #
203
+ # @!attribute [rw] log_group_name
204
+ # The name of the log group.
205
+ # @return [String]
206
+ #
207
+ # @!attribute [rw] filter_name
208
+ # The name of the metric filter.
209
+ # @return [String]
210
+ #
211
+ class DeleteMetricFilterRequest < Struct.new(
212
+ :log_group_name,
213
+ :filter_name)
214
+ include Aws::Structure
215
+ end
192
216
 
193
- # @note When making an API call, pass DeleteRetentionPolicyRequest
194
- # data as a hash:
195
- #
196
- # {
197
- # log_group_name: "LogGroupName", # required
198
- # }
199
- # @!attribute [rw] log_group_name
200
- # The name of the log group.
201
- # @return [String]
202
- class DeleteRetentionPolicyRequest < Struct.new(
203
- :log_group_name)
204
- include Aws::Structure
205
- end
217
+ # @note When making an API call, you may pass DeleteRetentionPolicyRequest
218
+ # data as a hash:
219
+ #
220
+ # {
221
+ # log_group_name: "LogGroupName", # required
222
+ # }
223
+ #
224
+ # @!attribute [rw] log_group_name
225
+ # The name of the log group.
226
+ # @return [String]
227
+ #
228
+ class DeleteRetentionPolicyRequest < Struct.new(
229
+ :log_group_name)
230
+ include Aws::Structure
231
+ end
206
232
 
207
- # @note When making an API call, pass DeleteSubscriptionFilterRequest
208
- # data as a hash:
209
- #
210
- # {
211
- # log_group_name: "LogGroupName", # required
212
- # filter_name: "FilterName", # required
213
- # }
214
- # @!attribute [rw] log_group_name
215
- # The name of the log group.
216
- # @return [String]
217
- #
218
- # @!attribute [rw] filter_name
219
- # The name of the subscription filter.
220
- # @return [String]
221
- class DeleteSubscriptionFilterRequest < Struct.new(
222
- :log_group_name,
223
- :filter_name)
224
- include Aws::Structure
225
- end
233
+ # @note When making an API call, you may pass DeleteSubscriptionFilterRequest
234
+ # data as a hash:
235
+ #
236
+ # {
237
+ # log_group_name: "LogGroupName", # required
238
+ # filter_name: "FilterName", # required
239
+ # }
240
+ #
241
+ # @!attribute [rw] log_group_name
242
+ # The name of the log group.
243
+ # @return [String]
244
+ #
245
+ # @!attribute [rw] filter_name
246
+ # The name of the subscription filter.
247
+ # @return [String]
248
+ #
249
+ class DeleteSubscriptionFilterRequest < Struct.new(
250
+ :log_group_name,
251
+ :filter_name)
252
+ include Aws::Structure
253
+ end
226
254
 
227
- # @note When making an API call, pass DescribeDestinationsRequest
228
- # data as a hash:
229
- #
230
- # {
231
- # destination_name_prefix: "DestinationName",
232
- # next_token: "NextToken",
233
- # limit: 1,
234
- # }
235
- # @!attribute [rw] destination_name_prefix
236
- # The prefix to match. If you don't specify a value, no prefix filter
237
- # is applied.
238
- # @return [String]
239
- #
240
- # @!attribute [rw] next_token
241
- # The token for the next set of items to return. (You received this
242
- # token from a previous call.)
243
- # @return [String]
244
- #
245
- # @!attribute [rw] limit
246
- # The maximum number of items returned. If you don't specify a value,
247
- # the default is up to 50 items.
248
- # @return [Integer]
249
- class DescribeDestinationsRequest < Struct.new(
250
- :destination_name_prefix,
251
- :next_token,
252
- :limit)
253
- include Aws::Structure
254
- end
255
+ # @note When making an API call, you may pass DescribeDestinationsRequest
256
+ # data as a hash:
257
+ #
258
+ # {
259
+ # destination_name_prefix: "DestinationName",
260
+ # next_token: "NextToken",
261
+ # limit: 1,
262
+ # }
263
+ #
264
+ # @!attribute [rw] destination_name_prefix
265
+ # The prefix to match. If you don't specify a value, no prefix filter
266
+ # is applied.
267
+ # @return [String]
268
+ #
269
+ # @!attribute [rw] next_token
270
+ # The token for the next set of items to return. (You received this
271
+ # token from a previous call.)
272
+ # @return [String]
273
+ #
274
+ # @!attribute [rw] limit
275
+ # The maximum number of items returned. If you don't specify a value,
276
+ # the default is up to 50 items.
277
+ # @return [Integer]
278
+ #
279
+ class DescribeDestinationsRequest < Struct.new(
280
+ :destination_name_prefix,
281
+ :next_token,
282
+ :limit)
283
+ include Aws::Structure
284
+ end
255
285
 
256
- # @!attribute [rw] destinations
257
- # The destinations.
258
- # @return [Array<Types::Destination>]
259
- #
260
- # @!attribute [rw] next_token
261
- # The token for the next set of items to return. The token expires
262
- # after 24 hours.
263
- # @return [String]
264
- class DescribeDestinationsResponse < Struct.new(
265
- :destinations,
266
- :next_token)
267
- include Aws::Structure
268
- end
286
+ # @!attribute [rw] destinations
287
+ # The destinations.
288
+ # @return [Array<Types::Destination>]
289
+ #
290
+ # @!attribute [rw] next_token
291
+ # The token for the next set of items to return. The token expires
292
+ # after 24 hours.
293
+ # @return [String]
294
+ #
295
+ class DescribeDestinationsResponse < Struct.new(
296
+ :destinations,
297
+ :next_token)
298
+ include Aws::Structure
299
+ end
269
300
 
270
- # @note When making an API call, pass DescribeExportTasksRequest
271
- # data as a hash:
272
- #
273
- # {
274
- # task_id: "ExportTaskId",
275
- # status_code: "CANCELLED", # accepts CANCELLED, COMPLETED, FAILED, PENDING, PENDING_CANCEL, RUNNING
276
- # next_token: "NextToken",
277
- # limit: 1,
278
- # }
279
- # @!attribute [rw] task_id
280
- # The ID of the export task. Specifying a task ID filters the results
281
- # to zero or one export tasks.
282
- # @return [String]
283
- #
284
- # @!attribute [rw] status_code
285
- # The status code of the export task. Specifying a status code filters
286
- # the results to zero or more export tasks.
287
- # @return [String]
288
- #
289
- # @!attribute [rw] next_token
290
- # The token for the next set of items to return. (You received this
291
- # token from a previous call.)
292
- # @return [String]
293
- #
294
- # @!attribute [rw] limit
295
- # The maximum number of items returned. If you don't specify a value,
296
- # the default is up to 50 items.
297
- # @return [Integer]
298
- class DescribeExportTasksRequest < Struct.new(
299
- :task_id,
300
- :status_code,
301
- :next_token,
302
- :limit)
303
- include Aws::Structure
304
- end
301
+ # @note When making an API call, you may pass DescribeExportTasksRequest
302
+ # data as a hash:
303
+ #
304
+ # {
305
+ # task_id: "ExportTaskId",
306
+ # status_code: "CANCELLED", # accepts CANCELLED, COMPLETED, FAILED, PENDING, PENDING_CANCEL, RUNNING
307
+ # next_token: "NextToken",
308
+ # limit: 1,
309
+ # }
310
+ #
311
+ # @!attribute [rw] task_id
312
+ # The ID of the export task. Specifying a task ID filters the results
313
+ # to zero or one export tasks.
314
+ # @return [String]
315
+ #
316
+ # @!attribute [rw] status_code
317
+ # The status code of the export task. Specifying a status code filters
318
+ # the results to zero or more export tasks.
319
+ # @return [String]
320
+ #
321
+ # @!attribute [rw] next_token
322
+ # The token for the next set of items to return. (You received this
323
+ # token from a previous call.)
324
+ # @return [String]
325
+ #
326
+ # @!attribute [rw] limit
327
+ # The maximum number of items returned. If you don't specify a value,
328
+ # the default is up to 50 items.
329
+ # @return [Integer]
330
+ #
331
+ class DescribeExportTasksRequest < Struct.new(
332
+ :task_id,
333
+ :status_code,
334
+ :next_token,
335
+ :limit)
336
+ include Aws::Structure
337
+ end
305
338
 
306
- # @!attribute [rw] export_tasks
307
- # The export tasks.
308
- # @return [Array<Types::ExportTask>]
309
- #
310
- # @!attribute [rw] next_token
311
- # The token for the next set of items to return. The token expires
312
- # after 24 hours.
313
- # @return [String]
314
- class DescribeExportTasksResponse < Struct.new(
315
- :export_tasks,
316
- :next_token)
317
- include Aws::Structure
318
- end
339
+ # @!attribute [rw] export_tasks
340
+ # The export tasks.
341
+ # @return [Array<Types::ExportTask>]
342
+ #
343
+ # @!attribute [rw] next_token
344
+ # The token for the next set of items to return. The token expires
345
+ # after 24 hours.
346
+ # @return [String]
347
+ #
348
+ class DescribeExportTasksResponse < Struct.new(
349
+ :export_tasks,
350
+ :next_token)
351
+ include Aws::Structure
352
+ end
319
353
 
320
- # @note When making an API call, pass DescribeLogGroupsRequest
321
- # data as a hash:
322
- #
323
- # {
324
- # log_group_name_prefix: "LogGroupName",
325
- # next_token: "NextToken",
326
- # limit: 1,
327
- # }
328
- # @!attribute [rw] log_group_name_prefix
329
- # The prefix to match.
330
- # @return [String]
331
- #
332
- # @!attribute [rw] next_token
333
- # The token for the next set of items to return. (You received this
334
- # token from a previous call.)
335
- # @return [String]
336
- #
337
- # @!attribute [rw] limit
338
- # The maximum number of items returned. If you don't specify a value,
339
- # the default is up to 50 items.
340
- # @return [Integer]
341
- class DescribeLogGroupsRequest < Struct.new(
342
- :log_group_name_prefix,
343
- :next_token,
344
- :limit)
345
- include Aws::Structure
346
- end
354
+ # @note When making an API call, you may pass DescribeLogGroupsRequest
355
+ # data as a hash:
356
+ #
357
+ # {
358
+ # log_group_name_prefix: "LogGroupName",
359
+ # next_token: "NextToken",
360
+ # limit: 1,
361
+ # }
362
+ #
363
+ # @!attribute [rw] log_group_name_prefix
364
+ # The prefix to match.
365
+ # @return [String]
366
+ #
367
+ # @!attribute [rw] next_token
368
+ # The token for the next set of items to return. (You received this
369
+ # token from a previous call.)
370
+ # @return [String]
371
+ #
372
+ # @!attribute [rw] limit
373
+ # The maximum number of items returned. If you don't specify a value,
374
+ # the default is up to 50 items.
375
+ # @return [Integer]
376
+ #
377
+ class DescribeLogGroupsRequest < Struct.new(
378
+ :log_group_name_prefix,
379
+ :next_token,
380
+ :limit)
381
+ include Aws::Structure
382
+ end
347
383
 
348
- # @!attribute [rw] log_groups
349
- # The log groups.
350
- # @return [Array<Types::LogGroup>]
351
- #
352
- # @!attribute [rw] next_token
353
- # The token for the next set of items to return. The token expires
354
- # after 24 hours.
355
- # @return [String]
356
- class DescribeLogGroupsResponse < Struct.new(
357
- :log_groups,
358
- :next_token)
359
- include Aws::Structure
360
- end
384
+ # @!attribute [rw] log_groups
385
+ # The log groups.
386
+ # @return [Array<Types::LogGroup>]
387
+ #
388
+ # @!attribute [rw] next_token
389
+ # The token for the next set of items to return. The token expires
390
+ # after 24 hours.
391
+ # @return [String]
392
+ #
393
+ class DescribeLogGroupsResponse < Struct.new(
394
+ :log_groups,
395
+ :next_token)
396
+ include Aws::Structure
397
+ end
361
398
 
362
- # @note When making an API call, pass DescribeLogStreamsRequest
363
- # data as a hash:
364
- #
365
- # {
366
- # log_group_name: "LogGroupName", # required
367
- # log_stream_name_prefix: "LogStreamName",
368
- # order_by: "LogStreamName", # accepts LogStreamName, LastEventTime
369
- # descending: false,
370
- # next_token: "NextToken",
371
- # limit: 1,
372
- # }
373
- # @!attribute [rw] log_group_name
374
- # The name of the log group.
375
- # @return [String]
376
- #
377
- # @!attribute [rw] log_stream_name_prefix
378
- # The prefix to match.
379
- #
380
- # You cannot specify this parameter if `orderBy` is `LastEventTime`.
381
- # @return [String]
382
- #
383
- # @!attribute [rw] order_by
384
- # If the value is `LogStreamName`, the results are ordered by log
385
- # stream name. If the value is `LastEventTime`, the results are
386
- # ordered by the event time. The default value is `LogStreamName`.
387
- #
388
- # If you order the results by event time, you cannot specify the
389
- # `logStreamNamePrefix` parameter.
390
- # @return [String]
391
- #
392
- # @!attribute [rw] descending
393
- # If the value is true, results are returned in descending order. If
394
- # the value is to false, results are returned in ascending order. The
395
- # default value is false.
396
- # @return [Boolean]
397
- #
398
- # @!attribute [rw] next_token
399
- # The token for the next set of items to return. (You received this
400
- # token from a previous call.)
401
- # @return [String]
402
- #
403
- # @!attribute [rw] limit
404
- # The maximum number of items returned. If you don't specify a value,
405
- # the default is up to 50 items.
406
- # @return [Integer]
407
- class DescribeLogStreamsRequest < Struct.new(
408
- :log_group_name,
409
- :log_stream_name_prefix,
410
- :order_by,
411
- :descending,
412
- :next_token,
413
- :limit)
414
- include Aws::Structure
415
- end
399
+ # @note When making an API call, you may pass DescribeLogStreamsRequest
400
+ # data as a hash:
401
+ #
402
+ # {
403
+ # log_group_name: "LogGroupName", # required
404
+ # log_stream_name_prefix: "LogStreamName",
405
+ # order_by: "LogStreamName", # accepts LogStreamName, LastEventTime
406
+ # descending: false,
407
+ # next_token: "NextToken",
408
+ # limit: 1,
409
+ # }
410
+ #
411
+ # @!attribute [rw] log_group_name
412
+ # The name of the log group.
413
+ # @return [String]
414
+ #
415
+ # @!attribute [rw] log_stream_name_prefix
416
+ # The prefix to match.
417
+ #
418
+ # You cannot specify this parameter if `orderBy` is `LastEventTime`.
419
+ # @return [String]
420
+ #
421
+ # @!attribute [rw] order_by
422
+ # If the value is `LogStreamName`, the results are ordered by log
423
+ # stream name. If the value is `LastEventTime`, the results are
424
+ # ordered by the event time. The default value is `LogStreamName`.
425
+ #
426
+ # If you order the results by event time, you cannot specify the
427
+ # `logStreamNamePrefix` parameter.
428
+ # @return [String]
429
+ #
430
+ # @!attribute [rw] descending
431
+ # If the value is true, results are returned in descending order. If
432
+ # the value is to false, results are returned in ascending order. The
433
+ # default value is false.
434
+ # @return [Boolean]
435
+ #
436
+ # @!attribute [rw] next_token
437
+ # The token for the next set of items to return. (You received this
438
+ # token from a previous call.)
439
+ # @return [String]
440
+ #
441
+ # @!attribute [rw] limit
442
+ # The maximum number of items returned. If you don't specify a value,
443
+ # the default is up to 50 items.
444
+ # @return [Integer]
445
+ #
446
+ class DescribeLogStreamsRequest < Struct.new(
447
+ :log_group_name,
448
+ :log_stream_name_prefix,
449
+ :order_by,
450
+ :descending,
451
+ :next_token,
452
+ :limit)
453
+ include Aws::Structure
454
+ end
416
455
 
417
- # @!attribute [rw] log_streams
418
- # The log streams.
419
- # @return [Array<Types::LogStream>]
420
- #
421
- # @!attribute [rw] next_token
422
- # The token for the next set of items to return. The token expires
423
- # after 24 hours.
424
- # @return [String]
425
- class DescribeLogStreamsResponse < Struct.new(
426
- :log_streams,
427
- :next_token)
428
- include Aws::Structure
429
- end
456
+ # @!attribute [rw] log_streams
457
+ # The log streams.
458
+ # @return [Array<Types::LogStream>]
459
+ #
460
+ # @!attribute [rw] next_token
461
+ # The token for the next set of items to return. The token expires
462
+ # after 24 hours.
463
+ # @return [String]
464
+ #
465
+ class DescribeLogStreamsResponse < Struct.new(
466
+ :log_streams,
467
+ :next_token)
468
+ include Aws::Structure
469
+ end
430
470
 
431
- # @note When making an API call, pass DescribeMetricFiltersRequest
432
- # data as a hash:
433
- #
434
- # {
435
- # log_group_name: "LogGroupName",
436
- # filter_name_prefix: "FilterName",
437
- # next_token: "NextToken",
438
- # limit: 1,
439
- # metric_name: "MetricName",
440
- # metric_namespace: "MetricNamespace",
441
- # }
442
- # @!attribute [rw] log_group_name
443
- # The name of the log group.
444
- # @return [String]
445
- #
446
- # @!attribute [rw] filter_name_prefix
447
- # The prefix to match.
448
- # @return [String]
449
- #
450
- # @!attribute [rw] next_token
451
- # The token for the next set of items to return. (You received this
452
- # token from a previous call.)
453
- # @return [String]
454
- #
455
- # @!attribute [rw] limit
456
- # The maximum number of items returned. If you don't specify a value,
457
- # the default is up to 50 items.
458
- # @return [Integer]
459
- #
460
- # @!attribute [rw] metric_name
461
- # The name of the CloudWatch metric.
462
- # @return [String]
463
- #
464
- # @!attribute [rw] metric_namespace
465
- # The namespace of the CloudWatch metric.
466
- # @return [String]
467
- class DescribeMetricFiltersRequest < Struct.new(
468
- :log_group_name,
469
- :filter_name_prefix,
470
- :next_token,
471
- :limit,
472
- :metric_name,
473
- :metric_namespace)
474
- include Aws::Structure
475
- end
471
+ # @note When making an API call, you may pass DescribeMetricFiltersRequest
472
+ # data as a hash:
473
+ #
474
+ # {
475
+ # log_group_name: "LogGroupName",
476
+ # filter_name_prefix: "FilterName",
477
+ # next_token: "NextToken",
478
+ # limit: 1,
479
+ # metric_name: "MetricName",
480
+ # metric_namespace: "MetricNamespace",
481
+ # }
482
+ #
483
+ # @!attribute [rw] log_group_name
484
+ # The name of the log group.
485
+ # @return [String]
486
+ #
487
+ # @!attribute [rw] filter_name_prefix
488
+ # The prefix to match.
489
+ # @return [String]
490
+ #
491
+ # @!attribute [rw] next_token
492
+ # The token for the next set of items to return. (You received this
493
+ # token from a previous call.)
494
+ # @return [String]
495
+ #
496
+ # @!attribute [rw] limit
497
+ # The maximum number of items returned. If you don't specify a value,
498
+ # the default is up to 50 items.
499
+ # @return [Integer]
500
+ #
501
+ # @!attribute [rw] metric_name
502
+ # The name of the CloudWatch metric.
503
+ # @return [String]
504
+ #
505
+ # @!attribute [rw] metric_namespace
506
+ # The namespace of the CloudWatch metric.
507
+ # @return [String]
508
+ #
509
+ class DescribeMetricFiltersRequest < Struct.new(
510
+ :log_group_name,
511
+ :filter_name_prefix,
512
+ :next_token,
513
+ :limit,
514
+ :metric_name,
515
+ :metric_namespace)
516
+ include Aws::Structure
517
+ end
476
518
 
477
- # @!attribute [rw] metric_filters
478
- # The metric filters.
479
- # @return [Array<Types::MetricFilter>]
480
- #
481
- # @!attribute [rw] next_token
482
- # The token for the next set of items to return. The token expires
483
- # after 24 hours.
484
- # @return [String]
485
- class DescribeMetricFiltersResponse < Struct.new(
486
- :metric_filters,
487
- :next_token)
488
- include Aws::Structure
489
- end
519
+ # @!attribute [rw] metric_filters
520
+ # The metric filters.
521
+ # @return [Array<Types::MetricFilter>]
522
+ #
523
+ # @!attribute [rw] next_token
524
+ # The token for the next set of items to return. The token expires
525
+ # after 24 hours.
526
+ # @return [String]
527
+ #
528
+ class DescribeMetricFiltersResponse < Struct.new(
529
+ :metric_filters,
530
+ :next_token)
531
+ include Aws::Structure
532
+ end
490
533
 
491
- # @note When making an API call, pass DescribeSubscriptionFiltersRequest
492
- # data as a hash:
493
- #
494
- # {
495
- # log_group_name: "LogGroupName", # required
496
- # filter_name_prefix: "FilterName",
497
- # next_token: "NextToken",
498
- # limit: 1,
499
- # }
500
- # @!attribute [rw] log_group_name
501
- # The name of the log group.
502
- # @return [String]
503
- #
504
- # @!attribute [rw] filter_name_prefix
505
- # The prefix to match. If you don't specify a value, no prefix filter
506
- # is applied.
507
- # @return [String]
508
- #
509
- # @!attribute [rw] next_token
510
- # The token for the next set of items to return. (You received this
511
- # token from a previous call.)
512
- # @return [String]
513
- #
514
- # @!attribute [rw] limit
515
- # The maximum number of items returned. If you don't specify a value,
516
- # the default is up to 50 items.
517
- # @return [Integer]
518
- class DescribeSubscriptionFiltersRequest < Struct.new(
519
- :log_group_name,
520
- :filter_name_prefix,
521
- :next_token,
522
- :limit)
523
- include Aws::Structure
524
- end
534
+ # @note When making an API call, you may pass DescribeSubscriptionFiltersRequest
535
+ # data as a hash:
536
+ #
537
+ # {
538
+ # log_group_name: "LogGroupName", # required
539
+ # filter_name_prefix: "FilterName",
540
+ # next_token: "NextToken",
541
+ # limit: 1,
542
+ # }
543
+ #
544
+ # @!attribute [rw] log_group_name
545
+ # The name of the log group.
546
+ # @return [String]
547
+ #
548
+ # @!attribute [rw] filter_name_prefix
549
+ # The prefix to match. If you don't specify a value, no prefix filter
550
+ # is applied.
551
+ # @return [String]
552
+ #
553
+ # @!attribute [rw] next_token
554
+ # The token for the next set of items to return. (You received this
555
+ # token from a previous call.)
556
+ # @return [String]
557
+ #
558
+ # @!attribute [rw] limit
559
+ # The maximum number of items returned. If you don't specify a value,
560
+ # the default is up to 50 items.
561
+ # @return [Integer]
562
+ #
563
+ class DescribeSubscriptionFiltersRequest < Struct.new(
564
+ :log_group_name,
565
+ :filter_name_prefix,
566
+ :next_token,
567
+ :limit)
568
+ include Aws::Structure
569
+ end
525
570
 
526
- # @!attribute [rw] subscription_filters
527
- # The subscription filters.
528
- # @return [Array<Types::SubscriptionFilter>]
529
- #
530
- # @!attribute [rw] next_token
531
- # The token for the next set of items to return. The token expires
532
- # after 24 hours.
533
- # @return [String]
534
- class DescribeSubscriptionFiltersResponse < Struct.new(
535
- :subscription_filters,
536
- :next_token)
537
- include Aws::Structure
538
- end
571
+ # @!attribute [rw] subscription_filters
572
+ # The subscription filters.
573
+ # @return [Array<Types::SubscriptionFilter>]
574
+ #
575
+ # @!attribute [rw] next_token
576
+ # The token for the next set of items to return. The token expires
577
+ # after 24 hours.
578
+ # @return [String]
579
+ #
580
+ class DescribeSubscriptionFiltersResponse < Struct.new(
581
+ :subscription_filters,
582
+ :next_token)
583
+ include Aws::Structure
584
+ end
539
585
 
540
- # Represents a cross-account destination that receives subscription log
541
- # events.
542
- # @!attribute [rw] destination_name
543
- # The name of the destination.
544
- # @return [String]
545
- #
546
- # @!attribute [rw] target_arn
547
- # The Amazon Resource Name (ARN) of the physical target where the log
548
- # events will be delivered (for example, a Kinesis stream).
549
- # @return [String]
550
- #
551
- # @!attribute [rw] role_arn
552
- # A role for impersonation, used when delivering log events to the
553
- # target.
554
- # @return [String]
555
- #
556
- # @!attribute [rw] access_policy
557
- # An IAM policy document that governs which AWS accounts can create
558
- # subscription filters against this destination.
559
- # @return [String]
560
- #
561
- # @!attribute [rw] arn
562
- # The ARN of this destination.
563
- # @return [String]
564
- #
565
- # @!attribute [rw] creation_time
566
- # The creation time of the destination.
567
- # @return [Integer]
568
- class Destination < Struct.new(
569
- :destination_name,
570
- :target_arn,
571
- :role_arn,
572
- :access_policy,
573
- :arn,
574
- :creation_time)
575
- include Aws::Structure
576
- end
586
+ # Represents a cross-account destination that receives subscription log
587
+ # events.
588
+ #
589
+ # @!attribute [rw] destination_name
590
+ # The name of the destination.
591
+ # @return [String]
592
+ #
593
+ # @!attribute [rw] target_arn
594
+ # The Amazon Resource Name (ARN) of the physical target where the log
595
+ # events will be delivered (for example, a Kinesis stream).
596
+ # @return [String]
597
+ #
598
+ # @!attribute [rw] role_arn
599
+ # A role for impersonation, used when delivering log events to the
600
+ # target.
601
+ # @return [String]
602
+ #
603
+ # @!attribute [rw] access_policy
604
+ # An IAM policy document that governs which AWS accounts can create
605
+ # subscription filters against this destination.
606
+ # @return [String]
607
+ #
608
+ # @!attribute [rw] arn
609
+ # The ARN of this destination.
610
+ # @return [String]
611
+ #
612
+ # @!attribute [rw] creation_time
613
+ # The creation time of the destination.
614
+ # @return [Integer]
615
+ #
616
+ class Destination < Struct.new(
617
+ :destination_name,
618
+ :target_arn,
619
+ :role_arn,
620
+ :access_policy,
621
+ :arn,
622
+ :creation_time)
623
+ include Aws::Structure
624
+ end
577
625
 
578
- # Represents an export task.
579
- # @!attribute [rw] task_id
580
- # The ID of the export task.
581
- # @return [String]
582
- #
583
- # @!attribute [rw] task_name
584
- # The name of the export task.
585
- # @return [String]
586
- #
587
- # @!attribute [rw] log_group_name
588
- # The name of the log group from which logs data was exported.
589
- # @return [String]
590
- #
591
- # @!attribute [rw] from
592
- # The start time. Events with a timestamp prior to this time are not
593
- # exported.
594
- # @return [Integer]
595
- #
596
- # @!attribute [rw] to
597
- # The end time. Events with a timestamp later than this time are not
598
- # exported.
599
- # @return [Integer]
600
- #
601
- # @!attribute [rw] destination
602
- # The name of Amazon S3 bucket to which the log data was exported.
603
- # @return [String]
604
- #
605
- # @!attribute [rw] destination_prefix
606
- # The prefix that was used as the start of Amazon S3 key for every
607
- # object exported.
608
- # @return [String]
609
- #
610
- # @!attribute [rw] status
611
- # The status of the export task.
612
- # @return [Types::ExportTaskStatus]
613
- #
614
- # @!attribute [rw] execution_info
615
- # Execution info about the export task.
616
- # @return [Types::ExportTaskExecutionInfo]
617
- class ExportTask < Struct.new(
618
- :task_id,
619
- :task_name,
620
- :log_group_name,
621
- :from,
622
- :to,
623
- :destination,
624
- :destination_prefix,
625
- :status,
626
- :execution_info)
627
- include Aws::Structure
628
- end
626
+ # Represents an export task.
627
+ #
628
+ # @!attribute [rw] task_id
629
+ # The ID of the export task.
630
+ # @return [String]
631
+ #
632
+ # @!attribute [rw] task_name
633
+ # The name of the export task.
634
+ # @return [String]
635
+ #
636
+ # @!attribute [rw] log_group_name
637
+ # The name of the log group from which logs data was exported.
638
+ # @return [String]
639
+ #
640
+ # @!attribute [rw] from
641
+ # The start time, expressed as the number of milliseconds since Jan 1,
642
+ # 1970 00:00:00 UTC. Events with a timestamp prior to this time are
643
+ # not exported.
644
+ # @return [Integer]
645
+ #
646
+ # @!attribute [rw] to
647
+ # The end time, expressed as the number of milliseconds since Jan 1,
648
+ # 1970 00:00:00 UTC. Events with a timestamp later than this time are
649
+ # not exported.
650
+ # @return [Integer]
651
+ #
652
+ # @!attribute [rw] destination
653
+ # The name of Amazon S3 bucket to which the log data was exported.
654
+ # @return [String]
655
+ #
656
+ # @!attribute [rw] destination_prefix
657
+ # The prefix that was used as the start of Amazon S3 key for every
658
+ # object exported.
659
+ # @return [String]
660
+ #
661
+ # @!attribute [rw] status
662
+ # The status of the export task.
663
+ # @return [Types::ExportTaskStatus]
664
+ #
665
+ # @!attribute [rw] execution_info
666
+ # Execution info about the export task.
667
+ # @return [Types::ExportTaskExecutionInfo]
668
+ #
669
+ class ExportTask < Struct.new(
670
+ :task_id,
671
+ :task_name,
672
+ :log_group_name,
673
+ :from,
674
+ :to,
675
+ :destination,
676
+ :destination_prefix,
677
+ :status,
678
+ :execution_info)
679
+ include Aws::Structure
680
+ end
629
681
 
630
- # Represents the status of an export task.
631
- # @!attribute [rw] creation_time
632
- # The creation time of the export task.
633
- # @return [Integer]
634
- #
635
- # @!attribute [rw] completion_time
636
- # The completion time of the export task.
637
- # @return [Integer]
638
- class ExportTaskExecutionInfo < Struct.new(
639
- :creation_time,
640
- :completion_time)
641
- include Aws::Structure
642
- end
682
+ # Represents the status of an export task.
683
+ #
684
+ # @!attribute [rw] creation_time
685
+ # The creation time of the export task.
686
+ # @return [Integer]
687
+ #
688
+ # @!attribute [rw] completion_time
689
+ # The completion time of the export task.
690
+ # @return [Integer]
691
+ #
692
+ class ExportTaskExecutionInfo < Struct.new(
693
+ :creation_time,
694
+ :completion_time)
695
+ include Aws::Structure
696
+ end
643
697
 
644
- # Represents the status of an export task.
645
- # @!attribute [rw] code
646
- # The status code of the export task.
647
- # @return [String]
648
- #
649
- # @!attribute [rw] message
650
- # The status message related to the status code.
651
- # @return [String]
652
- class ExportTaskStatus < Struct.new(
653
- :code,
654
- :message)
655
- include Aws::Structure
656
- end
698
+ # Represents the status of an export task.
699
+ #
700
+ # @!attribute [rw] code
701
+ # The status code of the export task.
702
+ # @return [String]
703
+ #
704
+ # @!attribute [rw] message
705
+ # The status message related to the status code.
706
+ # @return [String]
707
+ #
708
+ class ExportTaskStatus < Struct.new(
709
+ :code,
710
+ :message)
711
+ include Aws::Structure
712
+ end
657
713
 
658
- # @note When making an API call, pass FilterLogEventsRequest
659
- # data as a hash:
660
- #
661
- # {
662
- # log_group_name: "LogGroupName", # required
663
- # log_stream_names: ["LogStreamName"],
664
- # start_time: 1,
665
- # end_time: 1,
666
- # filter_pattern: "FilterPattern",
667
- # next_token: "NextToken",
668
- # limit: 1,
669
- # interleaved: false,
670
- # }
671
- # @!attribute [rw] log_group_name
672
- # The name of the log group.
673
- # @return [String]
674
- #
675
- # @!attribute [rw] log_stream_names
676
- # Optional list of log stream names.
677
- # @return [Array<String>]
678
- #
679
- # @!attribute [rw] start_time
680
- # The start of the time range. Events with a timestamp prior to this
681
- # time are not returned.
682
- # @return [Integer]
683
- #
684
- # @!attribute [rw] end_time
685
- # The end of the time range. Events with a timestamp later than this
686
- # time are not returned.
687
- # @return [Integer]
688
- #
689
- # @!attribute [rw] filter_pattern
690
- # The filter pattern to use. If not provided, all the events are
691
- # matched.
692
- # @return [String]
693
- #
694
- # @!attribute [rw] next_token
695
- # The token for the next set of events to return. (You received this
696
- # token from a previous call.)
697
- # @return [String]
698
- #
699
- # @!attribute [rw] limit
700
- # The maximum number of events to return. The default is 10,000
701
- # events.
702
- # @return [Integer]
703
- #
704
- # @!attribute [rw] interleaved
705
- # If the value is true, the operation makes a best effort to provide
706
- # responses that contain events from multiple log streams within the
707
- # log group interleaved in a single response. If the value is false
708
- # all the matched log events in the first log stream are searched
709
- # first, then those in the next log stream, and so on. The default is
710
- # false.
711
- # @return [Boolean]
712
- class FilterLogEventsRequest < Struct.new(
713
- :log_group_name,
714
- :log_stream_names,
715
- :start_time,
716
- :end_time,
717
- :filter_pattern,
718
- :next_token,
719
- :limit,
720
- :interleaved)
721
- include Aws::Structure
722
- end
714
+ # @note When making an API call, you may pass FilterLogEventsRequest
715
+ # data as a hash:
716
+ #
717
+ # {
718
+ # log_group_name: "LogGroupName", # required
719
+ # log_stream_names: ["LogStreamName"],
720
+ # start_time: 1,
721
+ # end_time: 1,
722
+ # filter_pattern: "FilterPattern",
723
+ # next_token: "NextToken",
724
+ # limit: 1,
725
+ # interleaved: false,
726
+ # }
727
+ #
728
+ # @!attribute [rw] log_group_name
729
+ # The name of the log group.
730
+ # @return [String]
731
+ #
732
+ # @!attribute [rw] log_stream_names
733
+ # Optional list of log stream names.
734
+ # @return [Array<String>]
735
+ #
736
+ # @!attribute [rw] start_time
737
+ # The start of the time range, expressed as the number of milliseconds
738
+ # since Jan 1, 1970 00:00:00 UTC. Events with a timestamp prior to
739
+ # this time are not returned.
740
+ # @return [Integer]
741
+ #
742
+ # @!attribute [rw] end_time
743
+ # The end of the time range, expressed as the number of milliseconds
744
+ # since Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than
745
+ # this time are not returned.
746
+ # @return [Integer]
747
+ #
748
+ # @!attribute [rw] filter_pattern
749
+ # The filter pattern to use. If not provided, all the events are
750
+ # matched.
751
+ # @return [String]
752
+ #
753
+ # @!attribute [rw] next_token
754
+ # The token for the next set of events to return. (You received this
755
+ # token from a previous call.)
756
+ # @return [String]
757
+ #
758
+ # @!attribute [rw] limit
759
+ # The maximum number of events to return. The default is 10,000
760
+ # events.
761
+ # @return [Integer]
762
+ #
763
+ # @!attribute [rw] interleaved
764
+ # If the value is true, the operation makes a best effort to provide
765
+ # responses that contain events from multiple log streams within the
766
+ # log group interleaved in a single response. If the value is false
767
+ # all the matched log events in the first log stream are searched
768
+ # first, then those in the next log stream, and so on. The default is
769
+ # false.
770
+ # @return [Boolean]
771
+ #
772
+ class FilterLogEventsRequest < Struct.new(
773
+ :log_group_name,
774
+ :log_stream_names,
775
+ :start_time,
776
+ :end_time,
777
+ :filter_pattern,
778
+ :next_token,
779
+ :limit,
780
+ :interleaved)
781
+ include Aws::Structure
782
+ end
723
783
 
724
- # @!attribute [rw] events
725
- # The matched events.
726
- # @return [Array<Types::FilteredLogEvent>]
727
- #
728
- # @!attribute [rw] searched_log_streams
729
- # Indicates which log streams have been searched and whether each has
730
- # been searched completely.
731
- # @return [Array<Types::SearchedLogStream>]
732
- #
733
- # @!attribute [rw] next_token
734
- # The token to use when requesting the next set of items. The token
735
- # expires after 24 hours.
736
- # @return [String]
737
- class FilterLogEventsResponse < Struct.new(
738
- :events,
739
- :searched_log_streams,
740
- :next_token)
741
- include Aws::Structure
742
- end
784
+ # @!attribute [rw] events
785
+ # The matched events.
786
+ # @return [Array<Types::FilteredLogEvent>]
787
+ #
788
+ # @!attribute [rw] searched_log_streams
789
+ # Indicates which log streams have been searched and whether each has
790
+ # been searched completely.
791
+ # @return [Array<Types::SearchedLogStream>]
792
+ #
793
+ # @!attribute [rw] next_token
794
+ # The token to use when requesting the next set of items. The token
795
+ # expires after 24 hours.
796
+ # @return [String]
797
+ #
798
+ class FilterLogEventsResponse < Struct.new(
799
+ :events,
800
+ :searched_log_streams,
801
+ :next_token)
802
+ include Aws::Structure
803
+ end
743
804
 
744
- # Represents a matched event.
745
- # @!attribute [rw] log_stream_name
746
- # The name of the log stream this event belongs to.
747
- # @return [String]
748
- #
749
- # @!attribute [rw] timestamp
750
- # The time the event occurred.
751
- # @return [Integer]
752
- #
753
- # @!attribute [rw] message
754
- # The data contained in the log event.
755
- # @return [String]
756
- #
757
- # @!attribute [rw] ingestion_time
758
- # The time the event was ingested.
759
- # @return [Integer]
760
- #
761
- # @!attribute [rw] event_id
762
- # The ID of the event.
763
- # @return [String]
764
- class FilteredLogEvent < Struct.new(
765
- :log_stream_name,
766
- :timestamp,
767
- :message,
768
- :ingestion_time,
769
- :event_id)
770
- include Aws::Structure
771
- end
805
+ # Represents a matched event.
806
+ #
807
+ # @!attribute [rw] log_stream_name
808
+ # The name of the log stream this event belongs to.
809
+ # @return [String]
810
+ #
811
+ # @!attribute [rw] timestamp
812
+ # The time the event occurred, expressed as the number of milliseconds
813
+ # since Jan 1, 1970 00:00:00 UTC.
814
+ # @return [Integer]
815
+ #
816
+ # @!attribute [rw] message
817
+ # The data contained in the log event.
818
+ # @return [String]
819
+ #
820
+ # @!attribute [rw] ingestion_time
821
+ # The time the event was ingested.
822
+ # @return [Integer]
823
+ #
824
+ # @!attribute [rw] event_id
825
+ # The ID of the event.
826
+ # @return [String]
827
+ #
828
+ class FilteredLogEvent < Struct.new(
829
+ :log_stream_name,
830
+ :timestamp,
831
+ :message,
832
+ :ingestion_time,
833
+ :event_id)
834
+ include Aws::Structure
835
+ end
772
836
 
773
- # @note When making an API call, pass GetLogEventsRequest
774
- # data as a hash:
775
- #
776
- # {
777
- # log_group_name: "LogGroupName", # required
778
- # log_stream_name: "LogStreamName", # required
779
- # start_time: 1,
780
- # end_time: 1,
781
- # next_token: "NextToken",
782
- # limit: 1,
783
- # start_from_head: false,
784
- # }
785
- # @!attribute [rw] log_group_name
786
- # The name of the log group.
787
- # @return [String]
788
- #
789
- # @!attribute [rw] log_stream_name
790
- # The name of the log stream.
791
- # @return [String]
792
- #
793
- # @!attribute [rw] start_time
794
- # The start of the time range. Events with a timestamp earlier than
795
- # this time are not included.
796
- # @return [Integer]
797
- #
798
- # @!attribute [rw] end_time
799
- # The end of the time range. Events with a timestamp later than this
800
- # time are not included.
801
- # @return [Integer]
802
- #
803
- # @!attribute [rw] next_token
804
- # The token for the next set of items to return. (You received this
805
- # token from a previous call.)
806
- # @return [String]
807
- #
808
- # @!attribute [rw] limit
809
- # The maximum number of log events returned. If you don't specify a
810
- # value, the maximum is as many log events as can fit in a response
811
- # size of 1MB, up to 10,000 log events.
812
- # @return [Integer]
813
- #
814
- # @!attribute [rw] start_from_head
815
- # If the value is true, the earliest log events are returned first. If
816
- # the value is false, the latest log events are returned first. The
817
- # default value is false.
818
- # @return [Boolean]
819
- class GetLogEventsRequest < Struct.new(
820
- :log_group_name,
821
- :log_stream_name,
822
- :start_time,
823
- :end_time,
824
- :next_token,
825
- :limit,
826
- :start_from_head)
827
- include Aws::Structure
828
- end
837
+ # @note When making an API call, you may pass GetLogEventsRequest
838
+ # data as a hash:
839
+ #
840
+ # {
841
+ # log_group_name: "LogGroupName", # required
842
+ # log_stream_name: "LogStreamName", # required
843
+ # start_time: 1,
844
+ # end_time: 1,
845
+ # next_token: "NextToken",
846
+ # limit: 1,
847
+ # start_from_head: false,
848
+ # }
849
+ #
850
+ # @!attribute [rw] log_group_name
851
+ # The name of the log group.
852
+ # @return [String]
853
+ #
854
+ # @!attribute [rw] log_stream_name
855
+ # The name of the log stream.
856
+ # @return [String]
857
+ #
858
+ # @!attribute [rw] start_time
859
+ # The start of the time range, expressed as the number of milliseconds
860
+ # since Jan 1, 1970 00:00:00 UTC. Events with a timestamp earlier than
861
+ # this time are not included.
862
+ # @return [Integer]
863
+ #
864
+ # @!attribute [rw] end_time
865
+ # The end of the time range, expressed as the number of milliseconds
866
+ # since Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than
867
+ # this time are not included.
868
+ # @return [Integer]
869
+ #
870
+ # @!attribute [rw] next_token
871
+ # The token for the next set of items to return. (You received this
872
+ # token from a previous call.)
873
+ # @return [String]
874
+ #
875
+ # @!attribute [rw] limit
876
+ # The maximum number of log events returned. If you don't specify a
877
+ # value, the maximum is as many log events as can fit in a response
878
+ # size of 1MB, up to 10,000 log events.
879
+ # @return [Integer]
880
+ #
881
+ # @!attribute [rw] start_from_head
882
+ # If the value is true, the earliest log events are returned first. If
883
+ # the value is false, the latest log events are returned first. The
884
+ # default value is false.
885
+ # @return [Boolean]
886
+ #
887
+ class GetLogEventsRequest < Struct.new(
888
+ :log_group_name,
889
+ :log_stream_name,
890
+ :start_time,
891
+ :end_time,
892
+ :next_token,
893
+ :limit,
894
+ :start_from_head)
895
+ include Aws::Structure
896
+ end
829
897
 
830
- # @!attribute [rw] events
831
- # The events.
832
- # @return [Array<Types::OutputLogEvent>]
833
- #
834
- # @!attribute [rw] next_forward_token
835
- # The token for the next set of items in the forward direction. The
836
- # token expires after 24 hours.
837
- # @return [String]
838
- #
839
- # @!attribute [rw] next_backward_token
840
- # The token for the next set of items in the backward direction. The
841
- # token expires after 24 hours.
842
- # @return [String]
843
- class GetLogEventsResponse < Struct.new(
844
- :events,
845
- :next_forward_token,
846
- :next_backward_token)
847
- include Aws::Structure
848
- end
898
+ # @!attribute [rw] events
899
+ # The events.
900
+ # @return [Array<Types::OutputLogEvent>]
901
+ #
902
+ # @!attribute [rw] next_forward_token
903
+ # The token for the next set of items in the forward direction. The
904
+ # token expires after 24 hours.
905
+ # @return [String]
906
+ #
907
+ # @!attribute [rw] next_backward_token
908
+ # The token for the next set of items in the backward direction. The
909
+ # token expires after 24 hours.
910
+ # @return [String]
911
+ #
912
+ class GetLogEventsResponse < Struct.new(
913
+ :events,
914
+ :next_forward_token,
915
+ :next_backward_token)
916
+ include Aws::Structure
917
+ end
849
918
 
850
- # Represents a log event, which is a record of activity that was
851
- # recorded by the application or resource being monitored.
852
- # @note When making an API call, pass InputLogEvent
853
- # data as a hash:
854
- #
855
- # {
856
- # timestamp: 1, # required
857
- # message: "EventMessage", # required
858
- # }
859
- # @!attribute [rw] timestamp
860
- # The time the event occurred.
861
- # @return [Integer]
862
- #
863
- # @!attribute [rw] message
864
- # The raw event message.
865
- # @return [String]
866
- class InputLogEvent < Struct.new(
867
- :timestamp,
868
- :message)
869
- include Aws::Structure
870
- end
919
+ # Represents a log event, which is a record of activity that was
920
+ # recorded by the application or resource being monitored.
921
+ #
922
+ # @note When making an API call, you may pass InputLogEvent
923
+ # data as a hash:
924
+ #
925
+ # {
926
+ # timestamp: 1, # required
927
+ # message: "EventMessage", # required
928
+ # }
929
+ #
930
+ # @!attribute [rw] timestamp
931
+ # The time the event occurred, expressed as the number of milliseconds
932
+ # since Jan 1, 1970 00:00:00 UTC.
933
+ # @return [Integer]
934
+ #
935
+ # @!attribute [rw] message
936
+ # The raw event message.
937
+ # @return [String]
938
+ #
939
+ class InputLogEvent < Struct.new(
940
+ :timestamp,
941
+ :message)
942
+ include Aws::Structure
943
+ end
871
944
 
872
- # Represents a log group.
873
- # @!attribute [rw] log_group_name
874
- # The name of the log group.
875
- # @return [String]
876
- #
877
- # @!attribute [rw] creation_time
878
- # The creation time of the log group.
879
- # @return [Integer]
880
- #
881
- # @!attribute [rw] retention_in_days
882
- # The number of days to retain the log events in the specified log
883
- # group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150,
884
- # 180, 365, 400, 545, 731, 1827, and 3653.
885
- # @return [Integer]
886
- #
887
- # @!attribute [rw] metric_filter_count
888
- # The number of metric filters.
889
- # @return [Integer]
890
- #
891
- # @!attribute [rw] arn
892
- # The Amazon Resource Name (ARN) of the log group.
893
- # @return [String]
894
- #
895
- # @!attribute [rw] stored_bytes
896
- # The number of bytes stored.
897
- # @return [Integer]
898
- class LogGroup < Struct.new(
899
- :log_group_name,
900
- :creation_time,
901
- :retention_in_days,
902
- :metric_filter_count,
903
- :arn,
904
- :stored_bytes)
905
- include Aws::Structure
906
- end
945
+ # @note When making an API call, you may pass ListTagsLogGroupRequest
946
+ # data as a hash:
947
+ #
948
+ # {
949
+ # log_group_name: "LogGroupName", # required
950
+ # }
951
+ #
952
+ # @!attribute [rw] log_group_name
953
+ # The name of the log group.
954
+ # @return [String]
955
+ #
956
+ class ListTagsLogGroupRequest < Struct.new(
957
+ :log_group_name)
958
+ include Aws::Structure
959
+ end
907
960
 
908
- # Represents a log stream, which is a sequence of log events from a
909
- # single emitter of logs.
910
- # @!attribute [rw] log_stream_name
911
- # The name of the log stream.
912
- # @return [String]
913
- #
914
- # @!attribute [rw] creation_time
915
- # The creation time of the stream.
916
- # @return [Integer]
917
- #
918
- # @!attribute [rw] first_event_timestamp
919
- # The time of the first event.
920
- # @return [Integer]
921
- #
922
- # @!attribute [rw] last_event_timestamp
923
- # The time of the last event.
924
- # @return [Integer]
925
- #
926
- # @!attribute [rw] last_ingestion_time
927
- # The ingestion time.
928
- # @return [Integer]
929
- #
930
- # @!attribute [rw] upload_sequence_token
931
- # The sequence token.
932
- # @return [String]
933
- #
934
- # @!attribute [rw] arn
935
- # The Amazon Resource Name (ARN) of the log stream.
936
- # @return [String]
937
- #
938
- # @!attribute [rw] stored_bytes
939
- # The number of bytes stored.
940
- # @return [Integer]
941
- class LogStream < Struct.new(
942
- :log_stream_name,
943
- :creation_time,
944
- :first_event_timestamp,
945
- :last_event_timestamp,
946
- :last_ingestion_time,
947
- :upload_sequence_token,
948
- :arn,
949
- :stored_bytes)
950
- include Aws::Structure
951
- end
961
+ # @!attribute [rw] tags
962
+ # The tags.
963
+ # @return [Hash<String,String>]
964
+ #
965
+ class ListTagsLogGroupResponse < Struct.new(
966
+ :tags)
967
+ include Aws::Structure
968
+ end
952
969
 
953
- # Metric filters express how CloudWatch Logs would extract metric
954
- # observations from ingested log events and transform them into metric
955
- # data in a CloudWatch metric.
956
- # @!attribute [rw] filter_name
957
- # The name of the metric filter.
958
- # @return [String]
959
- #
960
- # @!attribute [rw] filter_pattern
961
- # A symbolic description of how CloudWatch Logs should interpret the
962
- # data in each log event. For example, a log event may contain
963
- # timestamps, IP addresses, strings, and so on. You use the filter
964
- # pattern to specify what to look for in the log event message.
965
- # @return [String]
966
- #
967
- # @!attribute [rw] metric_transformations
968
- # The metric transformations.
969
- # @return [Array<Types::MetricTransformation>]
970
- #
971
- # @!attribute [rw] creation_time
972
- # The creation time of the metric filter.
973
- # @return [Integer]
974
- #
975
- # @!attribute [rw] log_group_name
976
- # The name of the log group.
977
- # @return [String]
978
- class MetricFilter < Struct.new(
979
- :filter_name,
980
- :filter_pattern,
981
- :metric_transformations,
982
- :creation_time,
983
- :log_group_name)
984
- include Aws::Structure
985
- end
970
+ # Represents a log group.
971
+ #
972
+ # @!attribute [rw] log_group_name
973
+ # The name of the log group.
974
+ # @return [String]
975
+ #
976
+ # @!attribute [rw] creation_time
977
+ # The creation time of the log group.
978
+ # @return [Integer]
979
+ #
980
+ # @!attribute [rw] retention_in_days
981
+ # The number of days to retain the log events in the specified log
982
+ # group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150,
983
+ # 180, 365, 400, 545, 731, 1827, and 3653.
984
+ # @return [Integer]
985
+ #
986
+ # @!attribute [rw] metric_filter_count
987
+ # The number of metric filters.
988
+ # @return [Integer]
989
+ #
990
+ # @!attribute [rw] arn
991
+ # The Amazon Resource Name (ARN) of the log group.
992
+ # @return [String]
993
+ #
994
+ # @!attribute [rw] stored_bytes
995
+ # The number of bytes stored.
996
+ # @return [Integer]
997
+ #
998
+ class LogGroup < Struct.new(
999
+ :log_group_name,
1000
+ :creation_time,
1001
+ :retention_in_days,
1002
+ :metric_filter_count,
1003
+ :arn,
1004
+ :stored_bytes)
1005
+ include Aws::Structure
1006
+ end
986
1007
 
987
- # Represents a matched event.
988
- # @!attribute [rw] event_number
989
- # The event number.
990
- # @return [Integer]
991
- #
992
- # @!attribute [rw] event_message
993
- # The raw event data.
994
- # @return [String]
995
- #
996
- # @!attribute [rw] extracted_values
997
- # The values extracted from the event data by the filter.
998
- # @return [Hash<String,String>]
999
- class MetricFilterMatchRecord < Struct.new(
1000
- :event_number,
1001
- :event_message,
1002
- :extracted_values)
1003
- include Aws::Structure
1004
- end
1008
+ # Represents a log stream, which is a sequence of log events from a
1009
+ # single emitter of logs.
1010
+ #
1011
+ # @!attribute [rw] log_stream_name
1012
+ # The name of the log stream.
1013
+ # @return [String]
1014
+ #
1015
+ # @!attribute [rw] creation_time
1016
+ # The creation time of the stream.
1017
+ # @return [Integer]
1018
+ #
1019
+ # @!attribute [rw] first_event_timestamp
1020
+ # The time of the first event, expressed as the number of milliseconds
1021
+ # since Jan 1, 1970 00:00:00 UTC.
1022
+ # @return [Integer]
1023
+ #
1024
+ # @!attribute [rw] last_event_timestamp
1025
+ # The time of the last event, expressed as the number of milliseconds
1026
+ # since Jan 1, 1970 00:00:00 UTC.
1027
+ # @return [Integer]
1028
+ #
1029
+ # @!attribute [rw] last_ingestion_time
1030
+ # The ingestion time.
1031
+ # @return [Integer]
1032
+ #
1033
+ # @!attribute [rw] upload_sequence_token
1034
+ # The sequence token.
1035
+ # @return [String]
1036
+ #
1037
+ # @!attribute [rw] arn
1038
+ # The Amazon Resource Name (ARN) of the log stream.
1039
+ # @return [String]
1040
+ #
1041
+ # @!attribute [rw] stored_bytes
1042
+ # The number of bytes stored.
1043
+ # @return [Integer]
1044
+ #
1045
+ class LogStream < Struct.new(
1046
+ :log_stream_name,
1047
+ :creation_time,
1048
+ :first_event_timestamp,
1049
+ :last_event_timestamp,
1050
+ :last_ingestion_time,
1051
+ :upload_sequence_token,
1052
+ :arn,
1053
+ :stored_bytes)
1054
+ include Aws::Structure
1055
+ end
1005
1056
 
1006
- # Indicates how to transform ingested log events into metric data in a
1007
- # CloudWatch metric.
1008
- # @note When making an API call, pass MetricTransformation
1009
- # data as a hash:
1010
- #
1011
- # {
1012
- # metric_name: "MetricName", # required
1013
- # metric_namespace: "MetricNamespace", # required
1014
- # metric_value: "MetricValue", # required
1015
- # default_value: 1.0,
1016
- # }
1017
- # @!attribute [rw] metric_name
1018
- # The name of the CloudWatch metric.
1019
- # @return [String]
1020
- #
1021
- # @!attribute [rw] metric_namespace
1022
- # The namespace of the CloudWatch metric.
1023
- # @return [String]
1024
- #
1025
- # @!attribute [rw] metric_value
1026
- # The value to publish to the CloudWatch metric when a filter pattern
1027
- # matches a log event.
1028
- # @return [String]
1029
- #
1030
- # @!attribute [rw] default_value
1031
- # (Optional) The value to emit when a filter pattern does not match a
1032
- # log event. This value can be null.
1033
- # @return [Float]
1034
- class MetricTransformation < Struct.new(
1035
- :metric_name,
1036
- :metric_namespace,
1037
- :metric_value,
1038
- :default_value)
1039
- include Aws::Structure
1040
- end
1057
+ # Metric filters express how CloudWatch Logs would extract metric
1058
+ # observations from ingested log events and transform them into metric
1059
+ # data in a CloudWatch metric.
1060
+ #
1061
+ # @!attribute [rw] filter_name
1062
+ # The name of the metric filter.
1063
+ # @return [String]
1064
+ #
1065
+ # @!attribute [rw] filter_pattern
1066
+ # A symbolic description of how CloudWatch Logs should interpret the
1067
+ # data in each log event. For example, a log event may contain
1068
+ # timestamps, IP addresses, strings, and so on. You use the filter
1069
+ # pattern to specify what to look for in the log event message.
1070
+ # @return [String]
1071
+ #
1072
+ # @!attribute [rw] metric_transformations
1073
+ # The metric transformations.
1074
+ # @return [Array<Types::MetricTransformation>]
1075
+ #
1076
+ # @!attribute [rw] creation_time
1077
+ # The creation time of the metric filter.
1078
+ # @return [Integer]
1079
+ #
1080
+ # @!attribute [rw] log_group_name
1081
+ # The name of the log group.
1082
+ # @return [String]
1083
+ #
1084
+ class MetricFilter < Struct.new(
1085
+ :filter_name,
1086
+ :filter_pattern,
1087
+ :metric_transformations,
1088
+ :creation_time,
1089
+ :log_group_name)
1090
+ include Aws::Structure
1091
+ end
1041
1092
 
1042
- # Represents a log event.
1043
- # @!attribute [rw] timestamp
1044
- # The time the event occurred.
1045
- # @return [Integer]
1046
- #
1047
- # @!attribute [rw] message
1048
- # The data contained in the log event.
1049
- # @return [String]
1050
- #
1051
- # @!attribute [rw] ingestion_time
1052
- # The time the event was ingested.
1053
- # @return [Integer]
1054
- class OutputLogEvent < Struct.new(
1055
- :timestamp,
1056
- :message,
1057
- :ingestion_time)
1058
- include Aws::Structure
1059
- end
1093
+ # Represents a matched event.
1094
+ #
1095
+ # @!attribute [rw] event_number
1096
+ # The event number.
1097
+ # @return [Integer]
1098
+ #
1099
+ # @!attribute [rw] event_message
1100
+ # The raw event data.
1101
+ # @return [String]
1102
+ #
1103
+ # @!attribute [rw] extracted_values
1104
+ # The values extracted from the event data by the filter.
1105
+ # @return [Hash<String,String>]
1106
+ #
1107
+ class MetricFilterMatchRecord < Struct.new(
1108
+ :event_number,
1109
+ :event_message,
1110
+ :extracted_values)
1111
+ include Aws::Structure
1112
+ end
1060
1113
 
1061
- # @note When making an API call, pass PutDestinationPolicyRequest
1062
- # data as a hash:
1063
- #
1064
- # {
1065
- # destination_name: "DestinationName", # required
1066
- # access_policy: "AccessPolicy", # required
1067
- # }
1068
- # @!attribute [rw] destination_name
1069
- # A name for an existing destination.
1070
- # @return [String]
1071
- #
1072
- # @!attribute [rw] access_policy
1073
- # An IAM policy document that authorizes cross-account users to
1074
- # deliver their log events to the associated destination.
1075
- # @return [String]
1076
- class PutDestinationPolicyRequest < Struct.new(
1077
- :destination_name,
1078
- :access_policy)
1079
- include Aws::Structure
1080
- end
1114
+ # Indicates how to transform ingested log events into metric data in a
1115
+ # CloudWatch metric.
1116
+ #
1117
+ # @note When making an API call, you may pass MetricTransformation
1118
+ # data as a hash:
1119
+ #
1120
+ # {
1121
+ # metric_name: "MetricName", # required
1122
+ # metric_namespace: "MetricNamespace", # required
1123
+ # metric_value: "MetricValue", # required
1124
+ # default_value: 1.0,
1125
+ # }
1126
+ #
1127
+ # @!attribute [rw] metric_name
1128
+ # The name of the CloudWatch metric.
1129
+ # @return [String]
1130
+ #
1131
+ # @!attribute [rw] metric_namespace
1132
+ # The namespace of the CloudWatch metric.
1133
+ # @return [String]
1134
+ #
1135
+ # @!attribute [rw] metric_value
1136
+ # The value to publish to the CloudWatch metric when a filter pattern
1137
+ # matches a log event.
1138
+ # @return [String]
1139
+ #
1140
+ # @!attribute [rw] default_value
1141
+ # (Optional) The value to emit when a filter pattern does not match a
1142
+ # log event. This value can be null.
1143
+ # @return [Float]
1144
+ #
1145
+ class MetricTransformation < Struct.new(
1146
+ :metric_name,
1147
+ :metric_namespace,
1148
+ :metric_value,
1149
+ :default_value)
1150
+ include Aws::Structure
1151
+ end
1081
1152
 
1082
- # @note When making an API call, pass PutDestinationRequest
1083
- # data as a hash:
1084
- #
1085
- # {
1086
- # destination_name: "DestinationName", # required
1087
- # target_arn: "TargetArn", # required
1088
- # role_arn: "RoleArn", # required
1089
- # }
1090
- # @!attribute [rw] destination_name
1091
- # A name for the destination.
1092
- # @return [String]
1093
- #
1094
- # @!attribute [rw] target_arn
1095
- # The ARN of an Amazon Kinesis stream to deliver matching log events
1096
- # to.
1097
- # @return [String]
1098
- #
1099
- # @!attribute [rw] role_arn
1100
- # The ARN of an IAM role that grants CloudWatch Logs permissions to
1101
- # call Amazon Kinesis PutRecord on the destination stream.
1102
- # @return [String]
1103
- class PutDestinationRequest < Struct.new(
1104
- :destination_name,
1105
- :target_arn,
1106
- :role_arn)
1107
- include Aws::Structure
1108
- end
1153
+ # Represents a log event.
1154
+ #
1155
+ # @!attribute [rw] timestamp
1156
+ # The time the event occurred, expressed as the number of milliseconds
1157
+ # since Jan 1, 1970 00:00:00 UTC.
1158
+ # @return [Integer]
1159
+ #
1160
+ # @!attribute [rw] message
1161
+ # The data contained in the log event.
1162
+ # @return [String]
1163
+ #
1164
+ # @!attribute [rw] ingestion_time
1165
+ # The time the event was ingested.
1166
+ # @return [Integer]
1167
+ #
1168
+ class OutputLogEvent < Struct.new(
1169
+ :timestamp,
1170
+ :message,
1171
+ :ingestion_time)
1172
+ include Aws::Structure
1173
+ end
1109
1174
 
1110
- # @!attribute [rw] destination
1111
- # The destination.
1112
- # @return [Types::Destination]
1113
- class PutDestinationResponse < Struct.new(
1114
- :destination)
1115
- include Aws::Structure
1116
- end
1175
+ # @note When making an API call, you may pass PutDestinationPolicyRequest
1176
+ # data as a hash:
1177
+ #
1178
+ # {
1179
+ # destination_name: "DestinationName", # required
1180
+ # access_policy: "AccessPolicy", # required
1181
+ # }
1182
+ #
1183
+ # @!attribute [rw] destination_name
1184
+ # A name for an existing destination.
1185
+ # @return [String]
1186
+ #
1187
+ # @!attribute [rw] access_policy
1188
+ # An IAM policy document that authorizes cross-account users to
1189
+ # deliver their log events to the associated destination.
1190
+ # @return [String]
1191
+ #
1192
+ class PutDestinationPolicyRequest < Struct.new(
1193
+ :destination_name,
1194
+ :access_policy)
1195
+ include Aws::Structure
1196
+ end
1117
1197
 
1118
- # @note When making an API call, pass PutLogEventsRequest
1119
- # data as a hash:
1120
- #
1121
- # {
1122
- # log_group_name: "LogGroupName", # required
1123
- # log_stream_name: "LogStreamName", # required
1124
- # log_events: [ # required
1125
- # {
1126
- # timestamp: 1, # required
1127
- # message: "EventMessage", # required
1128
- # },
1129
- # ],
1130
- # sequence_token: "SequenceToken",
1131
- # }
1132
- # @!attribute [rw] log_group_name
1133
- # The name of the log group.
1134
- # @return [String]
1135
- #
1136
- # @!attribute [rw] log_stream_name
1137
- # The name of the log stream.
1138
- # @return [String]
1139
- #
1140
- # @!attribute [rw] log_events
1141
- # The log events.
1142
- # @return [Array<Types::InputLogEvent>]
1143
- #
1144
- # @!attribute [rw] sequence_token
1145
- # The sequence token.
1146
- # @return [String]
1147
- class PutLogEventsRequest < Struct.new(
1148
- :log_group_name,
1149
- :log_stream_name,
1150
- :log_events,
1151
- :sequence_token)
1152
- include Aws::Structure
1153
- end
1198
+ # @note When making an API call, you may pass PutDestinationRequest
1199
+ # data as a hash:
1200
+ #
1201
+ # {
1202
+ # destination_name: "DestinationName", # required
1203
+ # target_arn: "TargetArn", # required
1204
+ # role_arn: "RoleArn", # required
1205
+ # }
1206
+ #
1207
+ # @!attribute [rw] destination_name
1208
+ # A name for the destination.
1209
+ # @return [String]
1210
+ #
1211
+ # @!attribute [rw] target_arn
1212
+ # The ARN of an Amazon Kinesis stream to deliver matching log events
1213
+ # to.
1214
+ # @return [String]
1215
+ #
1216
+ # @!attribute [rw] role_arn
1217
+ # The ARN of an IAM role that grants CloudWatch Logs permissions to
1218
+ # call Amazon Kinesis PutRecord on the destination stream.
1219
+ # @return [String]
1220
+ #
1221
+ class PutDestinationRequest < Struct.new(
1222
+ :destination_name,
1223
+ :target_arn,
1224
+ :role_arn)
1225
+ include Aws::Structure
1226
+ end
1154
1227
 
1155
- # @!attribute [rw] next_sequence_token
1156
- # The next sequence token.
1157
- # @return [String]
1158
- #
1159
- # @!attribute [rw] rejected_log_events_info
1160
- # The rejected events.
1161
- # @return [Types::RejectedLogEventsInfo]
1162
- class PutLogEventsResponse < Struct.new(
1163
- :next_sequence_token,
1164
- :rejected_log_events_info)
1165
- include Aws::Structure
1166
- end
1228
+ # @!attribute [rw] destination
1229
+ # The destination.
1230
+ # @return [Types::Destination]
1231
+ #
1232
+ class PutDestinationResponse < Struct.new(
1233
+ :destination)
1234
+ include Aws::Structure
1235
+ end
1167
1236
 
1168
- # @note When making an API call, pass PutMetricFilterRequest
1169
- # data as a hash:
1170
- #
1171
- # {
1172
- # log_group_name: "LogGroupName", # required
1173
- # filter_name: "FilterName", # required
1174
- # filter_pattern: "FilterPattern", # required
1175
- # metric_transformations: [ # required
1176
- # {
1177
- # metric_name: "MetricName", # required
1178
- # metric_namespace: "MetricNamespace", # required
1179
- # metric_value: "MetricValue", # required
1180
- # default_value: 1.0,
1181
- # },
1182
- # ],
1183
- # }
1184
- # @!attribute [rw] log_group_name
1185
- # The name of the log group.
1186
- # @return [String]
1187
- #
1188
- # @!attribute [rw] filter_name
1189
- # A name for the metric filter.
1190
- # @return [String]
1191
- #
1192
- # @!attribute [rw] filter_pattern
1193
- # A filter pattern for extracting metric data out of ingested log
1194
- # events.
1195
- # @return [String]
1196
- #
1197
- # @!attribute [rw] metric_transformations
1198
- # A collection of information needed to define how metric data gets
1199
- # emitted.
1200
- # @return [Array<Types::MetricTransformation>]
1201
- class PutMetricFilterRequest < Struct.new(
1202
- :log_group_name,
1203
- :filter_name,
1204
- :filter_pattern,
1205
- :metric_transformations)
1206
- include Aws::Structure
1207
- end
1237
+ # @note When making an API call, you may pass PutLogEventsRequest
1238
+ # data as a hash:
1239
+ #
1240
+ # {
1241
+ # log_group_name: "LogGroupName", # required
1242
+ # log_stream_name: "LogStreamName", # required
1243
+ # log_events: [ # required
1244
+ # {
1245
+ # timestamp: 1, # required
1246
+ # message: "EventMessage", # required
1247
+ # },
1248
+ # ],
1249
+ # sequence_token: "SequenceToken",
1250
+ # }
1251
+ #
1252
+ # @!attribute [rw] log_group_name
1253
+ # The name of the log group.
1254
+ # @return [String]
1255
+ #
1256
+ # @!attribute [rw] log_stream_name
1257
+ # The name of the log stream.
1258
+ # @return [String]
1259
+ #
1260
+ # @!attribute [rw] log_events
1261
+ # The log events.
1262
+ # @return [Array<Types::InputLogEvent>]
1263
+ #
1264
+ # @!attribute [rw] sequence_token
1265
+ # The sequence token.
1266
+ # @return [String]
1267
+ #
1268
+ class PutLogEventsRequest < Struct.new(
1269
+ :log_group_name,
1270
+ :log_stream_name,
1271
+ :log_events,
1272
+ :sequence_token)
1273
+ include Aws::Structure
1274
+ end
1208
1275
 
1209
- # @note When making an API call, pass PutRetentionPolicyRequest
1210
- # data as a hash:
1211
- #
1212
- # {
1213
- # log_group_name: "LogGroupName", # required
1214
- # retention_in_days: 1, # required
1215
- # }
1216
- # @!attribute [rw] log_group_name
1217
- # The name of the log group.
1218
- # @return [String]
1219
- #
1220
- # @!attribute [rw] retention_in_days
1221
- # The number of days to retain the log events in the specified log
1222
- # group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150,
1223
- # 180, 365, 400, 545, 731, 1827, and 3653.
1224
- # @return [Integer]
1225
- class PutRetentionPolicyRequest < Struct.new(
1226
- :log_group_name,
1227
- :retention_in_days)
1228
- include Aws::Structure
1229
- end
1276
+ # @!attribute [rw] next_sequence_token
1277
+ # The next sequence token.
1278
+ # @return [String]
1279
+ #
1280
+ # @!attribute [rw] rejected_log_events_info
1281
+ # The rejected events.
1282
+ # @return [Types::RejectedLogEventsInfo]
1283
+ #
1284
+ class PutLogEventsResponse < Struct.new(
1285
+ :next_sequence_token,
1286
+ :rejected_log_events_info)
1287
+ include Aws::Structure
1288
+ end
1289
+
1290
+ # @note When making an API call, you may pass PutMetricFilterRequest
1291
+ # data as a hash:
1292
+ #
1293
+ # {
1294
+ # log_group_name: "LogGroupName", # required
1295
+ # filter_name: "FilterName", # required
1296
+ # filter_pattern: "FilterPattern", # required
1297
+ # metric_transformations: [ # required
1298
+ # {
1299
+ # metric_name: "MetricName", # required
1300
+ # metric_namespace: "MetricNamespace", # required
1301
+ # metric_value: "MetricValue", # required
1302
+ # default_value: 1.0,
1303
+ # },
1304
+ # ],
1305
+ # }
1306
+ #
1307
+ # @!attribute [rw] log_group_name
1308
+ # The name of the log group.
1309
+ # @return [String]
1310
+ #
1311
+ # @!attribute [rw] filter_name
1312
+ # A name for the metric filter.
1313
+ # @return [String]
1314
+ #
1315
+ # @!attribute [rw] filter_pattern
1316
+ # A filter pattern for extracting metric data out of ingested log
1317
+ # events.
1318
+ # @return [String]
1319
+ #
1320
+ # @!attribute [rw] metric_transformations
1321
+ # A collection of information needed to define how metric data gets
1322
+ # emitted.
1323
+ # @return [Array<Types::MetricTransformation>]
1324
+ #
1325
+ class PutMetricFilterRequest < Struct.new(
1326
+ :log_group_name,
1327
+ :filter_name,
1328
+ :filter_pattern,
1329
+ :metric_transformations)
1330
+ include Aws::Structure
1331
+ end
1332
+
1333
+ # @note When making an API call, you may pass PutRetentionPolicyRequest
1334
+ # data as a hash:
1335
+ #
1336
+ # {
1337
+ # log_group_name: "LogGroupName", # required
1338
+ # retention_in_days: 1, # required
1339
+ # }
1340
+ #
1341
+ # @!attribute [rw] log_group_name
1342
+ # The name of the log group.
1343
+ # @return [String]
1344
+ #
1345
+ # @!attribute [rw] retention_in_days
1346
+ # The number of days to retain the log events in the specified log
1347
+ # group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150,
1348
+ # 180, 365, 400, 545, 731, 1827, and 3653.
1349
+ # @return [Integer]
1350
+ #
1351
+ class PutRetentionPolicyRequest < Struct.new(
1352
+ :log_group_name,
1353
+ :retention_in_days)
1354
+ include Aws::Structure
1355
+ end
1356
+
1357
+ # @note When making an API call, you may pass PutSubscriptionFilterRequest
1358
+ # data as a hash:
1359
+ #
1360
+ # {
1361
+ # log_group_name: "LogGroupName", # required
1362
+ # filter_name: "FilterName", # required
1363
+ # filter_pattern: "FilterPattern", # required
1364
+ # destination_arn: "DestinationArn", # required
1365
+ # role_arn: "RoleArn",
1366
+ # distribution: "Random", # accepts Random, ByLogStream
1367
+ # }
1368
+ #
1369
+ # @!attribute [rw] log_group_name
1370
+ # The name of the log group.
1371
+ # @return [String]
1372
+ #
1373
+ # @!attribute [rw] filter_name
1374
+ # A name for the subscription filter.
1375
+ # @return [String]
1376
+ #
1377
+ # @!attribute [rw] filter_pattern
1378
+ # A filter pattern for subscribing to a filtered stream of log events.
1379
+ # @return [String]
1380
+ #
1381
+ # @!attribute [rw] destination_arn
1382
+ # The ARN of the destination to deliver matching log events to.
1383
+ # Currently, the supported destinations are:
1384
+ #
1385
+ # * An Amazon Kinesis stream belonging to the same account as the
1386
+ # subscription filter, for same-account delivery.
1387
+ #
1388
+ # * A logical destination (specified using an ARN) belonging to a
1389
+ # different account, for cross-account delivery.
1390
+ #
1391
+ # * An Amazon Kinesis Firehose stream belonging to the same account as
1392
+ # the subscription filter, for same-account delivery.
1393
+ #
1394
+ # * An AWS Lambda function belonging to the same account as the
1395
+ # subscription filter, for same-account delivery.
1396
+ # @return [String]
1397
+ #
1398
+ # @!attribute [rw] role_arn
1399
+ # The ARN of an IAM role that grants CloudWatch Logs permissions to
1400
+ # deliver ingested log events to the destination stream. You don't
1401
+ # need to provide the ARN when you are working with a logical
1402
+ # destination for cross-account delivery.
1403
+ # @return [String]
1404
+ #
1405
+ # @!attribute [rw] distribution
1406
+ # The method used to distribute log data to the destination, when the
1407
+ # destination is an Amazon Kinesis stream. By default, log data is
1408
+ # grouped by log stream. For a more even distribution, you can group
1409
+ # log data randomly.
1410
+ # @return [String]
1411
+ #
1412
+ class PutSubscriptionFilterRequest < Struct.new(
1413
+ :log_group_name,
1414
+ :filter_name,
1415
+ :filter_pattern,
1416
+ :destination_arn,
1417
+ :role_arn,
1418
+ :distribution)
1419
+ include Aws::Structure
1420
+ end
1230
1421
 
1231
- # @note When making an API call, pass PutSubscriptionFilterRequest
1232
- # data as a hash:
1233
- #
1234
- # {
1235
- # log_group_name: "LogGroupName", # required
1236
- # filter_name: "FilterName", # required
1237
- # filter_pattern: "FilterPattern", # required
1238
- # destination_arn: "DestinationArn", # required
1239
- # role_arn: "RoleArn",
1240
- # }
1241
- # @!attribute [rw] log_group_name
1242
- # The name of the log group.
1243
- # @return [String]
1244
- #
1245
- # @!attribute [rw] filter_name
1246
- # A name for the subscription filter.
1247
- # @return [String]
1248
- #
1249
- # @!attribute [rw] filter_pattern
1250
- # A filter pattern for subscribing to a filtered stream of log events.
1251
- # @return [String]
1252
- #
1253
- # @!attribute [rw] destination_arn
1254
- # The ARN of the destination to deliver matching log events to.
1255
- # Currently, the supported destinations are:
1256
- #
1257
- # * An Amazon Kinesis stream belonging to the same account as the
1258
- # subscription filter, for same-account delivery.
1259
- #
1260
- # * A logical destination (specified using an ARN) belonging to a
1261
- # different account, for cross-account delivery.
1262
- #
1263
- # * An Amazon Kinesis Firehose stream belonging to the same account as
1264
- # the subscription filter, for same-account delivery.
1265
- #
1266
- # * An AWS Lambda function belonging to the same account as the
1267
- # subscription filter, for same-account delivery.
1268
- # @return [String]
1269
- #
1270
- # @!attribute [rw] role_arn
1271
- # The ARN of an IAM role that grants CloudWatch Logs permissions to
1272
- # deliver ingested log events to the destination stream. You don't
1273
- # need to provide the ARN when you are working with a logical
1274
- # destination for cross-account delivery.
1275
- # @return [String]
1276
- class PutSubscriptionFilterRequest < Struct.new(
1277
- :log_group_name,
1278
- :filter_name,
1279
- :filter_pattern,
1280
- :destination_arn,
1281
- :role_arn)
1282
- include Aws::Structure
1283
- end
1422
+ # Represents the rejected events.
1423
+ #
1424
+ # @!attribute [rw] too_new_log_event_start_index
1425
+ # The log events that are too new.
1426
+ # @return [Integer]
1427
+ #
1428
+ # @!attribute [rw] too_old_log_event_end_index
1429
+ # The log events that are too old.
1430
+ # @return [Integer]
1431
+ #
1432
+ # @!attribute [rw] expired_log_event_end_index
1433
+ # The expired log events.
1434
+ # @return [Integer]
1435
+ #
1436
+ class RejectedLogEventsInfo < Struct.new(
1437
+ :too_new_log_event_start_index,
1438
+ :too_old_log_event_end_index,
1439
+ :expired_log_event_end_index)
1440
+ include Aws::Structure
1441
+ end
1284
1442
 
1285
- # Represents the rejected events.
1286
- # @!attribute [rw] too_new_log_event_start_index
1287
- # The log events that are too new.
1288
- # @return [Integer]
1289
- #
1290
- # @!attribute [rw] too_old_log_event_end_index
1291
- # The log events that are too old.
1292
- # @return [Integer]
1293
- #
1294
- # @!attribute [rw] expired_log_event_end_index
1295
- # The expired log events.
1296
- # @return [Integer]
1297
- class RejectedLogEventsInfo < Struct.new(
1298
- :too_new_log_event_start_index,
1299
- :too_old_log_event_end_index,
1300
- :expired_log_event_end_index)
1301
- include Aws::Structure
1302
- end
1443
+ # Represents the search status of a log stream.
1444
+ #
1445
+ # @!attribute [rw] log_stream_name
1446
+ # The name of the log stream.
1447
+ # @return [String]
1448
+ #
1449
+ # @!attribute [rw] searched_completely
1450
+ # Indicates whether all the events in this log stream were searched.
1451
+ # @return [Boolean]
1452
+ #
1453
+ class SearchedLogStream < Struct.new(
1454
+ :log_stream_name,
1455
+ :searched_completely)
1456
+ include Aws::Structure
1457
+ end
1303
1458
 
1304
- # Represents the search status of a log stream.
1305
- # @!attribute [rw] log_stream_name
1306
- # The name of the log stream.
1307
- # @return [String]
1308
- #
1309
- # @!attribute [rw] searched_completely
1310
- # Indicates whether all the events in this log stream were searched.
1311
- # @return [Boolean]
1312
- class SearchedLogStream < Struct.new(
1313
- :log_stream_name,
1314
- :searched_completely)
1315
- include Aws::Structure
1316
- end
1459
+ # Represents a subscription filter.
1460
+ #
1461
+ # @!attribute [rw] filter_name
1462
+ # The name of the subscription filter.
1463
+ # @return [String]
1464
+ #
1465
+ # @!attribute [rw] log_group_name
1466
+ # The name of the log group.
1467
+ # @return [String]
1468
+ #
1469
+ # @!attribute [rw] filter_pattern
1470
+ # A symbolic description of how CloudWatch Logs should interpret the
1471
+ # data in each log event. For example, a log event may contain
1472
+ # timestamps, IP addresses, strings, and so on. You use the filter
1473
+ # pattern to specify what to look for in the log event message.
1474
+ # @return [String]
1475
+ #
1476
+ # @!attribute [rw] destination_arn
1477
+ # The Amazon Resource Name (ARN) of the destination.
1478
+ # @return [String]
1479
+ #
1480
+ # @!attribute [rw] role_arn
1481
+ # @return [String]
1482
+ #
1483
+ # @!attribute [rw] distribution
1484
+ # The method used to distribute log data to the destination, when the
1485
+ # destination is an Amazon Kinesis stream.
1486
+ # @return [String]
1487
+ #
1488
+ # @!attribute [rw] creation_time
1489
+ # The creation time of the subscription filter.
1490
+ # @return [Integer]
1491
+ #
1492
+ class SubscriptionFilter < Struct.new(
1493
+ :filter_name,
1494
+ :log_group_name,
1495
+ :filter_pattern,
1496
+ :destination_arn,
1497
+ :role_arn,
1498
+ :distribution,
1499
+ :creation_time)
1500
+ include Aws::Structure
1501
+ end
1317
1502
 
1318
- # Represents a subscription filter.
1319
- # @!attribute [rw] filter_name
1320
- # The name of the subscription filter.
1321
- # @return [String]
1322
- #
1323
- # @!attribute [rw] log_group_name
1324
- # The name of the log group.
1325
- # @return [String]
1326
- #
1327
- # @!attribute [rw] filter_pattern
1328
- # A symbolic description of how CloudWatch Logs should interpret the
1329
- # data in each log event. For example, a log event may contain
1330
- # timestamps, IP addresses, strings, and so on. You use the filter
1331
- # pattern to specify what to look for in the log event message.
1332
- # @return [String]
1333
- #
1334
- # @!attribute [rw] destination_arn
1335
- # The Amazon Resource Name (ARN) of the destination.
1336
- # @return [String]
1337
- #
1338
- # @!attribute [rw] role_arn
1339
- # @return [String]
1340
- #
1341
- # @!attribute [rw] creation_time
1342
- # The creation time of the subscription filter.
1343
- # @return [Integer]
1344
- class SubscriptionFilter < Struct.new(
1345
- :filter_name,
1346
- :log_group_name,
1347
- :filter_pattern,
1348
- :destination_arn,
1349
- :role_arn,
1350
- :creation_time)
1351
- include Aws::Structure
1352
- end
1503
+ # @note When making an API call, you may pass TagLogGroupRequest
1504
+ # data as a hash:
1505
+ #
1506
+ # {
1507
+ # log_group_name: "LogGroupName", # required
1508
+ # tags: { # required
1509
+ # "TagKey" => "TagValue",
1510
+ # },
1511
+ # }
1512
+ #
1513
+ # @!attribute [rw] log_group_name
1514
+ # The name of the log group.
1515
+ # @return [String]
1516
+ #
1517
+ # @!attribute [rw] tags
1518
+ # The key-value pairs to use for the tags.
1519
+ # @return [Hash<String,String>]
1520
+ #
1521
+ class TagLogGroupRequest < Struct.new(
1522
+ :log_group_name,
1523
+ :tags)
1524
+ include Aws::Structure
1525
+ end
1353
1526
 
1354
- # @note When making an API call, pass TestMetricFilterRequest
1355
- # data as a hash:
1356
- #
1357
- # {
1358
- # filter_pattern: "FilterPattern", # required
1359
- # log_event_messages: ["EventMessage"], # required
1360
- # }
1361
- # @!attribute [rw] filter_pattern
1362
- # A symbolic description of how CloudWatch Logs should interpret the
1363
- # data in each log event. For example, a log event may contain
1364
- # timestamps, IP addresses, strings, and so on. You use the filter
1365
- # pattern to specify what to look for in the log event message.
1366
- # @return [String]
1367
- #
1368
- # @!attribute [rw] log_event_messages
1369
- # The log event messages to test.
1370
- # @return [Array<String>]
1371
- class TestMetricFilterRequest < Struct.new(
1372
- :filter_pattern,
1373
- :log_event_messages)
1374
- include Aws::Structure
1375
- end
1527
+ # @note When making an API call, you may pass TestMetricFilterRequest
1528
+ # data as a hash:
1529
+ #
1530
+ # {
1531
+ # filter_pattern: "FilterPattern", # required
1532
+ # log_event_messages: ["EventMessage"], # required
1533
+ # }
1534
+ #
1535
+ # @!attribute [rw] filter_pattern
1536
+ # A symbolic description of how CloudWatch Logs should interpret the
1537
+ # data in each log event. For example, a log event may contain
1538
+ # timestamps, IP addresses, strings, and so on. You use the filter
1539
+ # pattern to specify what to look for in the log event message.
1540
+ # @return [String]
1541
+ #
1542
+ # @!attribute [rw] log_event_messages
1543
+ # The log event messages to test.
1544
+ # @return [Array<String>]
1545
+ #
1546
+ class TestMetricFilterRequest < Struct.new(
1547
+ :filter_pattern,
1548
+ :log_event_messages)
1549
+ include Aws::Structure
1550
+ end
1376
1551
 
1377
- # @!attribute [rw] matches
1378
- # The matched events.
1379
- # @return [Array<Types::MetricFilterMatchRecord>]
1380
- class TestMetricFilterResponse < Struct.new(
1381
- :matches)
1382
- include Aws::Structure
1383
- end
1552
+ # @!attribute [rw] matches
1553
+ # The matched events.
1554
+ # @return [Array<Types::MetricFilterMatchRecord>]
1555
+ #
1556
+ class TestMetricFilterResponse < Struct.new(
1557
+ :matches)
1558
+ include Aws::Structure
1559
+ end
1384
1560
 
1561
+ # @note When making an API call, you may pass UntagLogGroupRequest
1562
+ # data as a hash:
1563
+ #
1564
+ # {
1565
+ # log_group_name: "LogGroupName", # required
1566
+ # tags: ["TagKey"], # required
1567
+ # }
1568
+ #
1569
+ # @!attribute [rw] log_group_name
1570
+ # The name of the log group.
1571
+ # @return [String]
1572
+ #
1573
+ # @!attribute [rw] tags
1574
+ # The tag keys. The corresponding tags are removed from the log group.
1575
+ # @return [Array<String>]
1576
+ #
1577
+ class UntagLogGroupRequest < Struct.new(
1578
+ :log_group_name,
1579
+ :tags)
1580
+ include Aws::Structure
1385
1581
  end
1582
+
1386
1583
  end
1387
1584
  end