amazonka-wisdom-2.0: Amazon Connect Wisdom Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON SearchContent Source # 
Instance details

Defined in Amazonka.Wisdom.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

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 #

Generic SearchContent Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

Associated Types

type Rep SearchContent :: Type -> Type #

Read SearchContent Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

Show SearchContent Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

NFData SearchContent Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

Methods

rnf :: SearchContent -> () #

Eq SearchContent Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

Hashable SearchContent Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

type AWSResponse 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" "amazonka-wisdom-2.0-D8ZGZ1sJNnDDHDNbH2yubp" 'False) (C1 ('MetaCons "SearchContent'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "knowledgeBaseId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "searchExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SearchExpression))))

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:maxResults:SearchContent', searchContent_maxResults - The maximum number of results to return per page.

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.

SearchContent, searchContent_knowledgeBaseId - 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_maxResults :: Lens' SearchContent (Maybe Natural) Source #

The maximum number of results to return per page.

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_knowledgeBaseId :: Lens' SearchContent Text Source #

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
Generic SearchContentResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

Associated Types

type Rep SearchContentResponse :: Type -> Type #

Read SearchContentResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

Show SearchContentResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

NFData SearchContentResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

Methods

rnf :: SearchContentResponse -> () #

Eq SearchContentResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

type Rep SearchContentResponse Source # 
Instance details

Defined in Amazonka.Wisdom.SearchContent

type Rep SearchContentResponse = D1 ('MetaData "SearchContentResponse" "Amazonka.Wisdom.SearchContent" "amazonka-wisdom-2.0-D8ZGZ1sJNnDDHDNbH2yubp" '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:

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.