# NamedEntityDefinitionProperty

Struct · External

A structure that represents a named entity.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

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

Python:

```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:

```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();
```

C#:

```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:

```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

- `fieldName`: string — The name of the entity.

- `metric`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTopic.NamedEntityDefinitionMetricProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTopic.NamedEntityDefinitionMetricProperty.html) — The definition of a metric.

- `propertyName`: string — The property name to be used for the named entity.

- `propertyRole`: string — The property role.

  Valid values for this structure are `PRIMARY` and `ID` .

- `propertyUsage`: string — The property usage.

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