There are more AWS SDK examples available in the AWS Doc SDK Examples
Use ListNotebookInstances
with an AWS SDK
The following code examples show how to use ListNotebookInstances
.
- Rust
-
- SDK for Rust
-
Note
There's more on GitHub. Find the complete example and learn how to set up and run in the AWS Code Examples Repository
. async fn show_instances(client: &Client) -> Result<(), Error> { let notebooks = client.list_notebook_instances().send().await?; println!("Notebooks:"); for n in notebooks.notebook_instances() { let n_instance_type = n.instance_type().unwrap(); let n_status = n.notebook_instance_status().unwrap(); let n_name = n.notebook_instance_name(); println!(" Name : {}", n_name.unwrap_or("Unknown")); println!(" Status : {}", n_status.as_ref()); println!(" Instance Type : {}", n_instance_type.as_ref()); println!(); } Ok(()) }
-
For API details, see ListNotebookInstances
in AWS SDK for Rust API reference.
-
- SAP ABAP
-
- SDK for SAP ABAP
-
Note
There's more on GitHub. Find the complete example and learn how to set up and run in the AWS Code Examples Repository
. TRY. oo_result = lo_sgm->listnotebookinstances( " oo_result is returned for testing purposes. " iv_namecontains = iv_name_contains ). MESSAGE 'Retrieved list of notebook instances.' TYPE 'I'. CATCH /aws1/cx_rt_service_generic INTO DATA(lo_exception). DATA(lv_error) = |"{ lo_exception->av_err_code }" - { lo_exception->av_err_msg }|. MESSAGE lv_error TYPE 'E'. ENDTRY.
-
For API details, see ListNotebookInstances in AWS SDK for SAP ABAP API reference.
-