interface RangeProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CustomerProfiles.CfnCalculatedAttributeDefinition.RangeProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscustomerprofiles#CfnCalculatedAttributeDefinition_RangeProperty |
![]() | software.amazon.awscdk.services.customerprofiles.CfnCalculatedAttributeDefinition.RangeProperty |
![]() | aws_cdk.aws_customerprofiles.CfnCalculatedAttributeDefinition.RangeProperty |
![]() | aws-cdk-lib » aws_customerprofiles » CfnCalculatedAttributeDefinition » 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 { aws_customerprofiles as customerprofiles } from 'aws-cdk-lib';
const rangeProperty: customerprofiles.CfnCalculatedAttributeDefinition.RangeProperty = {
unit: 'unit',
// the properties below are optional
timestampFormat: 'timestampFormat',
timestampSource: 'timestampSource',
value: 123,
valueRange: {
end: 123,
start: 123,
},
};
Properties
Name | Type | Description |
---|---|---|
unit | string | The unit of time. |
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. |
value? | number | The amount of time of the specified unit. |
value | IResolvable | Value | A structure specifying the endpoints of the relative time period over which data is included in the aggregation. |
unit
Type:
string
The unit of time.
timestampFormat?
Type:
string
(optional)
The format the timestamp field in your JSON object is specified.
This value should be one of EPOCHMILLI or ISO_8601. E.g. if your object type is MyType and source JSON is {"generatedAt": {"timestamp": "2001-07-04T12:08:56.235Z"}}, 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.
value?
Type:
number
(optional)
The amount of time of the specified unit.
valueRange?
Type:
IResolvable
|
Value
(optional)
A structure specifying the endpoints of the relative time period over which data is included in the aggregation.