AWS SDK Version 3 for .NET
API Reference

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.

Container for the parameters to the GetSlotTypes operation. Returns slot type information as follows:

The operation requires permission for the lex:GetSlotTypes action.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.LexModelBuildingService.AmazonLexModelBuildingServiceRequest
      Amazon.LexModelBuildingService.Model.GetSlotTypesRequest

Namespace: Amazon.LexModelBuildingService.Model
Assembly: AWSSDK.LexModelBuildingService.dll
Version: 3.x.y.z

Syntax

C#
public class GetSlotTypesRequest : AmazonLexModelBuildingServiceRequest
         IAmazonWebServiceRequest

The GetSlotTypesRequest type exposes the following members

Constructors

NameDescription
Public Method GetSlotTypesRequest()

Properties

NameTypeDescription
Public Property MaxResults System.Int32

Gets and sets the property MaxResults.

The maximum number of slot types to return in the response. The default is 10.

Public Property NameContains System.String

Gets and sets the property NameContains.

Substring to match in slot type names. A slot type will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz."

Public Property NextToken System.String

Gets and sets the property NextToken.

A pagination token that fetches the next page of slot types. If the response to this API call is truncated, Amazon Lex returns a pagination token in the response. To fetch next page of slot types, specify the pagination token in the next request.

Examples

This example shows how to get a list of all of the slot types in your account.

To get a list of slot types


var client = new AmazonLexModelBuildingServiceClient();
var response = client.GetSlotTypes(new GetSlotTypesRequest 
{
    MaxResults = 10,
    NextToken = ""
});

List<SlotTypeMetadata> slotTypes = response.SlotTypes;

            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5