Skip to content
v2.274.0

CfnContentProps Struct ​

Properties for defining a CfnContent.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_wisdom as wisdom } from 'aws-cdk-lib';
const cfnContentProps: wisdom.CfnContentProps = {
  knowledgeBaseId: 'knowledgeBaseId',
  name: 'name',

  // the properties below are optional
  metadata: {
    metadataKey: 'metadata',
  },
  overrideLinkOutUri: 'overrideLinkOutUri',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  title: 'title',
  uploadId: 'uploadId',
};

Properties ​

knowledgeBaseIdstringknowledge_base_idstrknowledgeBaseIdStringKnowledgeBaseIdstringKnowledgeBaseId*stringrequired#
The identifier of the knowledge base.
metadataIResolvable | { [key: string]: string }metadatatyping.Union[IResolvable, typing.Mapping[str, str]]metadataIResolvableMetadataIResolvableMetadatainterface{}#
A key/value map to store attributes without affecting tagging or recommendations.
namestringnamestrnameStringNamestringName*stringrequired#
The name of the content.
overrideLinkOutUristringoverride_link_out_uristroverrideLinkOutUriStringOverrideLinkOutUristringOverrideLinkOutUri*string#
The URI you want to use for the article.
tagsCfnTag[]tagstyping.List[CfnTag]tagsList<CfnTag>TagsCfnTag[]Tags*[]CfnTag#
The tags used to organize, track, or control access for this resource.
titlestringtitlestrtitleStringTitlestringTitle*string#
The title of the content.
uploadIdstringupload_idstruploadIdStringUploadIdstringUploadId*string#
A pointer to the uploaded asset.

This value is returned by StartContentUpload.