1. Packages
  2. Packages
  3. AWS
  4. API Docs
  5. sagemaker
  6. StudioLifecycleConfig
Viewing docs for AWS v5.43.0 (Older version)
published on Tuesday, Mar 10, 2026 by Pulumi
aws logo
Viewing docs for AWS v5.43.0 (Older version)
published on Tuesday, Mar 10, 2026 by Pulumi

    Provides a SageMaker Studio Lifecycle Config resource.

    Create StudioLifecycleConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new StudioLifecycleConfig(name: string, args: StudioLifecycleConfigArgs, opts?: CustomResourceOptions);
    @overload
    def StudioLifecycleConfig(resource_name: str,
                              args: StudioLifecycleConfigArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def StudioLifecycleConfig(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              studio_lifecycle_config_app_type: Optional[str] = None,
                              studio_lifecycle_config_content: Optional[str] = None,
                              studio_lifecycle_config_name: Optional[str] = None,
                              tags: Optional[Mapping[str, str]] = None)
    func NewStudioLifecycleConfig(ctx *Context, name string, args StudioLifecycleConfigArgs, opts ...ResourceOption) (*StudioLifecycleConfig, error)
    public StudioLifecycleConfig(string name, StudioLifecycleConfigArgs args, CustomResourceOptions? opts = null)
    public StudioLifecycleConfig(String name, StudioLifecycleConfigArgs args)
    public StudioLifecycleConfig(String name, StudioLifecycleConfigArgs args, CustomResourceOptions options)
    
    type: aws:sagemaker:StudioLifecycleConfig
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args StudioLifecycleConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args StudioLifecycleConfigArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args StudioLifecycleConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StudioLifecycleConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StudioLifecycleConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var studioLifecycleConfigResource = new Aws.Sagemaker.StudioLifecycleConfig("studioLifecycleConfigResource", new()
    {
        StudioLifecycleConfigAppType = "string",
        StudioLifecycleConfigContent = "string",
        StudioLifecycleConfigName = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := sagemaker.NewStudioLifecycleConfig(ctx, "studioLifecycleConfigResource", &sagemaker.StudioLifecycleConfigArgs{
    	StudioLifecycleConfigAppType: pulumi.String("string"),
    	StudioLifecycleConfigContent: pulumi.String("string"),
    	StudioLifecycleConfigName:    pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var studioLifecycleConfigResource = new StudioLifecycleConfig("studioLifecycleConfigResource", StudioLifecycleConfigArgs.builder()
        .studioLifecycleConfigAppType("string")
        .studioLifecycleConfigContent("string")
        .studioLifecycleConfigName("string")
        .tags(Map.of("string", "string"))
        .build());
    
    studio_lifecycle_config_resource = aws.sagemaker.StudioLifecycleConfig("studioLifecycleConfigResource",
        studio_lifecycle_config_app_type="string",
        studio_lifecycle_config_content="string",
        studio_lifecycle_config_name="string",
        tags={
            "string": "string",
        })
    
    const studioLifecycleConfigResource = new aws.sagemaker.StudioLifecycleConfig("studioLifecycleConfigResource", {
        studioLifecycleConfigAppType: "string",
        studioLifecycleConfigContent: "string",
        studioLifecycleConfigName: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:sagemaker:StudioLifecycleConfig
    properties:
        studioLifecycleConfigAppType: string
        studioLifecycleConfigContent: string
        studioLifecycleConfigName: string
        tags:
            string: string
    

    StudioLifecycleConfig Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The StudioLifecycleConfig resource accepts the following input properties:

    StudioLifecycleConfigAppType string
    The App type that the Lifecycle Configuration is attached to. Valid values are JupyterServer and KernelGateway.
    StudioLifecycleConfigContent string
    The content of your Studio Lifecycle Configuration script. This content must be base64 encoded.
    StudioLifecycleConfigName string
    The name of the Studio Lifecycle Configuration to create.
    Tags Dictionary<string, string>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    StudioLifecycleConfigAppType string
    The App type that the Lifecycle Configuration is attached to. Valid values are JupyterServer and KernelGateway.
    StudioLifecycleConfigContent string
    The content of your Studio Lifecycle Configuration script. This content must be base64 encoded.
    StudioLifecycleConfigName string
    The name of the Studio Lifecycle Configuration to create.
    Tags map[string]string
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    studioLifecycleConfigAppType String
    The App type that the Lifecycle Configuration is attached to. Valid values are JupyterServer and KernelGateway.
    studioLifecycleConfigContent String
    The content of your Studio Lifecycle Configuration script. This content must be base64 encoded.
    studioLifecycleConfigName String
    The name of the Studio Lifecycle Configuration to create.
    tags Map<String,String>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    studioLifecycleConfigAppType string
    The App type that the Lifecycle Configuration is attached to. Valid values are JupyterServer and KernelGateway.
    studioLifecycleConfigContent string
    The content of your Studio Lifecycle Configuration script. This content must be base64 encoded.
    studioLifecycleConfigName string
    The name of the Studio Lifecycle Configuration to create.
    tags {[key: string]: string}
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    studio_lifecycle_config_app_type str
    The App type that the Lifecycle Configuration is attached to. Valid values are JupyterServer and KernelGateway.
    studio_lifecycle_config_content str
    The content of your Studio Lifecycle Configuration script. This content must be base64 encoded.
    studio_lifecycle_config_name str
    The name of the Studio Lifecycle Configuration to create.
    tags Mapping[str, str]
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    studioLifecycleConfigAppType String
    The App type that the Lifecycle Configuration is attached to. Valid values are JupyterServer and KernelGateway.
    studioLifecycleConfigContent String
    The content of your Studio Lifecycle Configuration script. This content must be base64 encoded.
    studioLifecycleConfigName String
    The name of the Studio Lifecycle Configuration to create.
    tags Map<String>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the StudioLifecycleConfig resource produces the following output properties:

    Arn string
    The Amazon Resource Name (ARN) assigned by AWS to this Studio Lifecycle Config.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    Arn string
    The Amazon Resource Name (ARN) assigned by AWS to this Studio Lifecycle Config.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn String
    The Amazon Resource Name (ARN) assigned by AWS to this Studio Lifecycle Config.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn string
    The Amazon Resource Name (ARN) assigned by AWS to this Studio Lifecycle Config.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn str
    The Amazon Resource Name (ARN) assigned by AWS to this Studio Lifecycle Config.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn String
    The Amazon Resource Name (ARN) assigned by AWS to this Studio Lifecycle Config.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Look up Existing StudioLifecycleConfig Resource

    Get an existing StudioLifecycleConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: StudioLifecycleConfigState, opts?: CustomResourceOptions): StudioLifecycleConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            studio_lifecycle_config_app_type: Optional[str] = None,
            studio_lifecycle_config_content: Optional[str] = None,
            studio_lifecycle_config_name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> StudioLifecycleConfig
    func GetStudioLifecycleConfig(ctx *Context, name string, id IDInput, state *StudioLifecycleConfigState, opts ...ResourceOption) (*StudioLifecycleConfig, error)
    public static StudioLifecycleConfig Get(string name, Input<string> id, StudioLifecycleConfigState? state, CustomResourceOptions? opts = null)
    public static StudioLifecycleConfig get(String name, Output<String> id, StudioLifecycleConfigState state, CustomResourceOptions options)
    resources:  _:    type: aws:sagemaker:StudioLifecycleConfig    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    The Amazon Resource Name (ARN) assigned by AWS to this Studio Lifecycle Config.
    StudioLifecycleConfigAppType string
    The App type that the Lifecycle Configuration is attached to. Valid values are JupyterServer and KernelGateway.
    StudioLifecycleConfigContent string
    The content of your Studio Lifecycle Configuration script. This content must be base64 encoded.
    StudioLifecycleConfigName string
    The name of the Studio Lifecycle Configuration to create.
    Tags Dictionary<string, string>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    Arn string
    The Amazon Resource Name (ARN) assigned by AWS to this Studio Lifecycle Config.
    StudioLifecycleConfigAppType string
    The App type that the Lifecycle Configuration is attached to. Valid values are JupyterServer and KernelGateway.
    StudioLifecycleConfigContent string
    The content of your Studio Lifecycle Configuration script. This content must be base64 encoded.
    StudioLifecycleConfigName string
    The name of the Studio Lifecycle Configuration to create.
    Tags map[string]string
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn String
    The Amazon Resource Name (ARN) assigned by AWS to this Studio Lifecycle Config.
    studioLifecycleConfigAppType String
    The App type that the Lifecycle Configuration is attached to. Valid values are JupyterServer and KernelGateway.
    studioLifecycleConfigContent String
    The content of your Studio Lifecycle Configuration script. This content must be base64 encoded.
    studioLifecycleConfigName String
    The name of the Studio Lifecycle Configuration to create.
    tags Map<String,String>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn string
    The Amazon Resource Name (ARN) assigned by AWS to this Studio Lifecycle Config.
    studioLifecycleConfigAppType string
    The App type that the Lifecycle Configuration is attached to. Valid values are JupyterServer and KernelGateway.
    studioLifecycleConfigContent string
    The content of your Studio Lifecycle Configuration script. This content must be base64 encoded.
    studioLifecycleConfigName string
    The name of the Studio Lifecycle Configuration to create.
    tags {[key: string]: string}
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn str
    The Amazon Resource Name (ARN) assigned by AWS to this Studio Lifecycle Config.
    studio_lifecycle_config_app_type str
    The App type that the Lifecycle Configuration is attached to. Valid values are JupyterServer and KernelGateway.
    studio_lifecycle_config_content str
    The content of your Studio Lifecycle Configuration script. This content must be base64 encoded.
    studio_lifecycle_config_name str
    The name of the Studio Lifecycle Configuration to create.
    tags Mapping[str, str]
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn String
    The Amazon Resource Name (ARN) assigned by AWS to this Studio Lifecycle Config.
    studioLifecycleConfigAppType String
    The App type that the Lifecycle Configuration is attached to. Valid values are JupyterServer and KernelGateway.
    studioLifecycleConfigContent String
    The content of your Studio Lifecycle Configuration script. This content must be base64 encoded.
    studioLifecycleConfigName String
    The name of the Studio Lifecycle Configuration to create.
    tags Map<String>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Import

    SageMaker Studio Lifecycle Configs can be imported using the studio_lifecycle_config_name, e.g.,

     $ pulumi import aws:sagemaker/studioLifecycleConfig:StudioLifecycleConfig example example
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    Viewing docs for AWS v5.43.0 (Older version)
    published on Tuesday, Mar 10, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.