1. Packages
  2. Alicloud Provider
  3. API Docs
  4. ros
  5. Stack
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.ros.Stack

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

    Provides a ROS Stack resource.

    For information about ROS Stack and how to use it, see What is Stack.

    NOTE: Available in v1.106.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const example = new alicloud.ros.Stack("example", {
        stackName: "tf-testaccstack",
        templateBody: `    {
        \x09"ROSTemplateFormatVersion": "2015-09-01"
        }
    `,
        stackPolicyBody: `    {
        \x09"Statement": [{
        \x09\x09"Action": "Update:Delete",
        \x09\x09"Resource": "*",
        \x09\x09"Effect": "Allow",
        \x09\x09"Principal": "*"
        \x09}]
        }
    `,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example = alicloud.ros.Stack("example",
        stack_name="tf-testaccstack",
        template_body="""    {
        \x09"ROSTemplateFormatVersion": "2015-09-01"
        }
    """,
        stack_policy_body="""    {
        \x09"Statement": [{
        \x09\x09"Action": "Update:Delete",
        \x09\x09"Resource": "*",
        \x09\x09"Effect": "Allow",
        \x09\x09"Principal": "*"
        \x09}]
        }
    """)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ros"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ros.NewStack(ctx, "example", &ros.StackArgs{
    			StackName:    pulumi.String("tf-testaccstack"),
    			TemplateBody: pulumi.String("    {\n    	\"ROSTemplateFormatVersion\": \"2015-09-01\"\n    }\n"),
    			StackPolicyBody: pulumi.String(`    {
        	"Statement": [{
        		"Action": "Update:Delete",
        		"Resource": "*",
        		"Effect": "Allow",
        		"Principal": "*"
        	}]
        }
    `),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new AliCloud.Ros.Stack("example", new()
        {
            StackName = "tf-testaccstack",
            TemplateBody = @"    {
        	""ROSTemplateFormatVersion"": ""2015-09-01""
        }
    ",
            StackPolicyBody = @"    {
        	""Statement"": [{
        		""Action"": ""Update:Delete"",
        		""Resource"": ""*"",
        		""Effect"": ""Allow"",
        		""Principal"": ""*""
        	}]
        }
    ",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.ros.Stack;
    import com.pulumi.alicloud.ros.StackArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new Stack("example", StackArgs.builder()
                .stackName("tf-testaccstack")
                .templateBody("""
        {
        	"ROSTemplateFormatVersion": "2015-09-01"
        }
                """)
                .stackPolicyBody("""
        {
        	"Statement": [{
        		"Action": "Update:Delete",
        		"Resource": "*",
        		"Effect": "Allow",
        		"Principal": "*"
        	}]
        }
                """)
                .build());
    
        }
    }
    
    resources:
      example:
        type: alicloud:ros:Stack
        properties:
          stackName: tf-testaccstack
          templateBody: |2
                {
                	"ROSTemplateFormatVersion": "2015-09-01"
                }
          stackPolicyBody: |2
                {
                	"Statement": [{
                		"Action": "Update:Delete",
                		"Resource": "*",
                		"Effect": "Allow",
                		"Principal": "*"
                	}]
                }
    

    Create Stack Resource

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

    Constructor syntax

    new Stack(name: string, args: StackArgs, opts?: CustomResourceOptions);
    @overload
    def Stack(resource_name: str,
              args: StackArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Stack(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              stack_name: Optional[str] = None,
              stack_policy_body: Optional[str] = None,
              use_previous_parameters: Optional[bool] = None,
              deletion_protection: Optional[str] = None,
              parameters: Optional[Sequence[StackParameterArgs]] = None,
              ram_role_name: Optional[str] = None,
              replacement_option: Optional[str] = None,
              retain_all_resources: Optional[bool] = None,
              retain_resources: Optional[Sequence[str]] = None,
              notification_urls: Optional[Sequence[str]] = None,
              disable_rollback: Optional[bool] = None,
              stack_policy_during_update_url: Optional[str] = None,
              stack_policy_during_update_body: Optional[str] = None,
              stack_policy_url: Optional[str] = None,
              tags: Optional[Mapping[str, str]] = None,
              template_body: Optional[str] = None,
              template_url: Optional[str] = None,
              template_version: Optional[str] = None,
              timeout_in_minutes: Optional[int] = None,
              create_option: Optional[str] = None)
    func NewStack(ctx *Context, name string, args StackArgs, opts ...ResourceOption) (*Stack, error)
    public Stack(string name, StackArgs args, CustomResourceOptions? opts = null)
    public Stack(String name, StackArgs args)
    public Stack(String name, StackArgs args, CustomResourceOptions options)
    
    type: alicloud:ros:Stack
    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 StackArgs
    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 StackArgs
    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 StackArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StackArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StackArgs
    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 stackResource = new AliCloud.Ros.Stack("stackResource", new()
    {
        StackName = "string",
        StackPolicyBody = "string",
        UsePreviousParameters = false,
        DeletionProtection = "string",
        Parameters = new[]
        {
            new AliCloud.Ros.Inputs.StackParameterArgs
            {
                ParameterValue = "string",
                ParameterKey = "string",
            },
        },
        RamRoleName = "string",
        ReplacementOption = "string",
        RetainAllResources = false,
        RetainResources = new[]
        {
            "string",
        },
        NotificationUrls = new[]
        {
            "string",
        },
        DisableRollback = false,
        StackPolicyDuringUpdateUrl = "string",
        StackPolicyDuringUpdateBody = "string",
        StackPolicyUrl = "string",
        Tags = 
        {
            { "string", "string" },
        },
        TemplateBody = "string",
        TemplateUrl = "string",
        TemplateVersion = "string",
        TimeoutInMinutes = 0,
        CreateOption = "string",
    });
    
    example, err := ros.NewStack(ctx, "stackResource", &ros.StackArgs{
    	StackName:             pulumi.String("string"),
    	StackPolicyBody:       pulumi.String("string"),
    	UsePreviousParameters: pulumi.Bool(false),
    	DeletionProtection:    pulumi.String("string"),
    	Parameters: ros.StackParameterArray{
    		&ros.StackParameterArgs{
    			ParameterValue: pulumi.String("string"),
    			ParameterKey:   pulumi.String("string"),
    		},
    	},
    	RamRoleName:        pulumi.String("string"),
    	ReplacementOption:  pulumi.String("string"),
    	RetainAllResources: pulumi.Bool(false),
    	RetainResources: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	NotificationUrls: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	DisableRollback:             pulumi.Bool(false),
    	StackPolicyDuringUpdateUrl:  pulumi.String("string"),
    	StackPolicyDuringUpdateBody: pulumi.String("string"),
    	StackPolicyUrl:              pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	TemplateBody:     pulumi.String("string"),
    	TemplateUrl:      pulumi.String("string"),
    	TemplateVersion:  pulumi.String("string"),
    	TimeoutInMinutes: pulumi.Int(0),
    	CreateOption:     pulumi.String("string"),
    })
    
    var stackResource = new Stack("stackResource", StackArgs.builder()
        .stackName("string")
        .stackPolicyBody("string")
        .usePreviousParameters(false)
        .deletionProtection("string")
        .parameters(StackParameterArgs.builder()
            .parameterValue("string")
            .parameterKey("string")
            .build())
        .ramRoleName("string")
        .replacementOption("string")
        .retainAllResources(false)
        .retainResources("string")
        .notificationUrls("string")
        .disableRollback(false)
        .stackPolicyDuringUpdateUrl("string")
        .stackPolicyDuringUpdateBody("string")
        .stackPolicyUrl("string")
        .tags(Map.of("string", "string"))
        .templateBody("string")
        .templateUrl("string")
        .templateVersion("string")
        .timeoutInMinutes(0)
        .createOption("string")
        .build());
    
    stack_resource = alicloud.ros.Stack("stackResource",
        stack_name="string",
        stack_policy_body="string",
        use_previous_parameters=False,
        deletion_protection="string",
        parameters=[alicloud.ros.StackParameterArgs(
            parameter_value="string",
            parameter_key="string",
        )],
        ram_role_name="string",
        replacement_option="string",
        retain_all_resources=False,
        retain_resources=["string"],
        notification_urls=["string"],
        disable_rollback=False,
        stack_policy_during_update_url="string",
        stack_policy_during_update_body="string",
        stack_policy_url="string",
        tags={
            "string": "string",
        },
        template_body="string",
        template_url="string",
        template_version="string",
        timeout_in_minutes=0,
        create_option="string")
    
    const stackResource = new alicloud.ros.Stack("stackResource", {
        stackName: "string",
        stackPolicyBody: "string",
        usePreviousParameters: false,
        deletionProtection: "string",
        parameters: [{
            parameterValue: "string",
            parameterKey: "string",
        }],
        ramRoleName: "string",
        replacementOption: "string",
        retainAllResources: false,
        retainResources: ["string"],
        notificationUrls: ["string"],
        disableRollback: false,
        stackPolicyDuringUpdateUrl: "string",
        stackPolicyDuringUpdateBody: "string",
        stackPolicyUrl: "string",
        tags: {
            string: "string",
        },
        templateBody: "string",
        templateUrl: "string",
        templateVersion: "string",
        timeoutInMinutes: 0,
        createOption: "string",
    });
    
    type: alicloud:ros:Stack
    properties:
        createOption: string
        deletionProtection: string
        disableRollback: false
        notificationUrls:
            - string
        parameters:
            - parameterKey: string
              parameterValue: string
        ramRoleName: string
        replacementOption: string
        retainAllResources: false
        retainResources:
            - string
        stackName: string
        stackPolicyBody: string
        stackPolicyDuringUpdateBody: string
        stackPolicyDuringUpdateUrl: string
        stackPolicyUrl: string
        tags:
            string: string
        templateBody: string
        templateUrl: string
        templateVersion: string
        timeoutInMinutes: 0
        usePreviousParameters: false
    

    Stack Resource Properties

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

    Inputs

    The Stack resource accepts the following input properties:

    StackName string
    The name can be up to 255 characters in length and can contain digits, letters, hyphens (-), and underscores (_). It must start with a digit or letter.
    CreateOption string
    Specifies whether to delete the stack after it is created.
    DeletionProtection string
    Specifies whether to enable deletion protection on the stack. Valid values: Disabled, Enabled. Default to: Disabled
    DisableRollback bool
    Specifies whether to disable rollback on stack creation failure. Default to: false.
    NotificationUrls List<string>
    The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
    Parameters List<Pulumi.AliCloud.Ros.Inputs.StackParameter>
    The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
    RamRoleName string
    The name of the RAM role. ROS assumes the specified RAM role to create the stack and call API operations by using the credentials of the role.
    ReplacementOption string
    Specifies whether to enable replacement update after a resource attribute that does not support modification update is changed. Modification update keeps the physical ID of the resource unchanged. However, the resource is deleted and then recreated, and its physical ID is changed if replacement update is enabled.
    RetainAllResources bool
    The retain all resources.
    RetainResources List<string>
    Specifies whether to retain the resources in the stack.
    StackPolicyBody string
    The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
    StackPolicyDuringUpdateBody string
    The structure that contains the body of the temporary overriding stack policy. The stack policy body must be 1 to 16,384 bytes in length.
    StackPolicyDuringUpdateUrl string
    The URL of the file that contains the temporary overriding stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    StackPolicyUrl string
    The URL of the file that contains the stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    TemplateBody string
    The structure that contains the template body. The template body must be 1 to 524,288 bytes in length. If the length of the template body is longer than required, we recommend that you add parameters to the HTTP POST request body to avoid request failures due to excessive length of URLs.
    TemplateUrl string
    The URL of the file that contains the template body. The URL must point to a template located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/template/demo and oss://ros/template/demo?RegionId=cn-hangzhou. The template must be 1 to 524,288 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    TemplateVersion string
    The version of the template.
    TimeoutInMinutes int
    The timeout period that is specified for the stack creation request. Default to: 60.
    UsePreviousParameters bool
    Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
    StackName string
    The name can be up to 255 characters in length and can contain digits, letters, hyphens (-), and underscores (_). It must start with a digit or letter.
    CreateOption string
    Specifies whether to delete the stack after it is created.
    DeletionProtection string
    Specifies whether to enable deletion protection on the stack. Valid values: Disabled, Enabled. Default to: Disabled
    DisableRollback bool
    Specifies whether to disable rollback on stack creation failure. Default to: false.
    NotificationUrls []string
    The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
    Parameters []StackParameterArgs
    The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
    RamRoleName string
    The name of the RAM role. ROS assumes the specified RAM role to create the stack and call API operations by using the credentials of the role.
    ReplacementOption string
    Specifies whether to enable replacement update after a resource attribute that does not support modification update is changed. Modification update keeps the physical ID of the resource unchanged. However, the resource is deleted and then recreated, and its physical ID is changed if replacement update is enabled.
    RetainAllResources bool
    The retain all resources.
    RetainResources []string
    Specifies whether to retain the resources in the stack.
    StackPolicyBody string
    The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
    StackPolicyDuringUpdateBody string
    The structure that contains the body of the temporary overriding stack policy. The stack policy body must be 1 to 16,384 bytes in length.
    StackPolicyDuringUpdateUrl string
    The URL of the file that contains the temporary overriding stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    StackPolicyUrl string
    The URL of the file that contains the stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    TemplateBody string
    The structure that contains the template body. The template body must be 1 to 524,288 bytes in length. If the length of the template body is longer than required, we recommend that you add parameters to the HTTP POST request body to avoid request failures due to excessive length of URLs.
    TemplateUrl string
    The URL of the file that contains the template body. The URL must point to a template located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/template/demo and oss://ros/template/demo?RegionId=cn-hangzhou. The template must be 1 to 524,288 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    TemplateVersion string
    The version of the template.
    TimeoutInMinutes int
    The timeout period that is specified for the stack creation request. Default to: 60.
    UsePreviousParameters bool
    Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
    stackName String
    The name can be up to 255 characters in length and can contain digits, letters, hyphens (-), and underscores (_). It must start with a digit or letter.
    createOption String
    Specifies whether to delete the stack after it is created.
    deletionProtection String
    Specifies whether to enable deletion protection on the stack. Valid values: Disabled, Enabled. Default to: Disabled
    disableRollback Boolean
    Specifies whether to disable rollback on stack creation failure. Default to: false.
    notificationUrls List<String>
    The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
    parameters List<StackParameter>
    The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
    ramRoleName String
    The name of the RAM role. ROS assumes the specified RAM role to create the stack and call API operations by using the credentials of the role.
    replacementOption String
    Specifies whether to enable replacement update after a resource attribute that does not support modification update is changed. Modification update keeps the physical ID of the resource unchanged. However, the resource is deleted and then recreated, and its physical ID is changed if replacement update is enabled.
    retainAllResources Boolean
    The retain all resources.
    retainResources List<String>
    Specifies whether to retain the resources in the stack.
    stackPolicyBody String
    The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
    stackPolicyDuringUpdateBody String
    The structure that contains the body of the temporary overriding stack policy. The stack policy body must be 1 to 16,384 bytes in length.
    stackPolicyDuringUpdateUrl String
    The URL of the file that contains the temporary overriding stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    stackPolicyUrl String
    The URL of the file that contains the stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    templateBody String
    The structure that contains the template body. The template body must be 1 to 524,288 bytes in length. If the length of the template body is longer than required, we recommend that you add parameters to the HTTP POST request body to avoid request failures due to excessive length of URLs.
    templateUrl String
    The URL of the file that contains the template body. The URL must point to a template located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/template/demo and oss://ros/template/demo?RegionId=cn-hangzhou. The template must be 1 to 524,288 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    templateVersion String
    The version of the template.
    timeoutInMinutes Integer
    The timeout period that is specified for the stack creation request. Default to: 60.
    usePreviousParameters Boolean
    Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
    stackName string
    The name can be up to 255 characters in length and can contain digits, letters, hyphens (-), and underscores (_). It must start with a digit or letter.
    createOption string
    Specifies whether to delete the stack after it is created.
    deletionProtection string
    Specifies whether to enable deletion protection on the stack. Valid values: Disabled, Enabled. Default to: Disabled
    disableRollback boolean
    Specifies whether to disable rollback on stack creation failure. Default to: false.
    notificationUrls string[]
    The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
    parameters StackParameter[]
    The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
    ramRoleName string
    The name of the RAM role. ROS assumes the specified RAM role to create the stack and call API operations by using the credentials of the role.
    replacementOption string
    Specifies whether to enable replacement update after a resource attribute that does not support modification update is changed. Modification update keeps the physical ID of the resource unchanged. However, the resource is deleted and then recreated, and its physical ID is changed if replacement update is enabled.
    retainAllResources boolean
    The retain all resources.
    retainResources string[]
    Specifies whether to retain the resources in the stack.
    stackPolicyBody string
    The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
    stackPolicyDuringUpdateBody string
    The structure that contains the body of the temporary overriding stack policy. The stack policy body must be 1 to 16,384 bytes in length.
    stackPolicyDuringUpdateUrl string
    The URL of the file that contains the temporary overriding stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    stackPolicyUrl string
    The URL of the file that contains the stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    templateBody string
    The structure that contains the template body. The template body must be 1 to 524,288 bytes in length. If the length of the template body is longer than required, we recommend that you add parameters to the HTTP POST request body to avoid request failures due to excessive length of URLs.
    templateUrl string
    The URL of the file that contains the template body. The URL must point to a template located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/template/demo and oss://ros/template/demo?RegionId=cn-hangzhou. The template must be 1 to 524,288 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    templateVersion string
    The version of the template.
    timeoutInMinutes number
    The timeout period that is specified for the stack creation request. Default to: 60.
    usePreviousParameters boolean
    Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
    stack_name str
    The name can be up to 255 characters in length and can contain digits, letters, hyphens (-), and underscores (_). It must start with a digit or letter.
    create_option str
    Specifies whether to delete the stack after it is created.
    deletion_protection str
    Specifies whether to enable deletion protection on the stack. Valid values: Disabled, Enabled. Default to: Disabled
    disable_rollback bool
    Specifies whether to disable rollback on stack creation failure. Default to: false.
    notification_urls Sequence[str]
    The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
    parameters Sequence[StackParameterArgs]
    The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
    ram_role_name str
    The name of the RAM role. ROS assumes the specified RAM role to create the stack and call API operations by using the credentials of the role.
    replacement_option str
    Specifies whether to enable replacement update after a resource attribute that does not support modification update is changed. Modification update keeps the physical ID of the resource unchanged. However, the resource is deleted and then recreated, and its physical ID is changed if replacement update is enabled.
    retain_all_resources bool
    The retain all resources.
    retain_resources Sequence[str]
    Specifies whether to retain the resources in the stack.
    stack_policy_body str
    The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
    stack_policy_during_update_body str
    The structure that contains the body of the temporary overriding stack policy. The stack policy body must be 1 to 16,384 bytes in length.
    stack_policy_during_update_url str
    The URL of the file that contains the temporary overriding stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    stack_policy_url str
    The URL of the file that contains the stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    template_body str
    The structure that contains the template body. The template body must be 1 to 524,288 bytes in length. If the length of the template body is longer than required, we recommend that you add parameters to the HTTP POST request body to avoid request failures due to excessive length of URLs.
    template_url str
    The URL of the file that contains the template body. The URL must point to a template located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/template/demo and oss://ros/template/demo?RegionId=cn-hangzhou. The template must be 1 to 524,288 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    template_version str
    The version of the template.
    timeout_in_minutes int
    The timeout period that is specified for the stack creation request. Default to: 60.
    use_previous_parameters bool
    Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
    stackName String
    The name can be up to 255 characters in length and can contain digits, letters, hyphens (-), and underscores (_). It must start with a digit or letter.
    createOption String
    Specifies whether to delete the stack after it is created.
    deletionProtection String
    Specifies whether to enable deletion protection on the stack. Valid values: Disabled, Enabled. Default to: Disabled
    disableRollback Boolean
    Specifies whether to disable rollback on stack creation failure. Default to: false.
    notificationUrls List<String>
    The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
    parameters List<Property Map>
    The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
    ramRoleName String
    The name of the RAM role. ROS assumes the specified RAM role to create the stack and call API operations by using the credentials of the role.
    replacementOption String
    Specifies whether to enable replacement update after a resource attribute that does not support modification update is changed. Modification update keeps the physical ID of the resource unchanged. However, the resource is deleted and then recreated, and its physical ID is changed if replacement update is enabled.
    retainAllResources Boolean
    The retain all resources.
    retainResources List<String>
    Specifies whether to retain the resources in the stack.
    stackPolicyBody String
    The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
    stackPolicyDuringUpdateBody String
    The structure that contains the body of the temporary overriding stack policy. The stack policy body must be 1 to 16,384 bytes in length.
    stackPolicyDuringUpdateUrl String
    The URL of the file that contains the temporary overriding stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    stackPolicyUrl String
    The URL of the file that contains the stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    tags Map<String>
    A mapping of tags to assign to the resource.
    templateBody String
    The structure that contains the template body. The template body must be 1 to 524,288 bytes in length. If the length of the template body is longer than required, we recommend that you add parameters to the HTTP POST request body to avoid request failures due to excessive length of URLs.
    templateUrl String
    The URL of the file that contains the template body. The URL must point to a template located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/template/demo and oss://ros/template/demo?RegionId=cn-hangzhou. The template must be 1 to 524,288 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    templateVersion String
    The version of the template.
    timeoutInMinutes Number
    The timeout period that is specified for the stack creation request. Default to: 60.
    usePreviousParameters Boolean
    Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of Stack.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of Stack.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of Stack.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of Stack.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of Stack.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of Stack.

    Look up Existing Stack Resource

    Get an existing Stack 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?: StackState, opts?: CustomResourceOptions): Stack
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_option: Optional[str] = None,
            deletion_protection: Optional[str] = None,
            disable_rollback: Optional[bool] = None,
            notification_urls: Optional[Sequence[str]] = None,
            parameters: Optional[Sequence[StackParameterArgs]] = None,
            ram_role_name: Optional[str] = None,
            replacement_option: Optional[str] = None,
            retain_all_resources: Optional[bool] = None,
            retain_resources: Optional[Sequence[str]] = None,
            stack_name: Optional[str] = None,
            stack_policy_body: Optional[str] = None,
            stack_policy_during_update_body: Optional[str] = None,
            stack_policy_during_update_url: Optional[str] = None,
            stack_policy_url: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            template_body: Optional[str] = None,
            template_url: Optional[str] = None,
            template_version: Optional[str] = None,
            timeout_in_minutes: Optional[int] = None,
            use_previous_parameters: Optional[bool] = None) -> Stack
    func GetStack(ctx *Context, name string, id IDInput, state *StackState, opts ...ResourceOption) (*Stack, error)
    public static Stack Get(string name, Input<string> id, StackState? state, CustomResourceOptions? opts = null)
    public static Stack get(String name, Output<String> id, StackState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    CreateOption string
    Specifies whether to delete the stack after it is created.
    DeletionProtection string
    Specifies whether to enable deletion protection on the stack. Valid values: Disabled, Enabled. Default to: Disabled
    DisableRollback bool
    Specifies whether to disable rollback on stack creation failure. Default to: false.
    NotificationUrls List<string>
    The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
    Parameters List<Pulumi.AliCloud.Ros.Inputs.StackParameter>
    The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
    RamRoleName string
    The name of the RAM role. ROS assumes the specified RAM role to create the stack and call API operations by using the credentials of the role.
    ReplacementOption string
    Specifies whether to enable replacement update after a resource attribute that does not support modification update is changed. Modification update keeps the physical ID of the resource unchanged. However, the resource is deleted and then recreated, and its physical ID is changed if replacement update is enabled.
    RetainAllResources bool
    The retain all resources.
    RetainResources List<string>
    Specifies whether to retain the resources in the stack.
    StackName string
    The name can be up to 255 characters in length and can contain digits, letters, hyphens (-), and underscores (_). It must start with a digit or letter.
    StackPolicyBody string
    The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
    StackPolicyDuringUpdateBody string
    The structure that contains the body of the temporary overriding stack policy. The stack policy body must be 1 to 16,384 bytes in length.
    StackPolicyDuringUpdateUrl string
    The URL of the file that contains the temporary overriding stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    StackPolicyUrl string
    The URL of the file that contains the stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    Status string
    The status of Stack.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    TemplateBody string
    The structure that contains the template body. The template body must be 1 to 524,288 bytes in length. If the length of the template body is longer than required, we recommend that you add parameters to the HTTP POST request body to avoid request failures due to excessive length of URLs.
    TemplateUrl string
    The URL of the file that contains the template body. The URL must point to a template located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/template/demo and oss://ros/template/demo?RegionId=cn-hangzhou. The template must be 1 to 524,288 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    TemplateVersion string
    The version of the template.
    TimeoutInMinutes int
    The timeout period that is specified for the stack creation request. Default to: 60.
    UsePreviousParameters bool
    Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
    CreateOption string
    Specifies whether to delete the stack after it is created.
    DeletionProtection string
    Specifies whether to enable deletion protection on the stack. Valid values: Disabled, Enabled. Default to: Disabled
    DisableRollback bool
    Specifies whether to disable rollback on stack creation failure. Default to: false.
    NotificationUrls []string
    The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
    Parameters []StackParameterArgs
    The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
    RamRoleName string
    The name of the RAM role. ROS assumes the specified RAM role to create the stack and call API operations by using the credentials of the role.
    ReplacementOption string
    Specifies whether to enable replacement update after a resource attribute that does not support modification update is changed. Modification update keeps the physical ID of the resource unchanged. However, the resource is deleted and then recreated, and its physical ID is changed if replacement update is enabled.
    RetainAllResources bool
    The retain all resources.
    RetainResources []string
    Specifies whether to retain the resources in the stack.
    StackName string
    The name can be up to 255 characters in length and can contain digits, letters, hyphens (-), and underscores (_). It must start with a digit or letter.
    StackPolicyBody string
    The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
    StackPolicyDuringUpdateBody string
    The structure that contains the body of the temporary overriding stack policy. The stack policy body must be 1 to 16,384 bytes in length.
    StackPolicyDuringUpdateUrl string
    The URL of the file that contains the temporary overriding stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    StackPolicyUrl string
    The URL of the file that contains the stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    Status string
    The status of Stack.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    TemplateBody string
    The structure that contains the template body. The template body must be 1 to 524,288 bytes in length. If the length of the template body is longer than required, we recommend that you add parameters to the HTTP POST request body to avoid request failures due to excessive length of URLs.
    TemplateUrl string
    The URL of the file that contains the template body. The URL must point to a template located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/template/demo and oss://ros/template/demo?RegionId=cn-hangzhou. The template must be 1 to 524,288 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    TemplateVersion string
    The version of the template.
    TimeoutInMinutes int
    The timeout period that is specified for the stack creation request. Default to: 60.
    UsePreviousParameters bool
    Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
    createOption String
    Specifies whether to delete the stack after it is created.
    deletionProtection String
    Specifies whether to enable deletion protection on the stack. Valid values: Disabled, Enabled. Default to: Disabled
    disableRollback Boolean
    Specifies whether to disable rollback on stack creation failure. Default to: false.
    notificationUrls List<String>
    The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
    parameters List<StackParameter>
    The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
    ramRoleName String
    The name of the RAM role. ROS assumes the specified RAM role to create the stack and call API operations by using the credentials of the role.
    replacementOption String
    Specifies whether to enable replacement update after a resource attribute that does not support modification update is changed. Modification update keeps the physical ID of the resource unchanged. However, the resource is deleted and then recreated, and its physical ID is changed if replacement update is enabled.
    retainAllResources Boolean
    The retain all resources.
    retainResources List<String>
    Specifies whether to retain the resources in the stack.
    stackName String
    The name can be up to 255 characters in length and can contain digits, letters, hyphens (-), and underscores (_). It must start with a digit or letter.
    stackPolicyBody String
    The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
    stackPolicyDuringUpdateBody String
    The structure that contains the body of the temporary overriding stack policy. The stack policy body must be 1 to 16,384 bytes in length.
    stackPolicyDuringUpdateUrl String
    The URL of the file that contains the temporary overriding stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    stackPolicyUrl String
    The URL of the file that contains the stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    status String
    The status of Stack.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    templateBody String
    The structure that contains the template body. The template body must be 1 to 524,288 bytes in length. If the length of the template body is longer than required, we recommend that you add parameters to the HTTP POST request body to avoid request failures due to excessive length of URLs.
    templateUrl String
    The URL of the file that contains the template body. The URL must point to a template located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/template/demo and oss://ros/template/demo?RegionId=cn-hangzhou. The template must be 1 to 524,288 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    templateVersion String
    The version of the template.
    timeoutInMinutes Integer
    The timeout period that is specified for the stack creation request. Default to: 60.
    usePreviousParameters Boolean
    Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
    createOption string
    Specifies whether to delete the stack after it is created.
    deletionProtection string
    Specifies whether to enable deletion protection on the stack. Valid values: Disabled, Enabled. Default to: Disabled
    disableRollback boolean
    Specifies whether to disable rollback on stack creation failure. Default to: false.
    notificationUrls string[]
    The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
    parameters StackParameter[]
    The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
    ramRoleName string
    The name of the RAM role. ROS assumes the specified RAM role to create the stack and call API operations by using the credentials of the role.
    replacementOption string
    Specifies whether to enable replacement update after a resource attribute that does not support modification update is changed. Modification update keeps the physical ID of the resource unchanged. However, the resource is deleted and then recreated, and its physical ID is changed if replacement update is enabled.
    retainAllResources boolean
    The retain all resources.
    retainResources string[]
    Specifies whether to retain the resources in the stack.
    stackName string
    The name can be up to 255 characters in length and can contain digits, letters, hyphens (-), and underscores (_). It must start with a digit or letter.
    stackPolicyBody string
    The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
    stackPolicyDuringUpdateBody string
    The structure that contains the body of the temporary overriding stack policy. The stack policy body must be 1 to 16,384 bytes in length.
    stackPolicyDuringUpdateUrl string
    The URL of the file that contains the temporary overriding stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    stackPolicyUrl string
    The URL of the file that contains the stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    status string
    The status of Stack.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    templateBody string
    The structure that contains the template body. The template body must be 1 to 524,288 bytes in length. If the length of the template body is longer than required, we recommend that you add parameters to the HTTP POST request body to avoid request failures due to excessive length of URLs.
    templateUrl string
    The URL of the file that contains the template body. The URL must point to a template located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/template/demo and oss://ros/template/demo?RegionId=cn-hangzhou. The template must be 1 to 524,288 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    templateVersion string
    The version of the template.
    timeoutInMinutes number
    The timeout period that is specified for the stack creation request. Default to: 60.
    usePreviousParameters boolean
    Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
    create_option str
    Specifies whether to delete the stack after it is created.
    deletion_protection str
    Specifies whether to enable deletion protection on the stack. Valid values: Disabled, Enabled. Default to: Disabled
    disable_rollback bool
    Specifies whether to disable rollback on stack creation failure. Default to: false.
    notification_urls Sequence[str]
    The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
    parameters Sequence[StackParameterArgs]
    The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
    ram_role_name str
    The name of the RAM role. ROS assumes the specified RAM role to create the stack and call API operations by using the credentials of the role.
    replacement_option str
    Specifies whether to enable replacement update after a resource attribute that does not support modification update is changed. Modification update keeps the physical ID of the resource unchanged. However, the resource is deleted and then recreated, and its physical ID is changed if replacement update is enabled.
    retain_all_resources bool
    The retain all resources.
    retain_resources Sequence[str]
    Specifies whether to retain the resources in the stack.
    stack_name str
    The name can be up to 255 characters in length and can contain digits, letters, hyphens (-), and underscores (_). It must start with a digit or letter.
    stack_policy_body str
    The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
    stack_policy_during_update_body str
    The structure that contains the body of the temporary overriding stack policy. The stack policy body must be 1 to 16,384 bytes in length.
    stack_policy_during_update_url str
    The URL of the file that contains the temporary overriding stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    stack_policy_url str
    The URL of the file that contains the stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    status str
    The status of Stack.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    template_body str
    The structure that contains the template body. The template body must be 1 to 524,288 bytes in length. If the length of the template body is longer than required, we recommend that you add parameters to the HTTP POST request body to avoid request failures due to excessive length of URLs.
    template_url str
    The URL of the file that contains the template body. The URL must point to a template located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/template/demo and oss://ros/template/demo?RegionId=cn-hangzhou. The template must be 1 to 524,288 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    template_version str
    The version of the template.
    timeout_in_minutes int
    The timeout period that is specified for the stack creation request. Default to: 60.
    use_previous_parameters bool
    Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
    createOption String
    Specifies whether to delete the stack after it is created.
    deletionProtection String
    Specifies whether to enable deletion protection on the stack. Valid values: Disabled, Enabled. Default to: Disabled
    disableRollback Boolean
    Specifies whether to disable rollback on stack creation failure. Default to: false.
    notificationUrls List<String>
    The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
    parameters List<Property Map>
    The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
    ramRoleName String
    The name of the RAM role. ROS assumes the specified RAM role to create the stack and call API operations by using the credentials of the role.
    replacementOption String
    Specifies whether to enable replacement update after a resource attribute that does not support modification update is changed. Modification update keeps the physical ID of the resource unchanged. However, the resource is deleted and then recreated, and its physical ID is changed if replacement update is enabled.
    retainAllResources Boolean
    The retain all resources.
    retainResources List<String>
    Specifies whether to retain the resources in the stack.
    stackName String
    The name can be up to 255 characters in length and can contain digits, letters, hyphens (-), and underscores (_). It must start with a digit or letter.
    stackPolicyBody String
    The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
    stackPolicyDuringUpdateBody String
    The structure that contains the body of the temporary overriding stack policy. The stack policy body must be 1 to 16,384 bytes in length.
    stackPolicyDuringUpdateUrl String
    The URL of the file that contains the temporary overriding stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    stackPolicyUrl String
    The URL of the file that contains the stack policy. The URL must point to a policy located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/stack-policy/demo and oss://ros/stack-policy/demo?RegionId=cn-hangzhou. The policy can be up to 16,384 bytes in length and the URL can be up to 1,350 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    status String
    The status of Stack.
    tags Map<String>
    A mapping of tags to assign to the resource.
    templateBody String
    The structure that contains the template body. The template body must be 1 to 524,288 bytes in length. If the length of the template body is longer than required, we recommend that you add parameters to the HTTP POST request body to avoid request failures due to excessive length of URLs.
    templateUrl String
    The URL of the file that contains the template body. The URL must point to a template located in an HTTP or HTTPS web server or an Alibaba Cloud OSS bucket. Examples: oss://ros/template/demo and oss://ros/template/demo?RegionId=cn-hangzhou. The template must be 1 to 524,288 bytes in length. If the region of the OSS bucket is not specified, the RegionId value is used by default.
    templateVersion String
    The version of the template.
    timeoutInMinutes Number
    The timeout period that is specified for the stack creation request. Default to: 60.
    usePreviousParameters Boolean
    Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.

    Supporting Types

    StackParameter, StackParameterArgs

    ParameterValue string
    The parameter value.
    ParameterKey string
    The parameter key.
    ParameterValue string
    The parameter value.
    ParameterKey string
    The parameter key.
    parameterValue String
    The parameter value.
    parameterKey String
    The parameter key.
    parameterValue string
    The parameter value.
    parameterKey string
    The parameter key.
    parameter_value str
    The parameter value.
    parameter_key str
    The parameter key.
    parameterValue String
    The parameter value.
    parameterKey String
    The parameter key.

    Import

    ROS Stack can be imported using the id, e.g.

    $ pulumi import alicloud:ros/stack:Stack example <stack_id>
    

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

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi