AWSLexActiveContext
Objective-C
@interface AWSLexActiveContext
Swift
class AWSLexActiveContext
A context is a variable that contains information about the current state of the conversation between a user and Amazon Lex. Context can be set automatically by Amazon Lex when an intent is fulfilled, or it can be set at runtime using the PutContent
, PutText
, or PutSession
operation.
Required parameters: [name, timeToLive, parameters]
-
The name of the context.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable name;
Swift
var name: String? { get set }
-
State variables for the current context. You can use these values as default values for slots in subsequent events.
Declaration
Objective-C
@property (nonatomic, strong) NSDictionary<NSString *, NSString *> *_Nullable parameters;
Swift
var parameters: [String : String]? { get set }
-
The length of time or number of turns that a context remains active.
Declaration
Objective-C
@property (nonatomic, strong) AWSLexActiveContextTimeToLive *_Nullable timeToLive;
Swift
var timeToLive: AWSLexActiveContextTimeToLive? { get set }