:doc:`DeadlineCloud <../../deadline>` / Client / copy_job_template

*****************
copy_job_template
*****************



.. py:method:: DeadlineCloud.Client.copy_job_template(**kwargs)

  

  Copies a job template to an Amazon S3 bucket.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/deadline-2023-10-12/CopyJobTemplate>`_  


  **Request Syntax**
  ::

    response = client.copy_job_template(
        farmId='string',
        jobId='string',
        queueId='string',
        targetS3Location={
            'bucketName': 'string',
            'key': 'string'
        }
    )
    
  :type farmId: string
  :param farmId: **[REQUIRED]** 

    The farm ID to copy.

    

  
  :type jobId: string
  :param jobId: **[REQUIRED]** 

    The job ID to copy.

    

  
  :type queueId: string
  :param queueId: **[REQUIRED]** 

    The queue ID to copy.

    

  
  :type targetS3Location: dict
  :param targetS3Location: **[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.

      

    
  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'templateType': 'JSON'|'YAML'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **templateType** *(string) --* 

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

        
  
  **Exceptions**
  
  *   :py:class:`DeadlineCloud.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`DeadlineCloud.Client.exceptions.InternalServerErrorException`

  
  *   :py:class:`DeadlineCloud.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`DeadlineCloud.Client.exceptions.ThrottlingException`

  
  *   :py:class:`DeadlineCloud.Client.exceptions.ValidationException`

  