Skip to content
v2.278.0

NamedEntityDefinitionProperty 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 namedEntityDefinitionProperty: quicksight.CfnTopic.NamedEntityDefinitionProperty = {
  fieldName: 'fieldName',
  metric: {
    aggregation: 'aggregation',
    aggregationFunctionParameters: {
      aggregationFunctionParametersKey: 'aggregationFunctionParameters',
    },
  },
  propertyName: 'propertyName',
  propertyRole: 'propertyRole',
  propertyUsage: 'propertyUsage',
};
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

named_entity_definition_property = 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"
)
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.*;

NamedEntityDefinitionProperty namedEntityDefinitionProperty = NamedEntityDefinitionProperty.builder()
        .fieldName("fieldName")
        .metric(NamedEntityDefinitionMetricProperty.builder()
                .aggregation("aggregation")
                .aggregationFunctionParameters(Map.of(
                        "aggregationFunctionParametersKey", "aggregationFunctionParameters"))
                .build())
        .propertyName("propertyName")
        .propertyRole("propertyRole")
        .propertyUsage("propertyUsage")
        .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 namedEntityDefinitionProperty = new NamedEntityDefinitionProperty {
    FieldName = "fieldName",
    Metric = new NamedEntityDefinitionMetricProperty {
        Aggregation = "aggregation",
        AggregationFunctionParameters = new Dictionary<string, string> {
            { "aggregationFunctionParametersKey", "aggregationFunctionParameters" }
        }
    },
    PropertyName = "propertyName",
    PropertyRole = "propertyRole",
    PropertyUsage = "propertyUsage"
};
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"

namedEntityDefinitionProperty := &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"),
}

Properties ​

fieldNameoptionalstringfield_nameoptionalstrfieldNameoptionalStringFieldNameoptionalstringFieldNameoptional*string #
The name of the entity.
metricoptionalIResolvable | CfnTopic.NamedEntityDefinitionMetricPropertymetricoptionaltyping.Union[IResolvable, NamedEntityDefinitionMetricProperty]metricoptionalIResolvableMetricoptionalIResolvableMetricoptionalinterface{} #
The definition of a metric.
propertyNameoptionalstringproperty_nameoptionalstrpropertyNameoptionalStringPropertyNameoptionalstringPropertyNameoptional*string #
The property name to be used for the named entity.
propertyRoleoptionalstringproperty_roleoptionalstrpropertyRoleoptionalStringPropertyRoleoptionalstringPropertyRoleoptional*string #
The property role.

Valid values for this structure are PRIMARY and ID .

propertyUsageoptionalstringproperty_usageoptionalstrpropertyUsageoptionalStringPropertyUsageoptionalstringPropertyUsageoptional*string #
The property usage.

Valid values for this structure are INHERIT , DIMENSION , and MEASURE .