Skip to content
v2.277.0

OutputContextProperty Struct ​

Describes a session context that is activated when an intent is fulfilled.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lex as lex } from 'aws-cdk-lib';
const outputContextProperty: lex.CfnBot.OutputContextProperty = {
  name: 'name',
  timeToLiveInSeconds: 123,
  turnsToLive: 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_lex as lex

output_context_property = lex.CfnBot.OutputContextProperty(
    name="name",
    time_to_live_in_seconds=123,
    turns_to_live=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.lex.*;

OutputContextProperty outputContextProperty = OutputContextProperty.builder()
        .name("name")
        .timeToLiveInSeconds(123)
        .turnsToLive(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.Lex;

var outputContextProperty = new OutputContextProperty {
    Name = "name",
    TimeToLiveInSeconds = 123,
    TurnsToLive = 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"

outputContextProperty := &OutputContextProperty{
	Name: jsii.String("name"),
	TimeToLiveInSeconds: jsii.Number(123),
	TurnsToLive: jsii.Number(123),
}

Properties ​

namestringnamestrnameStringNamestringName*stringrequired#
The name of the output context.
timeToLiveInSecondsnumbertime_to_live_in_secondsint | floattimeToLiveInSecondsNumberTimeToLiveInSecondsdoubleTimeToLiveInSeconds*float64required#
The amount of time, in seconds, that the output context should remain active.

The time is figured from the first time the context is sent to the user.

turnsToLivenumberturns_to_liveint | floatturnsToLiveNumberTurnsToLivedoubleTurnsToLive*float64required#
The number of conversation turns that the output context should remain active.

The number of turns is counted from the first time that the context is sent to the user.