updateAppImageConfig method
Future<UpdateAppImageConfigResponse>
updateAppImageConfig({
- required String appImageConfigName,
- CodeEditorAppImageConfig? codeEditorAppImageConfig,
- JupyterLabAppImageConfig? jupyterLabAppImageConfig,
- KernelGatewayImageConfig? kernelGatewayImageConfig,
Updates the properties of an AppImageConfig.
May throw ResourceNotFound.
Parameter appImageConfigName :
The name of the AppImageConfig to update.
Parameter codeEditorAppImageConfig :
The Code Editor app running on the image.
Parameter jupyterLabAppImageConfig :
The JupyterLab app running on the image.
Parameter kernelGatewayImageConfig :
The new KernelGateway app to run on the image.
Implementation
Future<UpdateAppImageConfigResponse> updateAppImageConfig({
required String appImageConfigName,
CodeEditorAppImageConfig? codeEditorAppImageConfig,
JupyterLabAppImageConfig? jupyterLabAppImageConfig,
KernelGatewayImageConfig? kernelGatewayImageConfig,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SageMaker.UpdateAppImageConfig'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'AppImageConfigName': appImageConfigName,
if (codeEditorAppImageConfig != null)
'CodeEditorAppImageConfig': codeEditorAppImageConfig,
if (jupyterLabAppImageConfig != null)
'JupyterLabAppImageConfig': jupyterLabAppImageConfig,
if (kernelGatewayImageConfig != null)
'KernelGatewayImageConfig': kernelGatewayImageConfig,
},
);
return UpdateAppImageConfigResponse.fromJson(jsonResponse.body);
}