libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.LexModels.GetSlotTypes

Description

Returns slot type information as follows:

  • If you specify the nameContains field, returns the $LATEST version of all slot types that contain the specified string.
  • If you don't specify the nameContains field, returns information about the $LATEST version of all slot types.

The operation requires permission for the lex:GetSlotTypes action.

This operation returns paginated results.

Synopsis

Creating a Request

data GetSlotTypes Source #

See: newGetSlotTypes smart constructor.

Constructors

GetSlotTypes' 

Fields

  • nameContains :: Maybe Text

    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."

  • nextToken :: Maybe Text

    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.

  • maxResults :: Maybe Natural

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

Instances

Instances details
Eq GetSlotTypes Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypes

Read GetSlotTypes Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypes

Show GetSlotTypes Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypes

Generic GetSlotTypes Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypes

Associated Types

type Rep GetSlotTypes :: Type -> Type #

NFData GetSlotTypes Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypes

Methods

rnf :: GetSlotTypes -> () #

Hashable GetSlotTypes Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypes

AWSPager GetSlotTypes Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypes

AWSRequest GetSlotTypes Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypes

Associated Types

type AWSResponse GetSlotTypes #

ToHeaders GetSlotTypes Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypes

ToPath GetSlotTypes Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypes

ToQuery GetSlotTypes Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypes

type Rep GetSlotTypes Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypes

type Rep GetSlotTypes = D1 ('MetaData "GetSlotTypes" "Amazonka.LexModels.GetSlotTypes" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" 'False) (C1 ('MetaCons "GetSlotTypes'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nameContains") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))
type AWSResponse GetSlotTypes Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypes

newGetSlotTypes :: GetSlotTypes Source #

Create a value of GetSlotTypes with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:nameContains:GetSlotTypes', getSlotTypes_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."

$sel:nextToken:GetSlotTypes', getSlotTypes_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.

$sel:maxResults:GetSlotTypes', getSlotTypes_maxResults - The maximum number of slot types to return in the response. The default is 10.

Request Lenses

getSlotTypes_nameContains :: Lens' GetSlotTypes (Maybe Text) Source #

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."

getSlotTypes_nextToken :: Lens' GetSlotTypes (Maybe Text) Source #

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.

getSlotTypes_maxResults :: Lens' GetSlotTypes (Maybe Natural) Source #

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

Destructuring the Response

data GetSlotTypesResponse Source #

See: newGetSlotTypesResponse smart constructor.

Constructors

GetSlotTypesResponse' 

Fields

  • nextToken :: Maybe Text

    If the response is truncated, it includes a pagination token that you can specify in your next request to fetch the next page of slot types.

  • slotTypes :: Maybe [SlotTypeMetadata]

    An array of objects, one for each slot type, that provides information such as the name of the slot type, the version, and a description.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GetSlotTypesResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypes

Read GetSlotTypesResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypes

Show GetSlotTypesResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypes

Generic GetSlotTypesResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypes

Associated Types

type Rep GetSlotTypesResponse :: Type -> Type #

NFData GetSlotTypesResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypes

Methods

rnf :: GetSlotTypesResponse -> () #

type Rep GetSlotTypesResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypes

type Rep GetSlotTypesResponse = D1 ('MetaData "GetSlotTypesResponse" "Amazonka.LexModels.GetSlotTypes" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" 'False) (C1 ('MetaCons "GetSlotTypesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "slotTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SlotTypeMetadata])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetSlotTypesResponse Source #

Create a value of GetSlotTypesResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:nextToken:GetSlotTypes', getSlotTypesResponse_nextToken - If the response is truncated, it includes a pagination token that you can specify in your next request to fetch the next page of slot types.

$sel:slotTypes:GetSlotTypesResponse', getSlotTypesResponse_slotTypes - An array of objects, one for each slot type, that provides information such as the name of the slot type, the version, and a description.

$sel:httpStatus:GetSlotTypesResponse', getSlotTypesResponse_httpStatus - The response's http status code.

Response Lenses

getSlotTypesResponse_nextToken :: Lens' GetSlotTypesResponse (Maybe Text) Source #

If the response is truncated, it includes a pagination token that you can specify in your next request to fetch the next page of slot types.

getSlotTypesResponse_slotTypes :: Lens' GetSlotTypesResponse (Maybe [SlotTypeMetadata]) Source #

An array of objects, one for each slot type, that provides information such as the name of the slot type, the version, and a description.