LogPatternProperty Struct
The AWS::ApplicationInsights::Application LogPattern property type specifies an object that defines the log patterns that belong to a LogPatternSet .
| 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_applicationinsights as applicationinsights } from 'aws-cdk-lib';
const logPatternProperty: applicationinsights.CfnApplication.LogPatternProperty = {
pattern: 'pattern',
patternName: 'patternName',
rank: 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_applicationinsights as applicationinsights
log_pattern_property = applicationinsights.CfnApplication.LogPatternProperty(
pattern="pattern",
pattern_name="patternName",
rank=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.applicationinsights.*;
LogPatternProperty logPatternProperty = LogPatternProperty.builder()
.pattern("pattern")
.patternName("patternName")
.rank(123)
.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.ApplicationInsights;
var logPatternProperty = new LogPatternProperty {
Pattern = "pattern",
PatternName = "patternName",
Rank = 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"
logPatternProperty := &LogPatternProperty{
Pattern: jsii.String("pattern"),
PatternName: jsii.String("patternName"),
Rank: jsii.Number(123),
}
Properties
A regular expression that defines the log pattern.
A log pattern can contain up to 50 characters, and it cannot be empty.
The name of the log pattern.
A log pattern name can contain up to 50 characters, and it cannot be empty. The characters can be Unicode letters, digits, or one of the following symbols: period, dash, underscore.
The rank of the log pattern.