CfnTopicV2Props Struct
Properties for defining a CfnTopicV2.
| Source | |
|---|---|
| Type last changed |
Example
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
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
// 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();
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"
};
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
awsAccountIdoptionalstringaws_account_idoptionalstrawsAccountIdoptionalStringAwsAccountIdoptionalstringAwsAccountIdoptional*string #customInstructionsoptionalIResolvable | CfnTopicV2.custom_instructionsoptionaltyping.Union[IResolvable, CustomInstructionsProperty]customInstructionsoptionalIResolvableCustomInstructionsoptionalIResolvableCustomInstructionsoptionalinterface{} #dataSetRelationsoptionalIResolvable | IResolvable | CfnTopicV2.data_set_relationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, DataSetRelationProperty]]]dataSetRelationsoptionalIResolvableDataSetRelationsoptionalIResolvableDataSetRelationsoptionalinterface{} #dataSetsoptionalIResolvable | IResolvable | CfnTopicV2.data_setsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, DataSetReferenceProperty]]]dataSetsoptionalIResolvableDataSetsoptionalIResolvableDataSetsoptionalinterface{} #descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #folderArnsoptionalstring[]folder_arnsoptionaltyping.List[str]folderArnsoptionalList<String>FolderArnsoptionalstring[]FolderArnsoptional*[]*string #permissionsoptionalIResolvable | IResolvable | CfnTopicV2.permissionsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ResourcePermissionProperty]]]permissionsoptionalIResolvablePermissionsoptionalIResolvablePermissionsoptionalinterface{} #topicIdoptionalstringtopic_idoptionalstrtopicIdoptionalStringTopicIdoptionalstringTopicIdoptional*string #