Skip to content
v2.278.0

AutoStopConfigurationProperty Struct ​

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

Example ​

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
# 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
// 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();
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
};
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 ​

enabledoptionalboolean | IResolvableenabledoptionaltyping.Union[bool, IResolvable]enabledoptionalBooleanEnabledoptionalboolEnabledoptionalinterface{} = true #
Enables the application to automatically stop after a certain amount of time being idle.

Defaults to true.

idleTimeoutMinutesoptionalnumberidle_timeout_minutesoptionalint | floatidleTimeoutMinutesoptionalNumberIdleTimeoutMinutesoptionaldoubleIdleTimeoutMinutesoptional*float64 #
The amount of idle time in minutes after which your application will automatically stop.

Defaults to 15 minutes.