Skip to content

Updates an existing calculated attribute definition

Description

Updates an existing calculated attribute definition. When updating the Conditions, note that increasing the date range of a calculated attribute will not trigger inclusion of historical data greater than the current date range.

Usage

customerprofiles_update_calculated_attribute_definition(DomainName,
  CalculatedAttributeName, DisplayName, Description, Conditions)

Arguments

  • DomainName

    [required] The unique name of the domain.

  • CalculatedAttributeName

    [required] The unique name of the calculated attribute.

  • DisplayName

    The display name of the calculated attribute.

  • Description

    The description of the calculated attribute.

  • Conditions

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

Value

A list with the following syntax:

list(
  CalculatedAttributeName = "string",
  DisplayName = "string",
  Description = "string",
  CreatedAt = as.POSIXct(
    "2015-01-01"
  ),
  LastUpdatedAt = as.POSIXct(
    "2015-01-01"
  ),
  Statistic = "FIRST_OCCURRENCE"|"LAST_OCCURRENCE"|"COUNT"|"SUM"|"MINIMUM"|"MAXIMUM"|"AVERAGE"|"MAX_OCCURRENCE"|"RECENT_OCCURRENCES",
  Conditions = list(
    Range = list(
      Value = 123,
      Unit = "DAYS",
      ValueRange = list(
        Start = 123,
        End = 123
      ),
      TimestampSource = "string",
      TimestampFormat = "string"
    ),
    ObjectCount = 123,
    Threshold = list(
      Value = "string",
      Operator = "EQUAL_TO"|"GREATER_THAN"|"LESS_THAN"|"NOT_EQUAL_TO"
    )
  ),
  AttributeDetails = list(
    Attributes = list(
      list(
        Name = "string"
      )
    ),
    Expression = "string"
  ),
  UseHistoricalData = TRUE|FALSE,
  Status = "PREPARING"|"IN_PROGRESS"|"COMPLETED"|"FAILED",
  Readiness = list(
    ProgressPercentage = 123,
    Message = "string"
  ),
  Tags = list(
    "string"
  )
)

Request syntax

svc$update_calculated_attribute_definition(
  DomainName = "string",
  CalculatedAttributeName = "string",
  DisplayName = "string",
  Description = "string",
  Conditions = list(
    Range = list(
      Value = 123,
      Unit = "DAYS",
      ValueRange = list(
        Start = 123,
        End = 123
      ),
      TimestampSource = "string",
      TimestampFormat = "string"
    ),
    ObjectCount = 123,
    Threshold = list(
      Value = "string",
      Operator = "EQUAL_TO"|"GREATER_THAN"|"LESS_THAN"|"NOT_EQUAL_TO"
    )
  )
)