Class CfnTopic
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.quicksight.CfnTopic
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,ITopicRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:12.341Z")
@Stability(Stable)
public class CfnTopic
extends CfnResource
implements IInspectable, ITopicRef, ITaggableV2
Creates a new Q topic.
Example:
// 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.*;
CfnTopic cfnTopic = CfnTopic.Builder.create(this, "MyCfnTopic")
.awsAccountId("awsAccountId")
.configOptions(TopicConfigOptionsProperty.builder()
.qBusinessInsightsEnabled(false)
.build())
.customInstructions(CustomInstructionsProperty.builder()
.customInstructionsString("customInstructionsString")
.build())
.dataSets(List.of(DatasetMetadataProperty.builder()
.datasetArn("datasetArn")
// the properties below are optional
.calculatedFields(List.of(TopicCalculatedFieldProperty.builder()
.calculatedFieldName("calculatedFieldName")
.expression("expression")
// the properties below are optional
.aggregation("aggregation")
.allowedAggregations(List.of("allowedAggregations"))
.calculatedFieldDescription("calculatedFieldDescription")
.calculatedFieldSynonyms(List.of("calculatedFieldSynonyms"))
.cellValueSynonyms(List.of(CellValueSynonymProperty.builder()
.cellValue("cellValue")
.synonyms(List.of("synonyms"))
.build()))
.columnDataRole("columnDataRole")
.comparativeOrder(ComparativeOrderProperty.builder()
.specifedOrder(List.of("specifedOrder"))
.treatUndefinedSpecifiedValues("treatUndefinedSpecifiedValues")
.useOrdering("useOrdering")
.build())
.defaultFormatting(DefaultFormattingProperty.builder()
.displayFormat("displayFormat")
.displayFormatOptions(DisplayFormatOptionsProperty.builder()
.blankCellFormat("blankCellFormat")
.currencySymbol("currencySymbol")
.dateFormat("dateFormat")
.decimalSeparator("decimalSeparator")
.fractionDigits(123)
.groupingSeparator("groupingSeparator")
.negativeFormat(NegativeFormatProperty.builder()
.prefix("prefix")
.suffix("suffix")
.build())
.prefix("prefix")
.suffix("suffix")
.unitScaler("unitScaler")
.useBlankCellFormat(false)
.useGrouping(false)
.build())
.build())
.disableIndexing(false)
.isIncludedInTopic(false)
.neverAggregateInFilter(false)
.nonAdditive(false)
.notAllowedAggregations(List.of("notAllowedAggregations"))
.semanticType(SemanticTypeProperty.builder()
.falseyCellValue("falseyCellValue")
.falseyCellValueSynonyms(List.of("falseyCellValueSynonyms"))
.subTypeName("subTypeName")
.truthyCellValue("truthyCellValue")
.truthyCellValueSynonyms(List.of("truthyCellValueSynonyms"))
.typeName("typeName")
.typeParameters(Map.of(
"typeParametersKey", "typeParameters"))
.build())
.timeGranularity("timeGranularity")
.build()))
.columns(List.of(TopicColumnProperty.builder()
.columnName("columnName")
// the properties below are optional
.aggregation("aggregation")
.allowedAggregations(List.of("allowedAggregations"))
.cellValueSynonyms(List.of(CellValueSynonymProperty.builder()
.cellValue("cellValue")
.synonyms(List.of("synonyms"))
.build()))
.columnDataRole("columnDataRole")
.columnDescription("columnDescription")
.columnFriendlyName("columnFriendlyName")
.columnSynonyms(List.of("columnSynonyms"))
.comparativeOrder(ComparativeOrderProperty.builder()
.specifedOrder(List.of("specifedOrder"))
.treatUndefinedSpecifiedValues("treatUndefinedSpecifiedValues")
.useOrdering("useOrdering")
.build())
.defaultFormatting(DefaultFormattingProperty.builder()
.displayFormat("displayFormat")
.displayFormatOptions(DisplayFormatOptionsProperty.builder()
.blankCellFormat("blankCellFormat")
.currencySymbol("currencySymbol")
.dateFormat("dateFormat")
.decimalSeparator("decimalSeparator")
.fractionDigits(123)
.groupingSeparator("groupingSeparator")
.negativeFormat(NegativeFormatProperty.builder()
.prefix("prefix")
.suffix("suffix")
.build())
.prefix("prefix")
.suffix("suffix")
.unitScaler("unitScaler")
.useBlankCellFormat(false)
.useGrouping(false)
.build())
.build())
.disableIndexing(false)
.isIncludedInTopic(false)
.neverAggregateInFilter(false)
.nonAdditive(false)
.notAllowedAggregations(List.of("notAllowedAggregations"))
.semanticType(SemanticTypeProperty.builder()
.falseyCellValue("falseyCellValue")
.falseyCellValueSynonyms(List.of("falseyCellValueSynonyms"))
.subTypeName("subTypeName")
.truthyCellValue("truthyCellValue")
.truthyCellValueSynonyms(List.of("truthyCellValueSynonyms"))
.typeName("typeName")
.typeParameters(Map.of(
"typeParametersKey", "typeParameters"))
.build())
.timeGranularity("timeGranularity")
.build()))
.dataAggregation(DataAggregationProperty.builder()
.datasetRowDateGranularity("datasetRowDateGranularity")
.defaultDateColumnName("defaultDateColumnName")
.build())
.datasetDescription("datasetDescription")
.datasetName("datasetName")
.filters(List.of(TopicFilterProperty.builder()
.filterName("filterName")
.operandFieldName("operandFieldName")
// the properties below are optional
.categoryFilter(TopicCategoryFilterProperty.builder()
.categoryFilterFunction("categoryFilterFunction")
.categoryFilterType("categoryFilterType")
.constant(TopicCategoryFilterConstantProperty.builder()
.collectiveConstant(CollectiveConstantProperty.builder()
.valueList(List.of("valueList"))
.build())
.constantType("constantType")
.singularConstant("singularConstant")
.build())
.inverse(false)
.build())
.dateRangeFilter(TopicDateRangeFilterProperty.builder()
.constant(TopicRangeFilterConstantProperty.builder()
.constantType("constantType")
.rangeConstant(RangeConstantProperty.builder()
.maximum("maximum")
.minimum("minimum")
.build())
.build())
.inclusive(false)
.build())
.filterClass("filterClass")
.filterDescription("filterDescription")
.filterSynonyms(List.of("filterSynonyms"))
.filterType("filterType")
.numericEqualityFilter(TopicNumericEqualityFilterProperty.builder()
.aggregation("aggregation")
.constant(TopicSingularFilterConstantProperty.builder()
.constantType("constantType")
.singularConstant("singularConstant")
.build())
.build())
.numericRangeFilter(TopicNumericRangeFilterProperty.builder()
.aggregation("aggregation")
.constant(TopicRangeFilterConstantProperty.builder()
.constantType("constantType")
.rangeConstant(RangeConstantProperty.builder()
.maximum("maximum")
.minimum("minimum")
.build())
.build())
.inclusive(false)
.build())
.relativeDateFilter(TopicRelativeDateFilterProperty.builder()
.constant(TopicSingularFilterConstantProperty.builder()
.constantType("constantType")
.singularConstant("singularConstant")
.build())
.relativeDateFilterFunction("relativeDateFilterFunction")
.timeGranularity("timeGranularity")
.build())
.build()))
.namedEntities(List.of(TopicNamedEntityProperty.builder()
.entityName("entityName")
// the properties below are optional
.definition(List.of(NamedEntityDefinitionProperty.builder()
.fieldName("fieldName")
.metric(NamedEntityDefinitionMetricProperty.builder()
.aggregation("aggregation")
.aggregationFunctionParameters(Map.of(
"aggregationFunctionParametersKey", "aggregationFunctionParameters"))
.build())
.propertyName("propertyName")
.propertyRole("propertyRole")
.propertyUsage("propertyUsage")
.build()))
.entityDescription("entityDescription")
.entitySynonyms(List.of("entitySynonyms"))
.semanticEntityType(SemanticEntityTypeProperty.builder()
.subTypeName("subTypeName")
.typeName("typeName")
.typeParameters(Map.of(
"typeParametersKey", "typeParameters"))
.build())
.build()))
.build()))
.description("description")
.folderArns(List.of("folderArns"))
.name("name")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.topicId("topicId")
.userExperienceVersion("userExperienceVersion")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnTopic.static interfaceA structure that represents the cell value synonym.static interfaceA structure that represents a collective constant.static interfaceThe order in which data is displayed for the column when it's used in a comparative context.static interfaceExample:static interfaceThe definition of a data aggregation.static interfaceA structure that represents a dataset.static interfaceA structure that represents a default formatting definition.static interfaceA structure that represents additional options for display formatting.static interfaceA structure that represents a metric.static interfaceA structure that represents a named entity.static interfaceA structure that represents a negative format.static interfaceThe value of the constant that is used to specify the endpoints of a range filter.static interfaceA structure that represents a semantic entity type.static interfaceA structure that represents a semantic type.static interfaceA structure that represents a calculated field.static interfaceA constant used in a category filter.static interfaceA structure that represents a category filter.static interfaceRepresents a column in a dataset.static interfaceConfiguration options for aTopic.static interfaceA filter used to restrict data based on a range of dates or times.static interfaceA structure that represents a filter used to select items for a topic.static interfaceA structure that represents a named entity.static interfaceA filter that filters topics based on the value of a numeric field.static interfaceA filter that filters topics based on the value of a numeric field.static interfaceA constant value that is used in a range filter to specify the endpoints of the range.static interfaceA structure that represents a relative date filter.static interfaceA structure that represents a singular filter constant, used in filters to specify a single value to match against.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.quicksight.ITopicRef
ITopicRef.Jsii$Default, ITopicRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTopic(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTopic(software.amazon.jsii.JsiiObjectRef objRef) Create a newAWS::QuickSight::Topic.CfnTopic(software.constructs.Construct scope, String id, CfnTopicProps props) Create a newAWS::QuickSight::Topic. -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the topic.The ID of the AWS account that you want to create a topic in.Tag Manager which manages the tags for this resource.Configuration options for aTopic.Returns union: eitherIResolvableorCfnTopic.CustomInstructionsPropertyThe data sets that the topic is associated with.The description of the topic.getName()The name of the topic.getTags()The ID for the topic.A reference to a Topic resource.The user experience version of the topic.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAwsAccountId(String value) The ID of the AWS account that you want to create a topic in.voidsetConfigOptions(IResolvable value) Configuration options for aTopic.voidConfiguration options for aTopic.voidsetCustomInstructions(IResolvable value) voidvoidsetDataSets(List<Object> value) The data sets that the topic is associated with.voidsetDataSets(IResolvable value) The data sets that the topic is associated with.voidsetDescription(String value) The description of the topic.voidsetFolderArns(List<String> value) voidThe name of the topic.voidvoidsetTopicId(String value) The ID for the topic.voidsetUserExperienceVersion(String value) The user experience version of the topic.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnTopic
protected CfnTopic(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTopic
protected CfnTopic(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTopic
@Stability(Stable) public CfnTopic(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnTopicProps props) Create a newAWS::QuickSight::Topic.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties.
-
CfnTopic
@Stability(Stable) public CfnTopic(@NotNull software.constructs.Construct scope, @NotNull String id) Create a newAWS::QuickSight::Topic.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the topic. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTopicRef
A reference to a Topic resource.- Specified by:
getTopicRefin interfaceITopicRef
-
getAwsAccountId
The ID of the AWS account that you want to create a topic in. -
setAwsAccountId
The ID of the AWS account that you want to create a topic in. -
getConfigOptions
Configuration options for aTopic.Returns union: either
IResolvableorCfnTopic.TopicConfigOptionsProperty -
setConfigOptions
Configuration options for aTopic. -
setConfigOptions
@Stability(Stable) public void setConfigOptions(@Nullable CfnTopic.TopicConfigOptionsProperty value) Configuration options for aTopic. -
getCustomInstructions
Returns union: eitherIResolvableorCfnTopic.CustomInstructionsProperty -
setCustomInstructions
-
setCustomInstructions
@Stability(Stable) public void setCustomInstructions(@Nullable CfnTopic.CustomInstructionsProperty value) -
getDataSets
The data sets that the topic is associated with.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTopic.DatasetMetadataProperty> -
setDataSets
The data sets that the topic is associated with. -
setDataSets
The data sets that the topic is associated with. -
getDescription
The description of the topic. -
setDescription
The description of the topic. -
getFolderArns
-
setFolderArns
-
getName
The name of the topic. -
setName
The name of the topic. -
getTags
-
setTags
-
getTopicId
The ID for the topic. -
setTopicId
The ID for the topic. -
getUserExperienceVersion
The user experience version of the topic. -
setUserExperienceVersion
The user experience version of the topic.
-