# CfnContentProps

Properties for defining a `CfnContent`.

Used as props by: [CfnContent](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_wisdom.CfnContent.html)

- Source: Generated at build time
- Type last changed: v2.273.0 · 8 Oct 2026

## Example

TypeScript:

```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',
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_wisdom as wisdom

cfn_content_props = wisdom.CfnContentProps(
    knowledge_base_id="knowledgeBaseId",
    name="name",

    # the properties below are optional
    metadata={
        "metadata_key": "metadata"
    },
    override_link_out_uri="overrideLinkOutUri",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    title="title",
    upload_id="uploadId"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.wisdom.*;

CfnContentProps cfnContentProps = CfnContentProps.builder()
        .knowledgeBaseId("knowledgeBaseId")
        .name("name")

        // the properties below are optional
        .metadata(Map.of(
                "metadataKey", "metadata"))
        .overrideLinkOutUri("overrideLinkOutUri")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .title("title")
        .uploadId("uploadId")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Wisdom;

var cfnContentProps = new CfnContentProps {
    KnowledgeBaseId = "knowledgeBaseId",
    Name = "name",

    // the properties below are optional
    Metadata = new Dictionary<string, string> {
        { "metadataKey", "metadata" }
    },
    OverrideLinkOutUri = "overrideLinkOutUri",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    Title = "title",
    UploadId = "uploadId"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnContentProps := &CfnContentProps{
	KnowledgeBaseId: jsii.String("knowledgeBaseId"),
	Name: jsii.String("name"),

	// the properties below are optional
	Metadata: map[string]*string{
		"metadataKey": jsii.String("metadata"),
	},
	OverrideLinkOutUri: jsii.String("overrideLinkOutUri"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	Title: jsii.String("title"),
	UploadId: jsii.String("uploadId"),
}
```

## Properties

- `knowledgeBaseId`: string (required) — The identifier of the knowledge base.

- `metadata`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } — A key/value map to store attributes without affecting tagging or recommendations.

- `name`: string (required) — The name of the content.

- `overrideLinkOutUri`: string — The URI you want to use for the article.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags used to organize, track, or control access for this resource.

- `title`: string — The title of the content.

- `uploadId`: string — A pointer to the uploaded asset.

  This value is returned by StartContentUpload.
