Skip to content

Button

Source code in docs_src/capo_lex_models_v2/types/button.py
class Button(TypedDict, closed=True):
    text: "capo_lex_models_v2.types.button_text.ButtonText"
    """<p>The text that appears on the button. Use this to tell the user what value is returned when they choose this button.</p>"""
    value: "capo_lex_models_v2.types.button_value.ButtonValue"
    """<p>The value returned to Amazon Lex when the user chooses this button. This must be one of the slot values configured for the slot.</p>"""

text instance-attribute

text: ButtonText

The text that appears on the button. Use this to tell the user what value is returned when they choose this button.

value instance-attribute

value: ButtonValue

The value returned to Amazon Lex when the user chooses this button. This must be one of the slot values configured for the slot.