/
project-logs.ts
78 lines (69 loc) · 1.62 KB
/
project-logs.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
import * as logs from '@aws-cdk/aws-logs';
import * as s3 from '@aws-cdk/aws-s3';
/**
* Information about logs built to an S3 bucket for a build project.
*/
export interface S3LoggingOptions {
/**
* Encrypt the S3 build log output
*
* @default true
*/
readonly encrypted?: boolean;
/**
* The S3 Bucket to send logs to
*/
readonly bucket: s3.IBucket;
/**
* The path prefix for S3 logs
*
* @default - no prefix
*/
readonly prefix?: string;
/**
* The current status of the logs in Amazon CloudWatch Logs for a build project
*
* @default true
*/
readonly enabled?: boolean;
}
/**
* Information about logs built to a CloudWatch Log Group for a build project.
*/
export interface CloudWatchLoggingOptions {
/**
* The Log Group to send logs to
*
* @default - no log group specified
*/
readonly logGroup?: logs.ILogGroup;
/**
* The prefix of the stream name of the Amazon CloudWatch Logs
*
* @default - no prefix
*/
readonly prefix?: string;
/**
* The current status of the logs in Amazon CloudWatch Logs for a build project
*
* @default true
*/
readonly enabled?: boolean;
}
/**
* Information about logs for the build project. A project can create logs in Amazon CloudWatch Logs, an S3 bucket, or both.
*/
export interface LoggingOptions {
/**
* Information about logs built to an S3 bucket for a build project.
*
* @default - disabled
*/
readonly s3?: S3LoggingOptions;
/**
* Information about Amazon CloudWatch Logs for a build project.
*
* @default - enabled
*/
readonly cloudWatch?: CloudWatchLoggingOptions;
}