Alibaba Cloud

v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

Stack

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

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new AliCloud.Ros.Stack("example", new AliCloud.Ros.StackArgs
        {
            StackName = "tf-testaccstack",
            StackPolicyBody = @"    {
    	""Statement"": [{
    		""Action"": ""Update:Delete"",
    		""Resource"": ""*"",
    		""Effect"": ""Allow"",
    		""Principal"": ""*""
    	}]
    }
    
",
            TemplateBody = @"    {
    	""ROSTemplateFormatVersion"": ""2015-09-01""
    }
    
",
        });
    }

}
package main

import (
	"fmt"

	"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"),
			StackPolicyBody: pulumi.String(fmt.Sprintf(`    {
    	"Statement": [{
    		"Action": "Update:Delete",
    		"Resource": "*",
    		"Effect": "Allow",
    		"Principal": "*"
    	}]
    }
    
`)),
			TemplateBody: pulumi.String(fmt.Sprintf("    {\n    	\"ROSTemplateFormatVersion\": \"2015-09-01\"\n    }\n    \n")),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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")
            .stackPolicyBody("""
    {
    	"Statement": [{
    		"Action": "Update:Delete",
    		"Resource": "*",
    		"Effect": "Allow",
    		"Principal": "*"
    	}]
    }
    
            """)
            .templateBody("""
    {
    	"ROSTemplateFormatVersion": "2015-09-01"
    }
    
            """)
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.ros.Stack("example",
    stack_name="tf-testaccstack",
    stack_policy_body="""    {
    	"Statement": [{
    		"Action": "Update:Delete",
    		"Resource": "*",
    		"Effect": "Allow",
    		"Principal": "*"
    	}]
    }
    
""",
    template_body="""    {
    	"ROSTemplateFormatVersion": "2015-09-01"
    }
    
""")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = new alicloud.ros.Stack("example", {
    stackName: "tf-testaccstack",
    stackPolicyBody: `    {
    	"Statement": [{
    		"Action": "Update:Delete",
    		"Resource": "*",
    		"Effect": "Allow",
    		"Principal": "*"
    	}]
    }
    `,
    templateBody: `    {
    	"ROSTemplateFormatVersion": "2015-09-01"
    }
    `,
});
resources:
  example:
    type: alicloud:ros:Stack
    properties:
      stackName: tf-testaccstack
      stackPolicyBody: "    {\n    \t\"Statement\": [{\n    \t\t\"Action\": \"Update:Delete\",\n    \t\t\"Resource\": \"*\",\n    \t\t\"Effect\": \"Allow\",\n    \t\t\"Principal\": \"*\"\n    \t}]\n    }\n    \n"
      templateBody: "    {\n    \t\"ROSTemplateFormatVersion\": \"2015-09-01\"\n    }\n    \n"

Create Stack Resource

new Stack(name: string, args: StackArgs, opts?: CustomResourceOptions);
@overload
def Stack(resource_name: 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,
          tags: Optional[Mapping[str, Any]] = 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)
@overload
def Stack(resource_name: str,
          args: StackArgs,
          opts: Optional[ResourceOptions] = 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.

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.

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.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 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, object>

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]interface{}

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<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 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,Object>

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 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 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]: any}

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, Any]

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<Any>

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, Any]] = 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.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 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, object>

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]interface{}

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<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 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,Object>

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 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 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]: any}

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, Any]

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<Any>

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

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>

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.