SelfManagedConfigurationProperty Struct
The self managed configuration.
| Source | |
|---|---|
| Type last changed |
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 selfManagedConfigurationProperty: bedrockagentcore.CfnMemory.SelfManagedConfigurationProperty = {
historicalContextWindowSize: 123,
invocationConfiguration: {
payloadDeliveryBucketName: 'payloadDeliveryBucketName',
topicArn: 'topicArn',
},
triggerConditions: [{
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
self_managed_configuration_property = bedrockagentcore.CfnMemory.SelfManagedConfigurationProperty(
historical_context_window_size=123,
invocation_configuration=bedrockagentcore.CfnMemory.InvocationConfigurationInputProperty(
payload_delivery_bucket_name="payloadDeliveryBucketName",
topic_arn="topicArn"
),
trigger_conditions=[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.*;
SelfManagedConfigurationProperty selfManagedConfigurationProperty = SelfManagedConfigurationProperty.builder()
.historicalContextWindowSize(123)
.invocationConfiguration(InvocationConfigurationInputProperty.builder()
.payloadDeliveryBucketName("payloadDeliveryBucketName")
.topicArn("topicArn")
.build())
.triggerConditions(List.of(TriggerConditionInputProperty.builder()
.messageBasedTrigger(MessageBasedTriggerInputProperty.builder()
.messageCount(123)
.build())
.timeBasedTrigger(TimeBasedTriggerInputProperty.builder()
.idleSessionTimeout(123)
.build())
.tokenBasedTrigger(TokenBasedTriggerInputProperty.builder()
.tokenCount(123)
.build())
.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 selfManagedConfigurationProperty = new SelfManagedConfigurationProperty {
HistoricalContextWindowSize = 123,
InvocationConfiguration = new InvocationConfigurationInputProperty {
PayloadDeliveryBucketName = "payloadDeliveryBucketName",
TopicArn = "topicArn"
},
TriggerConditions = new [] { 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"
selfManagedConfigurationProperty := &SelfManagedConfigurationProperty{
HistoricalContextWindowSize: jsii.Number(123),
InvocationConfiguration: &InvocationConfigurationInputProperty{
PayloadDeliveryBucketName: jsii.String("payloadDeliveryBucketName"),
TopicArn: jsii.String("topicArn"),
},
TriggerConditions: []interface{}{
&TriggerConditionInputProperty{
MessageBasedTrigger: &MessageBasedTriggerInputProperty{
MessageCount: jsii.Number(123),
},
TimeBasedTrigger: &TimeBasedTriggerInputProperty{
IdleSessionTimeout: jsii.Number(123),
},
TokenBasedTrigger: &TokenBasedTriggerInputProperty{
TokenCount: jsii.Number(123),
},
},
},
}
Properties
historicalContextWindowSizeoptionalnumberhistorical_context_window_sizeoptionalint | floathistoricalContextWindowSizeoptionalNumberHistoricalContextWindowSizeoptionaldoubleHistoricalContextWindowSizeoptional*float64 #The memory configuration for self managed.
invocationConfigurationoptionalIResolvable | CfnMemory.invocation_configurationoptionaltyping.Union[IResolvable, InvocationConfigurationInputProperty]invocationConfigurationoptionalIResolvableInvocationConfigurationoptionalIResolvableInvocationConfigurationoptionalinterface{} #The self managed configuration.
triggerConditionsoptionalIResolvable | IResolvable | CfnMemory.trigger_conditionsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TriggerConditionInputProperty]]]triggerConditionsoptionalIResolvableTriggerConditionsoptionalIResolvableTriggerConditionsoptionalinterface{} #