GetRecommendationsRequest

public struct GetRecommendationsRequest : AWSShape

Undocumented

  • Declaration

    Swift

    public static var _members: [AWSShapeMember]
  • The Amazon Resource Name (ARN) of the campaign to use for getting recommendations.

    Declaration

    Swift

    public let campaignArn: String
  • The contextual metadata to use when getting recommendations. Contextual metadata includes any interaction information that might be relevant when getting a user’s recommendations, such as the user’s current location or device type.

    Declaration

    Swift

    public let context: [String : String]?
  • The ARN of the filter to apply to the returned recommendations. For more information, see Using Filters with Amazon Personalize. When using this parameter, be sure the filter resource is ACTIVE.

    Declaration

    Swift

    public let filterArn: String?
  • The item ID to provide recommendations for. Required for RELATED_ITEMS recipe type.

    Declaration

    Swift

    public let itemId: String?
  • The number of results to return. The default is 25. The maximum is 500.

    Declaration

    Swift

    public let numResults: Int?
  • The user ID to provide recommendations for. Required for USER_PERSONALIZATION recipe type.

    Declaration

    Swift

    public let userId: String?
  • Undocumented

    Declaration

    Swift

    public init(campaignArn: String, context: [String : String]? = nil, filterArn: String? = nil, itemId: String? = nil, numResults: Int? = nil, userId: String? = nil)
  • Declaration

    Swift

    public func validate(name: String) throws