Step 2: Publish the Intent (AWS CLI)

Before you can publish an intent, you have to publish all of the slot types
referred to by the intent. The slot types must be numbered versions, not the
$LATEST version.

First, update the OrderFlowers intent to use the version of the
FlowerTypes slot type that you published in the previous step. Then
publish a new version of the OrderFlowers intent.

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 version of an intent (AWS CLI)

In the AWS CLI, get the $LATEST version of the
OrderFlowers intent and save it to a file:

In a text editor, open the OrderFlowers_V4.json
file. Delete the createdDate, lastUpdatedDate, and
version fields. Find the FlowerTypes slot type
and change the version to the version number that you recorded in the
previous step. The following fragment of the
OrderFlowers_V4.json file shows the location of
the change: