# CfnTopicV2Props

Properties for defining a `CfnTopicV2`.

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

- Source: Generated at build time
- Type last changed: v2.268.0 · 2 Sep 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_quicksight as quicksight } from 'aws-cdk-lib';
const cfnTopicV2Props: quicksight.CfnTopicV2Props = {
  awsAccountId: 'awsAccountId',
  customInstructions: {
    customInstructionsString: 'customInstructionsString',
  },
  dataSetRelations: [{
    left: {
      columnNames: ['columnNames'],
      dataSetArn: 'dataSetArn',
    },
    right: {
      columnNames: ['columnNames'],
      dataSetArn: 'dataSetArn',
    },
  }],
  dataSets: [{
    dataSetArn: 'dataSetArn',

    // the properties below are optional
    dataSetName: 'dataSetName',
  }],
  description: 'description',
  folderArns: ['folderArns'],
  name: 'name',
  permissions: [{
    actions: ['actions'],
    principal: 'principal',
  }],
  tags: [{
    key: 'key',
    value: 'value',
  }],
  topicId: 'topicId',
};
```

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_quicksight as quicksight

cfn_topic_v2_props = quicksight.CfnTopicV2Props(
    aws_account_id="awsAccountId",
    custom_instructions=quicksight.CfnTopicV2.CustomInstructionsProperty(
        custom_instructions_string="customInstructionsString"
    ),
    data_set_relations=[quicksight.CfnTopicV2.DataSetRelationProperty(
        left=quicksight.CfnTopicV2.DataSetRelationEndpointProperty(
            column_names=["columnNames"],
            data_set_arn="dataSetArn"
        ),
        right=quicksight.CfnTopicV2.DataSetRelationEndpointProperty(
            column_names=["columnNames"],
            data_set_arn="dataSetArn"
        )
    )],
    data_sets=[quicksight.CfnTopicV2.DataSetReferenceProperty(
        data_set_arn="dataSetArn",

        # the properties below are optional
        data_set_name="dataSetName"
    )],
    description="description",
    folder_arns=["folderArns"],
    name="name",
    permissions=[quicksight.CfnTopicV2.ResourcePermissionProperty(
        actions=["actions"],
        principal="principal"
    )],
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    topic_id="topicId"
)
```

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.quicksight.*;

CfnTopicV2Props cfnTopicV2Props = CfnTopicV2Props.builder()
        .awsAccountId("awsAccountId")
        .customInstructions(CustomInstructionsProperty.builder()
                .customInstructionsString("customInstructionsString")
                .build())
        .dataSetRelations(List.of(DataSetRelationProperty.builder()
                .left(DataSetRelationEndpointProperty.builder()
                        .columnNames(List.of("columnNames"))
                        .dataSetArn("dataSetArn")
                        .build())
                .right(DataSetRelationEndpointProperty.builder()
                        .columnNames(List.of("columnNames"))
                        .dataSetArn("dataSetArn")
                        .build())
                .build()))
        .dataSets(List.of(DataSetReferenceProperty.builder()
                .dataSetArn("dataSetArn")

                // the properties below are optional
                .dataSetName("dataSetName")
                .build()))
        .description("description")
        .folderArns(List.of("folderArns"))
        .name("name")
        .permissions(List.of(ResourcePermissionProperty.builder()
                .actions(List.of("actions"))
                .principal("principal")
                .build()))
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .topicId("topicId")
        .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.QuickSight;

var cfnTopicV2Props = new CfnTopicV2Props {
    AwsAccountId = "awsAccountId",
    CustomInstructions = new CustomInstructionsProperty {
        CustomInstructionsString = "customInstructionsString"
    },
    DataSetRelations = new [] { new DataSetRelationProperty {
        Left = new DataSetRelationEndpointProperty {
            ColumnNames = new [] { "columnNames" },
            DataSetArn = "dataSetArn"
        },
        Right = new DataSetRelationEndpointProperty {
            ColumnNames = new [] { "columnNames" },
            DataSetArn = "dataSetArn"
        }
    } },
    DataSets = new [] { new DataSetReferenceProperty {
        DataSetArn = "dataSetArn",

        // the properties below are optional
        DataSetName = "dataSetName"
    } },
    Description = "description",
    FolderArns = new [] { "folderArns" },
    Name = "name",
    Permissions = new [] { new ResourcePermissionProperty {
        Actions = new [] { "actions" },
        Principal = "principal"
    } },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    TopicId = "topicId"
};
```

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"

cfnTopicV2Props := &CfnTopicV2Props{
	AwsAccountId: jsii.String("awsAccountId"),
	CustomInstructions: &CustomInstructionsProperty{
		CustomInstructionsString: jsii.String("customInstructionsString"),
	},
	DataSetRelations: []interface{}{
		&DataSetRelationProperty{
			Left: &DataSetRelationEndpointProperty{
				ColumnNames: []*string{
					jsii.String("columnNames"),
				},
				DataSetArn: jsii.String("dataSetArn"),
			},
			Right: &DataSetRelationEndpointProperty{
				ColumnNames: []*string{
					jsii.String("columnNames"),
				},
				DataSetArn: jsii.String("dataSetArn"),
			},
		},
	},
	DataSets: []interface{}{
		&DataSetReferenceProperty{
			DataSetArn: jsii.String("dataSetArn"),

			// the properties below are optional
			DataSetName: jsii.String("dataSetName"),
		},
	},
	Description: jsii.String("description"),
	FolderArns: []*string{
		jsii.String("folderArns"),
	},
	Name: jsii.String("name"),
	Permissions: []interface{}{
		&ResourcePermissionProperty{
			Actions: []*string{
				jsii.String("actions"),
			},
			Principal: jsii.String("principal"),
		},
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	TopicId: jsii.String("topicId"),
}
```

## Properties

- `awsAccountId`: string

- `customInstructions`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTopicV2.CustomInstructionsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTopicV2.CustomInstructionsProperty.html)

- `dataSetRelations`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTopicV2.DataSetRelationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTopicV2.DataSetRelationProperty.html)[]

- `dataSets`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTopicV2.DataSetReferenceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTopicV2.DataSetReferenceProperty.html)[]

- `description`: string

- `folderArns`: string[]

- `name`: string

- `permissions`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTopicV2.ResourcePermissionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTopicV2.ResourcePermissionProperty.html)[]

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[]

- `topicId`: string
