:doc:`SageMaker <../../sagemaker>` / Client / list_artifacts

**************
list_artifacts
**************



.. py:method:: SageMaker.Client.list_artifacts(**kwargs)

  

  Lists the artifacts in your account and their properties.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListArtifacts>`_  


  **Request Syntax**
  ::

    response = client.list_artifacts(
        SourceUri='string',
        ArtifactType='string',
        CreatedAfter=datetime(2015, 1, 1),
        CreatedBefore=datetime(2015, 1, 1),
        SortBy='CreationTime',
        SortOrder='Ascending'|'Descending',
        NextToken='string',
        MaxResults=123
    )
    
  :type SourceUri: string
  :param SourceUri: 

    A filter that returns only artifacts with the specified source URI.

    

  
  :type ArtifactType: string
  :param ArtifactType: 

    A filter that returns only artifacts of the specified type.

    

  
  :type CreatedAfter: datetime
  :param CreatedAfter: 

    A filter that returns only artifacts created on or after the specified time.

    

  
  :type CreatedBefore: datetime
  :param CreatedBefore: 

    A filter that returns only artifacts created on or before the specified time.

    

  
  :type SortBy: string
  :param SortBy: 

    The property used to sort results. The default value is ``CreationTime``.

    

  
  :type SortOrder: string
  :param SortOrder: 

    The sort order. The default value is ``Descending``.

    

  
  :type NextToken: string
  :param NextToken: 

    If the previous call to ``ListArtifacts`` didn't return the full set of artifacts, the call returns a token for getting the next set of artifacts.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of artifacts to return in the response. The default value is 10.

    

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

    
    ::

      {
          'ArtifactSummaries': [
              {
                  'ArtifactArn': 'string',
                  'ArtifactName': 'string',
                  'Source': {
                      'SourceUri': 'string',
                      'SourceTypes': [
                          {
                              'SourceIdType': 'MD5Hash'|'S3ETag'|'S3Version'|'Custom',
                              'Value': 'string'
                          },
                      ]
                  },
                  'ArtifactType': 'string',
                  'CreationTime': datetime(2015, 1, 1),
                  'LastModifiedTime': datetime(2015, 1, 1)
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ArtifactSummaries** *(list) --* 

        A list of artifacts and their properties.

        
        

        - *(dict) --* 

          Lists a summary of the properties of an artifact. An artifact represents a URI addressable object or data. Some examples are a dataset and a model.

          
          

          - **ArtifactArn** *(string) --* 

            The Amazon Resource Name (ARN) of the artifact.

            
          

          - **ArtifactName** *(string) --* 

            The name of the artifact.

            
          

          - **Source** *(dict) --* 

            The source of the artifact.

            
            

            - **SourceUri** *(string) --* 

              The URI of the source.

              
            

            - **SourceTypes** *(list) --* 

              A list of source types.

              
              

              - *(dict) --* 

                The ID and ID type of an artifact source.

                
                

                - **SourceIdType** *(string) --* 

                  The type of ID.

                  
                

                - **Value** *(string) --* 

                  The ID.

                  
            
          
        
          

          - **ArtifactType** *(string) --* 

            The type of the artifact.

            
          

          - **CreationTime** *(datetime) --* 

            When the artifact was created.

            
          

          - **LastModifiedTime** *(datetime) --* 

            When the artifact was last modified.

            
      
    
      

      - **NextToken** *(string) --* 

        A token for getting the next set of artifacts, if there are any.

        
  
  **Exceptions**
  
  *   :py:class:`SageMaker.Client.exceptions.ResourceNotFound`

  