# InstanceLifecycleConfigurationProperty

Configuration for managing the lifecycle of instances in a capacity provider.

- Source: Generated at build time
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const instanceLifecycleConfigurationProperty: bedrockagentcore.CfnCapacityProvider.InstanceLifecycleConfigurationProperty = {
  idleInstanceTimeout: 123,
  maxLifetime: 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_bedrockagentcore as bedrockagentcore

instance_lifecycle_configuration_property = bedrockagentcore.CfnCapacityProvider.InstanceLifecycleConfigurationProperty(
    idle_instance_timeout=123,
    max_lifetime=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.bedrockagentcore.*;

InstanceLifecycleConfigurationProperty instanceLifecycleConfigurationProperty = InstanceLifecycleConfigurationProperty.builder()
        .idleInstanceTimeout(123)
        .maxLifetime(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.BedrockAgentCore;

var instanceLifecycleConfigurationProperty = new InstanceLifecycleConfigurationProperty {
    IdleInstanceTimeout = 123,
    MaxLifetime = 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"

instanceLifecycleConfigurationProperty := &InstanceLifecycleConfigurationProperty{
	IdleInstanceTimeout: jsii.Number(123),
	MaxLifetime: jsii.Number(123),
}
```

## Properties

- `idleInstanceTimeout`: number — The number of seconds an instance can remain idle before it is stopped.

- `maxLifetime`: number — Maximum lifetime for the instance in seconds.

  Once reached, instances will be automatically terminated regardless of activity. Default: 28800 seconds (8 hours). Maximum: 1209600 seconds (14 days).
