PersonalizeEvents / Client / put_actions
put_actions#
- PersonalizeEvents.Client.put_actions(**kwargs)#
- Adds one or more actions to an Actions dataset. For more information see Importing actions individually. - See also: AWS API Documentation - Request Syntax- response = client.put_actions( datasetArn='string', actions=[ { 'actionId': 'string', 'properties': 'string' }, ] ) - Parameters:
- datasetArn (string) – - [REQUIRED] - The Amazon Resource Name (ARN) of the Actions dataset you are adding the action or actions to. 
- actions (list) – - [REQUIRED] - A list of action data. - (dict) – - Represents action metadata added to an Action dataset using the - PutActionsAPI. For more information see Importing actions individually.- actionId (string) – [REQUIRED] - The ID associated with the action. 
- properties (string) – - A string map of action-specific metadata. Each element in the map consists of a key-value pair. For example, - {"value": "100"}.- The keys use camel case names that match the fields in the schema for the Actions dataset. In the previous example, the - valuematches the ‘VALUE’ field defined in the Actions schema. For categorical string data, to include multiple categories for a single action, separate each category with a pipe separator (- |). For example,- \"Deluxe|Premium\".
 
 
 
- Returns:
- None 
 - Exceptions- PersonalizeEvents.Client.exceptions.InvalidInputException
- PersonalizeEvents.Client.exceptions.ResourceNotFoundException
- PersonalizeEvents.Client.exceptions.ResourceInUseException