rewards
Creates, updates, deletes, gets or lists a rewards resource.
Overview
| Name | rewards |
| Type | Resource |
| Id | aws.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
update_reward | update | X-Amzn-SageMaker-Job-Arn, region, TrajectoryId, Rewards | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
X-Amzn-SageMaker-Job-Arn | string | The job ARN. |
region | string | AWS region (default: us-east-1) |
UPDATE examples
- update_reward
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;