CleanRoomsService / Client / update_protected_job
update_protected_job#
- CleanRoomsService.Client.update_protected_job(**kwargs)#
Updates the processing of a currently running job.
See also: AWS API Documentation
Request Syntax
response = client.update_protected_job( membershipIdentifier='string', protectedJobIdentifier='string', targetStatus='CANCELLED' )
- Parameters:
membershipIdentifier (string) –
[REQUIRED]
The identifier for a member of a protected job instance.
protectedJobIdentifier (string) –
[REQUIRED]
The identifier of the protected job to update.
targetStatus (string) –
[REQUIRED]
The target status of a protected job. Used to update the execution status of a currently running job.
- Return type:
dict
- Returns:
Response Syntax
{ 'protectedJob': { 'id': 'string', 'membershipId': 'string', 'membershipArn': 'string', 'createTime': datetime(2015, 1, 1), 'jobParameters': { 'analysisTemplateArn': 'string' }, 'status': 'SUBMITTED'|'STARTED'|'CANCELLED'|'CANCELLING'|'FAILED'|'SUCCESS', 'resultConfiguration': { 'outputConfiguration': { 's3': { 'bucket': 'string', 'keyPrefix': 'string' }, 'member': { 'accountId': 'string' } } }, 'statistics': { 'totalDurationInMillis': 123, 'billedResourceUtilization': { 'units': 123.0 } }, 'result': { 'output': { 's3': { 'location': 'string' }, 'memberList': [ { 'accountId': 'string' }, ] } }, 'error': { 'message': 'string', 'code': 'string' } } }
Response Structure
(dict) –
protectedJob (dict) –
The protected job output.
id (string) –
The identifier for a protected job instance.
membershipId (string) –
he identifier for the membership.
membershipArn (string) –
The ARN of the membership.
createTime (datetime) –
The creation time of the protected job.
jobParameters (dict) –
The job parameters for the protected job.
analysisTemplateArn (string) –
The ARN of the analysis template.
status (string) –
The status of the protected job.
resultConfiguration (dict) –
Contains any details needed to write the job results.
outputConfiguration (dict) –
The output configuration.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
s3
,member
. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBER
is as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
s3 (dict) –
If present, the output for a protected job with an S3 output type.
bucket (string) –
The S3 bucket for job output.
keyPrefix (string) –
The S3 prefix to unload the protected job results.
member (dict) –
The member output configuration for a protected job.
accountId (string) –
The account ID.
statistics (dict) –
The statistics of the protected job.
totalDurationInMillis (integer) –
The duration of the protected job, from creation until job completion, in milliseconds.
billedResourceUtilization (dict) –
The billed resource utilization for the protected job.
units (float) –
The number of Clean Rooms Processing Unit (CRPU) hours that have been billed.
result (dict) –
The result of the protected job.
output (dict) –
The output of the protected job.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
s3
,memberList
. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBER
is as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
s3 (dict) –
If present, the output for a protected job with an S3 output type.
location (string) –
The S3 location for the protected job output.
memberList (list) –
The list of member Amazon Web Services account(s) that received the results of the job.
(dict) –
Details about the member who received the job result.
accountId (string) –
The Amazon Web Services account ID of the member in the collaboration who can receive results from analyses.
error (dict) –
The error from the protected job.
message (string) –
The message for the protected job error.
code (string) –
The error code for the protected job.
Exceptions