-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnFunction_LoggingConfigProperty.go
46 lines (43 loc) · 2.59 KB
/
CfnFunction_LoggingConfigProperty.go
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
package awslambda
// The function's Amazon CloudWatch Logs configuration settings.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// loggingConfigProperty := &LoggingConfigProperty{
// ApplicationLogLevel: jsii.String("applicationLogLevel"),
// LogFormat: jsii.String("logFormat"),
// LogGroup: jsii.String("logGroup"),
// SystemLogLevel: jsii.String("systemLogLevel"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-loggingconfig.html
//
type CfnFunction_LoggingConfigProperty struct {
// Set this property to filter the application logs for your function that Lambda sends to CloudWatch.
//
// Lambda only sends application logs at the selected level of detail and lower, where `TRACE` is the highest level and `FATAL` is the lowest.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-loggingconfig.html#cfn-lambda-function-loggingconfig-applicationloglevel
//
ApplicationLogLevel *string `field:"optional" json:"applicationLogLevel" yaml:"applicationLogLevel"`
// The format in which Lambda sends your function's application and system logs to CloudWatch.
//
// Select between plain text and structured JSON.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-loggingconfig.html#cfn-lambda-function-loggingconfig-logformat
//
LogFormat *string `field:"optional" json:"logFormat" yaml:"logFormat"`
// The name of the Amazon CloudWatch log group the function sends logs to.
//
// By default, Lambda functions send logs to a default log group named `/aws/lambda/<function name>` . To use a different log group, enter an existing log group or enter a new log group name.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-loggingconfig.html#cfn-lambda-function-loggingconfig-loggroup
//
LogGroup *string `field:"optional" json:"logGroup" yaml:"logGroup"`
// Set this property to filter the system logs for your function that Lambda sends to CloudWatch.
//
// Lambda only sends system logs at the selected level of detail and lower, where `DEBUG` is the highest level and `WARN` is the lowest.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-loggingconfig.html#cfn-lambda-function-loggingconfig-systemloglevel
//
SystemLogLevel *string `field:"optional" json:"systemLogLevel" yaml:"systemLogLevel"`
}