:doc:`ServerlessApplicationRepository <../../serverlessrepo>` / Client / create_cloud_formation_template

*******************************
create_cloud_formation_template
*******************************



.. py:method:: ServerlessApplicationRepository.Client.create_cloud_formation_template(**kwargs)

  

  Creates an AWS CloudFormation template.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateCloudFormationTemplate>`_  


  **Request Syntax**
  ::

    response = client.create_cloud_formation_template(
        ApplicationId='string',
        SemanticVersion='string'
    )
    
  :type ApplicationId: string
  :param ApplicationId: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the application.

    

  
  :type SemanticVersion: string
  :param SemanticVersion: 

    The semantic version of the application:

    

    `https\://semver.org/ <https://semver.org/>`__

    

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

    
    ::

      {
          'ApplicationId': 'string',
          'CreationTime': 'string',
          'ExpirationTime': 'string',
          'SemanticVersion': 'string',
          'Status': 'PREPARING'|'ACTIVE'|'EXPIRED',
          'TemplateId': 'string',
          'TemplateUrl': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Success

      
      

      - **ApplicationId** *(string) --* 

        The application Amazon Resource Name (ARN).

        
      

      - **CreationTime** *(string) --* 

        The date and time this resource was created.

        
      

      - **ExpirationTime** *(string) --* 

        The date and time this template expires. Templates expire 1 hour after creation.

        
      

      - **SemanticVersion** *(string) --* 

        The semantic version of the application:

        

        `https\://semver.org/ <https://semver.org/>`__

        
      

      - **Status** *(string) --* 

        Status of the template creation workflow.

        

        Possible values: PREPARING | ACTIVE | EXPIRED

        
      

      - **TemplateId** *(string) --* 

        The UUID returned by CreateCloudFormationTemplate.

        

        Pattern: [0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}

        
      

      - **TemplateUrl** *(string) --* 

        A link to the template that can be used to deploy the application using AWS CloudFormation.

        
  
  **Exceptions**
  
  *   :py:class:`ServerlessApplicationRepository.Client.exceptions.NotFoundException`

  
  *   :py:class:`ServerlessApplicationRepository.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`ServerlessApplicationRepository.Client.exceptions.BadRequestException`

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

  
  *   :py:class:`ServerlessApplicationRepository.Client.exceptions.ForbiddenException`

  