create_app_image_config
¶
create_app_image_config(
*,
config_overrides: Optional[SageMakerClientConfig] = 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/sage_maker.py
2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 | |