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.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 identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

Instances

Instances details
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

AWSRequest GetContent Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

Associated Types

type AWSResponse GetContent #

Generic GetContent Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

Associated Types

type Rep GetContent :: Type -> Type #

Read GetContent Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

Show GetContent Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

NFData GetContent Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

Methods

rnf :: GetContent -> () #

Eq GetContent Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

Hashable GetContent Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

type AWSResponse 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" "amazonka-wisdom-2.0-D8ZGZ1sJNnDDHDNbH2yubp" 'False) (C1 ('MetaCons "GetContent'" 'PrefixI 'True) (S1 ('MetaSel ('Just "contentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "knowledgeBaseId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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:

GetContent, getContent_contentId - The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.

GetContent, getContent_knowledgeBaseId - 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 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
Generic GetContentResponse Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

Associated Types

type Rep GetContentResponse :: Type -> Type #

Show GetContentResponse Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

NFData GetContentResponse Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

Methods

rnf :: GetContentResponse -> () #

Eq GetContentResponse Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

type Rep GetContentResponse Source # 
Instance details

Defined in Amazonka.Wisdom.GetContent

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