LoggingConfigProperty Struct
The LoggingConfig property type specifies logging configuration information for an extension.
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.CfnHookVersion.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.CfnHookVersion.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
logGroupNameoptionalstringlog_group_nameoptionalstrlogGroupNameoptionalStringLogGroupNameoptionalstringLogGroupNameoptional*string#The Amazon CloudWatch Logs group to which CloudFormation sends error logging information when invoking the extension's handlers.
logRoleArnoptionalstringlog_role_arnoptionalstrlogRoleArnoptionalStringLogRoleArnoptionalstringLogRoleArnoptional*string#The Amazon Resource Name (ARN) of the role that CloudFormation should assume when sending log entries to CloudWatch Logs.