LoggingConfigurationProperty Struct
| 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_sam as sam } from 'aws-cdk-lib';
const loggingConfigurationProperty: sam.CfnStateMachine.LoggingConfigurationProperty = {
destinations: [{
cloudWatchLogsLogGroup: {
logGroupArn: 'logGroupArn',
},
}],
includeExecutionData: false,
level: 'level',
};
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_sam as sam
logging_configuration_property = sam.CfnStateMachine.LoggingConfigurationProperty(
destinations=[sam.CfnStateMachine.LogDestinationProperty(
cloud_watch_logs_log_group=sam.CfnStateMachine.CloudWatchLogsLogGroupProperty(
log_group_arn="logGroupArn"
)
)],
include_execution_data=False,
level="level"
)
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.sam.*;
LoggingConfigurationProperty loggingConfigurationProperty = LoggingConfigurationProperty.builder()
.destinations(List.of(LogDestinationProperty.builder()
.cloudWatchLogsLogGroup(CloudWatchLogsLogGroupProperty.builder()
.logGroupArn("logGroupArn")
.build())
.build()))
.includeExecutionData(false)
.level("level")
.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.SAM;
var loggingConfigurationProperty = new LoggingConfigurationProperty {
Destinations = new [] { new LogDestinationProperty {
CloudWatchLogsLogGroup = new CloudWatchLogsLogGroupProperty {
LogGroupArn = "logGroupArn"
}
} },
IncludeExecutionData = false,
Level = "level"
};
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"
loggingConfigurationProperty := &LoggingConfigurationProperty{
Destinations: []interface{}{
&LogDestinationProperty{
CloudWatchLogsLogGroup: &CloudWatchLogsLogGroupProperty{
LogGroupArn: jsii.String("logGroupArn"),
},
},
},
IncludeExecutionData: jsii.Boolean(false),
Level: jsii.String("level"),
}
Properties
destinationsIResolvable | IResolvable | CfnStateMachine.destinationstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, LogDestinationProperty]]]destinationsIResolvableDestinationsIResolvableDestinationsinterface{} required #includeExecutionDataboolean | IResolvableinclude_execution_datatyping.Union[bool, IResolvable]includeExecutionDataBooleanIncludeExecutionDataboolIncludeExecutionDatainterface{} required #