:doc:`NeptuneGraph <../../neptune-graph>` / Client / create_graph_snapshot

*********************
create_graph_snapshot
*********************



.. py:method:: NeptuneGraph.Client.create_graph_snapshot(**kwargs)

  

  Creates a snapshot of the specific graph.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/neptune-graph-2023-11-29/CreateGraphSnapshot>`_  


  **Request Syntax**
  ::

    response = client.create_graph_snapshot(
        graphIdentifier='string',
        snapshotName='string',
        tags={
            'string': 'string'
        }
    )
    
  :type graphIdentifier: string
  :param graphIdentifier: **[REQUIRED]** 

    The unique identifier of the Neptune Analytics graph.

    

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

    The snapshot name. For example: ``my-snapshot-1``.

     

    The name must contain from 1 to 63 letters, numbers, or hyphens, and its first character must be a letter. It cannot end with a hyphen or contain two consecutive hyphens. Only lowercase letters are allowed.

    

  
  :type tags: dict
  :param tags: 

    Adds metadata tags to the new graph. These tags can also be used with cost allocation reporting, or used in a Condition statement in an IAM policy.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {
          'id': 'string',
          'name': 'string',
          'arn': 'string',
          'sourceGraphId': 'string',
          'snapshotCreateTime': datetime(2015, 1, 1),
          'status': 'CREATING'|'AVAILABLE'|'DELETING'|'FAILED',
          'kmsKeyIdentifier': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **id** *(string) --* 

        The ID of the snapshot created.

        
      

      - **name** *(string) --* 

        The name of the snapshot created.

        
      

      - **arn** *(string) --* 

        The ARN of the snapshot created.

        
      

      - **sourceGraphId** *(string) --* 

        The Id of the Neptune Analytics graph from which the snapshot is created.

        
      

      - **snapshotCreateTime** *(datetime) --* 

        The snapshot creation time

        
      

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

        The current state of the snapshot.

        
      

      - **kmsKeyIdentifier** *(string) --* 

        The ID of the KMS key used to encrypt and decrypt graph data.

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

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

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

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

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

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

  