interface CfnCalculatedAttributeDefinitionProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CustomerProfiles.CfnCalculatedAttributeDefinitionProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscustomerprofiles#CfnCalculatedAttributeDefinitionProps |
Java | software.amazon.awscdk.services.customerprofiles.CfnCalculatedAttributeDefinitionProps |
Python | aws_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',
// the properties below are optional
timestampFormat: 'timestampFormat',
timestampSource: 'timestampSource',
value: 123,
valueRange: {
end: 123,
start: 123,
},
},
threshold: {
operator: 'operator',
value: 'value',
},
},
description: 'description',
displayName: 'displayName',
tags: [{
key: 'key',
value: 'value',
}],
useHistoricalData: false,
};
Properties
| Name | Type | Description |
|---|---|---|
| attribute | IResolvable | Attribute | Mathematical expression and a list of attribute items specified in that expression. |
| calculated | string | The name of an attribute defined in a profile object type. |
| domain | string | The unique name of the domain. |
| statistic | string | The aggregation operation to perform for the calculated attribute. |
| conditions? | IResolvable | Conditions | The conditions including range, object count, and threshold for the calculated attribute. |
| description? | string | The description of the calculated attribute. |
| display | string | The display name of the calculated attribute. |
| tags? | Cfn[] | An array of key-value pairs to apply to this resource. |
| use | boolean | IResolvable | Whether historical data ingested before the Calculated Attribute was created should be included in calculations. |
attributeDetails
Type:
IResolvable | Attribute
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 | Conditions
(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:
Cfn[]
(optional)
An array of key-value pairs to apply to this resource.
useHistoricalData?
Type:
boolean | IResolvable
(optional)
Whether historical data ingested before the Calculated Attribute was created should be included in calculations.

.NET
Go
Java
Python
TypeScript