aws-sdk-cloudwatchlogs 1.0.0.rc1 → 1.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-cloudwatchlogs.rb +1 -1
- data/lib/aws-sdk-cloudwatchlogs/client.rb +1356 -1062
- data/lib/aws-sdk-cloudwatchlogs/client_api.rb +837 -779
- data/lib/aws-sdk-cloudwatchlogs/errors.rb +4 -13
- data/lib/aws-sdk-cloudwatchlogs/resource.rb +12 -14
- data/lib/aws-sdk-cloudwatchlogs/types.rb +1522 -1325
- metadata +2 -2
@@ -1,23 +1,14 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
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
|
10
|
-
module Errors
|
8
|
+
module Aws::CloudWatchLogs
|
9
|
+
module Errors
|
11
10
|
|
12
|
-
|
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
|
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
|
-
|
10
|
-
class Resource
|
8
|
+
module Aws::CloudWatchLogs
|
9
|
+
class Resource
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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
|
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
|
10
|
-
module Types
|
8
|
+
module Aws::CloudWatchLogs
|
9
|
+
module Types
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
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
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
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
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
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
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
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
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
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
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
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
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
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
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
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
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
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
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
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
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
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
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
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
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
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
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
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
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
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
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
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
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
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
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
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
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
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
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
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
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
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
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
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
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
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
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
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
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
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
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
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
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
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
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
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
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
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
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
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
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
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
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
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
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
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
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
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
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
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
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
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
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
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
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
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
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
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
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
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
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
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
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
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
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
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
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
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
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1175
|
-
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1186
|
-
|
1187
|
-
|
1188
|
-
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
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
|
-
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
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
|
-
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
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
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1296
|
-
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
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
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
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
|
-
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1333
|
-
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1338
|
-
|
1339
|
-
|
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
|
-
|
1355
|
-
|
1356
|
-
|
1357
|
-
|
1358
|
-
|
1359
|
-
|
1360
|
-
|
1361
|
-
|
1362
|
-
|
1363
|
-
|
1364
|
-
|
1365
|
-
|
1366
|
-
|
1367
|
-
|
1368
|
-
|
1369
|
-
|
1370
|
-
|
1371
|
-
|
1372
|
-
|
1373
|
-
|
1374
|
-
|
1375
|
-
|
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
|
-
|
1378
|
-
|
1379
|
-
|
1380
|
-
|
1381
|
-
|
1382
|
-
|
1383
|
-
|
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
|