LoggingDestinationProperty Struct
The logging destination in an Amazon Managed Service for Prometheus workspace.
| 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_aps as aps } from 'aws-cdk-lib';
const loggingDestinationProperty: aps.CfnWorkspace.LoggingDestinationProperty = {
cloudWatchLogs: {
logGroupArn: 'logGroupArn',
},
filters: {
qspThreshold: 123,
},
};
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_aps as aps
logging_destination_property = aps.CfnWorkspace.LoggingDestinationProperty(
cloud_watch_logs=aps.CfnWorkspace.CloudWatchLogDestinationProperty(
log_group_arn="logGroupArn"
),
filters=aps.CfnWorkspace.LoggingFilterProperty(
qsp_threshold=123
)
)
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.aps.*;
LoggingDestinationProperty loggingDestinationProperty = LoggingDestinationProperty.builder()
.cloudWatchLogs(CloudWatchLogDestinationProperty.builder()
.logGroupArn("logGroupArn")
.build())
.filters(LoggingFilterProperty.builder()
.qspThreshold(123)
.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.APS;
var loggingDestinationProperty = new LoggingDestinationProperty {
CloudWatchLogs = new CloudWatchLogDestinationProperty {
LogGroupArn = "logGroupArn"
},
Filters = new LoggingFilterProperty {
QspThreshold = 123
}
};
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"
loggingDestinationProperty := &LoggingDestinationProperty{
CloudWatchLogs: &CloudWatchLogDestinationProperty{
LogGroupArn: jsii.String("logGroupArn"),
},
Filters: &LoggingFilterProperty{
QspThreshold: jsii.Number(123),
},
}
Properties
cloudWatchLogsIResolvable | CfnWorkspace.cloud_watch_logstyping.Union[IResolvable, CloudWatchLogDestinationProperty]cloudWatchLogsIResolvableCloudWatchLogsIResolvableCloudWatchLogsinterface{} required #Configuration details for logging to CloudWatch Logs.
filtersIResolvable | CfnWorkspace.filterstyping.Union[IResolvable, LoggingFilterProperty]filtersIResolvableFiltersIResolvableFiltersinterface{} required #Filtering criteria that determine which queries are logged.