# AutoStopConfigurationProperty

The configuration for an application to automatically stop after a certain amount of time being idle.

- 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_emrserverless as emrserverless } from 'aws-cdk-lib';
const autoStopConfigurationProperty: emrserverless.CfnApplication.AutoStopConfigurationProperty = {
  enabled: false,
  idleTimeoutMinutes: 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_emrserverless as emrserverless

auto_stop_configuration_property = emrserverless.CfnApplication.AutoStopConfigurationProperty(
    enabled=False,
    idle_timeout_minutes=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.emrserverless.*;

AutoStopConfigurationProperty autoStopConfigurationProperty = AutoStopConfigurationProperty.builder()
        .enabled(false)
        .idleTimeoutMinutes(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.EMRServerless;

var autoStopConfigurationProperty = new AutoStopConfigurationProperty {
    Enabled = false,
    IdleTimeoutMinutes = 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"

autoStopConfigurationProperty := &AutoStopConfigurationProperty{
	Enabled: jsii.Boolean(false),
	IdleTimeoutMinutes: jsii.Number(123),
}
```

## Properties

- `enabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) = true — Enables the application to automatically stop after a certain amount of time being idle.

  Defaults to true.

- `idleTimeoutMinutes`: number — The amount of idle time in minutes after which your application will automatically stop.

  Defaults to 15 minutes.
