aws lexv2-models create-slot

Creates a slot in an intent. A slot is a variable needed to fulfill an intent. For example, an OrderPizza intent might need slots for size, crust, and number of pizzas. For each slot, you define one or more utterances that Amazon Lex uses to elicit a response from the user


--slot-name <string>The name of the slot. Slot names must be unique within the bot that contains the slot
--description <string>A description of the slot. Use this to help identify the slot in lists
--slot-type-id <string>The unique identifier for the slot type associated with this slot. The slot type determines the values that can be entered into the slot
--value-elicitation-setting <structure>Specifies prompts that Amazon Lex sends to the user to elicit a response that provides the value for the slot
--obfuscation-setting <structure>Determines how slot values are used in Amazon CloudWatch logs. If the value of the obfuscationSetting parameter is DefaultObfuscation, slot values are obfuscated in the log output. If the value is None, the actual value is present in the log output. The default is to obfuscate values in the CloudWatch logs
--bot-id <string>The identifier of the bot associated with the slot
--bot-version <string>The version of the bot associated with the slot
--locale-id <string>The identifier of the language and locale that the slot will be used in. The string must match one of the supported locales. All of the bots, intents, slot types used by the slot must have the same locale. For more information, see
--intent-id <string>The identifier of the intent that contains the slot
--cli-input-json <string>Performs service operation based on the JSON string provided. The JSON string follows the format provided by ``--generate-cli-skeleton``. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally
--generate-cli-skeleton <string>Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value ``input``, prints a sample input JSON that can be used as an argument for ``--cli-input-json``. If provided with the value ``output``, it validates the command inputs and returns a sample output JSON for that command