Skip to content

Commit dd8c9f2

Browse files
author
AWS
committed
Amazon Lex Model Building Service Update: Amazon Lex now supports AMAZON.AlphaNumeric with regular expressions.
1 parent 0785231 commit dd8c9f2

File tree

2 files changed

+70
-1
lines changed

2 files changed

+70
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Lex Model Building Service",
4+
"description": "Amazon Lex now supports AMAZON.AlphaNumeric with regular expressions."
5+
}

services/lexmodelbuilding/src/main/resources/codegen-resources/service-2.json

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,6 +1165,14 @@
11651165
"valueSelectionStrategy":{
11661166
"shape":"SlotValueSelectionStrategy",
11671167
"documentation":"<p>The strategy that Amazon Lex uses to determine the value of the slot. For more information, see <a>PutSlotType</a>.</p>"
1168+
},
1169+
"parentSlotTypeSignature":{
1170+
"shape":"CustomOrBuiltinSlotTypeName",
1171+
"documentation":"<p>The built-in slot type used a the parent of the slot type.</p>"
1172+
},
1173+
"slotTypeConfigurations":{
1174+
"shape":"SlotTypeConfigurations",
1175+
"documentation":"<p>Configuration information that extends the parent built-in slot type.</p>"
11681176
}
11691177
}
11701178
},
@@ -1374,7 +1382,7 @@
13741382
"type":"list",
13751383
"member":{"shape":"EnumerationValue"},
13761384
"max":10000,
1377-
"min":1
1385+
"min":0
13781386
},
13791387
"ExportStatus":{
13801388
"type":"string",
@@ -2256,6 +2264,14 @@
22562264
"valueSelectionStrategy":{
22572265
"shape":"SlotValueSelectionStrategy",
22582266
"documentation":"<p>The strategy that Amazon Lex uses to determine the value of the slot. For more information, see <a>PutSlotType</a>.</p>"
2267+
},
2268+
"parentSlotTypeSignature":{
2269+
"shape":"CustomOrBuiltinSlotTypeName",
2270+
"documentation":"<p>The built-in slot type used as a parent for the slot type.</p>"
2271+
},
2272+
"slotTypeConfigurations":{
2273+
"shape":"SlotTypeConfigurations",
2274+
"documentation":"<p>Configuration information that extends the parent built-in slot type.</p>"
22592275
}
22602276
}
22612277
},
@@ -3074,6 +3090,14 @@
30743090
"createVersion":{
30753091
"shape":"Boolean",
30763092
"documentation":"<p>When set to <code>true</code> a new numbered version of the slot type is created. This is the same as calling the <code>CreateSlotTypeVersion</code> operation. If you do not specify <code>createVersion</code>, the default is <code>false</code>.</p>"
3093+
},
3094+
"parentSlotTypeSignature":{
3095+
"shape":"CustomOrBuiltinSlotTypeName",
3096+
"documentation":"<p>The built-in slot type used as the parent of the slot type. When you define a parent slot type, the new slot type has all of the same configuration as the parent.</p> <p>Only <code>AMAZON.AlphaNumeric</code> is supported.</p>"
3097+
},
3098+
"slotTypeConfigurations":{
3099+
"shape":"SlotTypeConfigurations",
3100+
"documentation":"<p>Configuration information that extends the parent built-in slot type. The configuration is added to the settings for the parent slot type.</p>"
30773101
}
30783102
}
30793103
},
@@ -3115,6 +3139,14 @@
31153139
"createVersion":{
31163140
"shape":"Boolean",
31173141
"documentation":"<p> <code>True</code> if a new version of the slot type was created. If the <code>createVersion</code> field was not specified in the request, the <code>createVersion</code> field is set to false in the response.</p>"
3142+
},
3143+
"parentSlotTypeSignature":{
3144+
"shape":"CustomOrBuiltinSlotTypeName",
3145+
"documentation":"<p>The built-in slot type used as the parent of the slot type.</p>"
3146+
},
3147+
"slotTypeConfigurations":{
3148+
"shape":"SlotTypeConfigurations",
3149+
"documentation":"<p>Configuration information that extends the parent built-in slot type.</p>"
31183150
}
31193151
}
31203152
},
@@ -3127,6 +3159,11 @@
31273159
"BotChannel"
31283160
]
31293161
},
3162+
"RegexPattern":{
3163+
"type":"string",
3164+
"max":100,
3165+
"min":1
3166+
},
31303167
"ResourceArn":{
31313168
"type":"string",
31323169
"max":2048,
@@ -3248,6 +3285,22 @@
32483285
"min":1,
32493286
"pattern":"^([A-Za-z](-|_|.)?)+$"
32503287
},
3288+
"SlotTypeConfiguration":{
3289+
"type":"structure",
3290+
"members":{
3291+
"regexConfiguration":{
3292+
"shape":"SlotTypeRegexConfiguration",
3293+
"documentation":"<p>A regular expression used to validate the value of a slot.</p>"
3294+
}
3295+
},
3296+
"documentation":"<p>Provides configuration information for a slot type.</p>"
3297+
},
3298+
"SlotTypeConfigurations":{
3299+
"type":"list",
3300+
"member":{"shape":"SlotTypeConfiguration"},
3301+
"max":10,
3302+
"min":0
3303+
},
32513304
"SlotTypeMetadata":{
32523305
"type":"structure",
32533306
"members":{
@@ -3284,6 +3337,17 @@
32843337
"min":1,
32853338
"pattern":"^([A-Za-z]_?)+$"
32863339
},
3340+
"SlotTypeRegexConfiguration":{
3341+
"type":"structure",
3342+
"required":["pattern"],
3343+
"members":{
3344+
"pattern":{
3345+
"shape":"RegexPattern",
3346+
"documentation":"<p>A regular expression used to validate the value of a slot. </p> <p>Use a standard regular expression. Amazon Lex supports the following characters in the regular expression:</p> <ul> <li> <p>A-Z, a-z</p> </li> <li> <p>0-9</p> </li> <li> <p>Unicode characters (\"\\ u&lt;Unicode&gt;\")</p> </li> </ul> <p>Represent Unicode characters with four digits, for example \"\\u0041\" or \"\\u005A\".</p> <p>The following regular expression operators are not supported:</p> <ul> <li> <p>Infinite repeaters: *, +, or {x,} with no upper bound.</p> </li> <li> <p>Wild card (.)</p> </li> </ul>"
3347+
}
3348+
},
3349+
"documentation":"<p>Provides a regular expression used to validate the value of a slot.</p>"
3350+
},
32873351
"SlotUtteranceList":{
32883352
"type":"list",
32893353
"member":{"shape":"Utterance"},

0 commit comments

Comments
 (0)