Skip to content
v2.278.0

InstanceLifecycleConfigurationProperty Struct ​

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

Example ​

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

idleInstanceTimeoutoptionalnumberidle_instance_timeoutoptionalint | floatidleInstanceTimeoutoptionalNumberIdleInstanceTimeoutoptionaldoubleIdleInstanceTimeoutoptional*float64 #
The number of seconds an instance can remain idle before it is stopped.
maxLifetimeoptionalnumbermax_lifetimeoptionalint | floatmaxLifetimeoptionalNumberMaxLifetimeoptionaldoubleMaxLifetimeoptional*float64 #
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).