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
Idawscc.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

NameResourceAccessible byRequired Params
create_resourcestudio_lifecycle_configsINSERTStudioLifecycleConfigAppType, StudioLifecycleConfigContent, StudioLifecycleConfigName, region
delete_resourcestudio_lifecycle_configsDELETEIdentifier, region
list_resourcesstudio_lifecycle_configs_list_onlySELECTregion
get_resourcestudio_lifecycle_configsSELECTIdentifier, region

SELECT examples

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 awscc.sagemaker.studio_lifecycle_configs
WHERE
region = '{{ region }}' AND
Identifier = '{{ studio_lifecycle_config_name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.sagemaker.studio_lifecycle_configs (
StudioLifecycleConfigAppType,
StudioLifecycleConfigContent,
StudioLifecycleConfigName,
region
)
SELECT
'{{ studio_lifecycle_config_app_type }}',
'{{ studio_lifecycle_config_content }}',
'{{ studio_lifecycle_config_name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.sagemaker.studio_lifecycle_configs
WHERE
Identifier = '{{ studio_lifecycle_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 studio_lifecycle_configs resource, the following permissions are required:

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