# OutputContextProperty

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

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

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.Lex;

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

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

## Properties

- `name`: string (required) — The name of the output context.

- `timeToLiveInSeconds`: number (required) — 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.

- `turnsToLive`: number (required) — 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.
