DeadlineCloud / Client / copy_job_template

copy_job_template#

DeadlineCloud.Client.copy_job_template(**kwargs)#

Copies a job template to an Amazon S3 bucket.

See also: AWS API Documentation

Request Syntax

response = client.copy_job_template(
    farmId='string',
    jobId='string',
    queueId='string',
    targetS3Location={
        'bucketName': 'string',
        'key': 'string'
    }
)
Parameters:
  • farmId (string) –

    [REQUIRED]

    The farm ID to copy.

  • jobId (string) –

    [REQUIRED]

    The job ID to copy.

  • queueId (string) –

    [REQUIRED]

    The queue ID to copy.

  • targetS3Location (dict) –

    [REQUIRED]

    The Amazon S3 bucket name and key where you would like to add a copy of the job template.

    • bucketName (string) – [REQUIRED]

      The name of the Amazon S3 bucket.

    • key (string) – [REQUIRED]

      The Amazon S3 object key that uniquely identifies the Amazon S3 bucket.

Return type:

dict

Returns:

Response Syntax

{
    'templateType': 'JSON'|'YAML'
}

Response Structure

  • (dict) –

    • templateType (string) –

      The format of the job template, either JSON or YAML.

Exceptions