interface RangeProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CustomerProfiles.Mixins.CfnCalculatedAttributeDefinitionPropsMixin.RangeProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscustomerprofiles/mixins#CfnCalculatedAttributeDefinitionPropsMixin_RangeProperty |
Java | software.amazon.awscdk.mixins.preview.services.customerprofiles.mixins.CfnCalculatedAttributeDefinitionPropsMixin.RangeProperty |
Python | aws_cdk.mixins_preview.aws_customerprofiles.mixins.CfnCalculatedAttributeDefinitionPropsMixin.RangeProperty |
TypeScript | @aws-cdk/mixins-preview » aws_customerprofiles » mixins » CfnCalculatedAttributeDefinitionPropsMixin » RangeProperty |
The relative time period over which data is included in the aggregation.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as customerprofiles_mixins } from '@aws-cdk/mixins-preview/aws-customerprofiles';
const rangeProperty: customerprofiles_mixins.CfnCalculatedAttributeDefinitionPropsMixin.RangeProperty = {
timestampFormat: 'timestampFormat',
timestampSource: 'timestampSource',
unit: 'unit',
value: 123,
valueRange: {
end: 123,
start: 123,
},
};
Properties
| Name | Type | Description |
|---|---|---|
| timestamp | string | The format the timestamp field in your JSON object is specified. |
| timestamp | string | An expression specifying the field in your JSON object from which the date should be parsed. |
| unit? | string | The unit of time. |
| value? | number | The amount of time of the specified unit. |
| value | IResolvable | Value | A structure letting customers specify a relative time window over which over which data is included in the Calculated Attribute. |
timestampFormat?
Type:
string
(optional)
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"
timestampSource?
Type:
string
(optional)
An expression specifying the field in your JSON object from which the date should be parsed.
The expression should follow the structure of "{ObjectTypeName.
unit?
Type:
string
(optional)
The unit of time.
value?
Type:
number
(optional)
The amount of time of the specified unit.
valueRange?
Type:
IResolvable | Value
(optional)
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.

.NET
Go
Java
Python
TypeScript