Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Step 1: Publish the Slot Type (AWS CLI)

Focus mode
Step 1: Publish the Slot Type (AWS CLI) - Amazon Lex V1

End of support notice: On September 15, 2025, AWS will discontinue support for Amazon Lex V1. After September 15, 2025, you will no longer be able to access the Amazon Lex V1 console or Amazon Lex V1 resources. If you are using Amazon Lex V2, refer to the Amazon Lex V2 guide instead. .

End of support notice: On September 15, 2025, AWS will discontinue support for Amazon Lex V1. After September 15, 2025, you will no longer be able to access the Amazon Lex V1 console or Amazon Lex V1 resources. If you are using Amazon Lex V2, refer to the Amazon Lex V2 guide instead. .

Before you can publish a version of any intents that use a slot type, you must publish a version of that slot type. In this case, you publish the FlowerTypes slot type.

Note

The following AWS CLI example is formatted for Unix, Linux, and macOS. For Windows, change "\$LATEST" to $LATEST and replace the backslash (\) continuation character at the end of each line with a caret (^).

To publish a slot type (AWS CLI)
  1. In the AWS CLI, get the latest version of the slot type:

    aws lex-models get-slot-type \ --region region \ --name FlowerTypes \ --slot-type-version "\$LATEST"

    The response from Amazon Lex follows. Record the checksum for the current revision of the $LATEST version.

    {
        "enumerationValues": [
            {
                "value": "tulips"
            }, 
            {
                "value": "lilies"
            }, 
            {
                "value": "roses"
            }
        ], 
        "name": "FlowerTypes", 
        "checksum": "checksum", 
        "version": "$LATEST", 
        "lastUpdatedDate": timestamp, 
        "createdDate": timestamp, 
        "description": "Types of flowers to pick up"
    }
  2. Publish a version of the slot type. Use the checksum that you recorded in the previous step.

    aws lex-models create-slot-type-version \ --region region \ --name FlowerTypes \ --checksum "checksum"

    The response from Amazon Lex follows. Record the version number for the next step.

    {
        "version": "1", 
        "enumerationValues": [
            {
                "value": "tulips"
            }, 
            {
                "value": "lilies"
            }, 
            {
                "value": "roses"
            }
        ], 
        "name": "FlowerTypes", 
        "createdDate": timestamp, 
        "lastUpdatedDate": timestamp, 
        "description": "Types of flowers to pick up"
    }

Next Step

Step 2: Publish the Intent (AWS CLI)

On this page

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.