LogDestinationProperty Struct
Defines a destination for LoggingConfiguration .
For more information on logging with
EXPRESSworkflows, see Logging Express Workflows Using CloudWatch Logs .
| 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_stepfunctions as stepfunctions } from 'aws-cdk-lib';
const logDestinationProperty: stepfunctions.CfnStateMachine.LogDestinationProperty = {
cloudWatchLogsLogGroup: {
logGroupArn: 'logGroupArn',
},
};
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_stepfunctions as stepfunctions
log_destination_property = stepfunctions.CfnStateMachine.LogDestinationProperty(
cloud_watch_logs_log_group=stepfunctions.CfnStateMachine.CloudWatchLogsLogGroupProperty(
log_group_arn="logGroupArn"
)
)
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.stepfunctions.*;
LogDestinationProperty logDestinationProperty = LogDestinationProperty.builder()
.cloudWatchLogsLogGroup(CloudWatchLogsLogGroupProperty.builder()
.logGroupArn("logGroupArn")
.build())
.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.StepFunctions;
var logDestinationProperty = new LogDestinationProperty {
CloudWatchLogsLogGroup = new CloudWatchLogsLogGroupProperty {
LogGroupArn = "logGroupArn"
}
};
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"
logDestinationProperty := &LogDestinationProperty{
CloudWatchLogsLogGroup: &CloudWatchLogsLogGroupProperty{
LogGroupArn: jsii.String("logGroupArn"),
},
}
Properties
cloudWatchLogsLogGroupoptionalIResolvable | CfnStateMachine.cloud_watch_logs_log_groupoptionaltyping.Union[IResolvable, CloudWatchLogsLogGroupProperty]cloudWatchLogsLogGroupoptionalIResolvableCloudWatchLogsLogGroupoptionalIResolvableCloudWatchLogsLogGroupoptionalinterface{} #An object describing a CloudWatch log group.
For more information, see AWS::Logs::LogGroup in the CloudFormation User Guide.