CfnCalculatedAttributeDefinitionPropsMixin
- class aws_cdk.mixins_preview.aws_customerprofiles.mixins.CfnCalculatedAttributeDefinitionPropsMixin(props, *, strategy=None)
Bases:
MixinA calculated attribute definition for Customer Profiles.
- See:
- CloudformationResource:
AWS::CustomerProfiles::CalculatedAttributeDefinition
- Mixin:
true
- 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.mixins_preview import mixins from aws_cdk.mixins_preview.aws_customerprofiles import mixins as customerprofiles_mixins cfn_calculated_attribute_definition_props_mixin = customerprofiles_mixins.CfnCalculatedAttributeDefinitionPropsMixin(customerprofiles_mixins.CfnCalculatedAttributeDefinitionMixinProps( attribute_details=customerprofiles_mixins.CfnCalculatedAttributeDefinitionPropsMixin.AttributeDetailsProperty( attributes=[customerprofiles_mixins.CfnCalculatedAttributeDefinitionPropsMixin.AttributeItemProperty( name="name" )], expression="expression" ), calculated_attribute_name="calculatedAttributeName", conditions=customerprofiles_mixins.CfnCalculatedAttributeDefinitionPropsMixin.ConditionsProperty( object_count=123, range=customerprofiles_mixins.CfnCalculatedAttributeDefinitionPropsMixin.RangeProperty( timestamp_format="timestampFormat", timestamp_source="timestampSource", unit="unit", value=123, value_range=customerprofiles_mixins.CfnCalculatedAttributeDefinitionPropsMixin.ValueRangeProperty( end=123, start=123 ) ), threshold=customerprofiles_mixins.CfnCalculatedAttributeDefinitionPropsMixin.ThresholdProperty( operator="operator", value="value" ) ), description="description", display_name="displayName", domain_name="domainName", statistic="statistic", tags=[CfnTag( key="key", value="value" )], use_historical_data=False ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::CustomerProfiles::CalculatedAttributeDefinition.- Parameters:
props (
Union[CfnCalculatedAttributeDefinitionMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['attributeDetails', 'calculatedAttributeName', 'conditions', 'description', 'displayName', 'domainName', 'statistic', 'tags', 'useHistoricalData']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
AttributeDetailsProperty
- class CfnCalculatedAttributeDefinitionPropsMixin.AttributeDetailsProperty(*, attributes=None, expression=None)
Bases:
objectMathematical expression and a list of attribute items specified in that expression.
- Parameters:
attributes (
Union[IResolvable,Sequence[Union[IResolvable,AttributeItemProperty,Dict[str,Any]]],None]) – Mathematical expression and a list of attribute items specified in that expression.expression (
Optional[str]) – Mathematical expression that is performed on attribute items provided in the attribute list. Each element in the expression should follow the structure of “{ObjectTypeName.AttributeName}”.
- 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.mixins_preview.aws_customerprofiles import mixins as customerprofiles_mixins attribute_details_property = customerprofiles_mixins.CfnCalculatedAttributeDefinitionPropsMixin.AttributeDetailsProperty( attributes=[customerprofiles_mixins.CfnCalculatedAttributeDefinitionPropsMixin.AttributeItemProperty( name="name" )], expression="expression" )
Attributes
- attributes
Mathematical expression and a list of attribute items specified in that expression.
- expression
Mathematical expression that is performed on attribute items provided in the attribute list.
Each element in the expression should follow the structure of “{ObjectTypeName.AttributeName}”.
AttributeItemProperty
- class CfnCalculatedAttributeDefinitionPropsMixin.AttributeItemProperty(*, name=None)
Bases:
objectThe details of a single attribute item specified in the mathematical expression.
- Parameters:
name (
Optional[str]) – The unique name of the calculated attribute.- 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.mixins_preview.aws_customerprofiles import mixins as customerprofiles_mixins attribute_item_property = customerprofiles_mixins.CfnCalculatedAttributeDefinitionPropsMixin.AttributeItemProperty( name="name" )
Attributes
- name
The unique name of the calculated attribute.
ConditionsProperty
- class CfnCalculatedAttributeDefinitionPropsMixin.ConditionsProperty(*, object_count=None, range=None, threshold=None)
Bases:
objectThe conditions including range, object count, and threshold for the calculated attribute.
- Parameters:
object_count (
Union[int,float,None]) – The number of profile objects used for the calculated attribute.range (
Union[IResolvable,RangeProperty,Dict[str,Any],None]) – The relative time period over which data is included in the aggregation.threshold (
Union[IResolvable,ThresholdProperty,Dict[str,Any],None]) – The threshold for the calculated attribute.
- 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.mixins_preview.aws_customerprofiles import mixins as customerprofiles_mixins conditions_property = customerprofiles_mixins.CfnCalculatedAttributeDefinitionPropsMixin.ConditionsProperty( object_count=123, range=customerprofiles_mixins.CfnCalculatedAttributeDefinitionPropsMixin.RangeProperty( timestamp_format="timestampFormat", timestamp_source="timestampSource", unit="unit", value=123, value_range=customerprofiles_mixins.CfnCalculatedAttributeDefinitionPropsMixin.ValueRangeProperty( end=123, start=123 ) ), threshold=customerprofiles_mixins.CfnCalculatedAttributeDefinitionPropsMixin.ThresholdProperty( operator="operator", value="value" ) )
Attributes
- object_count
The number of profile objects used for the calculated attribute.
- range
The relative time period over which data is included in the aggregation.
- threshold
The threshold for the calculated attribute.
RangeProperty
- class CfnCalculatedAttributeDefinitionPropsMixin.RangeProperty(*, timestamp_format=None, timestamp_source=None, unit=None, value=None, value_range=None)
Bases:
objectThe relative time period over which data is included in the aggregation.
- Parameters:
timestamp_format (
Optional[str]) – The format the timestamp field in your JSON object is specified. This value should be one of EPOCHMILLI (for Unix epoch timestamps with second/millisecond level precision) or ISO_8601 (following ISO_8601 format with second/millisecond level precision, with an optional offset of Z or in the format HH:MM or HHMM.). E.g. if your object type is MyType and source JSON is {“generatedAt”: {“timestamp”: “2001-07-04T12:08:56.235-0700”}}, then TimestampFormat should be “ISO_8601”timestamp_source (
Optional[str]) – An expression specifying the field in your JSON object from which the date should be parsed. The expression should follow the structure of “{ObjectTypeName.}”. E.g. if your object type is MyType and source JSON is {“generatedAt”: {“timestamp”: “1737587945945”}}, then TimestampSource should be “{MyType.generatedAt.timestamp}”unit (
Optional[str]) – The unit of time.value (
Union[int,float,None]) – The amount of time of the specified unit.value_range (
Union[IResolvable,ValueRangeProperty,Dict[str,Any],None]) – A structure letting customers specify a relative time window over which over which data is included in the Calculated Attribute. Use positive numbers to indicate that the endpoint is in the past, and negative numbers to indicate it is in the future. ValueRange overrides Value.
- 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.mixins_preview.aws_customerprofiles import mixins as customerprofiles_mixins range_property = customerprofiles_mixins.CfnCalculatedAttributeDefinitionPropsMixin.RangeProperty( timestamp_format="timestampFormat", timestamp_source="timestampSource", unit="unit", value=123, value_range=customerprofiles_mixins.CfnCalculatedAttributeDefinitionPropsMixin.ValueRangeProperty( end=123, start=123 ) )
Attributes
- timestamp_format
The format the timestamp field in your JSON object is specified.
This value should be one of EPOCHMILLI (for Unix epoch timestamps with second/millisecond level precision) or ISO_8601 (following ISO_8601 format with second/millisecond level precision, with an optional offset of Z or in the format HH:MM or HHMM.). E.g. if your object type is MyType and source JSON is {“generatedAt”: {“timestamp”: “2001-07-04T12:08:56.235-0700”}}, then TimestampFormat should be “ISO_8601”
- timestamp_source
An expression specifying the field in your JSON object from which the date should be parsed.
The expression should follow the structure of “{ObjectTypeName.}”. E.g. if your object type is MyType and source JSON is {“generatedAt”: {“timestamp”: “1737587945945”}}, then TimestampSource should be “{MyType.generatedAt.timestamp}”
- unit
The unit of time.
- value
The amount of time of the specified unit.
- value_range
A structure letting customers specify a relative time window over which over which data is included in the Calculated Attribute.
Use positive numbers to indicate that the endpoint is in the past, and negative numbers to indicate it is in the future. ValueRange overrides Value.
ReadinessProperty
- class CfnCalculatedAttributeDefinitionPropsMixin.ReadinessProperty(*, message=None, progress_percentage=None)
Bases:
objectInformation indicating if the Calculated Attribute is ready for use by confirming all historical data has been processed and reflected.
- Parameters:
message (
Optional[str]) – Any customer messaging.progress_percentage (
Union[int,float,None]) – Approximately how far the Calculated Attribute creation is from completion.
- 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.mixins_preview.aws_customerprofiles import mixins as customerprofiles_mixins readiness_property = customerprofiles_mixins.CfnCalculatedAttributeDefinitionPropsMixin.ReadinessProperty( message="message", progress_percentage=123 )
Attributes
- message
Any customer messaging.
- progress_percentage
Approximately how far the Calculated Attribute creation is from completion.
ThresholdProperty
- class CfnCalculatedAttributeDefinitionPropsMixin.ThresholdProperty(*, operator=None, value=None)
Bases:
objectThe threshold for the calculated attribute.
- Parameters:
operator (
Optional[str]) – The operator of the threshold.value (
Optional[str]) – The value of the threshold.
- 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.mixins_preview.aws_customerprofiles import mixins as customerprofiles_mixins threshold_property = customerprofiles_mixins.CfnCalculatedAttributeDefinitionPropsMixin.ThresholdProperty( operator="operator", value="value" )
Attributes
- operator
The operator of the threshold.
ValueRangeProperty
- class CfnCalculatedAttributeDefinitionPropsMixin.ValueRangeProperty(*, end=None, start=None)
Bases:
objectA structure letting customers specify a relative time window over which over which data is included in the Calculated Attribute.
Use positive numbers to indicate that the endpoint is in the past, and negative numbers to indicate it is in the future. ValueRange overrides Value.
- Parameters:
end (
Union[int,float,None]) – The ending point for this overridden range. Positive numbers indicate how many days in the past data should be included, and negative numbers indicate how many days in the future.start (
Union[int,float,None]) – The starting point for this overridden range. Positive numbers indicate how many days in the past data should be included, and negative numbers indicate how many days in the future.
- 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.mixins_preview.aws_customerprofiles import mixins as customerprofiles_mixins value_range_property = customerprofiles_mixins.CfnCalculatedAttributeDefinitionPropsMixin.ValueRangeProperty( end=123, start=123 )
Attributes
- end
The ending point for this overridden range.
Positive numbers indicate how many days in the past data should be included, and negative numbers indicate how many days in the future.
- start
The starting point for this overridden range.
Positive numbers indicate how many days in the past data should be included, and negative numbers indicate how many days in the future.