AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Contains information on a promotion. A promotion defines additional business rules that apply to a configurable subset of recommended items.

Inheritance Hierarchy

System.Object
  Amazon.PersonalizeRuntime.Model.Promotion

Namespace: Amazon.PersonalizeRuntime.Model
Assembly: AWSSDK.PersonalizeRuntime.dll
Version: 3.x.y.z

Syntax

C#
public class Promotion

The Promotion type exposes the following members

Constructors

NameDescription
Public Method Promotion()

Properties

NameTypeDescription
Public Property FilterArn System.String

Gets and sets the property FilterArn.

The Amazon Resource Name (ARN) of the filter used by the promotion. This filter defines the criteria for promoted items. For more information, see Promotion filters.

Public Property FilterValues System.Collections.Generic.Dictionary<System.String, System.String>

Gets and sets the property FilterValues.

The values to use when promoting items. For each placeholder parameter in your promotion's filter expression, provide the parameter name (in matching case) as a key and the filter value(s) as the corresponding value. Separate multiple values for one parameter with a comma.

For filter expressions that use an INCLUDE element to include items, you must provide values for all parameters that are defined in the expression. For filters with expressions that use an EXCLUDE element to exclude items, you can omit the filter-values. In this case, Amazon Personalize doesn't use that portion of the expression to filter recommendations.

For more information on creating filters, see Filtering recommendations and user segments.

Public Property Name System.String

Gets and sets the property Name.

The name of the promotion.

Public Property PercentPromotedItems System.Int32

Gets and sets the property PercentPromotedItems.

The percentage of recommended items to apply the promotion to.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5