AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
This is the response object from the PutSlotType operation.
Namespace: Amazon.LexModelBuildingService.Model
Assembly: AWSSDK.LexModelBuildingService.dll
Version: 3.x.y.z
public class PutSlotTypeResponse : AmazonWebServiceResponse
The PutSlotTypeResponse type exposes the following members
Name | Description | |
---|---|---|
PutSlotTypeResponse() |
Name | Type | Description | |
---|---|---|---|
Checksum | System.String |
Gets and sets the property Checksum.
Checksum of the |
|
ContentLength | System.Int64 | Inherited from Amazon.Runtime.AmazonWebServiceResponse. | |
CreatedDate | System.DateTime |
Gets and sets the property CreatedDate. The date that the slot type was created. |
|
CreateVersion | System.Boolean |
Gets and sets the property CreateVersion.
|
|
Description | System.String |
Gets and sets the property Description. A description of the slot type. |
|
EnumerationValues | System.Collections.Generic.List<Amazon.LexModelBuildingService.Model.EnumerationValue> |
Gets and sets the property EnumerationValues.
A list of |
|
HttpStatusCode | System.Net.HttpStatusCode | Inherited from Amazon.Runtime.AmazonWebServiceResponse. | |
LastUpdatedDate | System.DateTime |
Gets and sets the property LastUpdatedDate. The date that the slot type was updated. When you create a slot type, the creation date and last update date are the same. |
|
Name | System.String |
Gets and sets the property Name. The name of the slot type. |
|
ParentSlotTypeSignature | System.String |
Gets and sets the property ParentSlotTypeSignature. The built-in slot type used as the parent of the slot type. |
|
ResponseMetadata | Amazon.Runtime.ResponseMetadata | Inherited from Amazon.Runtime.AmazonWebServiceResponse. | |
SlotTypeConfigurations | System.Collections.Generic.List<Amazon.LexModelBuildingService.Model.SlotTypeConfiguration> |
Gets and sets the property SlotTypeConfigurations. Configuration information that extends the parent built-in slot type. |
|
ValueSelectionStrategy | Amazon.LexModelBuildingService.SlotValueSelectionStrategy |
Gets and sets the property ValueSelectionStrategy. The slot resolution strategy that Amazon Lex uses to determine the value of the slot. For more information, see PutSlotType. |
|
Version | System.String |
Gets and sets the property Version.
The version of the slot type. For a new slot type, the version is always |
This example shows how to create a slot type that describes pizza sauces.
var client = new AmazonLexModelBuildingServiceClient(); var response = client.PutSlotType(new PutSlotTypeRequest { Name = "PizzaSauceType", Description = "Available pizza sauces", EnumerationValues = new List<EnumerationValue> { new EnumerationValue { Value = "red" }, new EnumerationValue { Value = "white" } } }); string version = response.Version; string name = response.Name; string checksum = response.Checksum; DateTime createdDate = response.CreatedDate; string description = response.Description; List<EnumerationValue> enumerationValues = response.EnumerationValues; DateTime lastUpdatedDate = response.LastUpdatedDate;
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5