CfnCalculatedAttributeDefinitionProps
- class aws_cdk.aws_customerprofiles.CfnCalculatedAttributeDefinitionProps(*, attribute_details, calculated_attribute_name, domain_name, statistic, conditions=None, description=None, display_name=None, tags=None)
Bases:
object
Properties for defining a
CfnCalculatedAttributeDefinition
.- Parameters:
attribute_details (
Union
[IResolvable
,AttributeDetailsProperty
,Dict
[str
,Any
]]) – Mathematical expression and a list of attribute items specified in that expression.calculated_attribute_name (
str
) – The name of an attribute defined in a profile object type.domain_name (
str
) – The unique name of the domain.statistic (
str
) – The aggregation operation to perform for the calculated attribute.conditions (
Union
[IResolvable
,ConditionsProperty
,Dict
[str
,Any
],None
]) – The conditions including range, object count, and threshold for the calculated attribute.description (
Optional
[str
]) – The description of the calculated attribute.display_name (
Optional
[str
]) – The display name of the calculated attribute.tags (
Optional
[Sequence
[Union
[CfnTag
,Dict
[str
,Any
]]]]) – An array of key-value pairs to apply to this resource.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_customerprofiles as customerprofiles cfn_calculated_attribute_definition_props = customerprofiles.CfnCalculatedAttributeDefinitionProps( attribute_details=customerprofiles.CfnCalculatedAttributeDefinition.AttributeDetailsProperty( attributes=[customerprofiles.CfnCalculatedAttributeDefinition.AttributeItemProperty( name="name" )], expression="expression" ), calculated_attribute_name="calculatedAttributeName", domain_name="domainName", statistic="statistic", # the properties below are optional conditions=customerprofiles.CfnCalculatedAttributeDefinition.ConditionsProperty( object_count=123, range=customerprofiles.CfnCalculatedAttributeDefinition.RangeProperty( unit="unit", value=123 ), threshold=customerprofiles.CfnCalculatedAttributeDefinition.ThresholdProperty( operator="operator", value="value" ) ), description="description", display_name="displayName", tags=[CfnTag( key="key", value="value" )] )
Attributes
- attribute_details
Mathematical expression and a list of attribute items specified in that expression.
- calculated_attribute_name
The name of an attribute defined in a profile object type.
- conditions
The conditions including range, object count, and threshold for the calculated attribute.
- description
The description of the calculated attribute.
- display_name
The display name of the calculated attribute.
- domain_name
The unique name of the domain.
- statistic
The aggregation operation to perform for the calculated attribute.
- tags
An array of key-value pairs to apply to this resource.