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
26550 26551 26552 26553 26554 26555 26556 26557 26558 26559 26560 26561 26562 26563 26564 26565 26566 26567 26568 26569 26570 26571 26572 26573 26574 26575 26576 26577 26578 26579 26580 26581 26582 26583 26584 26585 26586 26587 26588 26589 26590 26591 26592 26593 26594 26595 26596 26597 26598 26599 26600 26601 26602 26603 26604 26605 26606 26607 26608 26609 26610 26611 26612 26613 26614 26615 26616 26617 26618 26619 26620 26621 26622 26623 26624 26625 26626 26627 26628 26629 26630 26631 26632 26633 26634 26635 26636 26637 26638 26639 26640 26641 26642 26643 26644 26645 26646 26647 26648 26649 26650 26651 26652 26653 26654 26655 26656 26657 26658 26659 26660 26661 26662 26663 26664 26665 26666 26667 26668 | |