Skip to content
v2.278.0

TopicNamedEntityProperty Struct ​

A structure that represents a named entity.

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 topicNamedEntityProperty: quicksight.CfnTopic.TopicNamedEntityProperty = {
  entityName: 'entityName',

  // the properties below are optional
  definition: [{
    fieldName: 'fieldName',
    metric: {
      aggregation: 'aggregation',
      aggregationFunctionParameters: {
        aggregationFunctionParametersKey: 'aggregationFunctionParameters',
      },
    },
    propertyName: 'propertyName',
    propertyRole: 'propertyRole',
    propertyUsage: 'propertyUsage',
  }],
  entityDescription: 'entityDescription',
  entitySynonyms: ['entitySynonyms'],
  semanticEntityType: {
    subTypeName: 'subTypeName',
    typeName: 'typeName',
    typeParameters: {
      typeParametersKey: 'typeParameters',
    },
  },
};
python
# 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

topic_named_entity_property = quicksight.CfnTopic.TopicNamedEntityProperty(
    entity_name="entityName",

    # the properties below are optional
    definition=[quicksight.CfnTopic.NamedEntityDefinitionProperty(
        field_name="fieldName",
        metric=quicksight.CfnTopic.NamedEntityDefinitionMetricProperty(
            aggregation="aggregation",
            aggregation_function_parameters={
                "aggregation_function_parameters_key": "aggregationFunctionParameters"
            }
        ),
        property_name="propertyName",
        property_role="propertyRole",
        property_usage="propertyUsage"
    )],
    entity_description="entityDescription",
    entity_synonyms=["entitySynonyms"],
    semantic_entity_type=quicksight.CfnTopic.SemanticEntityTypeProperty(
        sub_type_name="subTypeName",
        type_name="typeName",
        type_parameters={
            "type_parameters_key": "typeParameters"
        }
    )
)
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.*;

TopicNamedEntityProperty topicNamedEntityProperty = 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();
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 topicNamedEntityProperty = new TopicNamedEntityProperty {
    EntityName = "entityName",

    // the properties below are optional
    Definition = new [] { new NamedEntityDefinitionProperty {
        FieldName = "fieldName",
        Metric = new NamedEntityDefinitionMetricProperty {
            Aggregation = "aggregation",
            AggregationFunctionParameters = new Dictionary<string, string> {
                { "aggregationFunctionParametersKey", "aggregationFunctionParameters" }
            }
        },
        PropertyName = "propertyName",
        PropertyRole = "propertyRole",
        PropertyUsage = "propertyUsage"
    } },
    EntityDescription = "entityDescription",
    EntitySynonyms = new [] { "entitySynonyms" },
    SemanticEntityType = new SemanticEntityTypeProperty {
        SubTypeName = "subTypeName",
        TypeName = "typeName",
        TypeParameters = new Dictionary<string, string> {
            { "typeParametersKey", "typeParameters" }
        }
    }
};
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"

topicNamedEntityProperty := &TopicNamedEntityProperty{
	EntityName: jsii.String("entityName"),

	// the properties below are optional
	Definition: []interface{}{
		&NamedEntityDefinitionProperty{
			FieldName: jsii.String("fieldName"),
			Metric: &NamedEntityDefinitionMetricProperty{
				Aggregation: jsii.String("aggregation"),
				AggregationFunctionParameters: map[string]*string{
					"aggregationFunctionParametersKey": jsii.String("aggregationFunctionParameters"),
				},
			},
			PropertyName: jsii.String("propertyName"),
			PropertyRole: jsii.String("propertyRole"),
			PropertyUsage: jsii.String("propertyUsage"),
		},
	},
	EntityDescription: jsii.String("entityDescription"),
	EntitySynonyms: []*string{
		jsii.String("entitySynonyms"),
	},
	SemanticEntityType: &SemanticEntityTypeProperty{
		SubTypeName: jsii.String("subTypeName"),
		TypeName: jsii.String("typeName"),
		TypeParameters: map[string]*string{
			"typeParametersKey": jsii.String("typeParameters"),
		},
	},
}

Properties ​

definitionoptionalIResolvable | IResolvable | CfnTopic.NamedEntityDefinitionProperty[]definitionoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, NamedEntityDefinitionProperty]]]definitionoptionalIResolvableDefinitionoptionalIResolvableDefinitionoptionalinterface{} #
The definition of a named entity.
entityDescriptionoptionalstringentity_descriptionoptionalstrentityDescriptionoptionalStringEntityDescriptionoptionalstringEntityDescriptionoptional*string #
The description of the named entity.
entityNamestringentity_namestrentityNameStringEntityNamestringEntityName*string required #
The name of the named entity.
entitySynonymsoptionalstring[]entity_synonymsoptionaltyping.List[str]entitySynonymsoptionalList<String>EntitySynonymsoptionalstring[]EntitySynonymsoptional*[]*string #
The other names or aliases for the named entity.
semanticEntityTypeoptionalIResolvable | CfnTopic.SemanticEntityTypePropertysemantic_entity_typeoptionaltyping.Union[IResolvable, SemanticEntityTypeProperty]semanticEntityTypeoptionalIResolvableSemanticEntityTypeoptionalIResolvableSemanticEntityTypeoptionalinterface{} #
The type of named entity that a topic represents.