# LogPatternProperty

The `AWS::ApplicationInsights::Application LogPattern` property type specifies an object that defines the log patterns that belong to a `LogPatternSet` .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `pattern`: string (required) — A regular expression that defines the log pattern.

  A log pattern can contain up to 50 characters, and it cannot be empty.

- `patternName`: string (required) — 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.

- `rank`: number (required) — The rank of the log pattern.
