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

Description

Lists the content.

This operation returns paginated results.

Synopsis

Creating a Request

data ListContents Source #

See: newListContents smart constructor.

Constructors

ListContents' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of results to return per page.

  • nextToken :: Maybe Text

    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.

  • knowledgeBaseId :: Text

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

Instances

Instances details
ToHeaders ListContents Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

ToPath ListContents Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

ToQuery ListContents Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

AWSPager ListContents Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

AWSRequest ListContents Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

Associated Types

type AWSResponse ListContents #

Generic ListContents Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

Associated Types

type Rep ListContents :: Type -> Type #

Read ListContents Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

Show ListContents Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

NFData ListContents Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

Methods

rnf :: ListContents -> () #

Eq ListContents Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

Hashable ListContents Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

type AWSResponse ListContents Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

type Rep ListContents Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

type Rep ListContents = D1 ('MetaData "ListContents" "Amazonka.Wisdom.ListContents" "amazonka-wisdom-2.0-D8ZGZ1sJNnDDHDNbH2yubp" 'False) (C1 ('MetaCons "ListContents'" '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))))

newListContents Source #

Create a value of ListContents 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:ListContents', listContents_maxResults - The maximum number of results to return per page.

ListContents, listContents_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.

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

Request Lenses

listContents_maxResults :: Lens' ListContents (Maybe Natural) Source #

The maximum number of results to return per page.

listContents_nextToken :: Lens' ListContents (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.

listContents_knowledgeBaseId :: Lens' ListContents Text Source #

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

Destructuring the Response

data ListContentsResponse Source #

See: newListContentsResponse smart constructor.

Constructors

ListContentsResponse' 

Fields

Instances

Instances details
Generic ListContentsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

Associated Types

type Rep ListContentsResponse :: Type -> Type #

Read ListContentsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

Show ListContentsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

NFData ListContentsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

Methods

rnf :: ListContentsResponse -> () #

Eq ListContentsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

type Rep ListContentsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

type Rep ListContentsResponse = D1 ('MetaData "ListContentsResponse" "Amazonka.Wisdom.ListContents" "amazonka-wisdom-2.0-D8ZGZ1sJNnDDHDNbH2yubp" 'False) (C1 ('MetaCons "ListContentsResponse'" '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]))))

newListContentsResponse Source #

Create a value of ListContentsResponse 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:

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

$sel:httpStatus:ListContentsResponse', listContentsResponse_httpStatus - The response's http status code.

$sel:contentSummaries:ListContentsResponse', listContentsResponse_contentSummaries - Information about the content.

Response Lenses

listContentsResponse_nextToken :: Lens' ListContentsResponse (Maybe Text) Source #

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