

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::CustomerProfiles::CalculatedAttributeDefinition
<a name="aws-resource-customerprofiles-calculatedattributedefinition"></a>

A calculated attribute definition for Customer Profiles.

## Syntax
<a name="aws-resource-customerprofiles-calculatedattributedefinition-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-resource-customerprofiles-calculatedattributedefinition-syntax.json"></a>

```
{
  "Type" : "AWS::CustomerProfiles::CalculatedAttributeDefinition",
  "Properties" : {
      "[AttributeDetails](#cfn-customerprofiles-calculatedattributedefinition-attributedetails)" : AttributeDetails,
      "[CalculatedAttributeName](#cfn-customerprofiles-calculatedattributedefinition-calculatedattributename)" : String,
      "[Conditions](#cfn-customerprofiles-calculatedattributedefinition-conditions)" : Conditions,
      "[Description](#cfn-customerprofiles-calculatedattributedefinition-description)" : String,
      "[DisplayName](#cfn-customerprofiles-calculatedattributedefinition-displayname)" : String,
      "[DomainName](#cfn-customerprofiles-calculatedattributedefinition-domainname)" : String,
      "[Statistic](#cfn-customerprofiles-calculatedattributedefinition-statistic)" : String,
      "[Tags](#cfn-customerprofiles-calculatedattributedefinition-tags)" : [ Tag, ... ],
      "[UseHistoricalData](#cfn-customerprofiles-calculatedattributedefinition-usehistoricaldata)" : Boolean
    }
}
```

### YAML
<a name="aws-resource-customerprofiles-calculatedattributedefinition-syntax.yaml"></a>

```
Type: AWS::CustomerProfiles::CalculatedAttributeDefinition
Properties:
  [AttributeDetails](#cfn-customerprofiles-calculatedattributedefinition-attributedetails): 
    AttributeDetails
  [CalculatedAttributeName](#cfn-customerprofiles-calculatedattributedefinition-calculatedattributename): String
  [Conditions](#cfn-customerprofiles-calculatedattributedefinition-conditions): 
    Conditions
  [Description](#cfn-customerprofiles-calculatedattributedefinition-description): String
  [DisplayName](#cfn-customerprofiles-calculatedattributedefinition-displayname): String
  [DomainName](#cfn-customerprofiles-calculatedattributedefinition-domainname): String
  [Statistic](#cfn-customerprofiles-calculatedattributedefinition-statistic): String
  [Tags](#cfn-customerprofiles-calculatedattributedefinition-tags): 
    - Tag
  [UseHistoricalData](#cfn-customerprofiles-calculatedattributedefinition-usehistoricaldata): Boolean
```

## Properties
<a name="aws-resource-customerprofiles-calculatedattributedefinition-properties"></a>

`AttributeDetails`  <a name="cfn-customerprofiles-calculatedattributedefinition-attributedetails"></a>
Mathematical expression and a list of attribute items specified in that expression.  
*Required*: Yes  
*Type*: [AttributeDetails](aws-properties-customerprofiles-calculatedattributedefinition-attributedetails.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`CalculatedAttributeName`  <a name="cfn-customerprofiles-calculatedattributedefinition-calculatedattributename"></a>
The name of an attribute defined in a profile object type.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^[a-zA-Z_][a-zA-Z_0-9-]*$`  
*Minimum*: `1`  
*Maximum*: `255`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Conditions`  <a name="cfn-customerprofiles-calculatedattributedefinition-conditions"></a>
The conditions including range, object count, and threshold for the calculated attribute.  
*Required*: No  
*Type*: [Conditions](aws-properties-customerprofiles-calculatedattributedefinition-conditions.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Description`  <a name="cfn-customerprofiles-calculatedattributedefinition-description"></a>
The description of the calculated attribute.  
*Required*: No  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `1000`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`DisplayName`  <a name="cfn-customerprofiles-calculatedattributedefinition-displayname"></a>
The display name of the calculated attribute.  
*Required*: No  
*Type*: String  
*Pattern*: `^[a-zA-Z_][a-zA-Z_0-9-\s]*$`  
*Minimum*: `1`  
*Maximum*: `255`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`DomainName`  <a name="cfn-customerprofiles-calculatedattributedefinition-domainname"></a>
The unique name of the domain.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^[a-zA-Z0-9_-]+$`  
*Minimum*: `1`  
*Maximum*: `64`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Statistic`  <a name="cfn-customerprofiles-calculatedattributedefinition-statistic"></a>
The aggregation operation to perform for the calculated attribute.  
*Required*: Yes  
*Type*: String  
*Allowed values*: `FIRST_OCCURRENCE | LAST_OCCURRENCE | COUNT | SUM | MINIMUM | MAXIMUM | AVERAGE | MAX_OCCURRENCE`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Tags`  <a name="cfn-customerprofiles-calculatedattributedefinition-tags"></a>
An array of key-value pairs to apply to this resource.  
*Required*: No  
*Type*: Array of [Tag](aws-properties-customerprofiles-calculatedattributedefinition-tag.md)  
*Minimum*: `0`  
*Maximum*: `50`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`UseHistoricalData`  <a name="cfn-customerprofiles-calculatedattributedefinition-usehistoricaldata"></a>
Whether historical data ingested before the Calculated Attribute was created should be included in calculations.  
*Required*: No  
*Type*: Boolean  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

## Return values
<a name="aws-resource-customerprofiles-calculatedattributedefinition-return-values"></a>

### Ref
<a name="aws-resource-customerprofiles-calculatedattributedefinition-return-values-ref"></a>

### Fn::GetAtt
<a name="aws-resource-customerprofiles-calculatedattributedefinition-return-values-fn--getatt"></a>

#### 
<a name="aws-resource-customerprofiles-calculatedattributedefinition-return-values-fn--getatt-fn--getatt"></a>

`CreatedAt`  <a name="CreatedAt-fn::getatt"></a>
The timestamp of when the calculated attribute definition was created.

`LastUpdatedAt`  <a name="LastUpdatedAt-fn::getatt"></a>
The timestamp of when the calculated attribute definition was most recently edited.

`Status`  <a name="Status-fn::getatt"></a>
Status of the Calculated Attribute creation (whether all historical data has been indexed.)

# AWS::CustomerProfiles::CalculatedAttributeDefinition AttributeDetails
<a name="aws-properties-customerprofiles-calculatedattributedefinition-attributedetails"></a>

Mathematical expression and a list of attribute items specified in that expression.

## Syntax
<a name="aws-properties-customerprofiles-calculatedattributedefinition-attributedetails-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-customerprofiles-calculatedattributedefinition-attributedetails-syntax.json"></a>

```
{
  "[Attributes](#cfn-customerprofiles-calculatedattributedefinition-attributedetails-attributes)" : [ AttributeItem, ... ],
  "[Expression](#cfn-customerprofiles-calculatedattributedefinition-attributedetails-expression)" : String
}
```

### YAML
<a name="aws-properties-customerprofiles-calculatedattributedefinition-attributedetails-syntax.yaml"></a>

```
  [Attributes](#cfn-customerprofiles-calculatedattributedefinition-attributedetails-attributes): 
    - AttributeItem
  [Expression](#cfn-customerprofiles-calculatedattributedefinition-attributedetails-expression): String
```

## Properties
<a name="aws-properties-customerprofiles-calculatedattributedefinition-attributedetails-properties"></a>

`Attributes`  <a name="cfn-customerprofiles-calculatedattributedefinition-attributedetails-attributes"></a>
Mathematical expression and a list of attribute items specified in that expression.  
*Required*: Yes  
*Type*: Array of [AttributeItem](aws-properties-customerprofiles-calculatedattributedefinition-attributeitem.md)  
*Minimum*: `1`  
*Maximum*: `2`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Expression`  <a name="cfn-customerprofiles-calculatedattributedefinition-attributedetails-expression"></a>
Mathematical expression that is performed on attribute items provided in the attribute list. Each element in the expression should follow the structure of \$1"\$1ObjectTypeName.AttributeName\$1\$1".  
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `255`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::CustomerProfiles::CalculatedAttributeDefinition AttributeItem
<a name="aws-properties-customerprofiles-calculatedattributedefinition-attributeitem"></a>

The details of a single attribute item specified in the mathematical expression.

## Syntax
<a name="aws-properties-customerprofiles-calculatedattributedefinition-attributeitem-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-customerprofiles-calculatedattributedefinition-attributeitem-syntax.json"></a>

```
{
  "[Name](#cfn-customerprofiles-calculatedattributedefinition-attributeitem-name)" : String
}
```

### YAML
<a name="aws-properties-customerprofiles-calculatedattributedefinition-attributeitem-syntax.yaml"></a>

```
  [Name](#cfn-customerprofiles-calculatedattributedefinition-attributeitem-name): String
```

## Properties
<a name="aws-properties-customerprofiles-calculatedattributedefinition-attributeitem-properties"></a>

`Name`  <a name="cfn-customerprofiles-calculatedattributedefinition-attributeitem-name"></a>
The unique name of the calculated attribute.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^[a-zA-Z0-9_.-]+$`  
*Minimum*: `1`  
*Maximum*: `64`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::CustomerProfiles::CalculatedAttributeDefinition Conditions
<a name="aws-properties-customerprofiles-calculatedattributedefinition-conditions"></a>

The conditions including range, object count, and threshold for the calculated attribute.

## Syntax
<a name="aws-properties-customerprofiles-calculatedattributedefinition-conditions-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-customerprofiles-calculatedattributedefinition-conditions-syntax.json"></a>

```
{
  "[ObjectCount](#cfn-customerprofiles-calculatedattributedefinition-conditions-objectcount)" : Integer,
  "[Range](#cfn-customerprofiles-calculatedattributedefinition-conditions-range)" : Range,
  "[Threshold](#cfn-customerprofiles-calculatedattributedefinition-conditions-threshold)" : Threshold
}
```

### YAML
<a name="aws-properties-customerprofiles-calculatedattributedefinition-conditions-syntax.yaml"></a>

```
  [ObjectCount](#cfn-customerprofiles-calculatedattributedefinition-conditions-objectcount): Integer
  [Range](#cfn-customerprofiles-calculatedattributedefinition-conditions-range): 
    Range
  [Threshold](#cfn-customerprofiles-calculatedattributedefinition-conditions-threshold): 
    Threshold
```

## Properties
<a name="aws-properties-customerprofiles-calculatedattributedefinition-conditions-properties"></a>

`ObjectCount`  <a name="cfn-customerprofiles-calculatedattributedefinition-conditions-objectcount"></a>
The number of profile objects used for the calculated attribute.  
*Required*: No  
*Type*: Integer  
*Minimum*: `1`  
*Maximum*: `300`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Range`  <a name="cfn-customerprofiles-calculatedattributedefinition-conditions-range"></a>
The relative time period over which data is included in the aggregation.  
*Required*: No  
*Type*: [Range](aws-properties-customerprofiles-calculatedattributedefinition-range.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Threshold`  <a name="cfn-customerprofiles-calculatedattributedefinition-conditions-threshold"></a>
The threshold for the calculated attribute.  
*Required*: No  
*Type*: [Threshold](aws-properties-customerprofiles-calculatedattributedefinition-threshold.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::CustomerProfiles::CalculatedAttributeDefinition Range
<a name="aws-properties-customerprofiles-calculatedattributedefinition-range"></a>

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

## Syntax
<a name="aws-properties-customerprofiles-calculatedattributedefinition-range-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-customerprofiles-calculatedattributedefinition-range-syntax.json"></a>

```
{
  "[TimestampFormat](#cfn-customerprofiles-calculatedattributedefinition-range-timestampformat)" : String,
  "[TimestampSource](#cfn-customerprofiles-calculatedattributedefinition-range-timestampsource)" : String,
  "[Unit](#cfn-customerprofiles-calculatedattributedefinition-range-unit)" : String,
  "[Value](#cfn-customerprofiles-calculatedattributedefinition-range-value)" : Integer,
  "[ValueRange](#cfn-customerprofiles-calculatedattributedefinition-range-valuerange)" : ValueRange
}
```

### YAML
<a name="aws-properties-customerprofiles-calculatedattributedefinition-range-syntax.yaml"></a>

```
  [TimestampFormat](#cfn-customerprofiles-calculatedattributedefinition-range-timestampformat): String
  [TimestampSource](#cfn-customerprofiles-calculatedattributedefinition-range-timestampsource): String
  [Unit](#cfn-customerprofiles-calculatedattributedefinition-range-unit): String
  [Value](#cfn-customerprofiles-calculatedattributedefinition-range-value): Integer
  [ValueRange](#cfn-customerprofiles-calculatedattributedefinition-range-valuerange): 
    ValueRange
```

## Properties
<a name="aws-properties-customerprofiles-calculatedattributedefinition-range-properties"></a>

`TimestampFormat`  <a name="cfn-customerprofiles-calculatedattributedefinition-range-timestampformat"></a>
The format the timestamp field in your JSON object is specified. This value should be one of EPOCHMILLI (for Unix epoch timestamps with second/millisecond level precision) or ISO\$18601 (following ISO\$18601 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 \$1"generatedAt": \$1"timestamp": "2001-07-04T12:08:56.235-0700"\$1\$1, then TimestampFormat should be "ISO\$18601"  
*Required*: No  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `255`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`TimestampSource`  <a name="cfn-customerprofiles-calculatedattributedefinition-range-timestampsource"></a>
An expression specifying the field in your JSON object from which the date should be parsed. The expression should follow the structure of \$1"\$1ObjectTypeName.<Location of timestamp field in JSON pointer format>\$1\$1". E.g. if your object type is MyType and source JSON is \$1"generatedAt": \$1"timestamp": "1737587945945"\$1\$1, then TimestampSource should be "\$1MyType.generatedAt.timestamp\$1"  
*Required*: No  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `255`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Unit`  <a name="cfn-customerprofiles-calculatedattributedefinition-range-unit"></a>
The unit of time.  
*Required*: Yes  
*Type*: String  
*Allowed values*: `DAYS`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Value`  <a name="cfn-customerprofiles-calculatedattributedefinition-range-value"></a>
The amount of time of the specified unit.  
*Required*: No  
*Type*: Integer  
*Minimum*: `1`  
*Maximum*: `2147483647`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ValueRange`  <a name="cfn-customerprofiles-calculatedattributedefinition-range-valuerange"></a>
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.  
*Required*: No  
*Type*: [ValueRange](aws-properties-customerprofiles-calculatedattributedefinition-valuerange.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::CustomerProfiles::CalculatedAttributeDefinition Readiness
<a name="aws-properties-customerprofiles-calculatedattributedefinition-readiness"></a>

Information indicating if the Calculated Attribute is ready for use by confirming all historical data has been processed and reflected.

## Syntax
<a name="aws-properties-customerprofiles-calculatedattributedefinition-readiness-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-customerprofiles-calculatedattributedefinition-readiness-syntax.json"></a>

```
{
  "[Message](#cfn-customerprofiles-calculatedattributedefinition-readiness-message)" : String,
  "[ProgressPercentage](#cfn-customerprofiles-calculatedattributedefinition-readiness-progresspercentage)" : Integer
}
```

### YAML
<a name="aws-properties-customerprofiles-calculatedattributedefinition-readiness-syntax.yaml"></a>

```
  [Message](#cfn-customerprofiles-calculatedattributedefinition-readiness-message): String
  [ProgressPercentage](#cfn-customerprofiles-calculatedattributedefinition-readiness-progresspercentage): Integer
```

## Properties
<a name="aws-properties-customerprofiles-calculatedattributedefinition-readiness-properties"></a>

`Message`  <a name="cfn-customerprofiles-calculatedattributedefinition-readiness-message"></a>
Any customer messaging.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ProgressPercentage`  <a name="cfn-customerprofiles-calculatedattributedefinition-readiness-progresspercentage"></a>
Approximately how far the Calculated Attribute creation is from completion.  
*Required*: No  
*Type*: Integer  
*Minimum*: `0`  
*Maximum*: `100`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::CustomerProfiles::CalculatedAttributeDefinition Tag
<a name="aws-properties-customerprofiles-calculatedattributedefinition-tag"></a>

<a name="aws-properties-customerprofiles-calculatedattributedefinition-tag-description"></a>The `Tag` property type specifies Property description not available. for an [AWS::CustomerProfiles::CalculatedAttributeDefinition](aws-resource-customerprofiles-calculatedattributedefinition.md).

## Syntax
<a name="aws-properties-customerprofiles-calculatedattributedefinition-tag-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-customerprofiles-calculatedattributedefinition-tag-syntax.json"></a>

```
{
  "[Key](#cfn-customerprofiles-calculatedattributedefinition-tag-key)" : String,
  "[Value](#cfn-customerprofiles-calculatedattributedefinition-tag-value)" : String
}
```

### YAML
<a name="aws-properties-customerprofiles-calculatedattributedefinition-tag-syntax.yaml"></a>

```
  [Key](#cfn-customerprofiles-calculatedattributedefinition-tag-key): String
  [Value](#cfn-customerprofiles-calculatedattributedefinition-tag-value): String
```

## Properties
<a name="aws-properties-customerprofiles-calculatedattributedefinition-tag-properties"></a>

`Key`  <a name="cfn-customerprofiles-calculatedattributedefinition-tag-key"></a>
Property description not available.  
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `128`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Value`  <a name="cfn-customerprofiles-calculatedattributedefinition-tag-value"></a>
Property description not available.  
*Required*: Yes  
*Type*: String  
*Minimum*: `0`  
*Maximum*: `256`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::CustomerProfiles::CalculatedAttributeDefinition Threshold
<a name="aws-properties-customerprofiles-calculatedattributedefinition-threshold"></a>

The threshold for the calculated attribute.

## Syntax
<a name="aws-properties-customerprofiles-calculatedattributedefinition-threshold-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-customerprofiles-calculatedattributedefinition-threshold-syntax.json"></a>

```
{
  "[Operator](#cfn-customerprofiles-calculatedattributedefinition-threshold-operator)" : String,
  "[Value](#cfn-customerprofiles-calculatedattributedefinition-threshold-value)" : String
}
```

### YAML
<a name="aws-properties-customerprofiles-calculatedattributedefinition-threshold-syntax.yaml"></a>

```
  [Operator](#cfn-customerprofiles-calculatedattributedefinition-threshold-operator): String
  [Value](#cfn-customerprofiles-calculatedattributedefinition-threshold-value): String
```

## Properties
<a name="aws-properties-customerprofiles-calculatedattributedefinition-threshold-properties"></a>

`Operator`  <a name="cfn-customerprofiles-calculatedattributedefinition-threshold-operator"></a>
The operator of the threshold.  
*Required*: Yes  
*Type*: String  
*Allowed values*: `EQUAL_TO | GREATER_THAN | LESS_THAN | NOT_EQUAL_TO`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Value`  <a name="cfn-customerprofiles-calculatedattributedefinition-threshold-value"></a>
The value of the threshold.  
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `255`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::CustomerProfiles::CalculatedAttributeDefinition ValueRange
<a name="aws-properties-customerprofiles-calculatedattributedefinition-valuerange"></a>

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.

## Syntax
<a name="aws-properties-customerprofiles-calculatedattributedefinition-valuerange-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-customerprofiles-calculatedattributedefinition-valuerange-syntax.json"></a>

```
{
  "[End](#cfn-customerprofiles-calculatedattributedefinition-valuerange-end)" : Integer,
  "[Start](#cfn-customerprofiles-calculatedattributedefinition-valuerange-start)" : Integer
}
```

### YAML
<a name="aws-properties-customerprofiles-calculatedattributedefinition-valuerange-syntax.yaml"></a>

```
  [End](#cfn-customerprofiles-calculatedattributedefinition-valuerange-end): Integer
  [Start](#cfn-customerprofiles-calculatedattributedefinition-valuerange-start): Integer
```

## Properties
<a name="aws-properties-customerprofiles-calculatedattributedefinition-valuerange-properties"></a>

`End`  <a name="cfn-customerprofiles-calculatedattributedefinition-valuerange-end"></a>
The ending point for this overridden range. Positive numbers indicate how many days in the past data should be included, and negative numbers indicate how many days in the future.  
*Required*: Yes  
*Type*: Integer  
*Minimum*: `-2147483648`  
*Maximum*: `2147483647`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Start`  <a name="cfn-customerprofiles-calculatedattributedefinition-valuerange-start"></a>
The starting point for this overridden range. Positive numbers indicate how many days in the past data should be included, and negative numbers indicate how many days in the future.  
*Required*: Yes  
*Type*: Integer  
*Minimum*: `-2147483648`  
*Maximum*: `2147483647`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)