View a markdown version of this page

DiversityColumn - Amazon Connect Customer

DiversityColumn

Defines a diversity constraint for a single item column, specifying a cap type and a target value or placeholder that controls how many recommended items may share the same column value.

Contents

CapType

The type of diversity cap to apply. Valid values are PERCENTAGE (interpret Target as a percentage of returned items) and VALUE (interpret Target as an absolute count).

Type: String

Valid Values: PERCENTAGE | VALUE

Required: Yes

Name

The name of the item catalog column on which to apply the diversity cap. The column must be defined in the recommender schema.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1000.

Required: Yes

Target

The diversity cap target. Either an integer literal (for example, "25") or a placeholder expression of the form $name whose value is supplied at inference time through GetProfileRecommendations.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: (\d+|\$[a-z_]+)

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: