Default Value for NextToken
in SageMaker.Client.list_model_packages
#4245
Labels
closing-soon
This issue will automatically close in 4 days unless further comments are made.
feature-request
This issue requests a feature.
p2
This is a standard priority issue
response-requested
Waiting on additional information or feedback.
sagemaker
Describe the feature
For
SageMaker.Client.list_model_packages
, the argumentNextToken
is expected to be a string. And it is used to retrieve subsequent model package summary, like pagination.I would like to know if it accepts default value (e.g. empty string, or
None
or any others) to indicate it is the first retrieval. Having such feature could simplify the code.Use Case
The use case is using a while loop to keep retrieving the model package summary without using
If else
to handle the first retrievalProposed Solution
No response
Other Information
No response
Acknowledgements
SDK version used
1.34.142
Environment details (OS name and version, etc.)
macOS Sonoma 14.6.1
The text was updated successfully, but these errors were encountered: