ConditionsProperty Struct
The conditions including range, object count, and threshold for the calculated attribute.
| Source | |
|---|---|
| Type last changed |
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 conditionsProperty: customerprofiles.CfnCalculatedAttributeDefinition.ConditionsProperty = {
objectCount: 123,
range: {
timestampFormat: 'timestampFormat',
timestampSource: 'timestampSource',
unit: 'unit',
value: 123,
valueRange: {
end: 123,
start: 123,
},
},
threshold: {
operator: 'operator',
value: 'value',
},
};
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
conditions_property = customerprofiles.CfnCalculatedAttributeDefinition.ConditionsProperty(
object_count=123,
range=customerprofiles.CfnCalculatedAttributeDefinition.RangeProperty(
timestamp_format="timestampFormat",
timestamp_source="timestampSource",
unit="unit",
value=123,
value_range=customerprofiles.CfnCalculatedAttributeDefinition.ValueRangeProperty(
end=123,
start=123
)
),
threshold=customerprofiles.CfnCalculatedAttributeDefinition.ThresholdProperty(
operator="operator",
value="value"
)
)
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.*;
ConditionsProperty conditionsProperty = ConditionsProperty.builder()
.objectCount(123)
.range(RangeProperty.builder()
.timestampFormat("timestampFormat")
.timestampSource("timestampSource")
.unit("unit")
.value(123)
.valueRange(ValueRangeProperty.builder()
.end(123)
.start(123)
.build())
.build())
.threshold(ThresholdProperty.builder()
.operator("operator")
.value("value")
.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 conditionsProperty = new ConditionsProperty {
ObjectCount = 123,
Range = new RangeProperty {
TimestampFormat = "timestampFormat",
TimestampSource = "timestampSource",
Unit = "unit",
Value = 123,
ValueRange = new ValueRangeProperty {
End = 123,
Start = 123
}
},
Threshold = new ThresholdProperty {
Operator = "operator",
Value = "value"
}
};
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"
conditionsProperty := &ConditionsProperty{
ObjectCount: jsii.Number(123),
Range: &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),
},
},
Threshold: &ThresholdProperty{
Operator: jsii.String("operator"),
Value: jsii.String("value"),
},
}
Properties
objectCountoptionalnumberobject_countoptionalint | floatobjectCountoptionalNumberObjectCountoptionaldoubleObjectCountoptional*float64 #The number of profile objects used for the calculated attribute.
rangeoptionalIResolvable | CfnCalculatedAttributeDefinition.rangeoptionaltyping.Union[IResolvable, RangeProperty]rangeoptionalIResolvableRangeoptionalIResolvableRangeoptionalinterface{} #The relative time period over which data is included in the aggregation.
thresholdoptionalIResolvable | CfnCalculatedAttributeDefinition.thresholdoptionaltyping.Union[IResolvable, ThresholdProperty]thresholdoptionalIResolvableThresholdoptionalIResolvableThresholdoptionalinterface{} #The threshold for the calculated attribute.