Skip to content
v2.278.0

TriggerConditionInputProperty Struct ​

The memory trigger condition input.

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

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

messageBasedTriggeroptionalIResolvable | CfnMemory.MessageBasedTriggerInputPropertymessage_based_triggeroptionaltyping.Union[IResolvable, MessageBasedTriggerInputProperty]messageBasedTriggeroptionalIResolvableMessageBasedTriggeroptionalIResolvableMessageBasedTriggeroptionalinterface{} #
The memory trigger condition input for the message based trigger.
timeBasedTriggeroptionalIResolvable | CfnMemory.TimeBasedTriggerInputPropertytime_based_triggeroptionaltyping.Union[IResolvable, TimeBasedTriggerInputProperty]timeBasedTriggeroptionalIResolvableTimeBasedTriggeroptionalIResolvableTimeBasedTriggeroptionalinterface{} #
The memory trigger condition input.
tokenBasedTriggeroptionalIResolvable | CfnMemory.TokenBasedTriggerInputPropertytoken_based_triggeroptionaltyping.Union[IResolvable, TokenBasedTriggerInputProperty]tokenBasedTriggeroptionalIResolvableTokenBasedTriggeroptionalIResolvableTokenBasedTriggeroptionalinterface{} #
The trigger condition information for a token based trigger.