Skip to main content

app_image_configs

Creates, updates, deletes, gets or lists an app_image_configs resource.

Overview

Nameapp_image_configs
TypeResource
Idaws.sagemaker.app_image_configs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
app_image_config_arnstringThe ARN of the AppImageConfig. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:app-image-config/.*</code>)
app_image_config_namestringThe name of the AppImageConfig. (pattern: <code>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}</code>)
code_editor_app_image_configobjectThe configuration of the Code Editor app.
creation_timestring (date-time)When the AppImageConfig was created.
jupyter_lab_app_image_configobjectThe configuration of the JupyterLab app.
kernel_gateway_image_configobjectThe configuration of a KernelGateway app.
last_modified_timestring (date-time)When the AppImageConfig was last modified.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_app_image_configselectregionDescribes an AppImageConfig.
list_app_image_configsselectregionLists the AppImageConfigs in your account and their properties. The list can be filtered by creation time or modified time, and whether the AppImageConfig name contains a specified string.
create_app_image_configinsertregion, AppImageConfigNameCreates 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.
update_app_image_configupdateregion, AppImageConfigNameUpdates the properties of an AppImageConfig.
delete_app_image_configdeleteregionDeletes an AppImageConfig.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Describes an AppImageConfig.

SELECT
app_image_config_arn,
app_image_config_name,
code_editor_app_image_config,
creation_time,
jupyter_lab_app_image_config,
kernel_gateway_image_config,
last_modified_time
FROM aws.sagemaker.app_image_configs
WHERE region = '{{ region }}' -- required
;

INSERT examples

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.

INSERT INTO aws.sagemaker.app_image_configs (
AppImageConfigName,
Tags,
KernelGatewayImageConfig,
JupyterLabAppImageConfig,
CodeEditorAppImageConfig,
region
)
SELECT
'{{ AppImageConfigName }}' /* required */,
'{{ Tags }}',
'{{ KernelGatewayImageConfig }}',
'{{ JupyterLabAppImageConfig }}',
'{{ CodeEditorAppImageConfig }}',
'{{ region }}'
RETURNING
app_image_config_arn
;

UPDATE examples

Updates the properties of an AppImageConfig.

UPDATE aws.sagemaker.app_image_configs
SET
AppImageConfigName = '{{ AppImageConfigName }}',
KernelGatewayImageConfig = '{{ KernelGatewayImageConfig }}',
JupyterLabAppImageConfig = '{{ JupyterLabAppImageConfig }}',
CodeEditorAppImageConfig = '{{ CodeEditorAppImageConfig }}'
WHERE
region = '{{ region }}' --required
AND AppImageConfigName = '{{ AppImageConfigName }}' --required
RETURNING
app_image_config_arn;

DELETE examples

Deletes an AppImageConfig.

DELETE FROM aws.sagemaker.app_image_configs
WHERE region = '{{ region }}' --required
;