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

Description

Returns intent information as follows:

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

The operation requires permission for the lex:GetIntents action.

This operation returns paginated results.

Synopsis

Creating a Request

data GetIntents Source #

See: newGetIntents smart constructor.

Constructors

GetIntents' 

Fields

  • nameContains :: Maybe Text

    Substring to match in intent names. An intent 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 intents. If the response to this API call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of intents, specify the pagination token in the next request.

  • maxResults :: Maybe Natural

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

Instances

Instances details
Eq GetIntents Source # 
Instance details

Defined in Amazonka.LexModels.GetIntents

Read GetIntents Source # 
Instance details

Defined in Amazonka.LexModels.GetIntents

Show GetIntents Source # 
Instance details

Defined in Amazonka.LexModels.GetIntents

Generic GetIntents Source # 
Instance details

Defined in Amazonka.LexModels.GetIntents

Associated Types

type Rep GetIntents :: Type -> Type #

NFData GetIntents Source # 
Instance details

Defined in Amazonka.LexModels.GetIntents

Methods

rnf :: GetIntents -> () #

Hashable GetIntents Source # 
Instance details

Defined in Amazonka.LexModels.GetIntents

AWSPager GetIntents Source # 
Instance details

Defined in Amazonka.LexModels.GetIntents

AWSRequest GetIntents Source # 
Instance details

Defined in Amazonka.LexModels.GetIntents

Associated Types

type AWSResponse GetIntents #

ToHeaders GetIntents Source # 
Instance details

Defined in Amazonka.LexModels.GetIntents

Methods

toHeaders :: GetIntents -> [Header] #

ToPath GetIntents Source # 
Instance details

Defined in Amazonka.LexModels.GetIntents

ToQuery GetIntents Source # 
Instance details

Defined in Amazonka.LexModels.GetIntents

type Rep GetIntents Source # 
Instance details

Defined in Amazonka.LexModels.GetIntents

type Rep GetIntents = D1 ('MetaData "GetIntents" "Amazonka.LexModels.GetIntents" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" 'False) (C1 ('MetaCons "GetIntents'" '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 GetIntents Source # 
Instance details

Defined in Amazonka.LexModels.GetIntents

newGetIntents :: GetIntents Source #

Create a value of GetIntents 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:GetIntents', getIntents_nameContains - Substring to match in intent names. An intent will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz."

$sel:nextToken:GetIntents', getIntents_nextToken - A pagination token that fetches the next page of intents. If the response to this API call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of intents, specify the pagination token in the next request.

$sel:maxResults:GetIntents', getIntents_maxResults - The maximum number of intents to return in the response. The default is 10.

Request Lenses

getIntents_nameContains :: Lens' GetIntents (Maybe Text) Source #

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

getIntents_nextToken :: Lens' GetIntents (Maybe Text) Source #

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

getIntents_maxResults :: Lens' GetIntents (Maybe Natural) Source #

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

Destructuring the Response

data GetIntentsResponse Source #

See: newGetIntentsResponse smart constructor.

Constructors

GetIntentsResponse' 

Fields

  • intents :: Maybe [IntentMetadata]

    An array of Intent objects. For more information, see PutBot.

  • nextToken :: Maybe Text

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GetIntentsResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntents

Read GetIntentsResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntents

Show GetIntentsResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntents

Generic GetIntentsResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntents

Associated Types

type Rep GetIntentsResponse :: Type -> Type #

NFData GetIntentsResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntents

Methods

rnf :: GetIntentsResponse -> () #

type Rep GetIntentsResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetIntents

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

newGetIntentsResponse Source #

Create a value of GetIntentsResponse 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:intents:GetIntentsResponse', getIntentsResponse_intents - An array of Intent objects. For more information, see PutBot.

$sel:nextToken:GetIntents', getIntentsResponse_nextToken - If the response is truncated, the response includes a pagination token that you can specify in your next request to fetch the next page of intents.

$sel:httpStatus:GetIntentsResponse', getIntentsResponse_httpStatus - The response's http status code.

Response Lenses

getIntentsResponse_intents :: Lens' GetIntentsResponse (Maybe [IntentMetadata]) Source #

An array of Intent objects. For more information, see PutBot.

getIntentsResponse_nextToken :: Lens' GetIntentsResponse (Maybe Text) Source #

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