list_notebook_instances
¶
list_notebook_instances(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
sort_by: Optional[NotebookInstanceSortKey] = None,
sort_order: Optional[NotebookInstanceSortOrder] = None,
name_contains: Optional[NotebookInstanceNameContains] = None,
creation_time_before: Optional[CreationTime] = None,
creation_time_after: Optional[CreationTime] = None,
last_modified_time_before: Optional[LastModifiedTime] = None,
last_modified_time_after: Optional[LastModifiedTime] = None,
status_equals: Optional[NotebookInstanceStatus] = None,
notebook_instance_lifecycle_config_name_contains: Optional[
NotebookInstanceLifecycleConfigName
] = None,
default_code_repository_contains: Optional[CodeRepositoryContains] = None,
additional_code_repository_equals: Optional[CodeRepositoryNameOrUrl] = None,
) -> ListNotebookInstancesOutput
Returns a list of the SageMaker AI notebook instances in the requester's account in an Amazon Web Services Region.
Parameters:
-
next_token(Optional[NextToken], default:None) –If the previous call to the
ListNotebookInstancesis truncated, the response includes aNextToken. You can use this token in your subsequentListNotebookInstancesrequest to fetch the next set of notebook instances.You might specify a filter or a sort order in your request. When response is truncated, you must use the same values for the filer and sort order in the next request.
-
max_results(Optional[MaxResults], default:None) –The maximum number of notebook instances to return.
-
sort_by(Optional[NotebookInstanceSortKey], default:None) –The field to sort results by. The default is
Name. -
sort_order(Optional[NotebookInstanceSortOrder], default:None) –The sort order for results.
-
name_contains(Optional[NotebookInstanceNameContains], default:None) –A string in the notebook instances' name. This filter returns only notebook instances whose name contains the specified string.
-
creation_time_before(Optional[CreationTime], default:None) –A filter that returns only notebook instances that were created before the specified time (timestamp).
-
creation_time_after(Optional[CreationTime], default:None) –A filter that returns only notebook instances that were created after the specified time (timestamp).
-
last_modified_time_before(Optional[LastModifiedTime], default:None) –A filter that returns only notebook instances that were modified before the specified time (timestamp).
-
last_modified_time_after(Optional[LastModifiedTime], default:None) –A filter that returns only notebook instances that were modified after the specified time (timestamp).
-
status_equals(Optional[NotebookInstanceStatus], default:None) –A filter that returns only notebook instances with the specified status.
-
notebook_instance_lifecycle_config_name_contains(Optional[NotebookInstanceLifecycleConfigName], default:None) –A string in the name of a notebook instances lifecycle configuration associated with this notebook instance. This filter returns only notebook instances associated with a lifecycle configuration with a name that contains the specified string.
-
default_code_repository_contains(Optional[CodeRepositoryContains], default:None) –A string in the name or URL of a Git repository associated with this notebook instance. This filter returns only notebook instances associated with a git repository with a name that contains the specified string.
-
additional_code_repository_equals(Optional[CodeRepositoryNameOrUrl], default:None) –A filter that returns only notebook instances with associated with the specified git repository.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
23770 23771 23772 23773 23774 23775 23776 23777 23778 23779 23780 23781 23782 23783 23784 23785 23786 23787 23788 23789 23790 23791 23792 23793 23794 23795 23796 23797 23798 23799 23800 23801 23802 23803 23804 23805 23806 23807 23808 23809 23810 23811 23812 23813 23814 23815 23816 23817 23818 23819 23820 23821 23822 23823 23824 23825 23826 23827 23828 23829 23830 23831 23832 23833 23834 23835 23836 23837 23838 23839 23840 23841 23842 23843 23844 23845 23846 23847 23848 23849 23850 23851 23852 23853 23854 23855 23856 23857 23858 23859 23860 23861 23862 23863 23864 23865 23866 23867 23868 23869 23870 23871 23872 23873 23874 23875 23876 23877 23878 23879 23880 23881 23882 23883 23884 23885 23886 23887 23888 | |