LoggingConfigProperty Struct
Contains logging configuration information for an extension.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudformation as cloudformation } from 'aws-cdk-lib';
const loggingConfigProperty: cloudformation.CfnLambdaHook.LoggingConfigProperty = {
logGroupName: 'logGroupName',
logRoleArn: 'logRoleArn',
};
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_cloudformation as cloudformation
logging_config_property = cloudformation.CfnLambdaHook.LoggingConfigProperty(
log_group_name="logGroupName",
log_role_arn="logRoleArn"
)
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.cloudformation.*;
LoggingConfigProperty loggingConfigProperty = LoggingConfigProperty.builder()
.logGroupName("logGroupName")
.logRoleArn("logRoleArn")
.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.CloudFormation;
var loggingConfigProperty = new LoggingConfigProperty {
LogGroupName = "logGroupName",
LogRoleArn = "logRoleArn"
};
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"
loggingConfigProperty := &LoggingConfigProperty{
LogGroupName: jsii.String("logGroupName"),
LogRoleArn: jsii.String("logRoleArn"),
}
Properties
logGroupNamestringlog_group_namestrlogGroupNameStringLogGroupNamestringLogGroupName*string required #The Amazon CloudWatch Logs group to which CloudFormation sends error logging information when invoking the extension's handlers.
The ARN of the role that CloudFormation should assume when sending log entries to CloudWatch Logs.