Skip to main content

app_image_configs

Creates, updates, deletes or gets an app_image_config resource or lists app_image_configs in a region

Overview

Nameapp_image_configs
TypeResource
DescriptionResource Type definition for AWS::SageMaker::AppImageConfig
Idawscc.sagemaker.app_image_configs

Fields

NameDatatypeDescription
app_image_config_arnstringThe Amazon Resource Name (ARN) of the AppImageConfig.
app_image_config_namestringThe Name of the AppImageConfig.
kernel_gateway_image_configobjectThe KernelGatewayImageConfig.
jupyter_lab_app_image_configobjectThe JupyterLabAppImageConfig.
code_editor_app_image_configobjectThe CodeEditorAppImageConfig.
tagsarrayA list of tags to apply to the AppImageConfig.
regionstringAWS region.

For more information, see AWS::SageMaker::AppImageConfig.

Methods

NameResourceAccessible byRequired Params
create_resourceapp_image_configsINSERTAppImageConfigName, region
delete_resourceapp_image_configsDELETEIdentifier, region
update_resourceapp_image_configsUPDATEIdentifier, PatchDocument, region
list_resourcesapp_image_configs_list_onlySELECTregion
get_resourceapp_image_configsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual app_image_config.

SELECT
region,
app_image_config_arn,
app_image_config_name,
kernel_gateway_image_config,
jupyter_lab_app_image_config,
code_editor_app_image_config,
tags
FROM awscc.sagemaker.app_image_configs
WHERE
region = '{{ region }}' AND
Identifier = '{{ app_image_config_name }}';

INSERT example

Use the following StackQL query and manifest file to create a new app_image_config resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.sagemaker.app_image_configs (
AppImageConfigName,
region
)
SELECT
'{{ app_image_config_name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

Use the following StackQL query and manifest file to update a app_image_config resource, using stack-deploy.

/*+ update */
UPDATE awscc.sagemaker.app_image_configs
SET PatchDocument = string('{{ {
"KernelGatewayImageConfig": kernel_gateway_image_config,
"JupyterLabAppImageConfig": jupyter_lab_app_image_config,
"CodeEditorAppImageConfig": code_editor_app_image_config,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ app_image_config_name }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.sagemaker.app_image_configs
WHERE
Identifier = '{{ app_image_config_name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the app_image_configs resource, the following permissions are required:

sagemaker:CreateAppImageConfig,
sagemaker:DescribeAppImageConfig,
sagemaker:AddTags,
sagemaker:ListTags