# ManagedPersistenceMonitoringConfigurationProperty

The managed log persistence configuration for a job run.

- Source: Generated at build time
- Type last changed: v2.109.0 · 16 Nov 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_emrserverless as emrserverless } from 'aws-cdk-lib';
const managedPersistenceMonitoringConfigurationProperty: emrserverless.CfnApplication.ManagedPersistenceMonitoringConfigurationProperty = {
  enabled: false,
  encryptionKeyArn: 'encryptionKeyArn',
};
```

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_emrserverless as emrserverless

managed_persistence_monitoring_configuration_property = emrserverless.CfnApplication.ManagedPersistenceMonitoringConfigurationProperty(
    enabled=False,
    encryption_key_arn="encryptionKeyArn"
)
```

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

ManagedPersistenceMonitoringConfigurationProperty managedPersistenceMonitoringConfigurationProperty = ManagedPersistenceMonitoringConfigurationProperty.builder()
        .enabled(false)
        .encryptionKeyArn("encryptionKeyArn")
        .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.EMRServerless;

var managedPersistenceMonitoringConfigurationProperty = new ManagedPersistenceMonitoringConfigurationProperty {
    Enabled = false,
    EncryptionKeyArn = "encryptionKeyArn"
};
```

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"

managedPersistenceMonitoringConfigurationProperty := &ManagedPersistenceMonitoringConfigurationProperty{
	Enabled: jsii.Boolean(false),
	EncryptionKeyArn: jsii.String("encryptionKeyArn"),
}
```

## Properties

- `enabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) = true — Enables managed logging and defaults to true.

  If set to false, managed logging will be turned off.

- `encryptionKeyArn`: string — The KMS key ARN to encrypt the logs stored in managed log persistence.
