aws-cdk-lib.aws_customerprofiles.CfnCalculatedAttributeDefinitionProps

interface CfnCalculatedAttributeDefinitionProps

LanguageType name
.NETAmazon.CDK.AWS.CustomerProfiles.CfnCalculatedAttributeDefinitionProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscustomerprofiles#CfnCalculatedAttributeDefinitionProps
Javasoftware.amazon.awscdk.services.customerprofiles.CfnCalculatedAttributeDefinitionProps
Pythonaws_cdk.aws_customerprofiles.CfnCalculatedAttributeDefinitionProps
TypeScript aws-cdk-lib » aws_customerprofiles » CfnCalculatedAttributeDefinitionProps

Properties for defining a CfnCalculatedAttributeDefinition.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_customerprofiles as customerprofiles } from 'aws-cdk-lib';
const cfnCalculatedAttributeDefinitionProps: customerprofiles.CfnCalculatedAttributeDefinitionProps = {
  attributeDetails: {
    attributes: [{
      name: 'name',
    }],
    expression: 'expression',
  },
  calculatedAttributeName: 'calculatedAttributeName',
  domainName: 'domainName',
  statistic: 'statistic',

  // the properties below are optional
  conditions: {
    objectCount: 123,
    range: {
      unit: 'unit',
      value: 123,
    },
    threshold: {
      operator: 'operator',
      value: 'value',
    },
  },
  description: 'description',
  displayName: 'displayName',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
attributeDetailsIResolvable | AttributeDetailsPropertyMathematical expression and a list of attribute items specified in that expression.
calculatedAttributeNamestringThe name of an attribute defined in a profile object type.
domainNamestringThe unique name of the domain.
statisticstringThe aggregation operation to perform for the calculated attribute.
conditions?IResolvable | ConditionsPropertyThe conditions including range, object count, and threshold for the calculated attribute.
description?stringThe description of the calculated attribute.
displayName?stringThe display name of the calculated attribute.
tags?CfnTag[]An array of key-value pairs to apply to this resource.

attributeDetails

Type: IResolvable | AttributeDetailsProperty

Mathematical expression and a list of attribute items specified in that expression.


calculatedAttributeName

Type: string

The name of an attribute defined in a profile object type.


domainName

Type: string

The unique name of the domain.


statistic

Type: string

The aggregation operation to perform for the calculated attribute.


conditions?

Type: IResolvable | ConditionsProperty (optional)

The conditions including range, object count, and threshold for the calculated attribute.


description?

Type: string (optional)

The description of the calculated attribute.


displayName?

Type: string (optional)

The display name of the calculated attribute.


tags?

Type: CfnTag[] (optional)

An array of key-value pairs to apply to this resource.