1 | import { InputLogEvent, LogGroup } from '@aws-sdk/client-cloudwatch-logs';
|
2 | import { Credentials } from '@aws-sdk/types';
|
3 | export interface AmplifyConfig {
|
4 | Analytics?: object;
|
5 | Auth?: object;
|
6 | API?: object;
|
7 | Logging?: object;
|
8 | Storage?: object;
|
9 | Cache?: object;
|
10 | Geo?: object;
|
11 | ssr?: boolean;
|
12 | }
|
13 | export interface ICredentials {
|
14 | accessKeyId: string;
|
15 | sessionToken: string;
|
16 | secretAccessKey: string;
|
17 | identityId: string;
|
18 | authenticated: boolean;
|
19 | expiration?: Date;
|
20 | }
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | export declare type DelayFunction = (attempt: number, args?: any[], error?: Error) => number | false;
|
26 | export interface LoggingProvider {
|
27 | getProviderName(): string;
|
28 | getCategoryName(): string;
|
29 | configure(config?: object): object;
|
30 | pushLogs(logs: InputLogEvent[]): void;
|
31 | }
|
32 | export interface AWSCloudWatchProviderOptions {
|
33 | logGroupName?: string;
|
34 | logStreamName?: string;
|
35 | region?: string;
|
36 | credentials?: Credentials;
|
37 | endpoint?: string;
|
38 | }
|
39 | export interface CloudWatchDataTracker {
|
40 | eventUploadInProgress: boolean;
|
41 | logEvents: InputLogEvent[];
|
42 | verifiedLogGroup?: LogGroup;
|
43 | }
|