Skip to main content

studio_lifecycle_configs

Creates, updates, deletes or gets a studio_lifecycle_config resource or lists studio_lifecycle_configs in a region

Overview

Namestudio_lifecycle_configs
TypeResource
DescriptionResource Type definition for AWS::SageMaker::StudioLifecycleConfig
Idaws.sagemaker.studio_lifecycle_configs

Fields

NameDatatypeDescription
studio_lifecycle_config_arnstringThe Amazon Resource Name (ARN) of the Lifecycle Configuration.
studio_lifecycle_config_app_typestringThe App type that the Lifecycle Configuration is attached to.
studio_lifecycle_config_contentstringThe content of your Amazon SageMaker Studio Lifecycle Configuration script. This content must be base64 encoded.
studio_lifecycle_config_namestringThe name of the Amazon SageMaker Studio Lifecycle Configuration.
tagsarrayTags to be associated with the Lifecycle Configuration. Each tag consists of a key and an optional value. Tag keys must be unique per resource. Tags are searchable using the Search API.
regionstringAWS region.

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

Methods

NameAccessible byRequired Params
create_resourceINSERTStudioLifecycleConfigAppType, StudioLifecycleConfigContent, StudioLifecycleConfigName, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all studio_lifecycle_configs in a region.

SELECT
region,
studio_lifecycle_config_arn,
studio_lifecycle_config_app_type,
studio_lifecycle_config_content,
studio_lifecycle_config_name,
tags
FROM aws.sagemaker.studio_lifecycle_configs
WHERE region = 'us-east-1';

Gets all properties from an individual studio_lifecycle_config.

SELECT
region,
studio_lifecycle_config_arn,
studio_lifecycle_config_app_type,
studio_lifecycle_config_content,
studio_lifecycle_config_name,
tags
FROM aws.sagemaker.studio_lifecycle_configs
WHERE region = 'us-east-1' AND data__Identifier = '<StudioLifecycleConfigName>';

INSERT example

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

/*+ create */
INSERT INTO aws.sagemaker.studio_lifecycle_configs (
StudioLifecycleConfigAppType,
StudioLifecycleConfigContent,
StudioLifecycleConfigName,
region
)
SELECT
'{{ StudioLifecycleConfigAppType }}',
'{{ StudioLifecycleConfigContent }}',
'{{ StudioLifecycleConfigName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.sagemaker.studio_lifecycle_configs
WHERE data__Identifier = '<StudioLifecycleConfigName>'
AND region = 'us-east-1';

Permissions

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

Create

sagemaker:CreateStudioLifecycleConfig,
sagemaker:DescribeStudioLifecycleConfig,
sagemaker:AddTags,
sagemaker:ListTags

Read

sagemaker:DescribeStudioLifecycleConfig,
sagemaker:ListTags

Delete

sagemaker:DeleteStudioLifecycleConfig,
sagemaker:DescribeStudioLifecycleConfig,
sagemaker:DeleteTags,
sagemaker:ListTags

List

sagemaker:ListStudioLifecycleConfigs,
sagemaker:ListTags