Skip to main content

protected_jobs

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

Overview

Nameprotected_jobs
TypeResource
Idaws.cleanrooms.protected_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe identifier for a protected job instance. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
compute_configurationobjectThe compute configuration for the protected job.
create_timestring (date-time)The creation time of the protected job.
errorobjectThe error from the protected job.
job_compute_payer_account_idstringThe account ID of the member that pays for the job compute costs. (pattern: <code>\d+</code>)
job_parametersobjectThe job parameters for the protected job.
membership_arnstringThe ARN of the membership. (pattern: <code>arn:aws:[\w]+:[\w]{2}-[\w]{4,9}-[\d]:[\d]{12}:membership/[\d\w-]+</code>)
membership_idstringhe identifier for the membership. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
resultobjectThe result of the protected job.
result_configurationobjectContains any details needed to write the job results.
statisticsobjectThe statistics of the protected job.
statusstringThe status of the protected job. (SUBMITTED, STARTED, CANCELLED, CANCELLING, FAILED, SUCCESS)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_protected_jobselectmembership_identifier, protected_job_identifier, regionReturns job processing metadata.
list_protected_jobsselectmembership_identifier, regionstatus, nextToken, maxResultsLists protected jobs, sorted by most recent job.
update_protected_jobupdatemembership_identifier, protected_job_identifier, region, targetStatusUpdates the processing of a currently running job.

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
membership_identifierstringThe identifier for a member of a protected job instance.
protected_job_identifierstringThe identifier of the protected job to update.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results that are returned for an API request call. The service chooses a default number if you don't set one. The service might return a nextToken even if the maxResults value has not been met.
nextTokenstringThe pagination token that's used to fetch the next set of results.
statusstringA filter on the status of the protected job.

SELECT examples

Returns job processing metadata.

SELECT
id,
compute_configuration,
create_time,
error,
job_compute_payer_account_id,
job_parameters,
membership_arn,
membership_id,
result,
result_configuration,
statistics,
status
FROM aws.cleanrooms.protected_jobs
WHERE membership_identifier = '{{ membership_identifier }}' -- required
AND protected_job_identifier = '{{ protected_job_identifier }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Updates the processing of a currently running job.

UPDATE aws.cleanrooms.protected_jobs
SET
targetStatus = '{{ targetStatus }}'
WHERE
membership_identifier = '{{ membership_identifier }}' --required
AND protected_job_identifier = '{{ protected_job_identifier }}' --required
AND region = '{{ region }}' --required
AND targetStatus = '{{ targetStatus }}' --required
RETURNING
protected_job;