1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. ros
  5. StackInstance
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

alicloud.ros.StackInstance

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

    Provides a ROS Stack Instance resource.

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

    NOTE: Available in v1.145.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf-example";
    const this = alicloud.getAccount({});
    const default = alicloud.ros.getRegions({});
    const defaultStackGroup = new alicloud.ros.StackGroup("default", {
        stackGroupName: name,
        templateBody: "{\"ROSTemplateFormatVersion\":\"2015-09-01\", \"Parameters\": {\"VpcName\": {\"Type\": \"String\"},\"InstanceType\": {\"Type\": \"String\"}}}",
        description: "test for stack groups",
        parameters: [
            {
                parameterKey: "VpcName",
                parameterValue: "VpcName",
            },
            {
                parameterKey: "InstanceType",
                parameterValue: "InstanceType",
            },
        ],
    });
    const example = new alicloud.ros.StackInstance("example", {
        stackGroupName: defaultStackGroup.stackGroupName,
        stackInstanceAccountId: _this.then(_this => _this.id),
        stackInstanceRegionId: _default.then(_default => _default.regions?.[0]?.regionId),
        operationPreferences: "{\"FailureToleranceCount\": 1, \"MaxConcurrentCount\": 2}",
        timeoutInMinutes: "60",
        operationDescription: "tf-example",
        retainStacks: true,
        parameterOverrides: [{
            parameterValue: "VpcName",
            parameterKey: "VpcName",
        }],
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf-example"
    this = alicloud.get_account()
    default = alicloud.ros.get_regions()
    default_stack_group = alicloud.ros.StackGroup("default",
        stack_group_name=name,
        template_body="{\"ROSTemplateFormatVersion\":\"2015-09-01\", \"Parameters\": {\"VpcName\": {\"Type\": \"String\"},\"InstanceType\": {\"Type\": \"String\"}}}",
        description="test for stack groups",
        parameters=[
            alicloud.ros.StackGroupParameterArgs(
                parameter_key="VpcName",
                parameter_value="VpcName",
            ),
            alicloud.ros.StackGroupParameterArgs(
                parameter_key="InstanceType",
                parameter_value="InstanceType",
            ),
        ])
    example = alicloud.ros.StackInstance("example",
        stack_group_name=default_stack_group.stack_group_name,
        stack_instance_account_id=this.id,
        stack_instance_region_id=default.regions[0].region_id,
        operation_preferences="{\"FailureToleranceCount\": 1, \"MaxConcurrentCount\": 2}",
        timeout_in_minutes="60",
        operation_description="tf-example",
        retain_stacks=True,
        parameter_overrides=[alicloud.ros.StackInstanceParameterOverrideArgs(
            parameter_value="VpcName",
            parameter_key="VpcName",
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ros"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tf-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		this, err := alicloud.GetAccount(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		_default, err := ros.GetRegions(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		defaultStackGroup, err := ros.NewStackGroup(ctx, "default", &ros.StackGroupArgs{
    			StackGroupName: pulumi.String(name),
    			TemplateBody:   pulumi.String("{\"ROSTemplateFormatVersion\":\"2015-09-01\", \"Parameters\": {\"VpcName\": {\"Type\": \"String\"},\"InstanceType\": {\"Type\": \"String\"}}}"),
    			Description:    pulumi.String("test for stack groups"),
    			Parameters: ros.StackGroupParameterArray{
    				&ros.StackGroupParameterArgs{
    					ParameterKey:   pulumi.String("VpcName"),
    					ParameterValue: pulumi.String("VpcName"),
    				},
    				&ros.StackGroupParameterArgs{
    					ParameterKey:   pulumi.String("InstanceType"),
    					ParameterValue: pulumi.String("InstanceType"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ros.NewStackInstance(ctx, "example", &ros.StackInstanceArgs{
    			StackGroupName:         defaultStackGroup.StackGroupName,
    			StackInstanceAccountId: pulumi.String(this.Id),
    			StackInstanceRegionId:  pulumi.String(_default.Regions[0].RegionId),
    			OperationPreferences:   pulumi.String("{\"FailureToleranceCount\": 1, \"MaxConcurrentCount\": 2}"),
    			TimeoutInMinutes:       pulumi.String("60"),
    			OperationDescription:   pulumi.String("tf-example"),
    			RetainStacks:           pulumi.Bool(true),
    			ParameterOverrides: ros.StackInstanceParameterOverrideArray{
    				&ros.StackInstanceParameterOverrideArgs{
    					ParameterValue: pulumi.String("VpcName"),
    					ParameterKey:   pulumi.String("VpcName"),
    				},
    			},
    		})
    		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 config = new Config();
        var name = config.Get("name") ?? "tf-example";
        var @this = AliCloud.GetAccount.Invoke();
    
        var @default = AliCloud.Ros.GetRegions.Invoke();
    
        var defaultStackGroup = new AliCloud.Ros.StackGroup("default", new()
        {
            StackGroupName = name,
            TemplateBody = "{\"ROSTemplateFormatVersion\":\"2015-09-01\", \"Parameters\": {\"VpcName\": {\"Type\": \"String\"},\"InstanceType\": {\"Type\": \"String\"}}}",
            Description = "test for stack groups",
            Parameters = new[]
            {
                new AliCloud.Ros.Inputs.StackGroupParameterArgs
                {
                    ParameterKey = "VpcName",
                    ParameterValue = "VpcName",
                },
                new AliCloud.Ros.Inputs.StackGroupParameterArgs
                {
                    ParameterKey = "InstanceType",
                    ParameterValue = "InstanceType",
                },
            },
        });
    
        var example = new AliCloud.Ros.StackInstance("example", new()
        {
            StackGroupName = defaultStackGroup.StackGroupName,
            StackInstanceAccountId = @this.Apply(@this => @this.Apply(getAccountResult => getAccountResult.Id)),
            StackInstanceRegionId = @default.Apply(@default => @default.Apply(getRegionsResult => getRegionsResult.Regions[0]?.RegionId)),
            OperationPreferences = "{\"FailureToleranceCount\": 1, \"MaxConcurrentCount\": 2}",
            TimeoutInMinutes = "60",
            OperationDescription = "tf-example",
            RetainStacks = true,
            ParameterOverrides = new[]
            {
                new AliCloud.Ros.Inputs.StackInstanceParameterOverrideArgs
                {
                    ParameterValue = "VpcName",
                    ParameterKey = "VpcName",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.ros.RosFunctions;
    import com.pulumi.alicloud.ros.inputs.GetRegionsArgs;
    import com.pulumi.alicloud.ros.StackGroup;
    import com.pulumi.alicloud.ros.StackGroupArgs;
    import com.pulumi.alicloud.ros.inputs.StackGroupParameterArgs;
    import com.pulumi.alicloud.ros.StackInstance;
    import com.pulumi.alicloud.ros.StackInstanceArgs;
    import com.pulumi.alicloud.ros.inputs.StackInstanceParameterOverrideArgs;
    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) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("tf-example");
            final var this = AlicloudFunctions.getAccount();
    
            final var default = RosFunctions.getRegions();
    
            var defaultStackGroup = new StackGroup("defaultStackGroup", StackGroupArgs.builder()        
                .stackGroupName(name)
                .templateBody("{\"ROSTemplateFormatVersion\":\"2015-09-01\", \"Parameters\": {\"VpcName\": {\"Type\": \"String\"},\"InstanceType\": {\"Type\": \"String\"}}}")
                .description("test for stack groups")
                .parameters(            
                    StackGroupParameterArgs.builder()
                        .parameterKey("VpcName")
                        .parameterValue("VpcName")
                        .build(),
                    StackGroupParameterArgs.builder()
                        .parameterKey("InstanceType")
                        .parameterValue("InstanceType")
                        .build())
                .build());
    
            var example = new StackInstance("example", StackInstanceArgs.builder()        
                .stackGroupName(defaultStackGroup.stackGroupName())
                .stackInstanceAccountId(this_.id())
                .stackInstanceRegionId(default_.regions()[0].regionId())
                .operationPreferences("{\"FailureToleranceCount\": 1, \"MaxConcurrentCount\": 2}")
                .timeoutInMinutes("60")
                .operationDescription("tf-example")
                .retainStacks("true")
                .parameterOverrides(StackInstanceParameterOverrideArgs.builder()
                    .parameterValue("VpcName")
                    .parameterKey("VpcName")
                    .build())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf-example
    resources:
      defaultStackGroup:
        type: alicloud:ros:StackGroup
        name: default
        properties:
          stackGroupName: ${name}
          templateBody: '{"ROSTemplateFormatVersion":"2015-09-01", "Parameters": {"VpcName": {"Type": "String"},"InstanceType": {"Type": "String"}}}'
          description: test for stack groups
          parameters:
            - parameterKey: VpcName
              parameterValue: VpcName
            - parameterKey: InstanceType
              parameterValue: InstanceType
      example:
        type: alicloud:ros:StackInstance
        properties:
          stackGroupName: ${defaultStackGroup.stackGroupName}
          stackInstanceAccountId: ${this.id}
          stackInstanceRegionId: ${default.regions[0].regionId}
          operationPreferences: '{"FailureToleranceCount": 1, "MaxConcurrentCount": 2}'
          timeoutInMinutes: '60'
          operationDescription: tf-example
          retainStacks: 'true'
          parameterOverrides:
            - parameterValue: VpcName
              parameterKey: VpcName
    variables:
      this:
        fn::invoke:
          Function: alicloud:getAccount
          Arguments: {}
      default:
        fn::invoke:
          Function: alicloud:ros:getRegions
          Arguments: {}
    

    Create StackInstance Resource

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

    Constructor syntax

    new StackInstance(name: string, args: StackInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def StackInstance(resource_name: str,
                      args: StackInstanceArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def StackInstance(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      stack_group_name: Optional[str] = None,
                      stack_instance_account_id: Optional[str] = None,
                      stack_instance_region_id: Optional[str] = None,
                      operation_description: Optional[str] = None,
                      operation_preferences: Optional[str] = None,
                      parameter_overrides: Optional[Sequence[StackInstanceParameterOverrideArgs]] = None,
                      retain_stacks: Optional[bool] = None,
                      timeout_in_minutes: Optional[str] = None)
    func NewStackInstance(ctx *Context, name string, args StackInstanceArgs, opts ...ResourceOption) (*StackInstance, error)
    public StackInstance(string name, StackInstanceArgs args, CustomResourceOptions? opts = null)
    public StackInstance(String name, StackInstanceArgs args)
    public StackInstance(String name, StackInstanceArgs args, CustomResourceOptions options)
    
    type: alicloud:ros:StackInstance
    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 StackInstanceArgs
    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 StackInstanceArgs
    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 StackInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StackInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StackInstanceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var stackInstanceResource = new AliCloud.Ros.StackInstance("stackInstanceResource", new()
    {
        StackGroupName = "string",
        StackInstanceAccountId = "string",
        StackInstanceRegionId = "string",
        OperationDescription = "string",
        OperationPreferences = "string",
        ParameterOverrides = new[]
        {
            new AliCloud.Ros.Inputs.StackInstanceParameterOverrideArgs
            {
                ParameterKey = "string",
                ParameterValue = "string",
            },
        },
        RetainStacks = false,
        TimeoutInMinutes = "string",
    });
    
    example, err := ros.NewStackInstance(ctx, "stackInstanceResource", &ros.StackInstanceArgs{
    	StackGroupName:         pulumi.String("string"),
    	StackInstanceAccountId: pulumi.String("string"),
    	StackInstanceRegionId:  pulumi.String("string"),
    	OperationDescription:   pulumi.String("string"),
    	OperationPreferences:   pulumi.String("string"),
    	ParameterOverrides: ros.StackInstanceParameterOverrideArray{
    		&ros.StackInstanceParameterOverrideArgs{
    			ParameterKey:   pulumi.String("string"),
    			ParameterValue: pulumi.String("string"),
    		},
    	},
    	RetainStacks:     pulumi.Bool(false),
    	TimeoutInMinutes: pulumi.String("string"),
    })
    
    var stackInstanceResource = new StackInstance("stackInstanceResource", StackInstanceArgs.builder()        
        .stackGroupName("string")
        .stackInstanceAccountId("string")
        .stackInstanceRegionId("string")
        .operationDescription("string")
        .operationPreferences("string")
        .parameterOverrides(StackInstanceParameterOverrideArgs.builder()
            .parameterKey("string")
            .parameterValue("string")
            .build())
        .retainStacks(false)
        .timeoutInMinutes("string")
        .build());
    
    stack_instance_resource = alicloud.ros.StackInstance("stackInstanceResource",
        stack_group_name="string",
        stack_instance_account_id="string",
        stack_instance_region_id="string",
        operation_description="string",
        operation_preferences="string",
        parameter_overrides=[alicloud.ros.StackInstanceParameterOverrideArgs(
            parameter_key="string",
            parameter_value="string",
        )],
        retain_stacks=False,
        timeout_in_minutes="string")
    
    const stackInstanceResource = new alicloud.ros.StackInstance("stackInstanceResource", {
        stackGroupName: "string",
        stackInstanceAccountId: "string",
        stackInstanceRegionId: "string",
        operationDescription: "string",
        operationPreferences: "string",
        parameterOverrides: [{
            parameterKey: "string",
            parameterValue: "string",
        }],
        retainStacks: false,
        timeoutInMinutes: "string",
    });
    
    type: alicloud:ros:StackInstance
    properties:
        operationDescription: string
        operationPreferences: string
        parameterOverrides:
            - parameterKey: string
              parameterValue: string
        retainStacks: false
        stackGroupName: string
        stackInstanceAccountId: string
        stackInstanceRegionId: string
        timeoutInMinutes: string
    

    StackInstance 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 StackInstance resource accepts the following input properties:

    StackGroupName string
    The name of the stack group.
    StackInstanceAccountId string
    The account to which the stack instance belongs.
    StackInstanceRegionId string
    The region of the stack instance.
    OperationDescription string
    The operation description.
    OperationPreferences string
    The operation preferences. The operation settings. The following fields are supported:
    ParameterOverrides List<Pulumi.AliCloud.Ros.Inputs.StackInstanceParameterOverride>
    ParameterOverrides. See the following Block parameter_overrides.
    RetainStacks bool
    Specifies whether to retain the stack corresponding to the stack instance.Default value false. NOTE: When retain_stacks is true, the stack is retained. If the stack is retained, the corresponding stack is not deleted when the stack instance is deleted from the stack group.
    TimeoutInMinutes string
    The timeout period that is specified for the stack creation request. Default value: 60. Unit: minutes.
    StackGroupName string
    The name of the stack group.
    StackInstanceAccountId string
    The account to which the stack instance belongs.
    StackInstanceRegionId string
    The region of the stack instance.
    OperationDescription string
    The operation description.
    OperationPreferences string
    The operation preferences. The operation settings. The following fields are supported:
    ParameterOverrides []StackInstanceParameterOverrideArgs
    ParameterOverrides. See the following Block parameter_overrides.
    RetainStacks bool
    Specifies whether to retain the stack corresponding to the stack instance.Default value false. NOTE: When retain_stacks is true, the stack is retained. If the stack is retained, the corresponding stack is not deleted when the stack instance is deleted from the stack group.
    TimeoutInMinutes string
    The timeout period that is specified for the stack creation request. Default value: 60. Unit: minutes.
    stackGroupName String
    The name of the stack group.
    stackInstanceAccountId String
    The account to which the stack instance belongs.
    stackInstanceRegionId String
    The region of the stack instance.
    operationDescription String
    The operation description.
    operationPreferences String
    The operation preferences. The operation settings. The following fields are supported:
    parameterOverrides List<StackInstanceParameterOverride>
    ParameterOverrides. See the following Block parameter_overrides.
    retainStacks Boolean
    Specifies whether to retain the stack corresponding to the stack instance.Default value false. NOTE: When retain_stacks is true, the stack is retained. If the stack is retained, the corresponding stack is not deleted when the stack instance is deleted from the stack group.
    timeoutInMinutes String
    The timeout period that is specified for the stack creation request. Default value: 60. Unit: minutes.
    stackGroupName string
    The name of the stack group.
    stackInstanceAccountId string
    The account to which the stack instance belongs.
    stackInstanceRegionId string
    The region of the stack instance.
    operationDescription string
    The operation description.
    operationPreferences string
    The operation preferences. The operation settings. The following fields are supported:
    parameterOverrides StackInstanceParameterOverride[]
    ParameterOverrides. See the following Block parameter_overrides.
    retainStacks boolean
    Specifies whether to retain the stack corresponding to the stack instance.Default value false. NOTE: When retain_stacks is true, the stack is retained. If the stack is retained, the corresponding stack is not deleted when the stack instance is deleted from the stack group.
    timeoutInMinutes string
    The timeout period that is specified for the stack creation request. Default value: 60. Unit: minutes.
    stack_group_name str
    The name of the stack group.
    stack_instance_account_id str
    The account to which the stack instance belongs.
    stack_instance_region_id str
    The region of the stack instance.
    operation_description str
    The operation description.
    operation_preferences str
    The operation preferences. The operation settings. The following fields are supported:
    parameter_overrides Sequence[StackInstanceParameterOverrideArgs]
    ParameterOverrides. See the following Block parameter_overrides.
    retain_stacks bool
    Specifies whether to retain the stack corresponding to the stack instance.Default value false. NOTE: When retain_stacks is true, the stack is retained. If the stack is retained, the corresponding stack is not deleted when the stack instance is deleted from the stack group.
    timeout_in_minutes str
    The timeout period that is specified for the stack creation request. Default value: 60. Unit: minutes.
    stackGroupName String
    The name of the stack group.
    stackInstanceAccountId String
    The account to which the stack instance belongs.
    stackInstanceRegionId String
    The region of the stack instance.
    operationDescription String
    The operation description.
    operationPreferences String
    The operation preferences. The operation settings. The following fields are supported:
    parameterOverrides List<Property Map>
    ParameterOverrides. See the following Block parameter_overrides.
    retainStacks Boolean
    Specifies whether to retain the stack corresponding to the stack instance.Default value false. NOTE: When retain_stacks is true, the stack is retained. If the stack is retained, the corresponding stack is not deleted when the stack instance is deleted from the stack group.
    timeoutInMinutes String
    The timeout period that is specified for the stack creation request. Default value: 60. Unit: minutes.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the stack instance. Valid values: CURRENT or OUTDATED.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the stack instance. Valid values: CURRENT or OUTDATED.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the stack instance. Valid values: CURRENT or OUTDATED.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the stack instance. Valid values: CURRENT or OUTDATED.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the stack instance. Valid values: CURRENT or OUTDATED.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the stack instance. Valid values: CURRENT or OUTDATED.

    Look up Existing StackInstance Resource

    Get an existing StackInstance 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?: StackInstanceState, opts?: CustomResourceOptions): StackInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            operation_description: Optional[str] = None,
            operation_preferences: Optional[str] = None,
            parameter_overrides: Optional[Sequence[StackInstanceParameterOverrideArgs]] = None,
            retain_stacks: Optional[bool] = None,
            stack_group_name: Optional[str] = None,
            stack_instance_account_id: Optional[str] = None,
            stack_instance_region_id: Optional[str] = None,
            status: Optional[str] = None,
            timeout_in_minutes: Optional[str] = None) -> StackInstance
    func GetStackInstance(ctx *Context, name string, id IDInput, state *StackInstanceState, opts ...ResourceOption) (*StackInstance, error)
    public static StackInstance Get(string name, Input<string> id, StackInstanceState? state, CustomResourceOptions? opts = null)
    public static StackInstance get(String name, Output<String> id, StackInstanceState 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:
    OperationDescription string
    The operation description.
    OperationPreferences string
    The operation preferences. The operation settings. The following fields are supported:
    ParameterOverrides List<Pulumi.AliCloud.Ros.Inputs.StackInstanceParameterOverride>
    ParameterOverrides. See the following Block parameter_overrides.
    RetainStacks bool
    Specifies whether to retain the stack corresponding to the stack instance.Default value false. NOTE: When retain_stacks is true, the stack is retained. If the stack is retained, the corresponding stack is not deleted when the stack instance is deleted from the stack group.
    StackGroupName string
    The name of the stack group.
    StackInstanceAccountId string
    The account to which the stack instance belongs.
    StackInstanceRegionId string
    The region of the stack instance.
    Status string
    The status of the stack instance. Valid values: CURRENT or OUTDATED.
    TimeoutInMinutes string
    The timeout period that is specified for the stack creation request. Default value: 60. Unit: minutes.
    OperationDescription string
    The operation description.
    OperationPreferences string
    The operation preferences. The operation settings. The following fields are supported:
    ParameterOverrides []StackInstanceParameterOverrideArgs
    ParameterOverrides. See the following Block parameter_overrides.
    RetainStacks bool
    Specifies whether to retain the stack corresponding to the stack instance.Default value false. NOTE: When retain_stacks is true, the stack is retained. If the stack is retained, the corresponding stack is not deleted when the stack instance is deleted from the stack group.
    StackGroupName string
    The name of the stack group.
    StackInstanceAccountId string
    The account to which the stack instance belongs.
    StackInstanceRegionId string
    The region of the stack instance.
    Status string
    The status of the stack instance. Valid values: CURRENT or OUTDATED.
    TimeoutInMinutes string
    The timeout period that is specified for the stack creation request. Default value: 60. Unit: minutes.
    operationDescription String
    The operation description.
    operationPreferences String
    The operation preferences. The operation settings. The following fields are supported:
    parameterOverrides List<StackInstanceParameterOverride>
    ParameterOverrides. See the following Block parameter_overrides.
    retainStacks Boolean
    Specifies whether to retain the stack corresponding to the stack instance.Default value false. NOTE: When retain_stacks is true, the stack is retained. If the stack is retained, the corresponding stack is not deleted when the stack instance is deleted from the stack group.
    stackGroupName String
    The name of the stack group.
    stackInstanceAccountId String
    The account to which the stack instance belongs.
    stackInstanceRegionId String
    The region of the stack instance.
    status String
    The status of the stack instance. Valid values: CURRENT or OUTDATED.
    timeoutInMinutes String
    The timeout period that is specified for the stack creation request. Default value: 60. Unit: minutes.
    operationDescription string
    The operation description.
    operationPreferences string
    The operation preferences. The operation settings. The following fields are supported:
    parameterOverrides StackInstanceParameterOverride[]
    ParameterOverrides. See the following Block parameter_overrides.
    retainStacks boolean
    Specifies whether to retain the stack corresponding to the stack instance.Default value false. NOTE: When retain_stacks is true, the stack is retained. If the stack is retained, the corresponding stack is not deleted when the stack instance is deleted from the stack group.
    stackGroupName string
    The name of the stack group.
    stackInstanceAccountId string
    The account to which the stack instance belongs.
    stackInstanceRegionId string
    The region of the stack instance.
    status string
    The status of the stack instance. Valid values: CURRENT or OUTDATED.
    timeoutInMinutes string
    The timeout period that is specified for the stack creation request. Default value: 60. Unit: minutes.
    operation_description str
    The operation description.
    operation_preferences str
    The operation preferences. The operation settings. The following fields are supported:
    parameter_overrides Sequence[StackInstanceParameterOverrideArgs]
    ParameterOverrides. See the following Block parameter_overrides.
    retain_stacks bool
    Specifies whether to retain the stack corresponding to the stack instance.Default value false. NOTE: When retain_stacks is true, the stack is retained. If the stack is retained, the corresponding stack is not deleted when the stack instance is deleted from the stack group.
    stack_group_name str
    The name of the stack group.
    stack_instance_account_id str
    The account to which the stack instance belongs.
    stack_instance_region_id str
    The region of the stack instance.
    status str
    The status of the stack instance. Valid values: CURRENT or OUTDATED.
    timeout_in_minutes str
    The timeout period that is specified for the stack creation request. Default value: 60. Unit: minutes.
    operationDescription String
    The operation description.
    operationPreferences String
    The operation preferences. The operation settings. The following fields are supported:
    parameterOverrides List<Property Map>
    ParameterOverrides. See the following Block parameter_overrides.
    retainStacks Boolean
    Specifies whether to retain the stack corresponding to the stack instance.Default value false. NOTE: When retain_stacks is true, the stack is retained. If the stack is retained, the corresponding stack is not deleted when the stack instance is deleted from the stack group.
    stackGroupName String
    The name of the stack group.
    stackInstanceAccountId String
    The account to which the stack instance belongs.
    stackInstanceRegionId String
    The region of the stack instance.
    status String
    The status of the stack instance. Valid values: CURRENT or OUTDATED.
    timeoutInMinutes String
    The timeout period that is specified for the stack creation request. Default value: 60. Unit: minutes.

    Supporting Types

    StackInstanceParameterOverride, StackInstanceParameterOverrideArgs

    Import

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

    $ pulumi import alicloud:ros/stackInstance:StackInstance example <stack_group_name>:<stack_instance_account_id>:<stack_instance_region_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.54.0 published on Wednesday, Apr 24, 2024 by Pulumi