Class CfnCalculatedAttributeDefinition
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.customerprofiles.CfnCalculatedAttributeDefinition
- All Implemented Interfaces:
IInspectable,ITaggableV2,ICalculatedAttributeDefinitionRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:35.789Z")
@Stability(Stable)
public class CfnCalculatedAttributeDefinition
extends CfnResource
implements IInspectable, ICalculatedAttributeDefinitionRef, ITaggableV2
A calculated attribute definition for Customer Profiles.
Example:
// 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.*;
CfnCalculatedAttributeDefinition cfnCalculatedAttributeDefinition = CfnCalculatedAttributeDefinition.Builder.create(this, "MyCfnCalculatedAttributeDefinition")
.attributeDetails(AttributeDetailsProperty.builder()
.attributes(List.of(AttributeItemProperty.builder()
.name("name")
.build()))
.expression("expression")
.build())
.calculatedAttributeName("calculatedAttributeName")
.domainName("domainName")
.statistic("statistic")
// the properties below are optional
.conditions(ConditionsProperty.builder()
.objectCount(123)
.range(RangeProperty.builder()
.unit("unit")
// the properties below are optional
.timestampFormat("timestampFormat")
.timestampSource("timestampSource")
.value(123)
.valueRange(ValueRangeProperty.builder()
.end(123)
.start(123)
.build())
.build())
.threshold(ThresholdProperty.builder()
.operator("operator")
.value("value")
.build())
.build())
.description("description")
.displayName("displayName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.useHistoricalData(false)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceMathematical expression and a list of attribute items specified in that expression.static interfaceThe details of a single attribute item specified in the mathematical expression.static final classA fluent builder forCfnCalculatedAttributeDefinition.static interfaceThe conditions including range, object count, and threshold for the calculated attribute.static interfaceThe relative time period over which data is included in the aggregation.static interfaceInformation indicating if the Calculated Attribute is ready for use by confirming all historical data has been processed and reflected.static interfaceThe threshold for the calculated attribute.static interfaceA structure letting customers specify a relative time window over which over which data is included in the Calculated Attribute.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.customerprofiles.ICalculatedAttributeDefinitionRef
ICalculatedAttributeDefinitionRef.Jsii$Default, ICalculatedAttributeDefinitionRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnCalculatedAttributeDefinition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCalculatedAttributeDefinition(software.amazon.jsii.JsiiObjectRef objRef) CfnCalculatedAttributeDefinition(software.constructs.Construct scope, String id, CfnCalculatedAttributeDefinitionProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe timestamp of when the calculated attribute definition was created.Mathematical expression and a list of attribute items specified in that expression.The timestamp of when the calculated attribute definition was most recently edited.The readiness status of the calculated attribute.Status of the Calculated Attribute creation (whether all historical data has been indexed.).A reference to a CalculatedAttributeDefinition resource.The name of an attribute defined in a profile object type.Tag Manager which manages the tags for this resource.The conditions including range, object count, and threshold for the calculated attribute.The description of the calculated attribute.The display name of the calculated attribute.The unique name of the domain.The aggregation operation to perform for the calculated attribute.getTags()An array of key-value pairs to apply to this resource.Whether historical data ingested before the Calculated Attribute was created should be included in calculations.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAttributeDetails(IResolvable value) Mathematical expression and a list of attribute items specified in that expression.voidMathematical expression and a list of attribute items specified in that expression.voidsetCalculatedAttributeName(String value) The name of an attribute defined in a profile object type.voidsetConditions(IResolvable value) The conditions including range, object count, and threshold for the calculated attribute.voidThe conditions including range, object count, and threshold for the calculated attribute.voidsetDescription(String value) The description of the calculated attribute.voidsetDisplayName(String value) The display name of the calculated attribute.voidsetDomainName(String value) The unique name of the domain.voidsetStatistic(String value) The aggregation operation to perform for the calculated attribute.voidAn array of key-value pairs to apply to this resource.voidsetUseHistoricalData(Boolean value) Whether historical data ingested before the Calculated Attribute was created should be included in calculations.voidsetUseHistoricalData(IResolvable value) Whether historical data ingested before the Calculated Attribute was created should be included in calculations.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnCalculatedAttributeDefinition
protected CfnCalculatedAttributeDefinition(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCalculatedAttributeDefinition
protected CfnCalculatedAttributeDefinition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCalculatedAttributeDefinition
@Stability(Stable) public CfnCalculatedAttributeDefinition(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnCalculatedAttributeDefinitionProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreatedAt
The timestamp of when the calculated attribute definition was created. -
getAttrLastUpdatedAt
The timestamp of when the calculated attribute definition was most recently edited. -
getAttrReadiness
The readiness status of the calculated attribute. -
getAttrStatus
Status of the Calculated Attribute creation (whether all historical data has been indexed.). -
getCalculatedAttributeDefinitionRef
@Stability(Stable) @NotNull public CalculatedAttributeDefinitionReference getCalculatedAttributeDefinitionRef()A reference to a CalculatedAttributeDefinition resource.- Specified by:
getCalculatedAttributeDefinitionRefin interfaceICalculatedAttributeDefinitionRef
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getAttributeDetails
Mathematical expression and a list of attribute items specified in that expression.Returns union: either
IResolvableorCfnCalculatedAttributeDefinition.AttributeDetailsProperty -
setAttributeDetails
Mathematical expression and a list of attribute items specified in that expression. -
setAttributeDetails
@Stability(Stable) public void setAttributeDetails(@NotNull CfnCalculatedAttributeDefinition.AttributeDetailsProperty value) Mathematical expression and a list of attribute items specified in that expression. -
getCalculatedAttributeName
The name of an attribute defined in a profile object type. -
setCalculatedAttributeName
The name of an attribute defined in a profile object type. -
getDomainName
The unique name of the domain. -
setDomainName
The unique name of the domain. -
getStatistic
The aggregation operation to perform for the calculated attribute. -
setStatistic
The aggregation operation to perform for the calculated attribute. -
getConditions
The conditions including range, object count, and threshold for the calculated attribute.Returns union: either
IResolvableorCfnCalculatedAttributeDefinition.ConditionsProperty -
setConditions
The conditions including range, object count, and threshold for the calculated attribute. -
setConditions
@Stability(Stable) public void setConditions(@Nullable CfnCalculatedAttributeDefinition.ConditionsProperty value) The conditions including range, object count, and threshold for the calculated attribute. -
getDescription
The description of the calculated attribute. -
setDescription
The description of the calculated attribute. -
getDisplayName
The display name of the calculated attribute. -
setDisplayName
The display name of the calculated attribute. -
getTags
An array of key-value pairs to apply to this resource. -
setTags
An array of key-value pairs to apply to this resource. -
getUseHistoricalData
Whether historical data ingested before the Calculated Attribute was created should be included in calculations.Returns union: either
BooleanorIResolvable -
setUseHistoricalData
Whether historical data ingested before the Calculated Attribute was created should be included in calculations. -
setUseHistoricalData
Whether historical data ingested before the Calculated Attribute was created should be included in calculations.
-