CapacityProviderLoggingConfigProperty Struct
The capacity provider's Amazon CloudWatch Logs configuration settings.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const capacityProviderLoggingConfigProperty: lambda.CfnCapacityProvider.CapacityProviderLoggingConfigProperty = {
logGroup: 'logGroup',
systemLogLevel: 'systemLogLevel',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lambda as lambda_
capacity_provider_logging_config_property = lambda.CfnCapacityProvider.CapacityProviderLoggingConfigProperty(
log_group="logGroup",
system_log_level="systemLogLevel"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;
CapacityProviderLoggingConfigProperty capacityProviderLoggingConfigProperty = CapacityProviderLoggingConfigProperty.builder()
.logGroup("logGroup")
.systemLogLevel("systemLogLevel")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;
var capacityProviderLoggingConfigProperty = new CapacityProviderLoggingConfigProperty {
LogGroup = "logGroup",
SystemLogLevel = "systemLogLevel"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// 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"
capacityProviderLoggingConfigProperty := &CapacityProviderLoggingConfigProperty{
LogGroup: jsii.String("logGroup"),
SystemLogLevel: jsii.String("systemLogLevel"),
}
Properties
logGroupoptionalstringlog_groupoptionalstrlogGroupoptionalStringLogGroupoptionalstringLogGroupoptional*string#The name of the Amazon CloudWatch log group the capacity provider sends logs to.
By default, Lambda capacity providers send logs to a default log group named /aws/lambda/capacity-provider/<capacity provider name>. To use a different log group, enter an existing log group or enter a new log group name.
systemLogLeveloptionalstringsystem_log_leveloptionalstrsystemLogLeveloptionalStringSystemLogLeveloptionalstringSystemLogLeveloptional*string#Set this property to filter the system logs for your capacity provider 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.