Skip to main content

studio_lifecycle_configs

Creates, updates, deletes, gets or lists a studio_lifecycle_configs resource.

Overview

Namestudio_lifecycle_configs
TypeResource
Idaws.sagemaker.studio_lifecycle_configs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)The creation time of the Amazon SageMaker AI Studio Lifecycle Configuration.
last_modified_timestring (date-time)This value is equivalent to CreationTime because Amazon SageMaker AI Studio Lifecycle Configurations are immutable.
studio_lifecycle_config_app_typestringThe App type that the Lifecycle Configuration is attached to. (JupyterServer, KernelGateway, CodeEditor, JupyterLab)
studio_lifecycle_config_arnstringThe ARN of the Lifecycle Configuration to describe. (pattern: <code>(arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:studio-lifecycle-config/.*|None)</code>)
studio_lifecycle_config_contentstringThe content of your Amazon SageMaker AI Studio Lifecycle Configuration script. (pattern: <code>[\S\s]+</code>)
studio_lifecycle_config_namestringThe name of the Amazon SageMaker AI Studio Lifecycle Configuration that is described. (pattern: <code>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_studio_lifecycle_configselectregionDescribes the Amazon SageMaker AI Studio Lifecycle Configuration.
list_studio_lifecycle_configsselectregionLists the Amazon SageMaker AI Studio Lifecycle Configurations in your Amazon Web Services Account.
create_studio_lifecycle_configinsertregion, StudioLifecycleConfigName, StudioLifecycleConfigContent, StudioLifecycleConfigAppTypeCreates a new Amazon SageMaker AI Studio Lifecycle Configuration.
delete_studio_lifecycle_configdeleteregionDeletes the Amazon SageMaker AI Studio Lifecycle Configuration. In order to delete the Lifecycle Configuration, there must be no running apps using the Lifecycle Configuration. You must also remove the Lifecycle Configuration from UserSettings in all Domains and UserProfiles.

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 the Amazon SageMaker AI Studio Lifecycle Configuration.

SELECT
creation_time,
last_modified_time,
studio_lifecycle_config_app_type,
studio_lifecycle_config_arn,
studio_lifecycle_config_content,
studio_lifecycle_config_name
FROM aws.sagemaker.studio_lifecycle_configs
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new Amazon SageMaker AI Studio Lifecycle Configuration.

INSERT INTO aws.sagemaker.studio_lifecycle_configs (
StudioLifecycleConfigName,
StudioLifecycleConfigContent,
StudioLifecycleConfigAppType,
Tags,
region
)
SELECT
'{{ StudioLifecycleConfigName }}' /* required */,
'{{ StudioLifecycleConfigContent }}' /* required */,
'{{ StudioLifecycleConfigAppType }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
studio_lifecycle_config_arn
;

DELETE examples

Deletes the Amazon SageMaker AI Studio Lifecycle Configuration. In order to delete the Lifecycle Configuration, there must be no running apps using the Lifecycle Configuration. You must also remove the Lifecycle Configuration from UserSettings in all Domains and UserProfiles.

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