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

Description

Retrieves content, including a pre-signed URL to download the content.

Synopsis

Creating a Request

data GetContent Source #

See: newGetContent smart constructor.

Constructors

GetContent' 

Fields

  • contentId :: Text

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

  • 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 GetContent Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

Read GetContent Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

Show GetContent Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

Generic GetContent Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

Associated Types

type Rep GetContent :: Type -> Type #

NFData GetContent Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

Methods

rnf :: GetContent -> () #

Hashable GetContent Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

AWSRequest GetContent Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

Associated Types

type AWSResponse GetContent #

ToHeaders GetContent Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

Methods

toHeaders :: GetContent -> [Header] #

ToPath GetContent Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

ToQuery GetContent Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

type Rep GetContent Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

type Rep GetContent = D1 ('MetaData "GetContent" "Amazonka.Wisdom.GetContent" "libZSservicesZSamazonka-wisdomZSamazonka-wisdom" 'False) (C1 ('MetaCons "GetContent'" 'PrefixI 'True) (S1 ('MetaSel ('Just "contentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "knowledgeBaseId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetContent Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

newGetContent Source #

Create a value of GetContent 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:contentId:GetContent', getContent_contentId - The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.

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

Request Lenses

getContent_contentId :: Lens' GetContent Text Source #

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

getContent_knowledgeBaseId :: Lens' GetContent 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 GetContentResponse Source #

See: newGetContentResponse smart constructor.

Constructors

GetContentResponse' 

Fields

Instances

Instances details
Eq GetContentResponse Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

Show GetContentResponse Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

Generic GetContentResponse Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

Associated Types

type Rep GetContentResponse :: Type -> Type #

NFData GetContentResponse Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

Methods

rnf :: GetContentResponse -> () #

type Rep GetContentResponse Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

type Rep GetContentResponse = D1 ('MetaData "GetContentResponse" "Amazonka.Wisdom.GetContent" "libZSservicesZSamazonka-wisdomZSamazonka-wisdom" 'False) (C1 ('MetaCons "GetContentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ContentData)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetContentResponse Source #

Create a value of GetContentResponse 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:content:GetContentResponse', getContentResponse_content - The content.

$sel:httpStatus:GetContentResponse', getContentResponse_httpStatus - The response's http status code.

Response Lenses