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

Description

Gets information about all versions of a slot type.

The GetSlotTypeVersions operation returns a SlotTypeMetadata object for each version of a slot type. For example, if a slot type has three numbered versions, the GetSlotTypeVersions operation returns four SlotTypeMetadata objects in the response, one for each numbered version and one for the $LATEST version.

The GetSlotTypeVersions operation always returns at least one version, the $LATEST version.

This operation requires permissions for the lex:GetSlotTypeVersions action.

This operation returns paginated results.

Synopsis

Creating a Request

data GetSlotTypeVersions Source #

See: newGetSlotTypeVersions smart constructor.

Constructors

GetSlotTypeVersions' 

Fields

  • nextToken :: Maybe Text

    A pagination token for fetching the next page of slot type versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.

  • maxResults :: Maybe Natural

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

  • name :: Text

    The name of the slot type for which versions should be returned.

Instances

Instances details
Eq GetSlotTypeVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypeVersions

Read GetSlotTypeVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypeVersions

Show GetSlotTypeVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypeVersions

Generic GetSlotTypeVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypeVersions

Associated Types

type Rep GetSlotTypeVersions :: Type -> Type #

NFData GetSlotTypeVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypeVersions

Methods

rnf :: GetSlotTypeVersions -> () #

Hashable GetSlotTypeVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypeVersions

AWSPager GetSlotTypeVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypeVersions

AWSRequest GetSlotTypeVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypeVersions

Associated Types

type AWSResponse GetSlotTypeVersions #

ToHeaders GetSlotTypeVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypeVersions

ToPath GetSlotTypeVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypeVersions

ToQuery GetSlotTypeVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypeVersions

type Rep GetSlotTypeVersions Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypeVersions

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

Defined in Amazonka.LexModels.GetSlotTypeVersions

newGetSlotTypeVersions Source #

Create a value of GetSlotTypeVersions 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:GetSlotTypeVersions', getSlotTypeVersions_nextToken - A pagination token for fetching the next page of slot type versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.

$sel:maxResults:GetSlotTypeVersions', getSlotTypeVersions_maxResults - The maximum number of slot type versions to return in the response. The default is 10.

$sel:name:GetSlotTypeVersions', getSlotTypeVersions_name - The name of the slot type for which versions should be returned.

Request Lenses

getSlotTypeVersions_nextToken :: Lens' GetSlotTypeVersions (Maybe Text) Source #

A pagination token for fetching the next page of slot type versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.

getSlotTypeVersions_maxResults :: Lens' GetSlotTypeVersions (Maybe Natural) Source #

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

getSlotTypeVersions_name :: Lens' GetSlotTypeVersions Text Source #

The name of the slot type for which versions should be returned.

Destructuring the Response

data GetSlotTypeVersionsResponse Source #

See: newGetSlotTypeVersionsResponse smart constructor.

Constructors

GetSlotTypeVersionsResponse' 

Fields

  • nextToken :: Maybe Text

    A pagination token for fetching the next page of slot type versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.

  • slotTypes :: Maybe [SlotTypeMetadata]

    An array of SlotTypeMetadata objects, one for each numbered version of the slot type plus one for the $LATEST version.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GetSlotTypeVersionsResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypeVersions

Read GetSlotTypeVersionsResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypeVersions

Show GetSlotTypeVersionsResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypeVersions

Generic GetSlotTypeVersionsResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypeVersions

Associated Types

type Rep GetSlotTypeVersionsResponse :: Type -> Type #

NFData GetSlotTypeVersionsResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypeVersions

type Rep GetSlotTypeVersionsResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetSlotTypeVersions

type Rep GetSlotTypeVersionsResponse = D1 ('MetaData "GetSlotTypeVersionsResponse" "Amazonka.LexModels.GetSlotTypeVersions" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" 'False) (C1 ('MetaCons "GetSlotTypeVersionsResponse'" '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))))

newGetSlotTypeVersionsResponse Source #

Create a value of GetSlotTypeVersionsResponse 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:GetSlotTypeVersions', getSlotTypeVersionsResponse_nextToken - A pagination token for fetching the next page of slot type versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.

$sel:slotTypes:GetSlotTypeVersionsResponse', getSlotTypeVersionsResponse_slotTypes - An array of SlotTypeMetadata objects, one for each numbered version of the slot type plus one for the $LATEST version.

$sel:httpStatus:GetSlotTypeVersionsResponse', getSlotTypeVersionsResponse_httpStatus - The response's http status code.

Response Lenses

getSlotTypeVersionsResponse_nextToken :: Lens' GetSlotTypeVersionsResponse (Maybe Text) Source #

A pagination token for fetching the next page of slot type versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.

getSlotTypeVersionsResponse_slotTypes :: Lens' GetSlotTypeVersionsResponse (Maybe [SlotTypeMetadata]) Source #

An array of SlotTypeMetadata objects, one for each numbered version of the slot type plus one for the $LATEST version.