# TriggerConditionInputProperty

The memory trigger condition input.

- Source: Generated at build time
- Type last changed: v2.221.0 · 24 Oct 2025

## 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 triggerConditionInputProperty: bedrockagentcore.CfnMemory.TriggerConditionInputProperty = {
  messageBasedTrigger: {
    messageCount: 123,
  },
  timeBasedTrigger: {
    idleSessionTimeout: 123,
  },
  tokenBasedTrigger: {
    tokenCount: 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

trigger_condition_input_property = bedrockagentcore.CfnMemory.TriggerConditionInputProperty(
    message_based_trigger=bedrockagentcore.CfnMemory.MessageBasedTriggerInputProperty(
        message_count=123
    ),
    time_based_trigger=bedrockagentcore.CfnMemory.TimeBasedTriggerInputProperty(
        idle_session_timeout=123
    ),
    token_based_trigger=bedrockagentcore.CfnMemory.TokenBasedTriggerInputProperty(
        token_count=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.*;

TriggerConditionInputProperty triggerConditionInputProperty = TriggerConditionInputProperty.builder()
        .messageBasedTrigger(MessageBasedTriggerInputProperty.builder()
                .messageCount(123)
                .build())
        .timeBasedTrigger(TimeBasedTriggerInputProperty.builder()
                .idleSessionTimeout(123)
                .build())
        .tokenBasedTrigger(TokenBasedTriggerInputProperty.builder()
                .tokenCount(123)
                .build())
        .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 triggerConditionInputProperty = new TriggerConditionInputProperty {
    MessageBasedTrigger = new MessageBasedTriggerInputProperty {
        MessageCount = 123
    },
    TimeBasedTrigger = new TimeBasedTriggerInputProperty {
        IdleSessionTimeout = 123
    },
    TokenBasedTrigger = new TokenBasedTriggerInputProperty {
        TokenCount = 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"

triggerConditionInputProperty := &TriggerConditionInputProperty{
	MessageBasedTrigger: &MessageBasedTriggerInputProperty{
		MessageCount: jsii.Number(123),
	},
	TimeBasedTrigger: &TimeBasedTriggerInputProperty{
		IdleSessionTimeout: jsii.Number(123),
	},
	TokenBasedTrigger: &TokenBasedTriggerInputProperty{
		TokenCount: jsii.Number(123),
	},
}
```

## Properties

- `messageBasedTrigger`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnMemory.MessageBasedTriggerInputProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnMemory.MessageBasedTriggerInputProperty.html) — The memory trigger condition input for the message based trigger.

- `timeBasedTrigger`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnMemory.TimeBasedTriggerInputProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnMemory.TimeBasedTriggerInputProperty.html) — The memory trigger condition input.

- `tokenBasedTrigger`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnMemory.TokenBasedTriggerInputProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnMemory.TokenBasedTriggerInputProperty.html) — The trigger condition information for a token based trigger.
