Skip to content
v2.278.0

RangeProperty Struct ​

The relative time period over which data is included in the aggregation.

Example ​

ts
// 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 = {
  timestampFormat: 'timestampFormat',
  timestampSource: 'timestampSource',
  unit: 'unit',
  value: 123,
  valueRange: {
    end: 123,
    start: 123,
  },
};
python
# 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

range_property = customerprofiles.CfnCalculatedAttributeDefinition.RangeProperty(
    timestamp_format="timestampFormat",
    timestamp_source="timestampSource",
    unit="unit",
    value=123,
    value_range=customerprofiles.CfnCalculatedAttributeDefinition.ValueRangeProperty(
        end=123,
        start=123
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.customerprofiles.*;

RangeProperty rangeProperty = RangeProperty.builder()
        .timestampFormat("timestampFormat")
        .timestampSource("timestampSource")
        .unit("unit")
        .value(123)
        .valueRange(ValueRangeProperty.builder()
                .end(123)
                .start(123)
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CustomerProfiles;

var rangeProperty = new RangeProperty {
    TimestampFormat = "timestampFormat",
    TimestampSource = "timestampSource",
    Unit = "unit",
    Value = 123,
    ValueRange = new ValueRangeProperty {
        End = 123,
        Start = 123
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

rangeProperty := &RangeProperty{
	TimestampFormat: jsii.String("timestampFormat"),
	TimestampSource: jsii.String("timestampSource"),
	Unit: jsii.String("unit"),
	Value: jsii.Number(123),
	ValueRange: &ValueRangeProperty{
		End: jsii.Number(123),
		Start: jsii.Number(123),
	},
}

Properties ​

timestampFormatoptionalstringtimestamp_formatoptionalstrtimestampFormatoptionalStringTimestampFormatoptionalstringTimestampFormatoptional*string #
The format the timestamp field in your JSON object is specified.
notes

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"

timestampSourceoptionalstringtimestamp_sourceoptionalstrtimestampSourceoptionalStringTimestampSourceoptionalstringTimestampSourceoptional*string #
An expression specifying the field in your JSON object from which the date should be parsed.
notes

The expression should follow the structure of "{ObjectTypeName.<Location of timestamp field in JSON pointer format>}". E.g. if your object type is MyType and source JSON is {"generatedAt": {"timestamp": "1737587945945"}}, then TimestampSource should be "{MyType.generatedAt.timestamp}"

unitoptionalstringunitoptionalstrunitoptionalStringUnitoptionalstringUnitoptional*string #
The unit of time.
valueoptionalnumbervalueoptionalint | floatvalueoptionalNumberValueoptionaldoubleValueoptional*float64 #
The amount of time of the specified unit.
valueRangeoptionalIResolvable | CfnCalculatedAttributeDefinition.ValueRangePropertyvalue_rangeoptionaltyping.Union[IResolvable, ValueRangeProperty]valueRangeoptionalIResolvableValueRangeoptionalIResolvableValueRangeoptionalinterface{} #
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.