LogPatternSetProperty Struct
The AWS::ApplicationInsights::Application LogPatternSet property type specifies the log pattern set.
| 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 logPatternSetProperty: applicationinsights.CfnApplication.LogPatternSetProperty = {
logPatterns: [{
pattern: 'pattern',
patternName: 'patternName',
rank: 123,
}],
patternSetName: 'patternSetName',
};
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_set_property = applicationinsights.CfnApplication.LogPatternSetProperty(
log_patterns=[applicationinsights.CfnApplication.LogPatternProperty(
pattern="pattern",
pattern_name="patternName",
rank=123
)],
pattern_set_name="patternSetName"
)
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.*;
LogPatternSetProperty logPatternSetProperty = LogPatternSetProperty.builder()
.logPatterns(List.of(LogPatternProperty.builder()
.pattern("pattern")
.patternName("patternName")
.rank(123)
.build()))
.patternSetName("patternSetName")
.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 logPatternSetProperty = new LogPatternSetProperty {
LogPatterns = new [] { new LogPatternProperty {
Pattern = "pattern",
PatternName = "patternName",
Rank = 123
} },
PatternSetName = "patternSetName"
};
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"
logPatternSetProperty := &LogPatternSetProperty{
LogPatterns: []interface{}{
&LogPatternProperty{
Pattern: jsii.String("pattern"),
PatternName: jsii.String("patternName"),
Rank: jsii.Number(123),
},
},
PatternSetName: jsii.String("patternSetName"),
}
Properties
logPatternsIResolvable | IResolvable | CfnApplication.log_patternstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, LogPatternProperty]]]logPatternsIResolvableLogPatternsIResolvableLogPatternsinterface{} required #A list of objects that define the log patterns that belong to `LogPatternSet` .
patternSetNamestringpattern_set_namestrpatternSetNameStringPatternSetNamestringPatternSetName*string required #The name of the log pattern.
A log pattern name can contain up to 30 characters, and it cannot be empty. The characters can be Unicode letters, digits, or one of the following symbols: period, dash, underscore.