studio_lifecycle_configs
Creates, updates, deletes or gets a studio_lifecycle_config
resource or lists studio_lifecycle_configs
in a region
Overview
Name | studio_lifecycle_configs |
Type | Resource |
Description | Resource Type definition for AWS::SageMaker::StudioLifecycleConfig |
Id | aws.sagemaker.studio_lifecycle_configs |
Fields
Name | Datatype | Description |
---|---|---|
studio_lifecycle_config_arn | string | The Amazon Resource Name (ARN) of the Lifecycle Configuration. |
studio_lifecycle_config_app_type | string | The App type that the Lifecycle Configuration is attached to. |
studio_lifecycle_config_content | string | The content of your Amazon SageMaker Studio Lifecycle Configuration script. This content must be base64 encoded. |
studio_lifecycle_config_name | string | The name of the Amazon SageMaker Studio Lifecycle Configuration. |
tags | array | Tags 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. |
region | string | AWS region. |
For more information, see AWS::SageMaker::StudioLifecycleConfig
.
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | StudioLifecycleConfigAppType, StudioLifecycleConfigContent, StudioLifecycleConfigName, region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.sagemaker.studio_lifecycle_configs (
StudioLifecycleConfigAppType,
StudioLifecycleConfigContent,
StudioLifecycleConfigName,
region
)
SELECT
'{{ StudioLifecycleConfigAppType }}',
'{{ StudioLifecycleConfigContent }}',
'{{ StudioLifecycleConfigName }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.sagemaker.studio_lifecycle_configs (
StudioLifecycleConfigAppType,
StudioLifecycleConfigContent,
StudioLifecycleConfigName,
Tags,
region
)
SELECT
'{{ StudioLifecycleConfigAppType }}',
'{{ StudioLifecycleConfigContent }}',
'{{ StudioLifecycleConfigName }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: studio_lifecycle_config
props:
- name: StudioLifecycleConfigAppType
value: '{{ StudioLifecycleConfigAppType }}'
- name: StudioLifecycleConfigContent
value: '{{ StudioLifecycleConfigContent }}'
- name: StudioLifecycleConfigName
value: '{{ StudioLifecycleConfigName }}'
- name: Tags
value:
- Value: '{{ Value }}'
Key: '{{ Key }}'
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