create_app_image_config
async
¶
create_app_image_config(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
app_image_config_name: Optional[AppImageConfigName] = None,
tags: Optional[TagList] = None,
kernel_gateway_image_config: Optional[KernelGatewayImageConfig] = None,
jupyter_lab_app_image_config: Optional[JupyterLabAppImageConfig] = None,
code_editor_app_image_config: Optional[CodeEditorAppImageConfig] = None,
) -> CreateAppImageConfigResponse
Creates a configuration for running a SageMaker AI image as a KernelGateway app. The configuration specifies the Amazon Elastic File System storage volume on the image, and a list of the kernels in the image.
Parameters:
-
app_image_config_name(Optional[AppImageConfigName], default:None) –The name of the AppImageConfig. Must be unique to your account.
-
tags(Optional[TagList], default:None) –A list of tags to apply to the AppImageConfig.
-
kernel_gateway_image_config(Optional[KernelGatewayImageConfig], default:None) –The KernelGatewayImageConfig. You can only specify one image kernel in the AppImageConfig API. This kernel will be shown to users before the image starts. Once the image runs, all kernels are visible in JupyterLab.
-
jupyter_lab_app_image_config(Optional[JupyterLabAppImageConfig], default:None) –The
JupyterLabAppImageConfig. You can only specify one image kernel in theAppImageConfigAPI. This kernel is shown to users before the image starts. After the image runs, all kernels are visible in JupyterLab. -
code_editor_app_image_config(Optional[CodeEditorAppImageConfig], default:None) –The
CodeEditorAppImageConfig. You can only specify one image kernel in the AppImageConfig API. This kernel is shown to users before the image starts. After the image runs, all kernels are visible in Code Editor.
Raises:
-
ResourceInUse–Resource being accessed is in use.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 | |