Class: Aws::Pinpoint::Types::CreateRecommenderConfiguration

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-pinpoint/types.rb

Overview

Note:

When making an API call, you may pass CreateRecommenderConfiguration data as a hash:

{
  attributes: {
    "__string" => "__string",
  },
  description: "__string",
  name: "__string",
  recommendation_provider_id_type: "__string",
  recommendation_provider_role_arn: "__string", # required
  recommendation_provider_uri: "__string", # required
  recommendation_transformer_uri: "__string",
  recommendations_display_name: "__string",
  recommendations_per_message: 1,
}

Specifies Amazon Pinpoint configuration settings for retrieving and processing recommendation data from a recommender model.

Instance Attribute Summary collapse

Instance Attribute Details

#attributesHash<String,String>

A map of key-value pairs that defines 1-10 custom endpoint or user attributes, depending on the value for the RecommenderUserIdType property. Each of these attributes temporarily stores a recommended item that’s retrieved from the recommender model and sent to an AWS Lambda function for additional processing. Each attribute can be used as a message variable in a message template.

In the map, the key is the name of a custom attribute and the value is a custom display name for that attribute. The display name appears in the **Attribute finder** pane of the template editor on the Amazon Pinpoint console. The following restrictions apply to these names:

  • An attribute name must start with a letter or number and it can contain up to 50 characters. The characters can be letters, numbers, underscores (_), or hyphens (-). Attribute names are case sensitive and must be unique.

  • An attribute display name must start with a letter or number and it can contain up to 25 characters. The characters can be letters, numbers, spaces, underscores (_), or hyphens (-).

This object is required if the configuration invokes an AWS Lambda function (LambdaFunctionArn) to process recommendation data. Otherwise, don’t include this object in your request.

Returns:

  • (Hash<String,String>)


4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
# File 'lib/aws-sdk-pinpoint/types.rb', line 4123

class CreateRecommenderConfiguration < Struct.new(
  :attributes,
  :description,
  :name,
  :recommendation_provider_id_type,
  :recommendation_provider_role_arn,
  :recommendation_provider_uri,
  :recommendation_transformer_uri,
  :recommendations_display_name,
  :recommendations_per_message)
  include Aws::Structure
end

#descriptionString

A custom description of the configuration for the recommender model. The description can contain up to 128 characters.

Returns:

  • (String)


4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
# File 'lib/aws-sdk-pinpoint/types.rb', line 4123

class CreateRecommenderConfiguration < Struct.new(
  :attributes,
  :description,
  :name,
  :recommendation_provider_id_type,
  :recommendation_provider_role_arn,
  :recommendation_provider_uri,
  :recommendation_transformer_uri,
  :recommendations_display_name,
  :recommendations_per_message)
  include Aws::Structure
end

#nameString

A custom name of the configuration for the recommender model. The name must start with a letter or number and it can contain up to 128 characters. The characters can be letters, numbers, spaces, underscores (_), or hyphens (-).

Returns:

  • (String)


4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
# File 'lib/aws-sdk-pinpoint/types.rb', line 4123

class CreateRecommenderConfiguration < Struct.new(
  :attributes,
  :description,
  :name,
  :recommendation_provider_id_type,
  :recommendation_provider_role_arn,
  :recommendation_provider_uri,
  :recommendation_transformer_uri,
  :recommendations_display_name,
  :recommendations_per_message)
  include Aws::Structure
end

#recommendation_provider_id_typeString

The type of Amazon Pinpoint ID to associate with unique user IDs in the recommender model. This value enables the model to use attribute and event data that’s specific to a particular endpoint or user in an Amazon Pinpoint application. Valid values are:

  • PINPOINT_ENDPOINT_ID - Associate each user in the model with a particular endpoint in Amazon Pinpoint. The data is correlated based on endpoint IDs in Amazon Pinpoint. This is the default value.

  • PINPOINT_USER_ID - Associate each user in the model with a particular user and endpoint in Amazon Pinpoint. The data is correlated based on user IDs in Amazon Pinpoint. If you specify this value, an endpoint definition in Amazon Pinpoint has to specify a both a user ID (UserId) and an endpoint ID. Otherwise, messages won’t be sent to the user’s endpoint.

Returns:

  • (String)


4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
# File 'lib/aws-sdk-pinpoint/types.rb', line 4123

class CreateRecommenderConfiguration < Struct.new(
  :attributes,
  :description,
  :name,
  :recommendation_provider_id_type,
  :recommendation_provider_role_arn,
  :recommendation_provider_uri,
  :recommendation_transformer_uri,
  :recommendations_display_name,
  :recommendations_per_message)
  include Aws::Structure
end

#recommendation_provider_role_arnString

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon Pinpoint to retrieve recommendation data from the recommender model.

Returns:

  • (String)


4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
# File 'lib/aws-sdk-pinpoint/types.rb', line 4123

class CreateRecommenderConfiguration < Struct.new(
  :attributes,
  :description,
  :name,
  :recommendation_provider_id_type,
  :recommendation_provider_role_arn,
  :recommendation_provider_uri,
  :recommendation_transformer_uri,
  :recommendations_display_name,
  :recommendations_per_message)
  include Aws::Structure
end

#recommendation_provider_uriString

The Amazon Resource Name (ARN) of the recommender model to retrieve recommendation data from. This value must match the ARN of an Amazon Personalize campaign.

Returns:

  • (String)


4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
# File 'lib/aws-sdk-pinpoint/types.rb', line 4123

class CreateRecommenderConfiguration < Struct.new(
  :attributes,
  :description,
  :name,
  :recommendation_provider_id_type,
  :recommendation_provider_role_arn,
  :recommendation_provider_uri,
  :recommendation_transformer_uri,
  :recommendations_display_name,
  :recommendations_per_message)
  include Aws::Structure
end

#recommendation_transformer_uriString

The name or Amazon Resource Name (ARN) of the AWS Lambda function to invoke for additional processing of recommendation data that’s retrieved from the recommender model.

Returns:

  • (String)


4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
# File 'lib/aws-sdk-pinpoint/types.rb', line 4123

class CreateRecommenderConfiguration < Struct.new(
  :attributes,
  :description,
  :name,
  :recommendation_provider_id_type,
  :recommendation_provider_role_arn,
  :recommendation_provider_uri,
  :recommendation_transformer_uri,
  :recommendations_display_name,
  :recommendations_per_message)
  include Aws::Structure
end

#recommendations_display_nameString

A custom display name for the standard endpoint or user attribute (RecommendationItems) that temporarily stores a recommended item for each endpoint or user, depending on the value for the RecommenderUserIdType property. This value is required if the configuration doesn’t invoke an AWS Lambda function (LambdaFunctionArn) to perform additional processing of recommendation data.

This name appears in the **Attribute finder** pane of the template editor on the Amazon Pinpoint console. The name can contain up to 25 characters. The characters can be letters, numbers, spaces, underscores (_), or hyphens (-). These restrictions don’t apply to attribute values.

Returns:

  • (String)


4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
# File 'lib/aws-sdk-pinpoint/types.rb', line 4123

class CreateRecommenderConfiguration < Struct.new(
  :attributes,
  :description,
  :name,
  :recommendation_provider_id_type,
  :recommendation_provider_role_arn,
  :recommendation_provider_uri,
  :recommendation_transformer_uri,
  :recommendations_display_name,
  :recommendations_per_message)
  include Aws::Structure
end

#recommendations_per_messageInteger

The number of recommended items to retrieve from the model for each endpoint or user, depending on the value for the RecommenderUserIdType property. This number determines how many recommended attributes are available for use as message variables in message templates. The minimum value is 1. The maximum value is 5. The default value is 5.

To use multiple recommended items and custom attributes with message variables, you have to use an AWS Lambda function (LambdaFunctionArn) to perform additional processing of recommendation data.

Returns:

  • (Integer)


4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
# File 'lib/aws-sdk-pinpoint/types.rb', line 4123

class CreateRecommenderConfiguration < Struct.new(
  :attributes,
  :description,
  :name,
  :recommendation_provider_id_type,
  :recommendation_provider_role_arn,
  :recommendation_provider_uri,
  :recommendation_transformer_uri,
  :recommendations_display_name,
  :recommendations_per_message)
  include Aws::Structure
end