Skip to content

Button

Source code in docs_src/capo_lex_runtime_service/types/button.py
class Button(TypedDict, closed=True):
    text: "capo_lex_runtime_service.types.button_text_string_with_length.ButtonTextStringWithLength"
    """<p>Text that is visible to the user on the button.</p>"""
    value: "capo_lex_runtime_service.types.button_value_string_with_length.ButtonValueStringWithLength"
    """<p>The value sent to Amazon Lex when a user chooses the button. For example, consider button text "NYC." When the user chooses the button, the value sent can be "New York City."</p>"""

text instance-attribute

Text that is visible to the user on the button.

value instance-attribute

The value sent to Amazon Lex when a user chooses the button. For example, consider button text "NYC." When the user chooses the button, the value sent can be "New York City."