/
models_0.ts
2768 lines (2460 loc) · 79.8 KB
/
models_0.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
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
256
257
258
259
260
261
262
263
264
265
266
267
268
269
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
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
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
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
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
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
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
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
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
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
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
577
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
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
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
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
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
772
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
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
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
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// smithy-typescript generated code
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
import { CloudWatchLogsServiceException as __BaseException } from "./CloudWatchLogsServiceException";
/**
* @public
*/
export interface AssociateKmsKeyRequest {
/**
* <p>The name of the log group.</p>
*/
logGroupName: string | undefined;
/**
* <p>The Amazon Resource Name (ARN) of the KMS key to use when encrypting log
* data. This must be a symmetric KMS key. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms">Amazon Resource Names</a> and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Using Symmetric and Asymmetric
* Keys</a>.</p>
*/
kmsKeyId: string | undefined;
}
/**
* @public
* <p>A parameter is specified incorrectly.</p>
*/
export class InvalidParameterException extends __BaseException {
readonly name: "InvalidParameterException" = "InvalidParameterException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>) {
super({
name: "InvalidParameterException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, InvalidParameterException.prototype);
}
}
/**
* @public
* <p>Multiple concurrent requests to update the same resource were in conflict.</p>
*/
export class OperationAbortedException extends __BaseException {
readonly name: "OperationAbortedException" = "OperationAbortedException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<OperationAbortedException, __BaseException>) {
super({
name: "OperationAbortedException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, OperationAbortedException.prototype);
}
}
/**
* @public
* <p>The specified resource does not exist.</p>
*/
export class ResourceNotFoundException extends __BaseException {
readonly name: "ResourceNotFoundException" = "ResourceNotFoundException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>) {
super({
name: "ResourceNotFoundException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
}
}
/**
* @public
* <p>The service cannot complete the request.</p>
*/
export class ServiceUnavailableException extends __BaseException {
readonly name: "ServiceUnavailableException" = "ServiceUnavailableException";
readonly $fault: "server" = "server";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>) {
super({
name: "ServiceUnavailableException",
$fault: "server",
...opts,
});
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
}
}
/**
* @public
*/
export interface CancelExportTaskRequest {
/**
* <p>The ID of the export task.</p>
*/
taskId: string | undefined;
}
/**
* @public
* <p>The operation is not valid on the specified resource.</p>
*/
export class InvalidOperationException extends __BaseException {
readonly name: "InvalidOperationException" = "InvalidOperationException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<InvalidOperationException, __BaseException>) {
super({
name: "InvalidOperationException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, InvalidOperationException.prototype);
}
}
/**
* @public
*/
export interface CreateExportTaskRequest {
/**
* <p>The name of the export task.</p>
*/
taskName?: string;
/**
* <p>The name of the log group.</p>
*/
logGroupName: string | undefined;
/**
* <p>Export only log streams that match the provided prefix. If you don't
* specify a value, no prefix filter is applied.</p>
*/
logStreamNamePrefix?: string;
/**
* <p>The start time of the range for the request, expressed as the number of milliseconds
* after <code>Jan 1, 1970 00:00:00 UTC</code>. Events with a timestamp earlier than this time
* are not exported.</p>
*/
from: number | undefined;
/**
* <p>The end time of the range for the request, expressed as the number of milliseconds
* after <code>Jan 1, 1970 00:00:00 UTC</code>. Events with a timestamp later than this time are
* not exported.</p>
* <p>You must specify a time that is not earlier than when this log group was created.</p>
*/
to: number | undefined;
/**
* <p>The name of S3 bucket for the exported log data. The bucket must be in the same Amazon Web Services Region.</p>
*/
destination: string | undefined;
/**
* <p>The prefix used as the start of the key for every object exported. If you don't
* specify a value, the default is <code>exportedlogs</code>.</p>
*/
destinationPrefix?: string;
}
/**
* @public
*/
export interface CreateExportTaskResponse {
/**
* <p>The ID of the export task.</p>
*/
taskId?: string;
}
/**
* @public
* <p>You have reached the maximum number of resources that can be created.</p>
*/
export class LimitExceededException extends __BaseException {
readonly name: "LimitExceededException" = "LimitExceededException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>) {
super({
name: "LimitExceededException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, LimitExceededException.prototype);
}
}
/**
* @public
* <p>The specified resource already exists.</p>
*/
export class ResourceAlreadyExistsException extends __BaseException {
readonly name: "ResourceAlreadyExistsException" = "ResourceAlreadyExistsException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>) {
super({
name: "ResourceAlreadyExistsException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
}
}
/**
* @public
*/
export interface CreateLogGroupRequest {
/**
* <p>The name of the log group.</p>
*/
logGroupName: string | undefined;
/**
* <p>The Amazon Resource Name (ARN) of the KMS key to use when encrypting log
* data. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms">Amazon Resource
* Names</a>.</p>
*/
kmsKeyId?: string;
/**
* <p>The key-value pairs to use for the tags.</p>
* <p>You can grant users access to certain log groups while preventing them from accessing other log groups.
* To do so, tag your groups and use IAM policies that refer to those tags. To assign tags when
* you create a log group, you must have either the <code>logs:TagResource</code> or <code>logs:TagLogGroup</code>
* permission. For more information about tagging, see
* <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>.
* For more information about using tags to control access, see
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html">Controlling access to Amazon Web Services resources using tags</a>.</p>
*/
tags?: Record<string, string>;
}
/**
* @public
*/
export interface CreateLogStreamRequest {
/**
* <p>The name of the log group.</p>
*/
logGroupName: string | undefined;
/**
* <p>The name of the log stream.</p>
*/
logStreamName: string | undefined;
}
/**
* @public
* <p>The event was already logged.</p>
* <important>
* <p>
* <code>PutLogEvents</code>
* actions are now always accepted and never return
* <code>DataAlreadyAcceptedException</code> regardless of whether a given batch of log events
* has already been accepted. </p>
* </important>
*/
export class DataAlreadyAcceptedException extends __BaseException {
readonly name: "DataAlreadyAcceptedException" = "DataAlreadyAcceptedException";
readonly $fault: "client" = "client";
expectedSequenceToken?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<DataAlreadyAcceptedException, __BaseException>) {
super({
name: "DataAlreadyAcceptedException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, DataAlreadyAcceptedException.prototype);
this.expectedSequenceToken = opts.expectedSequenceToken;
}
}
/**
* @public
*/
export enum DataProtectionStatus {
ACTIVATED = "ACTIVATED",
ARCHIVED = "ARCHIVED",
DELETED = "DELETED",
DISABLED = "DISABLED",
}
/**
* @public
*/
export interface DeleteDataProtectionPolicyRequest {
/**
* <p>The name or ARN of the log group that you want to delete the data protection policy for.</p>
*/
logGroupIdentifier: string | undefined;
}
/**
* @public
*/
export interface DeleteDestinationRequest {
/**
* <p>The name of the destination.</p>
*/
destinationName: string | undefined;
}
/**
* @public
*/
export interface DeleteLogGroupRequest {
/**
* <p>The name of the log group.</p>
*/
logGroupName: string | undefined;
}
/**
* @public
*/
export interface DeleteLogStreamRequest {
/**
* <p>The name of the log group.</p>
*/
logGroupName: string | undefined;
/**
* <p>The name of the log stream.</p>
*/
logStreamName: string | undefined;
}
/**
* @public
*/
export interface DeleteMetricFilterRequest {
/**
* <p>The name of the log group.</p>
*/
logGroupName: string | undefined;
/**
* <p>The name of the metric filter.</p>
*/
filterName: string | undefined;
}
/**
* @public
*/
export interface DeleteQueryDefinitionRequest {
/**
* <p>The ID of the query definition that you want to delete. You can use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeQueryDefinitions.html">DescribeQueryDefinitions</a> to retrieve the
* IDs of your saved query definitions.</p>
*/
queryDefinitionId: string | undefined;
}
/**
* @public
*/
export interface DeleteQueryDefinitionResponse {
/**
* <p>A value of TRUE indicates that the operation succeeded. FALSE indicates that the operation
* failed.</p>
*/
success?: boolean;
}
/**
* @public
*/
export interface DeleteResourcePolicyRequest {
/**
* <p>The name of the policy to be revoked. This parameter is required.</p>
*/
policyName?: string;
}
/**
* @public
*/
export interface DeleteRetentionPolicyRequest {
/**
* <p>The name of the log group.</p>
*/
logGroupName: string | undefined;
}
/**
* @public
*/
export interface DeleteSubscriptionFilterRequest {
/**
* <p>The name of the log group.</p>
*/
logGroupName: string | undefined;
/**
* <p>The name of the subscription filter.</p>
*/
filterName: string | undefined;
}
/**
* @public
*/
export interface DescribeDestinationsRequest {
/**
* <p>The prefix to match. If you don't specify a value, no prefix filter is applied.</p>
*/
DestinationNamePrefix?: string;
/**
* <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
*/
nextToken?: string;
/**
* <p>The maximum number of items returned. If you don't specify a value, the default maximum value of
* 50 items is used.</p>
*/
limit?: number;
}
/**
* @public
* <p>Represents a cross-account destination that receives subscription log events.</p>
*/
export interface Destination {
/**
* <p>The name of the destination.</p>
*/
destinationName?: string;
/**
* <p>The Amazon Resource Name (ARN) of the physical target where the log events are
* delivered (for example, a Kinesis stream).</p>
*/
targetArn?: string;
/**
* <p>A role for impersonation, used when delivering log events to the target.</p>
*/
roleArn?: string;
/**
* <p>An IAM policy document that governs which Amazon Web Services accounts can create subscription filters
* against this destination.</p>
*/
accessPolicy?: string;
/**
* <p>The ARN of this destination.</p>
*/
arn?: string;
/**
* <p>The creation time of the destination, expressed as the number of milliseconds after Jan
* 1, 1970 00:00:00 UTC.</p>
*/
creationTime?: number;
}
/**
* @public
*/
export interface DescribeDestinationsResponse {
/**
* <p>The destinations.</p>
*/
destinations?: Destination[];
/**
* <p>The token for the next set of items to return. The token expires after 24 hours.</p>
*/
nextToken?: string;
}
/**
* @public
*/
export enum ExportTaskStatusCode {
CANCELLED = "CANCELLED",
COMPLETED = "COMPLETED",
FAILED = "FAILED",
PENDING = "PENDING",
PENDING_CANCEL = "PENDING_CANCEL",
RUNNING = "RUNNING",
}
/**
* @public
*/
export interface DescribeExportTasksRequest {
/**
* <p>The ID of the export task. Specifying a task ID filters the results to one or zero
* export tasks.</p>
*/
taskId?: string;
/**
* <p>The status code of the export task. Specifying a status code filters the results to zero or more export tasks.</p>
*/
statusCode?: ExportTaskStatusCode | string;
/**
* <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
*/
nextToken?: string;
/**
* <p>The maximum number of items returned. If you don't specify a value, the default is up to 50 items.</p>
*/
limit?: number;
}
/**
* @public
* <p>Represents the status of an export task.</p>
*/
export interface ExportTaskExecutionInfo {
/**
* <p>The creation time of the export task, expressed as the number of milliseconds after
* <code>Jan 1, 1970 00:00:00 UTC</code>.</p>
*/
creationTime?: number;
/**
* <p>The completion time of the export task, expressed as the number of milliseconds after
* <code>Jan 1, 1970 00:00:00 UTC</code>.</p>
*/
completionTime?: number;
}
/**
* @public
* <p>Represents the status of an export task.</p>
*/
export interface ExportTaskStatus {
/**
* <p>The status code of the export task.</p>
*/
code?: ExportTaskStatusCode | string;
/**
* <p>The status message related to the status code.</p>
*/
message?: string;
}
/**
* @public
* <p>Represents an export task.</p>
*/
export interface ExportTask {
/**
* <p>The ID of the export task.</p>
*/
taskId?: string;
/**
* <p>The name of the export task.</p>
*/
taskName?: string;
/**
* <p>The name of the log group from which logs data was exported.</p>
*/
logGroupName?: string;
/**
* <p>The start time, expressed as the number of milliseconds after <code>Jan 1, 1970
* 00:00:00 UTC</code>. Events with a timestamp before this time are not exported.</p>
*/
from?: number;
/**
* <p>The end time, expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00
* UTC</code>. Events with a timestamp later than this time are not exported.</p>
*/
to?: number;
/**
* <p>The name of the S3 bucket to which the log data was exported.</p>
*/
destination?: string;
/**
* <p>The prefix that was used as the start of Amazon S3 key for every object exported.</p>
*/
destinationPrefix?: string;
/**
* <p>The status of the export task.</p>
*/
status?: ExportTaskStatus;
/**
* <p>Execution information about the export task.</p>
*/
executionInfo?: ExportTaskExecutionInfo;
}
/**
* @public
*/
export interface DescribeExportTasksResponse {
/**
* <p>The export tasks.</p>
*/
exportTasks?: ExportTask[];
/**
* <p>The token for the next set of items to return. The token expires after 24 hours.</p>
*/
nextToken?: string;
}
/**
* @public
*/
export interface DescribeLogGroupsRequest {
/**
* <p>When <code>includeLinkedAccounts</code> is set to <code>True</code>, use this parameter to
* specify the list of accounts to search. You can specify as many as 20 account IDs in the array. </p>
*/
accountIdentifiers?: string[];
/**
* <p>The prefix to match.</p>
* <note>
* <p>
* <code>logGroupNamePrefix</code> and <code>logGroupNamePattern</code> are mutually exclusive.
* Only one
* of these parameters can be passed.
* </p>
* </note>
*/
logGroupNamePrefix?: string;
/**
* <p>If you specify a string for this parameter, the operation returns only log groups that have names
* that match the string based on a case-sensitive substring search. For example, if you specify <code>Foo</code>, log groups
* named <code>FooBar</code>, <code>aws/Foo</code>, and <code>GroupFoo</code> would match, but <code>foo</code>,
* <code>F/o/o</code> and <code>Froo</code> would not match.</p>
* <note>
* <p>
* <code>logGroupNamePattern</code> and <code>logGroupNamePrefix</code> are mutually exclusive.
* Only one
* of these parameters can be passed.
* </p>
* </note>
*/
logGroupNamePattern?: string;
/**
* <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
*/
nextToken?: string;
/**
* <p>The maximum number of items returned. If you don't specify a value, the default is up to 50 items.</p>
*/
limit?: number;
/**
* <p>If you are using a monitoring account, set this to <code>True</code> to have the operation
* return log groups in
* the accounts listed in <code>accountIdentifiers</code>.</p>
* <p>If this parameter is set to <code>true</code> and <code>accountIdentifiers</code>
*
* contains a null value, the operation returns all log groups in the monitoring account
* and all log groups in all source accounts that are linked to the monitoring account. </p>
* <note>
* <p> If you specify <code>includeLinkedAccounts</code> in your request, then
* <code>metricFilterCount</code>, <code>retentionInDays</code>, and <code>storedBytes</code>
* are not included in the response. </p>
* </note>
*/
includeLinkedAccounts?: boolean;
}
/**
* @public
* <p>Represents a log group.</p>
*/
export interface LogGroup {
/**
* <p>The name of the log group.</p>
*/
logGroupName?: string;
/**
* <p>The creation time of the log group, expressed as the number of milliseconds after Jan
* 1, 1970 00:00:00 UTC.</p>
*/
creationTime?: number;
/**
* <p>The number of days to retain the log events in the specified log group.
* Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 2192, 2557, 2922, 3288, and 3653.</p>
* <p>To set a log group so that its log events do not expire, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DeleteRetentionPolicy.html">DeleteRetentionPolicy</a>. </p>
*/
retentionInDays?: number;
/**
* <p>The number of metric filters.</p>
*/
metricFilterCount?: number;
/**
* <p>The Amazon Resource Name (ARN) of the log group.</p>
*/
arn?: string;
/**
* <p>The number of bytes stored.</p>
*/
storedBytes?: number;
/**
* <p>The Amazon Resource Name (ARN) of the KMS key to use when
* encrypting log data.</p>
*/
kmsKeyId?: string;
/**
* <p>Displays whether this log group has a protection policy, or whether it had one in the past. For more information, see
* <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDataProtectionPolicy.html">PutDataProtectionPolicy</a>.</p>
*/
dataProtectionStatus?: DataProtectionStatus | string;
}
/**
* @public
*/
export interface DescribeLogGroupsResponse {
/**
* <p>The log groups.</p>
* <p>If the <code>retentionInDays</code> value is not included for a log group, then that log
* group's events do not expire.</p>
*/
logGroups?: LogGroup[];
/**
* <p>The token for the next set of items to return. The token expires after 24 hours.</p>
*/
nextToken?: string;
}
/**
* @public
*/
export enum OrderBy {
LastEventTime = "LastEventTime",
LogStreamName = "LogStreamName",
}
/**
* @public
*/
export interface DescribeLogStreamsRequest {
/**
* <p>The name of the log group.</p>
* <note>
* <p>
* You must include either <code>logGroupIdentifier</code> or <code>logGroupName</code>, but not
* both.
* </p>
* </note>
*/
logGroupName?: string;
/**
* <p>Specify either the name or ARN of the log group to view. If the log group is in a source account
* and you are using a monitoring account, you must use the log group ARN.</p>
* <note>
* <p>
* You must include either <code>logGroupIdentifier</code> or <code>logGroupName</code>, but not
* both.
* </p>
* </note>
*/
logGroupIdentifier?: string;
/**
* <p>The prefix to match.</p>
* <p>If <code>orderBy</code> is <code>LastEventTime</code>, you cannot specify this
* parameter.</p>
*/
logStreamNamePrefix?: string;
/**
* <p>If the value is <code>LogStreamName</code>, the results are ordered by log stream name.
* If the value is <code>LastEventTime</code>, the results are ordered by the event time.
* The default value is <code>LogStreamName</code>.</p>
* <p>If you order the results by event time, you cannot specify the <code>logStreamNamePrefix</code> parameter.</p>
* <p>
* <code>lastEventTimestamp</code> represents the time of the most recent log event in the
* log stream in CloudWatch Logs. This number is expressed as the number of milliseconds after
* <code>Jan 1, 1970 00:00:00 UTC</code>. <code>lastEventTimestamp</code> updates on an
* eventual consistency basis. It typically updates in less than an hour from ingestion, but in
* rare situations might take longer.</p>
*/
orderBy?: OrderBy | string;
/**
* <p>If the value is true, results are returned in descending order.
* If the value is to false, results are returned in ascending order.
* The default value is false.</p>
*/
descending?: boolean;
/**
* <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
*/
nextToken?: string;
/**
* <p>The maximum number of items returned. If you don't specify a value, the default is up to 50 items.</p>
*/
limit?: number;
}
/**
* @public
* <p>Represents a log stream, which is a sequence of log events from
* a single emitter of logs.</p>
*/
export interface LogStream {
/**
* <p>The name of the log stream.</p>
*/
logStreamName?: string;
/**
* <p>The creation time of the stream, expressed as the number of milliseconds after
* <code>Jan 1, 1970 00:00:00 UTC</code>.</p>
*/
creationTime?: number;
/**
* <p>The time of the first event, expressed as the number of milliseconds after <code>Jan 1,
* 1970 00:00:00 UTC</code>.</p>
*/
firstEventTimestamp?: number;
/**
* <p>The time of the most recent log event in the log stream in CloudWatch Logs. This number
* is expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>. The
* <code>lastEventTime</code> value updates on an eventual consistency basis. It typically
* updates in less than an hour from ingestion, but in rare situations might take
* longer.</p>
*/
lastEventTimestamp?: number;
/**
* <p>The ingestion time, expressed as the number of milliseconds after <code>Jan 1, 1970
* 00:00:00 UTC</code> The <code>lastIngestionTime</code> value updates on an eventual consistency basis. It
* typically updates in less than an hour after ingestion, but in rare situations might take longer.</p>
*/
lastIngestionTime?: number;
/**
* <p>The sequence token.</p>
* <important>
* <p>The sequence token is now ignored in
* <code>PutLogEvents</code>
* actions. <code>PutLogEvents</code> actions are always accepted regardless of receiving an invalid sequence token.
* You don't need to obtain <code>uploadSequenceToken</code> to use a <code>PutLogEvents</code> action.</p>
* </important>
*/
uploadSequenceToken?: string;
/**
* <p>The Amazon Resource Name (ARN) of the log stream.</p>
*/
arn?: string;
/**
* @deprecated
*
* <p>The number of bytes stored.</p>
* <p>
* <b>Important:</b> As of June 17, 2019, this parameter is no
* longer supported for log streams, and is always reported as zero. This change applies only to
* log streams. The <code>storedBytes</code> parameter for log groups is not affected.</p>
*/
storedBytes?: number;
}
/**
* @public
*/
export interface DescribeLogStreamsResponse {
/**
* <p>The log streams.</p>
*/
logStreams?: LogStream[];
/**
* <p>The token for the next set of items to return. The token expires after 24 hours.</p>
*/
nextToken?: string;
}
/**
* @public
*/
export interface DescribeMetricFiltersRequest {
/**
* <p>The name of the log group.</p>
*/
logGroupName?: string;
/**
* <p>The prefix to match. CloudWatch Logs uses the value that you set here only if you also
* include the <code>logGroupName</code> parameter in your request.</p>
*/
filterNamePrefix?: string;
/**
* <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
*/
nextToken?: string;
/**
* <p>The maximum number of items returned. If you don't specify a value, the default is up to 50 items.</p>
*/
limit?: number;
/**
* <p>Filters results to include only those with the specified metric name. If you include this parameter in your request, you
* must also include the <code>metricNamespace</code> parameter.</p>
*/
metricName?: string;
/**
* <p>Filters results to include only those in the specified namespace. If you include this parameter in your request, you
* must also include the <code>metricName</code> parameter.</p>
*/
metricNamespace?: string;
}
/**
* @public
*/
export enum StandardUnit {
Bits = "Bits",
BitsSecond = "Bits/Second",
Bytes = "Bytes",
BytesSecond = "Bytes/Second",
Count = "Count",
CountSecond = "Count/Second",
Gigabits = "Gigabits",
GigabitsSecond = "Gigabits/Second",
Gigabytes = "Gigabytes",
GigabytesSecond = "Gigabytes/Second",
Kilobits = "Kilobits",
KilobitsSecond = "Kilobits/Second",
Kilobytes = "Kilobytes",
KilobytesSecond = "Kilobytes/Second",
Megabits = "Megabits",
MegabitsSecond = "Megabits/Second",
Megabytes = "Megabytes",
MegabytesSecond = "Megabytes/Second",
Microseconds = "Microseconds",
Milliseconds = "Milliseconds",
None = "None",
Percent = "Percent",
Seconds = "Seconds",
Terabits = "Terabits",
TerabitsSecond = "Terabits/Second",
Terabytes = "Terabytes",