:doc:`NovaActService <../../nova-act>` / Client / create_workflow_definition

**************************
create_workflow_definition
**************************



.. py:method:: NovaActService.Client.create_workflow_definition(**kwargs)

  

  Creates a new workflow definition template that can be used to execute multiple workflow runs.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/nova-act-2025-08-22/CreateWorkflowDefinition>`_  


  **Request Syntax**
  ::

    response = client.create_workflow_definition(
        name='string',
        description='string',
        exportConfig={
            's3BucketName': 'string',
            's3KeyPrefix': 'string'
        },
        clientToken='string'
    )
    
  :type name: string
  :param name: **[REQUIRED]** 

    The name of the workflow definition. Must be unique within your account and region.

    

  
  :type description: string
  :param description: 

    An optional description of the workflow definition's purpose and functionality.

    

  
  :type exportConfig: dict
  :param exportConfig: 

    Configuration for exporting workflow execution data to Amazon Simple Storage Service.

    

  
    - **s3BucketName** *(string) --* **[REQUIRED]** 

      The name of your Amazon S3 bucket, that Nova Act uses to export your workflow data. Note that the IAM role used to access Nova Act must also have write permissions to this bucket.

      

    
    - **s3KeyPrefix** *(string) --* 

      An optional prefix for Amazon S3 object keys to organize exported data.

      

    
  
  :type clientToken: string
  :param clientToken: 

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

    This field is autopopulated if not provided.

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

    
    ::

      {
          'status': 'ACTIVE'|'DELETING'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **status** *(string) --* 

        The current status of the workflow definition after creation.

        
  
  **Exceptions**
  
  *   :py:class:`NovaActService.Client.exceptions.ServiceQuotaExceededException`

  
  *   :py:class:`NovaActService.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`NovaActService.Client.exceptions.ConflictException`

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

  
  *   :py:class:`NovaActService.Client.exceptions.InternalServerException`

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

  