libZSservicesZSamazonka-wisdomZSamazonka-wisdom
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.Wisdom.SearchContent

Description

Searches for content in a specified knowledge base. Can be used to get a specific content resource by its name.

This operation returns paginated results.

Synopsis

Creating a Request

data SearchContent Source #

See: newSearchContent smart constructor.

Constructors

SearchContent' 

Fields

Instances

Instances details
Eq SearchContent Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

Read SearchContent Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

Show SearchContent Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

Generic SearchContent Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

Associated Types

type Rep SearchContent :: Type -> Type #

NFData SearchContent Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

Methods

rnf :: SearchContent -> () #

Hashable SearchContent Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

ToJSON SearchContent Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

AWSPager SearchContent Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

AWSRequest SearchContent Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

Associated Types

type AWSResponse SearchContent #

ToHeaders SearchContent Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

ToPath SearchContent Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

ToQuery SearchContent Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

type Rep SearchContent Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

type Rep SearchContent = D1 ('MetaData "SearchContent" "Amazonka.Wisdom.SearchContent" "libZSservicesZSamazonka-wisdomZSamazonka-wisdom" 'False) (C1 ('MetaCons "SearchContent'" '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 "knowledgeBaseId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "searchExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SearchExpression))))
type AWSResponse SearchContent Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

newSearchContent Source #

Create a value of SearchContent 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:SearchContent', searchContent_nextToken - The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

$sel:maxResults:SearchContent', searchContent_maxResults - The maximum number of results to return per page.

$sel:knowledgeBaseId:SearchContent', searchContent_knowledgeBaseId - The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

$sel:searchExpression:SearchContent', searchContent_searchExpression - The search expression to filter results.

Request Lenses

searchContent_nextToken :: Lens' SearchContent (Maybe Text) Source #

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

searchContent_maxResults :: Lens' SearchContent (Maybe Natural) Source #

The maximum number of results to return per page.

searchContent_knowledgeBaseId :: Lens' SearchContent Text Source #

The the identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

searchContent_searchExpression :: Lens' SearchContent SearchExpression Source #

The search expression to filter results.

Destructuring the Response

data SearchContentResponse Source #

See: newSearchContentResponse smart constructor.

Constructors

SearchContentResponse' 

Fields

Instances

Instances details
Eq SearchContentResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

Read SearchContentResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

Show SearchContentResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

Generic SearchContentResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

Associated Types

type Rep SearchContentResponse :: Type -> Type #

NFData SearchContentResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

Methods

rnf :: SearchContentResponse -> () #

type Rep SearchContentResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

type Rep SearchContentResponse = D1 ('MetaData "SearchContentResponse" "Amazonka.Wisdom.SearchContent" "libZSservicesZSamazonka-wisdomZSamazonka-wisdom" 'False) (C1 ('MetaCons "SearchContentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "contentSummaries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [ContentSummary]))))

newSearchContentResponse Source #

Create a value of SearchContentResponse 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:SearchContent', searchContentResponse_nextToken - If there are additional results, this is the token for the next set of results.

$sel:httpStatus:SearchContentResponse', searchContentResponse_httpStatus - The response's http status code.

$sel:contentSummaries:SearchContentResponse', searchContentResponse_contentSummaries - Summary information about the content.

Response Lenses

searchContentResponse_nextToken :: Lens' SearchContentResponse (Maybe Text) Source #

If there are additional results, this is the token for the next set of results.