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

Description

Get a URL to upload content to a knowledge base. To upload content, first make a PUT request to the returned URL with your file, making sure to include the required headers. Then use CreateContent to finalize the content creation process or UpdateContent to modify an existing resource. You can only upload content to a knowledge base of type CUSTOM.

Synopsis

Creating a Request

data StartContentUpload Source #

See: newStartContentUpload smart constructor.

Constructors

StartContentUpload' 

Fields

  • contentType :: Text

    The type of content to upload.

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

Defined in Amazonka.Wisdom.StartContentUpload

Read StartContentUpload Source # 
Instance details

Defined in Amazonka.Wisdom.StartContentUpload

Show StartContentUpload Source # 
Instance details

Defined in Amazonka.Wisdom.StartContentUpload

Generic StartContentUpload Source # 
Instance details

Defined in Amazonka.Wisdom.StartContentUpload

Associated Types

type Rep StartContentUpload :: Type -> Type #

NFData StartContentUpload Source # 
Instance details

Defined in Amazonka.Wisdom.StartContentUpload

Methods

rnf :: StartContentUpload -> () #

Hashable StartContentUpload Source # 
Instance details

Defined in Amazonka.Wisdom.StartContentUpload

ToJSON StartContentUpload Source # 
Instance details

Defined in Amazonka.Wisdom.StartContentUpload

AWSRequest StartContentUpload Source # 
Instance details

Defined in Amazonka.Wisdom.StartContentUpload

Associated Types

type AWSResponse StartContentUpload #

ToHeaders StartContentUpload Source # 
Instance details

Defined in Amazonka.Wisdom.StartContentUpload

ToPath StartContentUpload Source # 
Instance details

Defined in Amazonka.Wisdom.StartContentUpload

ToQuery StartContentUpload Source # 
Instance details

Defined in Amazonka.Wisdom.StartContentUpload

type Rep StartContentUpload Source # 
Instance details

Defined in Amazonka.Wisdom.StartContentUpload

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

Defined in Amazonka.Wisdom.StartContentUpload

newStartContentUpload Source #

Create a value of StartContentUpload 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:contentType:StartContentUpload', startContentUpload_contentType - The type of content to upload.

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

Request Lenses

startContentUpload_knowledgeBaseId :: Lens' StartContentUpload 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 StartContentUploadResponse Source #

See: newStartContentUploadResponse smart constructor.

Constructors

StartContentUploadResponse' 

Fields

Instances

Instances details
Eq StartContentUploadResponse Source # 
Instance details

Defined in Amazonka.Wisdom.StartContentUpload

Show StartContentUploadResponse Source # 
Instance details

Defined in Amazonka.Wisdom.StartContentUpload

Generic StartContentUploadResponse Source # 
Instance details

Defined in Amazonka.Wisdom.StartContentUpload

Associated Types

type Rep StartContentUploadResponse :: Type -> Type #

NFData StartContentUploadResponse Source # 
Instance details

Defined in Amazonka.Wisdom.StartContentUpload

type Rep StartContentUploadResponse Source # 
Instance details

Defined in Amazonka.Wisdom.StartContentUpload

type Rep StartContentUploadResponse = D1 ('MetaData "StartContentUploadResponse" "Amazonka.Wisdom.StartContentUpload" "libZSservicesZSamazonka-wisdomZSamazonka-wisdom" 'False) (C1 ('MetaCons "StartContentUploadResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "headersToInclude") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "uploadId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)) :*: S1 ('MetaSel ('Just "urlExpiry") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX)))))

Response Lenses

startContentUploadResponse_urlExpiry :: Lens' StartContentUploadResponse UTCTime Source #

The expiration time of the URL as an epoch timestamp.