Skip to content

Commit

Permalink
Amazon Lex now supports new APIs for viewing and editing Custom Vocab…
Browse files Browse the repository at this point in the history
…ulary in bots.
  • Loading branch information
aws-sdk-dotnet-automation committed Nov 7, 2022
1 parent 6a7ce67 commit 7d94252
Show file tree
Hide file tree
Showing 45 changed files with 6,496 additions and 149 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
"output_token": "nextToken",
"limit_key": "maxResults"
},
"ListCustomVocabularyItems": {
"input_token": "nextToken",
"output_token": "nextToken",
"limit_key": "maxResults"
},
"ListExports": {
"input_token": "nextToken",
"output_token": "nextToken",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,77 @@
<?xml version="1.0" encoding="utf-16"?>
<property-value-rules>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.BatchCreateCustomVocabularyItemRequest.BotId</property>
<min>10</min>
<max>10</max>
<pattern>^[0-9a-zA-Z]+$</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.BatchCreateCustomVocabularyItemRequest.BotVersion</property>
<min>1</min>
<max>5</max>
<pattern>^(DRAFT|[0-9]+)$</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.BatchCreateCustomVocabularyItemResponse.BotId</property>
<min>10</min>
<max>10</max>
<pattern>^[0-9a-zA-Z]+$</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.BatchCreateCustomVocabularyItemResponse.BotVersion</property>
<min>1</min>
<max>5</max>
<pattern>^(DRAFT|[0-9]+)$</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.BatchDeleteCustomVocabularyItemRequest.BotId</property>
<min>10</min>
<max>10</max>
<pattern>^[0-9a-zA-Z]+$</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.BatchDeleteCustomVocabularyItemRequest.BotVersion</property>
<min>1</min>
<max>5</max>
<pattern>^(DRAFT|[0-9]+)$</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.BatchDeleteCustomVocabularyItemResponse.BotId</property>
<min>10</min>
<max>10</max>
<pattern>^[0-9a-zA-Z]+$</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.BatchDeleteCustomVocabularyItemResponse.BotVersion</property>
<min>1</min>
<max>5</max>
<pattern>^(DRAFT|[0-9]+)$</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.BatchUpdateCustomVocabularyItemRequest.BotId</property>
<min>10</min>
<max>10</max>
<pattern>^[0-9a-zA-Z]+$</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.BatchUpdateCustomVocabularyItemRequest.BotVersion</property>
<min>1</min>
<max>5</max>
<pattern>^(DRAFT|[0-9]+)$</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.BatchUpdateCustomVocabularyItemResponse.BotId</property>
<min>10</min>
<max>10</max>
<pattern>^[0-9a-zA-Z]+$</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.BatchUpdateCustomVocabularyItemResponse.BotVersion</property>
<min>1</min>
<max>5</max>
<pattern>^(DRAFT|[0-9]+)$</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.BuildBotLocaleRequest.BotId</property>
<min>10</min>
Expand Down Expand Up @@ -1285,6 +1357,35 @@
<min>20</min>
<max>20</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.ListCustomVocabularyItemsRequest.BotId</property>
<min>10</min>
<max>10</max>
<pattern>^[0-9a-zA-Z]+$</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.ListCustomVocabularyItemsRequest.BotVersion</property>
<min>1</min>
<max>5</max>
<pattern>^(DRAFT|[0-9]+)$</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.ListCustomVocabularyItemsRequest.MaxResults</property>
<min>1</min>
<max>1000</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.ListCustomVocabularyItemsResponse.BotId</property>
<min>10</min>
<max>10</max>
<pattern>^[0-9a-zA-Z]+$</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.ListCustomVocabularyItemsResponse.BotVersion</property>
<min>1</min>
<max>5</max>
<pattern>^(DRAFT|[0-9]+)$</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.ListExportsRequest.BotId</property>
<min>10</min>
Expand Down Expand Up @@ -2290,6 +2391,11 @@
<min>1</min>
<max>1000</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.CustomVocabularyEntryId.ItemId</property>
<min>1</min>
<max>32</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.CustomVocabularyExportSpecification.BotId</property>
<min>10</min>
Expand All @@ -2314,6 +2420,26 @@
<max>5</max>
<pattern>^DRAFT$</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.CustomVocabularyItem.DisplayAs</property>
<min>1</min>
<max>100</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.CustomVocabularyItem.ItemId</property>
<min>1</min>
<max>32</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.CustomVocabularyItem.Phrase</property>
<min>1</min>
<max>100</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.CustomVocabularyItem.Weight</property>
<min>1</min>
<max>3</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.DialogAction.SlotToElicit</property>
<min>1</min>
Expand Down Expand Up @@ -2371,6 +2497,11 @@
<max>10</max>
<pattern>^[0-9a-zA-Z]+$</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.FailedCustomVocabularyItem.ItemId</property>
<min>1</min>
<max>32</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.FulfillmentStartResponseSpecification.DelayInSeconds</property>
<min>1</min>
Expand Down Expand Up @@ -2487,6 +2618,21 @@
<max>2048</max>
<pattern>arn:aws:lambda:[a-z]+-[a-z]+-[0-9]:[0-9]{12}:function:[a-zA-Z0-9-_]+(/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})?(:[a-zA-Z0-9-_]+)?</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.NewCustomVocabularyItem.DisplayAs</property>
<min>1</min>
<max>100</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.NewCustomVocabularyItem.Phrase</property>
<min>1</min>
<max>100</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.NewCustomVocabularyItem.Weight</property>
<min>1</min>
<max>3</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.LexModelsV2.Model.OutputContext.Name</property>
<min>1</min>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/

/*
* Do not modify this file. This file is generated from the models.lex.v2-2020-08-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;

using Amazon.Runtime;
using Amazon.Runtime.Internal;

namespace Amazon.LexModelsV2.Model
{
/// <summary>
/// Container for the parameters to the BatchCreateCustomVocabularyItem operation.
/// Batch create custom vocabulary item for the specified locale in the specified bot.
/// </summary>
public partial class BatchCreateCustomVocabularyItemRequest : AmazonLexModelsV2Request
{
private string _botId;
private string _botVersion;
private List<NewCustomVocabularyItem> _customVocabularyItemList = new List<NewCustomVocabularyItem>();
private string _localeId;

/// <summary>
/// Gets and sets the property BotId.
/// <para>
/// The unique identifier of the bot to batch create the custom vocabulary item for.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=10, Max=10)]
public string BotId
{
get { return this._botId; }
set { this._botId = value; }
}

// Check to see if BotId property is set
internal bool IsSetBotId()
{
return this._botId != null;
}

/// <summary>
/// Gets and sets the property BotVersion.
/// <para>
/// The bot version of the bot to batch create the custom vocabulary item for.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=5)]
public string BotVersion
{
get { return this._botVersion; }
set { this._botVersion = value; }
}

// Check to see if BotVersion property is set
internal bool IsSetBotVersion()
{
return this._botVersion != null;
}

/// <summary>
/// Gets and sets the property CustomVocabularyItemList.
/// <para>
/// The custom vocabulary item list of the bot to batch create the custom vocabulary item
/// for.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=10)]
public List<NewCustomVocabularyItem> CustomVocabularyItemList
{
get { return this._customVocabularyItemList; }
set { this._customVocabularyItemList = value; }
}

// Check to see if CustomVocabularyItemList property is set
internal bool IsSetCustomVocabularyItemList()
{
return this._customVocabularyItemList != null && this._customVocabularyItemList.Count > 0;
}

/// <summary>
/// Gets and sets the property LocaleId.
/// <para>
/// The unique locale identifier of the bot to batch create the custom vocabulary item
/// for.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string LocaleId
{
get { return this._localeId; }
set { this._localeId = value; }
}

// Check to see if LocaleId property is set
internal bool IsSetLocaleId()
{
return this._localeId != null;
}

}
}
Loading

0 comments on commit 7d94252

Please sign in to comment.