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

Description

Lists the content.

This operation returns paginated results.

Synopsis

Creating a Request

data ListContents Source #

See: newListContents smart constructor.

Constructors

ListContents' 

Fields

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

  • maxResults :: Maybe Natural

    The maximum number of results to return per page.

  • knowledgeBaseId :: Text

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

Instances

Instances details
Eq ListContents Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

Read ListContents Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

Show ListContents Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

Generic ListContents Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

Associated Types

type Rep ListContents :: Type -> Type #

NFData ListContents Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

Methods

rnf :: ListContents -> () #

Hashable 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 #

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

type Rep ListContents Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

type Rep ListContents = D1 ('MetaData "ListContents" "Amazonka.Wisdom.ListContents" "libZSservicesZSamazonka-wisdomZSamazonka-wisdom" 'False) (C1 ('MetaCons "ListContents'" '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))))
type AWSResponse ListContents Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

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:nextToken: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.

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

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

Request Lenses

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

The maximum number of results to return per page.

listContents_knowledgeBaseId :: Lens' ListContents Text Source #

The 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
Eq ListContentsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

Read ListContentsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

Show ListContentsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

Generic ListContentsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

Associated Types

type Rep ListContentsResponse :: Type -> Type #

NFData ListContentsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

Methods

rnf :: ListContentsResponse -> () #

type Rep ListContentsResponse Source # 
Instance details

Defined in Amazonka.Wisdom.ListContents

type Rep ListContentsResponse = D1 ('MetaData "ListContentsResponse" "Amazonka.Wisdom.ListContents" "libZSservicesZSamazonka-wisdomZSamazonka-wisdom" '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:

$sel:nextToken: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.