Skip to main content

rewards

Creates, updates, deletes, gets or lists a rewards resource.

Overview

Namerewards
TypeResource
Idaws.sagemakerjobruntime.rewards

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
update_rewardupdateX-Amzn-SageMaker-Job-Arn, region, TrajectoryId, RewardsUpdates the reward values for a trajectory and transitions it to reward-received status, signaling that it is eligible for processing. Call this operation after CompleteRollout to provide the computed reward scores.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
X-Amzn-SageMaker-Job-ArnstringThe job ARN.
regionstringAWS region (default: us-east-1)

UPDATE examples

Updates the reward values for a trajectory and transitions it to reward-received status, signaling that it is eligible for processing. Call this operation after CompleteRollout to provide the computed reward scores.

UPDATE aws.sagemakerjobruntime.rewards
SET
TrajectoryId = '{{ TrajectoryId }}',
Rewards = '{{ Rewards }}',
ClientToken = '{{ ClientToken }}'
WHERE
`X-Amzn-SageMaker-Job-Arn` = '{{ X-Amzn-SageMaker-Job-Arn }}' --required
AND region = '{{ region }}' --required
AND TrajectoryId = '{{ TrajectoryId }}' --required
AND Rewards = '{{ Rewards }}' --required;