# LogPatternSetProperty

The `AWS::ApplicationInsights::Application LogPatternSet` property type specifies the log pattern set.

- 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 logPatternSetProperty: applicationinsights.CfnApplication.LogPatternSetProperty = {
  logPatterns: [{
    pattern: 'pattern',
    patternName: 'patternName',
    rank: 123,
  }],
  patternSetName: 'patternSetName',
};
```

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_set_property = applicationinsights.CfnApplication.LogPatternSetProperty(
    log_patterns=[applicationinsights.CfnApplication.LogPatternProperty(
        pattern="pattern",
        pattern_name="patternName",
        rank=123
    )],
    pattern_set_name="patternSetName"
)
```

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.*;

LogPatternSetProperty logPatternSetProperty = LogPatternSetProperty.builder()
        .logPatterns(List.of(LogPatternProperty.builder()
                .pattern("pattern")
                .patternName("patternName")
                .rank(123)
                .build()))
        .patternSetName("patternSetName")
        .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 logPatternSetProperty = new LogPatternSetProperty {
    LogPatterns = new [] { new LogPatternProperty {
        Pattern = "pattern",
        PatternName = "patternName",
        Rank = 123
    } },
    PatternSetName = "patternSetName"
};
```

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"

logPatternSetProperty := &LogPatternSetProperty{
	LogPatterns: []interface{}{
		&LogPatternProperty{
			Pattern: jsii.String("pattern"),
			PatternName: jsii.String("patternName"),
			Rank: jsii.Number(123),
		},
	},
	PatternSetName: jsii.String("patternSetName"),
}
```

## Properties

- `logPatterns`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplication.LogPatternProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_applicationinsights.CfnApplication.LogPatternProperty.html)[] (required) — A list of objects that define the log patterns that belong to `LogPatternSet` .

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