RangeProperty Struct
The relative time period over which data is included in the aggregation.
| Source | |
|---|---|
| Type last changed |
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 = {
timestampFormat: 'timestampFormat',
timestampSource: 'timestampSource',
unit: 'unit',
value: 123,
valueRange: {
end: 123,
start: 123,
},
};
# 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
)
)
// 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();
// 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
}
};
// 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 #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 #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}"
valueoptionalnumbervalueoptionalint | floatvalueoptionalNumberValueoptionaldoubleValueoptional*float64 #valueRangeoptionalIResolvable | CfnCalculatedAttributeDefinition.value_rangeoptionaltyping.Union[IResolvable, ValueRangeProperty]valueRangeoptionalIResolvableValueRangeoptionalIResolvableValueRangeoptionalinterface{} #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.