ros

package
v2.39.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeSet

type ChangeSet struct {
	pulumi.CustomResourceState

	// The name of the change set.  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.
	ChangeSetName pulumi.StringOutput `pulumi:"changeSetName"`
	// The type of the change set. Valid values:  CREATE: creates a change set for a new stack. UPDATE: creates a change set for an existing stack. IMPORT: creates a change set for a new stack or an existing stack to import non-ROS-managed resources. If you create a change set for a new stack, ROS creates a stack that has a unique stack ID. The stack is in the REVIEW_IN_PROGRESS state until you execute the change set.  You cannot use the UPDATE type to create a change set for a new stack or the CREATE type to create a change set for an existing stack.
	ChangeSetType pulumi.StringPtrOutput `pulumi:"changeSetType"`
	// The description of the change set. The description can be up to 1,024 bytes in length.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Specifies whether to disable rollback on stack creation failure. Default value: false.  Valid values:  true: disables rollback on stack creation failure. false: enables rollback on stack creation failure. Note This parameter takes effect only when ChangeSetType is set to CREATE or IMPORT.
	DisableRollback pulumi.BoolPtrOutput `pulumi:"disableRollback"`
	// The notification urls.
	NotificationUrls pulumi.StringArrayOutput `pulumi:"notificationUrls"`
	// Parameters.
	Parameters ChangeSetParameterArrayOutput `pulumi:"parameters"`
	// The ram role name.
	RamRoleName pulumi.StringPtrOutput `pulumi:"ramRoleName"`
	// The replacement option.
	ReplacementOption pulumi.StringPtrOutput `pulumi:"replacementOption"`
	// The ID of the stack for which you want to create the change set. ROS generates the change set by comparing the stack information with the information that you submit, such as a modified template or different inputs.
	StackId pulumi.StringOutput `pulumi:"stackId"`
	// The name of the stack for which you want to create the change set.  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.  Note This parameter takes effect only when ChangeSetType is set to CREATE or IMPORT.
	StackName pulumi.StringPtrOutput `pulumi:"stackName"`
	// The stack policy body.
	StackPolicyBody pulumi.StringPtrOutput `pulumi:"stackPolicyBody"`
	// The stack policy during update body.
	StackPolicyDuringUpdateBody pulumi.StringPtrOutput `pulumi:"stackPolicyDuringUpdateBody"`
	// The stack policy during update url.
	StackPolicyDuringUpdateUrl pulumi.StringPtrOutput `pulumi:"stackPolicyDuringUpdateUrl"`
	// The stack policy url.
	StackPolicyUrl pulumi.StringPtrOutput `pulumi:"stackPolicyUrl"`
	// The status of the change set.
	Status pulumi.StringOutput `pulumi:"status"`
	// 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.  You can specify one of TemplateBody or TemplateURL parameters, but you cannot specify both of them.
	TemplateBody pulumi.StringPtrOutput `pulumi:"templateBody"`
	// The template url.
	TemplateUrl pulumi.StringPtrOutput `pulumi:"templateUrl"`
	// Timeout In Minutes.
	TimeoutInMinutes pulumi.IntOutput `pulumi:"timeoutInMinutes"`
	// The use previous parameters.
	UsePreviousParameters pulumi.BoolPtrOutput `pulumi:"usePreviousParameters"`
}

Provides a ROS Change Set resource.

For information about ROS Change Set and how to use it, see [What is Change Set](https://www.alibabacloud.com/help/doc-detail/131051.htm).

> **NOTE:** Available in v1.105.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ros"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ros.NewChangeSet(ctx, "example", &ros.ChangeSetArgs{
			ChangeSetName: pulumi.String("example_value"),
			ChangeSetType: pulumi.String("CREATE"),
			Description:   pulumi.String("Test From Terraform"),
			StackName:     pulumi.String("tf-testacc"),
			TemplateBody:  pulumi.String("{\"ROSTemplateFormatVersion\":\"2015-09-01\"}"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

ROS Change Set can be imported using the id, e.g.

```sh

$ pulumi import alicloud:ros/changeSet:ChangeSet example <change_set_id>

```

func GetChangeSet

func GetChangeSet(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ChangeSetState, opts ...pulumi.ResourceOption) (*ChangeSet, error)

GetChangeSet gets an existing ChangeSet resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewChangeSet

func NewChangeSet(ctx *pulumi.Context,
	name string, args *ChangeSetArgs, opts ...pulumi.ResourceOption) (*ChangeSet, error)

NewChangeSet registers a new resource with the given unique name, arguments, and options.

func (*ChangeSet) ElementType

func (*ChangeSet) ElementType() reflect.Type

func (*ChangeSet) ToChangeSetOutput

func (i *ChangeSet) ToChangeSetOutput() ChangeSetOutput

func (*ChangeSet) ToChangeSetOutputWithContext

func (i *ChangeSet) ToChangeSetOutputWithContext(ctx context.Context) ChangeSetOutput

func (*ChangeSet) ToChangeSetPtrOutput added in v2.35.1

func (i *ChangeSet) ToChangeSetPtrOutput() ChangeSetPtrOutput

func (*ChangeSet) ToChangeSetPtrOutputWithContext added in v2.35.1

func (i *ChangeSet) ToChangeSetPtrOutputWithContext(ctx context.Context) ChangeSetPtrOutput

type ChangeSetArgs

type ChangeSetArgs struct {
	// The name of the change set.  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.
	ChangeSetName pulumi.StringInput
	// The type of the change set. Valid values:  CREATE: creates a change set for a new stack. UPDATE: creates a change set for an existing stack. IMPORT: creates a change set for a new stack or an existing stack to import non-ROS-managed resources. If you create a change set for a new stack, ROS creates a stack that has a unique stack ID. The stack is in the REVIEW_IN_PROGRESS state until you execute the change set.  You cannot use the UPDATE type to create a change set for a new stack or the CREATE type to create a change set for an existing stack.
	ChangeSetType pulumi.StringPtrInput
	// The description of the change set. The description can be up to 1,024 bytes in length.
	Description pulumi.StringPtrInput
	// Specifies whether to disable rollback on stack creation failure. Default value: false.  Valid values:  true: disables rollback on stack creation failure. false: enables rollback on stack creation failure. Note This parameter takes effect only when ChangeSetType is set to CREATE or IMPORT.
	DisableRollback pulumi.BoolPtrInput
	// The notification urls.
	NotificationUrls pulumi.StringArrayInput
	// Parameters.
	Parameters ChangeSetParameterArrayInput
	// The ram role name.
	RamRoleName pulumi.StringPtrInput
	// The replacement option.
	ReplacementOption pulumi.StringPtrInput
	// The ID of the stack for which you want to create the change set. ROS generates the change set by comparing the stack information with the information that you submit, such as a modified template or different inputs.
	StackId pulumi.StringPtrInput
	// The name of the stack for which you want to create the change set.  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.  Note This parameter takes effect only when ChangeSetType is set to CREATE or IMPORT.
	StackName pulumi.StringPtrInput
	// The stack policy body.
	StackPolicyBody pulumi.StringPtrInput
	// The stack policy during update body.
	StackPolicyDuringUpdateBody pulumi.StringPtrInput
	// The stack policy during update url.
	StackPolicyDuringUpdateUrl pulumi.StringPtrInput
	// The stack policy url.
	StackPolicyUrl pulumi.StringPtrInput
	// 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.  You can specify one of TemplateBody or TemplateURL parameters, but you cannot specify both of them.
	TemplateBody pulumi.StringPtrInput
	// The template url.
	TemplateUrl pulumi.StringPtrInput
	// Timeout In Minutes.
	TimeoutInMinutes pulumi.IntPtrInput
	// The use previous parameters.
	UsePreviousParameters pulumi.BoolPtrInput
}

The set of arguments for constructing a ChangeSet resource.

func (ChangeSetArgs) ElementType

func (ChangeSetArgs) ElementType() reflect.Type

type ChangeSetArray added in v2.35.1

type ChangeSetArray []ChangeSetInput

func (ChangeSetArray) ElementType added in v2.35.1

func (ChangeSetArray) ElementType() reflect.Type

func (ChangeSetArray) ToChangeSetArrayOutput added in v2.35.1

func (i ChangeSetArray) ToChangeSetArrayOutput() ChangeSetArrayOutput

func (ChangeSetArray) ToChangeSetArrayOutputWithContext added in v2.35.1

func (i ChangeSetArray) ToChangeSetArrayOutputWithContext(ctx context.Context) ChangeSetArrayOutput

type ChangeSetArrayInput added in v2.35.1

type ChangeSetArrayInput interface {
	pulumi.Input

	ToChangeSetArrayOutput() ChangeSetArrayOutput
	ToChangeSetArrayOutputWithContext(context.Context) ChangeSetArrayOutput
}

ChangeSetArrayInput is an input type that accepts ChangeSetArray and ChangeSetArrayOutput values. You can construct a concrete instance of `ChangeSetArrayInput` via:

ChangeSetArray{ ChangeSetArgs{...} }

type ChangeSetArrayOutput added in v2.35.1

type ChangeSetArrayOutput struct{ *pulumi.OutputState }

func (ChangeSetArrayOutput) ElementType added in v2.35.1

func (ChangeSetArrayOutput) ElementType() reflect.Type

func (ChangeSetArrayOutput) Index added in v2.35.1

func (ChangeSetArrayOutput) ToChangeSetArrayOutput added in v2.35.1

func (o ChangeSetArrayOutput) ToChangeSetArrayOutput() ChangeSetArrayOutput

func (ChangeSetArrayOutput) ToChangeSetArrayOutputWithContext added in v2.35.1

func (o ChangeSetArrayOutput) ToChangeSetArrayOutputWithContext(ctx context.Context) ChangeSetArrayOutput

type ChangeSetInput

type ChangeSetInput interface {
	pulumi.Input

	ToChangeSetOutput() ChangeSetOutput
	ToChangeSetOutputWithContext(ctx context.Context) ChangeSetOutput
}

type ChangeSetMap added in v2.35.1

type ChangeSetMap map[string]ChangeSetInput

func (ChangeSetMap) ElementType added in v2.35.1

func (ChangeSetMap) ElementType() reflect.Type

func (ChangeSetMap) ToChangeSetMapOutput added in v2.35.1

func (i ChangeSetMap) ToChangeSetMapOutput() ChangeSetMapOutput

func (ChangeSetMap) ToChangeSetMapOutputWithContext added in v2.35.1

func (i ChangeSetMap) ToChangeSetMapOutputWithContext(ctx context.Context) ChangeSetMapOutput

type ChangeSetMapInput added in v2.35.1

type ChangeSetMapInput interface {
	pulumi.Input

	ToChangeSetMapOutput() ChangeSetMapOutput
	ToChangeSetMapOutputWithContext(context.Context) ChangeSetMapOutput
}

ChangeSetMapInput is an input type that accepts ChangeSetMap and ChangeSetMapOutput values. You can construct a concrete instance of `ChangeSetMapInput` via:

ChangeSetMap{ "key": ChangeSetArgs{...} }

type ChangeSetMapOutput added in v2.35.1

type ChangeSetMapOutput struct{ *pulumi.OutputState }

func (ChangeSetMapOutput) ElementType added in v2.35.1

func (ChangeSetMapOutput) ElementType() reflect.Type

func (ChangeSetMapOutput) MapIndex added in v2.35.1

func (ChangeSetMapOutput) ToChangeSetMapOutput added in v2.35.1

func (o ChangeSetMapOutput) ToChangeSetMapOutput() ChangeSetMapOutput

func (ChangeSetMapOutput) ToChangeSetMapOutputWithContext added in v2.35.1

func (o ChangeSetMapOutput) ToChangeSetMapOutputWithContext(ctx context.Context) ChangeSetMapOutput

type ChangeSetOutput

type ChangeSetOutput struct {
	*pulumi.OutputState
}

func (ChangeSetOutput) ElementType

func (ChangeSetOutput) ElementType() reflect.Type

func (ChangeSetOutput) ToChangeSetOutput

func (o ChangeSetOutput) ToChangeSetOutput() ChangeSetOutput

func (ChangeSetOutput) ToChangeSetOutputWithContext

func (o ChangeSetOutput) ToChangeSetOutputWithContext(ctx context.Context) ChangeSetOutput

func (ChangeSetOutput) ToChangeSetPtrOutput added in v2.35.1

func (o ChangeSetOutput) ToChangeSetPtrOutput() ChangeSetPtrOutput

func (ChangeSetOutput) ToChangeSetPtrOutputWithContext added in v2.35.1

func (o ChangeSetOutput) ToChangeSetPtrOutputWithContext(ctx context.Context) ChangeSetPtrOutput

type ChangeSetParameter

type ChangeSetParameter struct {
	// The parameter key.
	ParameterKey string `pulumi:"parameterKey"`
	// The parameter value.
	ParameterValue string `pulumi:"parameterValue"`
}

type ChangeSetParameterArgs

type ChangeSetParameterArgs struct {
	// The parameter key.
	ParameterKey pulumi.StringInput `pulumi:"parameterKey"`
	// The parameter value.
	ParameterValue pulumi.StringInput `pulumi:"parameterValue"`
}

func (ChangeSetParameterArgs) ElementType

func (ChangeSetParameterArgs) ElementType() reflect.Type

func (ChangeSetParameterArgs) ToChangeSetParameterOutput

func (i ChangeSetParameterArgs) ToChangeSetParameterOutput() ChangeSetParameterOutput

func (ChangeSetParameterArgs) ToChangeSetParameterOutputWithContext

func (i ChangeSetParameterArgs) ToChangeSetParameterOutputWithContext(ctx context.Context) ChangeSetParameterOutput

type ChangeSetParameterArray

type ChangeSetParameterArray []ChangeSetParameterInput

func (ChangeSetParameterArray) ElementType

func (ChangeSetParameterArray) ElementType() reflect.Type

func (ChangeSetParameterArray) ToChangeSetParameterArrayOutput

func (i ChangeSetParameterArray) ToChangeSetParameterArrayOutput() ChangeSetParameterArrayOutput

func (ChangeSetParameterArray) ToChangeSetParameterArrayOutputWithContext

func (i ChangeSetParameterArray) ToChangeSetParameterArrayOutputWithContext(ctx context.Context) ChangeSetParameterArrayOutput

type ChangeSetParameterArrayInput

type ChangeSetParameterArrayInput interface {
	pulumi.Input

	ToChangeSetParameterArrayOutput() ChangeSetParameterArrayOutput
	ToChangeSetParameterArrayOutputWithContext(context.Context) ChangeSetParameterArrayOutput
}

ChangeSetParameterArrayInput is an input type that accepts ChangeSetParameterArray and ChangeSetParameterArrayOutput values. You can construct a concrete instance of `ChangeSetParameterArrayInput` via:

ChangeSetParameterArray{ ChangeSetParameterArgs{...} }

type ChangeSetParameterArrayOutput

type ChangeSetParameterArrayOutput struct{ *pulumi.OutputState }

func (ChangeSetParameterArrayOutput) ElementType

func (ChangeSetParameterArrayOutput) Index

func (ChangeSetParameterArrayOutput) ToChangeSetParameterArrayOutput

func (o ChangeSetParameterArrayOutput) ToChangeSetParameterArrayOutput() ChangeSetParameterArrayOutput

func (ChangeSetParameterArrayOutput) ToChangeSetParameterArrayOutputWithContext

func (o ChangeSetParameterArrayOutput) ToChangeSetParameterArrayOutputWithContext(ctx context.Context) ChangeSetParameterArrayOutput

type ChangeSetParameterInput

type ChangeSetParameterInput interface {
	pulumi.Input

	ToChangeSetParameterOutput() ChangeSetParameterOutput
	ToChangeSetParameterOutputWithContext(context.Context) ChangeSetParameterOutput
}

ChangeSetParameterInput is an input type that accepts ChangeSetParameterArgs and ChangeSetParameterOutput values. You can construct a concrete instance of `ChangeSetParameterInput` via:

ChangeSetParameterArgs{...}

type ChangeSetParameterOutput

type ChangeSetParameterOutput struct{ *pulumi.OutputState }

func (ChangeSetParameterOutput) ElementType

func (ChangeSetParameterOutput) ElementType() reflect.Type

func (ChangeSetParameterOutput) ParameterKey

func (o ChangeSetParameterOutput) ParameterKey() pulumi.StringOutput

The parameter key.

func (ChangeSetParameterOutput) ParameterValue

func (o ChangeSetParameterOutput) ParameterValue() pulumi.StringOutput

The parameter value.

func (ChangeSetParameterOutput) ToChangeSetParameterOutput

func (o ChangeSetParameterOutput) ToChangeSetParameterOutput() ChangeSetParameterOutput

func (ChangeSetParameterOutput) ToChangeSetParameterOutputWithContext

func (o ChangeSetParameterOutput) ToChangeSetParameterOutputWithContext(ctx context.Context) ChangeSetParameterOutput

type ChangeSetPtrInput added in v2.35.1

type ChangeSetPtrInput interface {
	pulumi.Input

	ToChangeSetPtrOutput() ChangeSetPtrOutput
	ToChangeSetPtrOutputWithContext(ctx context.Context) ChangeSetPtrOutput
}

type ChangeSetPtrOutput added in v2.35.1

type ChangeSetPtrOutput struct {
	*pulumi.OutputState
}

func (ChangeSetPtrOutput) ElementType added in v2.35.1

func (ChangeSetPtrOutput) ElementType() reflect.Type

func (ChangeSetPtrOutput) ToChangeSetPtrOutput added in v2.35.1

func (o ChangeSetPtrOutput) ToChangeSetPtrOutput() ChangeSetPtrOutput

func (ChangeSetPtrOutput) ToChangeSetPtrOutputWithContext added in v2.35.1

func (o ChangeSetPtrOutput) ToChangeSetPtrOutputWithContext(ctx context.Context) ChangeSetPtrOutput

type ChangeSetState

type ChangeSetState struct {
	// The name of the change set.  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.
	ChangeSetName pulumi.StringPtrInput
	// The type of the change set. Valid values:  CREATE: creates a change set for a new stack. UPDATE: creates a change set for an existing stack. IMPORT: creates a change set for a new stack or an existing stack to import non-ROS-managed resources. If you create a change set for a new stack, ROS creates a stack that has a unique stack ID. The stack is in the REVIEW_IN_PROGRESS state until you execute the change set.  You cannot use the UPDATE type to create a change set for a new stack or the CREATE type to create a change set for an existing stack.
	ChangeSetType pulumi.StringPtrInput
	// The description of the change set. The description can be up to 1,024 bytes in length.
	Description pulumi.StringPtrInput
	// Specifies whether to disable rollback on stack creation failure. Default value: false.  Valid values:  true: disables rollback on stack creation failure. false: enables rollback on stack creation failure. Note This parameter takes effect only when ChangeSetType is set to CREATE or IMPORT.
	DisableRollback pulumi.BoolPtrInput
	// The notification urls.
	NotificationUrls pulumi.StringArrayInput
	// Parameters.
	Parameters ChangeSetParameterArrayInput
	// The ram role name.
	RamRoleName pulumi.StringPtrInput
	// The replacement option.
	ReplacementOption pulumi.StringPtrInput
	// The ID of the stack for which you want to create the change set. ROS generates the change set by comparing the stack information with the information that you submit, such as a modified template or different inputs.
	StackId pulumi.StringPtrInput
	// The name of the stack for which you want to create the change set.  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.  Note This parameter takes effect only when ChangeSetType is set to CREATE or IMPORT.
	StackName pulumi.StringPtrInput
	// The stack policy body.
	StackPolicyBody pulumi.StringPtrInput
	// The stack policy during update body.
	StackPolicyDuringUpdateBody pulumi.StringPtrInput
	// The stack policy during update url.
	StackPolicyDuringUpdateUrl pulumi.StringPtrInput
	// The stack policy url.
	StackPolicyUrl pulumi.StringPtrInput
	// The status of the change set.
	Status pulumi.StringPtrInput
	// 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.  You can specify one of TemplateBody or TemplateURL parameters, but you cannot specify both of them.
	TemplateBody pulumi.StringPtrInput
	// The template url.
	TemplateUrl pulumi.StringPtrInput
	// Timeout In Minutes.
	TimeoutInMinutes pulumi.IntPtrInput
	// The use previous parameters.
	UsePreviousParameters pulumi.BoolPtrInput
}

func (ChangeSetState) ElementType

func (ChangeSetState) ElementType() reflect.Type

type GetChangeSetsArgs

type GetChangeSetsArgs struct {
	// The name of the change set.  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.
	ChangeSetName *string `pulumi:"changeSetName"`
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails *bool `pulumi:"enableDetails"`
	// A list of Change Set IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Change Set name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The ID of the stack for which you want to create the change set. ROS generates the change set by comparing the stack information with the information that you submit, such as a modified template or different inputs.
	StackId string `pulumi:"stackId"`
	// The status of the change set.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getChangeSets.

type GetChangeSetsResult

type GetChangeSetsResult struct {
	ChangeSetName *string `pulumi:"changeSetName"`
	EnableDetails *bool   `pulumi:"enableDetails"`
	// The provider-assigned unique ID for this managed resource.
	Id         string             `pulumi:"id"`
	Ids        []string           `pulumi:"ids"`
	NameRegex  *string            `pulumi:"nameRegex"`
	Names      []string           `pulumi:"names"`
	OutputFile *string            `pulumi:"outputFile"`
	Sets       []GetChangeSetsSet `pulumi:"sets"`
	StackId    string             `pulumi:"stackId"`
	Status     *string            `pulumi:"status"`
}

A collection of values returned by getChangeSets.

func GetChangeSets

func GetChangeSets(ctx *pulumi.Context, args *GetChangeSetsArgs, opts ...pulumi.InvokeOption) (*GetChangeSetsResult, error)

This data source provides the Ros Change Sets of the current Alibaba Cloud user.

> **NOTE:** Available in v1.105.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ros"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "the_resource_name"
		example, err := ros.GetChangeSets(ctx, &ros.GetChangeSetsArgs{
			StackId: "example_value",
			Ids: []string{
				"example_value",
			},
			NameRegex: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstRosChangeSetId", example.Sets[0].Id)
		return nil
	})
}

```

type GetChangeSetsSet

type GetChangeSetsSet struct {
	// The ID of the change set.
	ChangeSetId string `pulumi:"changeSetId"`
	// The name of the change set.  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.
	ChangeSetName string `pulumi:"changeSetName"`
	// The type of the change set. Valid values:  CREATE: creates a change set for a new stack. UPDATE: creates a change set for an existing stack. IMPORT: creates a change set for a new stack or an existing stack to import non-ROS-managed resources. If you create a change set for a new stack, ROS creates a stack that has a unique stack ID. The stack is in the REVIEW_IN_PROGRESS state until you execute the change set.  You cannot use the UPDATE type to create a change set for a new stack or the CREATE type to create a change set for an existing stack.
	ChangeSetType string `pulumi:"changeSetType"`
	// The description of the change set. The description can be up to 1,024 bytes in length.
	Description string `pulumi:"description"`
	// Specifies whether to disable rollback on stack creation failure. Default value: false.  Valid values:  true: disables rollback on stack creation failure. false: enables rollback on stack creation failure. Note This parameter takes effect only when ChangeSetType is set to CREATE or IMPORT.
	DisableRollback bool `pulumi:"disableRollback"`
	// The execution status of change set N. Maximum value of N: 5. Valid values:  UNAVAILABLE AVAILABLE EXECUTE_IN_PROGRESS EXECUTE_COMPLETE EXECUTE_FAILED OBSOLETE.
	ExecutionStatus string `pulumi:"executionStatus"`
	// The ID of the Change Set.
	Id string `pulumi:"id"`
	// Parameters.
	Parameters []GetChangeSetsSetParameter `pulumi:"parameters"`
	// The ID of the stack for which you want to create the change set. ROS generates the change set by comparing the stack information with the information that you submit, such as a modified template or different inputs.
	StackId string `pulumi:"stackId"`
	// The name of the stack for which you want to create the change set.  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.  Note This parameter takes effect only when ChangeSetType is set to CREATE or IMPORT.
	StackName string `pulumi:"stackName"`
	// The status of the change set.
	Status string `pulumi:"status"`
	// 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.  You can specify one of TemplateBody or TemplateURL parameters, but you cannot specify both of them.
	TemplateBody string `pulumi:"templateBody"`
	// Timeout In Minutes.
	TimeoutInMinutes int `pulumi:"timeoutInMinutes"`
}

type GetChangeSetsSetArgs

type GetChangeSetsSetArgs struct {
	// The ID of the change set.
	ChangeSetId pulumi.StringInput `pulumi:"changeSetId"`
	// The name of the change set.  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.
	ChangeSetName pulumi.StringInput `pulumi:"changeSetName"`
	// The type of the change set. Valid values:  CREATE: creates a change set for a new stack. UPDATE: creates a change set for an existing stack. IMPORT: creates a change set for a new stack or an existing stack to import non-ROS-managed resources. If you create a change set for a new stack, ROS creates a stack that has a unique stack ID. The stack is in the REVIEW_IN_PROGRESS state until you execute the change set.  You cannot use the UPDATE type to create a change set for a new stack or the CREATE type to create a change set for an existing stack.
	ChangeSetType pulumi.StringInput `pulumi:"changeSetType"`
	// The description of the change set. The description can be up to 1,024 bytes in length.
	Description pulumi.StringInput `pulumi:"description"`
	// Specifies whether to disable rollback on stack creation failure. Default value: false.  Valid values:  true: disables rollback on stack creation failure. false: enables rollback on stack creation failure. Note This parameter takes effect only when ChangeSetType is set to CREATE or IMPORT.
	DisableRollback pulumi.BoolInput `pulumi:"disableRollback"`
	// The execution status of change set N. Maximum value of N: 5. Valid values:  UNAVAILABLE AVAILABLE EXECUTE_IN_PROGRESS EXECUTE_COMPLETE EXECUTE_FAILED OBSOLETE.
	ExecutionStatus pulumi.StringInput `pulumi:"executionStatus"`
	// The ID of the Change Set.
	Id pulumi.StringInput `pulumi:"id"`
	// Parameters.
	Parameters GetChangeSetsSetParameterArrayInput `pulumi:"parameters"`
	// The ID of the stack for which you want to create the change set. ROS generates the change set by comparing the stack information with the information that you submit, such as a modified template or different inputs.
	StackId pulumi.StringInput `pulumi:"stackId"`
	// The name of the stack for which you want to create the change set.  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.  Note This parameter takes effect only when ChangeSetType is set to CREATE or IMPORT.
	StackName pulumi.StringInput `pulumi:"stackName"`
	// The status of the change set.
	Status pulumi.StringInput `pulumi:"status"`
	// 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.  You can specify one of TemplateBody or TemplateURL parameters, but you cannot specify both of them.
	TemplateBody pulumi.StringInput `pulumi:"templateBody"`
	// Timeout In Minutes.
	TimeoutInMinutes pulumi.IntInput `pulumi:"timeoutInMinutes"`
}

func (GetChangeSetsSetArgs) ElementType

func (GetChangeSetsSetArgs) ElementType() reflect.Type

func (GetChangeSetsSetArgs) ToGetChangeSetsSetOutput

func (i GetChangeSetsSetArgs) ToGetChangeSetsSetOutput() GetChangeSetsSetOutput

func (GetChangeSetsSetArgs) ToGetChangeSetsSetOutputWithContext

func (i GetChangeSetsSetArgs) ToGetChangeSetsSetOutputWithContext(ctx context.Context) GetChangeSetsSetOutput

type GetChangeSetsSetArray

type GetChangeSetsSetArray []GetChangeSetsSetInput

func (GetChangeSetsSetArray) ElementType

func (GetChangeSetsSetArray) ElementType() reflect.Type

func (GetChangeSetsSetArray) ToGetChangeSetsSetArrayOutput

func (i GetChangeSetsSetArray) ToGetChangeSetsSetArrayOutput() GetChangeSetsSetArrayOutput

func (GetChangeSetsSetArray) ToGetChangeSetsSetArrayOutputWithContext

func (i GetChangeSetsSetArray) ToGetChangeSetsSetArrayOutputWithContext(ctx context.Context) GetChangeSetsSetArrayOutput

type GetChangeSetsSetArrayInput

type GetChangeSetsSetArrayInput interface {
	pulumi.Input

	ToGetChangeSetsSetArrayOutput() GetChangeSetsSetArrayOutput
	ToGetChangeSetsSetArrayOutputWithContext(context.Context) GetChangeSetsSetArrayOutput
}

GetChangeSetsSetArrayInput is an input type that accepts GetChangeSetsSetArray and GetChangeSetsSetArrayOutput values. You can construct a concrete instance of `GetChangeSetsSetArrayInput` via:

GetChangeSetsSetArray{ GetChangeSetsSetArgs{...} }

type GetChangeSetsSetArrayOutput

type GetChangeSetsSetArrayOutput struct{ *pulumi.OutputState }

func (GetChangeSetsSetArrayOutput) ElementType

func (GetChangeSetsSetArrayOutput) Index

func (GetChangeSetsSetArrayOutput) ToGetChangeSetsSetArrayOutput

func (o GetChangeSetsSetArrayOutput) ToGetChangeSetsSetArrayOutput() GetChangeSetsSetArrayOutput

func (GetChangeSetsSetArrayOutput) ToGetChangeSetsSetArrayOutputWithContext

func (o GetChangeSetsSetArrayOutput) ToGetChangeSetsSetArrayOutputWithContext(ctx context.Context) GetChangeSetsSetArrayOutput

type GetChangeSetsSetInput

type GetChangeSetsSetInput interface {
	pulumi.Input

	ToGetChangeSetsSetOutput() GetChangeSetsSetOutput
	ToGetChangeSetsSetOutputWithContext(context.Context) GetChangeSetsSetOutput
}

GetChangeSetsSetInput is an input type that accepts GetChangeSetsSetArgs and GetChangeSetsSetOutput values. You can construct a concrete instance of `GetChangeSetsSetInput` via:

GetChangeSetsSetArgs{...}

type GetChangeSetsSetOutput

type GetChangeSetsSetOutput struct{ *pulumi.OutputState }

func (GetChangeSetsSetOutput) ChangeSetId

func (o GetChangeSetsSetOutput) ChangeSetId() pulumi.StringOutput

The ID of the change set.

func (GetChangeSetsSetOutput) ChangeSetName

func (o GetChangeSetsSetOutput) ChangeSetName() pulumi.StringOutput

The name of the change set. 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.

func (GetChangeSetsSetOutput) ChangeSetType

func (o GetChangeSetsSetOutput) ChangeSetType() pulumi.StringOutput

The type of the change set. Valid values: CREATE: creates a change set for a new stack. UPDATE: creates a change set for an existing stack. IMPORT: creates a change set for a new stack or an existing stack to import non-ROS-managed resources. If you create a change set for a new stack, ROS creates a stack that has a unique stack ID. The stack is in the REVIEW_IN_PROGRESS state until you execute the change set. You cannot use the UPDATE type to create a change set for a new stack or the CREATE type to create a change set for an existing stack.

func (GetChangeSetsSetOutput) Description

func (o GetChangeSetsSetOutput) Description() pulumi.StringOutput

The description of the change set. The description can be up to 1,024 bytes in length.

func (GetChangeSetsSetOutput) DisableRollback

func (o GetChangeSetsSetOutput) DisableRollback() pulumi.BoolOutput

Specifies whether to disable rollback on stack creation failure. Default value: false. Valid values: true: disables rollback on stack creation failure. false: enables rollback on stack creation failure. Note This parameter takes effect only when ChangeSetType is set to CREATE or IMPORT.

func (GetChangeSetsSetOutput) ElementType

func (GetChangeSetsSetOutput) ElementType() reflect.Type

func (GetChangeSetsSetOutput) ExecutionStatus

func (o GetChangeSetsSetOutput) ExecutionStatus() pulumi.StringOutput

The execution status of change set N. Maximum value of N: 5. Valid values: UNAVAILABLE AVAILABLE EXECUTE_IN_PROGRESS EXECUTE_COMPLETE EXECUTE_FAILED OBSOLETE.

func (GetChangeSetsSetOutput) Id

The ID of the Change Set.

func (GetChangeSetsSetOutput) Parameters

Parameters.

func (GetChangeSetsSetOutput) StackId

The ID of the stack for which you want to create the change set. ROS generates the change set by comparing the stack information with the information that you submit, such as a modified template or different inputs.

func (GetChangeSetsSetOutput) StackName

The name of the stack for which you want to create the change set. 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. Note This parameter takes effect only when ChangeSetType is set to CREATE or IMPORT.

func (GetChangeSetsSetOutput) Status

The status of the change set.

func (GetChangeSetsSetOutput) TemplateBody

func (o GetChangeSetsSetOutput) TemplateBody() pulumi.StringOutput

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. You can specify one of TemplateBody or TemplateURL parameters, but you cannot specify both of them.

func (GetChangeSetsSetOutput) TimeoutInMinutes

func (o GetChangeSetsSetOutput) TimeoutInMinutes() pulumi.IntOutput

Timeout In Minutes.

func (GetChangeSetsSetOutput) ToGetChangeSetsSetOutput

func (o GetChangeSetsSetOutput) ToGetChangeSetsSetOutput() GetChangeSetsSetOutput

func (GetChangeSetsSetOutput) ToGetChangeSetsSetOutputWithContext

func (o GetChangeSetsSetOutput) ToGetChangeSetsSetOutputWithContext(ctx context.Context) GetChangeSetsSetOutput

type GetChangeSetsSetParameter

type GetChangeSetsSetParameter struct {
	// The parameters.
	ParameterKey string `pulumi:"parameterKey"`
	// The parameters.
	ParameterValue string `pulumi:"parameterValue"`
}

type GetChangeSetsSetParameterArgs

type GetChangeSetsSetParameterArgs struct {
	// The parameters.
	ParameterKey pulumi.StringInput `pulumi:"parameterKey"`
	// The parameters.
	ParameterValue pulumi.StringInput `pulumi:"parameterValue"`
}

func (GetChangeSetsSetParameterArgs) ElementType

func (GetChangeSetsSetParameterArgs) ToGetChangeSetsSetParameterOutput

func (i GetChangeSetsSetParameterArgs) ToGetChangeSetsSetParameterOutput() GetChangeSetsSetParameterOutput

func (GetChangeSetsSetParameterArgs) ToGetChangeSetsSetParameterOutputWithContext

func (i GetChangeSetsSetParameterArgs) ToGetChangeSetsSetParameterOutputWithContext(ctx context.Context) GetChangeSetsSetParameterOutput

type GetChangeSetsSetParameterArray

type GetChangeSetsSetParameterArray []GetChangeSetsSetParameterInput

func (GetChangeSetsSetParameterArray) ElementType

func (GetChangeSetsSetParameterArray) ToGetChangeSetsSetParameterArrayOutput

func (i GetChangeSetsSetParameterArray) ToGetChangeSetsSetParameterArrayOutput() GetChangeSetsSetParameterArrayOutput

func (GetChangeSetsSetParameterArray) ToGetChangeSetsSetParameterArrayOutputWithContext

func (i GetChangeSetsSetParameterArray) ToGetChangeSetsSetParameterArrayOutputWithContext(ctx context.Context) GetChangeSetsSetParameterArrayOutput

type GetChangeSetsSetParameterArrayInput

type GetChangeSetsSetParameterArrayInput interface {
	pulumi.Input

	ToGetChangeSetsSetParameterArrayOutput() GetChangeSetsSetParameterArrayOutput
	ToGetChangeSetsSetParameterArrayOutputWithContext(context.Context) GetChangeSetsSetParameterArrayOutput
}

GetChangeSetsSetParameterArrayInput is an input type that accepts GetChangeSetsSetParameterArray and GetChangeSetsSetParameterArrayOutput values. You can construct a concrete instance of `GetChangeSetsSetParameterArrayInput` via:

GetChangeSetsSetParameterArray{ GetChangeSetsSetParameterArgs{...} }

type GetChangeSetsSetParameterArrayOutput

type GetChangeSetsSetParameterArrayOutput struct{ *pulumi.OutputState }

func (GetChangeSetsSetParameterArrayOutput) ElementType

func (GetChangeSetsSetParameterArrayOutput) Index

func (GetChangeSetsSetParameterArrayOutput) ToGetChangeSetsSetParameterArrayOutput

func (o GetChangeSetsSetParameterArrayOutput) ToGetChangeSetsSetParameterArrayOutput() GetChangeSetsSetParameterArrayOutput

func (GetChangeSetsSetParameterArrayOutput) ToGetChangeSetsSetParameterArrayOutputWithContext

func (o GetChangeSetsSetParameterArrayOutput) ToGetChangeSetsSetParameterArrayOutputWithContext(ctx context.Context) GetChangeSetsSetParameterArrayOutput

type GetChangeSetsSetParameterInput

type GetChangeSetsSetParameterInput interface {
	pulumi.Input

	ToGetChangeSetsSetParameterOutput() GetChangeSetsSetParameterOutput
	ToGetChangeSetsSetParameterOutputWithContext(context.Context) GetChangeSetsSetParameterOutput
}

GetChangeSetsSetParameterInput is an input type that accepts GetChangeSetsSetParameterArgs and GetChangeSetsSetParameterOutput values. You can construct a concrete instance of `GetChangeSetsSetParameterInput` via:

GetChangeSetsSetParameterArgs{...}

type GetChangeSetsSetParameterOutput

type GetChangeSetsSetParameterOutput struct{ *pulumi.OutputState }

func (GetChangeSetsSetParameterOutput) ElementType

func (GetChangeSetsSetParameterOutput) ParameterKey

The parameters.

func (GetChangeSetsSetParameterOutput) ParameterValue

The parameters.

func (GetChangeSetsSetParameterOutput) ToGetChangeSetsSetParameterOutput

func (o GetChangeSetsSetParameterOutput) ToGetChangeSetsSetParameterOutput() GetChangeSetsSetParameterOutput

func (GetChangeSetsSetParameterOutput) ToGetChangeSetsSetParameterOutputWithContext

func (o GetChangeSetsSetParameterOutput) ToGetChangeSetsSetParameterOutputWithContext(ctx context.Context) GetChangeSetsSetParameterOutput

type GetStackGroupsArgs

type GetStackGroupsArgs struct {
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails *bool `pulumi:"enableDetails"`
	// A list of Stack Group IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Stack Group name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The status of Stack Group.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getStackGroups.

type GetStackGroupsGroup

type GetStackGroupsGroup struct {
	// The name of the RAM administrator role assumed by ROS.
	AdministrationRoleName string `pulumi:"administrationRoleName"`
	// The description of the stack group.
	Description string `pulumi:"description"`
	// The name of the RAM execution role assumed by the administrator role.
	ExecutionRoleName string `pulumi:"executionRoleName"`
	// The ID of the Stack Group.
	Id string `pulumi:"id"`
	// The parameters.
	Parameters []GetStackGroupsGroupParameter `pulumi:"parameters"`
	// The id of Stack Group.
	StackGroupId string `pulumi:"stackGroupId"`
	// The name of the stack group..
	StackGroupName string `pulumi:"stackGroupName"`
	// The status of Stack Group.
	Status string `pulumi:"status"`
	// The structure that contains the template body.
	TemplateBody string `pulumi:"templateBody"`
}

type GetStackGroupsGroupArgs

type GetStackGroupsGroupArgs struct {
	// The name of the RAM administrator role assumed by ROS.
	AdministrationRoleName pulumi.StringInput `pulumi:"administrationRoleName"`
	// The description of the stack group.
	Description pulumi.StringInput `pulumi:"description"`
	// The name of the RAM execution role assumed by the administrator role.
	ExecutionRoleName pulumi.StringInput `pulumi:"executionRoleName"`
	// The ID of the Stack Group.
	Id pulumi.StringInput `pulumi:"id"`
	// The parameters.
	Parameters GetStackGroupsGroupParameterArrayInput `pulumi:"parameters"`
	// The id of Stack Group.
	StackGroupId pulumi.StringInput `pulumi:"stackGroupId"`
	// The name of the stack group..
	StackGroupName pulumi.StringInput `pulumi:"stackGroupName"`
	// The status of Stack Group.
	Status pulumi.StringInput `pulumi:"status"`
	// The structure that contains the template body.
	TemplateBody pulumi.StringInput `pulumi:"templateBody"`
}

func (GetStackGroupsGroupArgs) ElementType

func (GetStackGroupsGroupArgs) ElementType() reflect.Type

func (GetStackGroupsGroupArgs) ToGetStackGroupsGroupOutput

func (i GetStackGroupsGroupArgs) ToGetStackGroupsGroupOutput() GetStackGroupsGroupOutput

func (GetStackGroupsGroupArgs) ToGetStackGroupsGroupOutputWithContext

func (i GetStackGroupsGroupArgs) ToGetStackGroupsGroupOutputWithContext(ctx context.Context) GetStackGroupsGroupOutput

type GetStackGroupsGroupArray

type GetStackGroupsGroupArray []GetStackGroupsGroupInput

func (GetStackGroupsGroupArray) ElementType

func (GetStackGroupsGroupArray) ElementType() reflect.Type

func (GetStackGroupsGroupArray) ToGetStackGroupsGroupArrayOutput

func (i GetStackGroupsGroupArray) ToGetStackGroupsGroupArrayOutput() GetStackGroupsGroupArrayOutput

func (GetStackGroupsGroupArray) ToGetStackGroupsGroupArrayOutputWithContext

func (i GetStackGroupsGroupArray) ToGetStackGroupsGroupArrayOutputWithContext(ctx context.Context) GetStackGroupsGroupArrayOutput

type GetStackGroupsGroupArrayInput

type GetStackGroupsGroupArrayInput interface {
	pulumi.Input

	ToGetStackGroupsGroupArrayOutput() GetStackGroupsGroupArrayOutput
	ToGetStackGroupsGroupArrayOutputWithContext(context.Context) GetStackGroupsGroupArrayOutput
}

GetStackGroupsGroupArrayInput is an input type that accepts GetStackGroupsGroupArray and GetStackGroupsGroupArrayOutput values. You can construct a concrete instance of `GetStackGroupsGroupArrayInput` via:

GetStackGroupsGroupArray{ GetStackGroupsGroupArgs{...} }

type GetStackGroupsGroupArrayOutput

type GetStackGroupsGroupArrayOutput struct{ *pulumi.OutputState }

func (GetStackGroupsGroupArrayOutput) ElementType

func (GetStackGroupsGroupArrayOutput) Index

func (GetStackGroupsGroupArrayOutput) ToGetStackGroupsGroupArrayOutput

func (o GetStackGroupsGroupArrayOutput) ToGetStackGroupsGroupArrayOutput() GetStackGroupsGroupArrayOutput

func (GetStackGroupsGroupArrayOutput) ToGetStackGroupsGroupArrayOutputWithContext

func (o GetStackGroupsGroupArrayOutput) ToGetStackGroupsGroupArrayOutputWithContext(ctx context.Context) GetStackGroupsGroupArrayOutput

type GetStackGroupsGroupInput

type GetStackGroupsGroupInput interface {
	pulumi.Input

	ToGetStackGroupsGroupOutput() GetStackGroupsGroupOutput
	ToGetStackGroupsGroupOutputWithContext(context.Context) GetStackGroupsGroupOutput
}

GetStackGroupsGroupInput is an input type that accepts GetStackGroupsGroupArgs and GetStackGroupsGroupOutput values. You can construct a concrete instance of `GetStackGroupsGroupInput` via:

GetStackGroupsGroupArgs{...}

type GetStackGroupsGroupOutput

type GetStackGroupsGroupOutput struct{ *pulumi.OutputState }

func (GetStackGroupsGroupOutput) AdministrationRoleName

func (o GetStackGroupsGroupOutput) AdministrationRoleName() pulumi.StringOutput

The name of the RAM administrator role assumed by ROS.

func (GetStackGroupsGroupOutput) Description

The description of the stack group.

func (GetStackGroupsGroupOutput) ElementType

func (GetStackGroupsGroupOutput) ElementType() reflect.Type

func (GetStackGroupsGroupOutput) ExecutionRoleName

func (o GetStackGroupsGroupOutput) ExecutionRoleName() pulumi.StringOutput

The name of the RAM execution role assumed by the administrator role.

func (GetStackGroupsGroupOutput) Id

The ID of the Stack Group.

func (GetStackGroupsGroupOutput) Parameters

The parameters.

func (GetStackGroupsGroupOutput) StackGroupId

The id of Stack Group.

func (GetStackGroupsGroupOutput) StackGroupName

func (o GetStackGroupsGroupOutput) StackGroupName() pulumi.StringOutput

The name of the stack group..

func (GetStackGroupsGroupOutput) Status

The status of Stack Group.

func (GetStackGroupsGroupOutput) TemplateBody

The structure that contains the template body.

func (GetStackGroupsGroupOutput) ToGetStackGroupsGroupOutput

func (o GetStackGroupsGroupOutput) ToGetStackGroupsGroupOutput() GetStackGroupsGroupOutput

func (GetStackGroupsGroupOutput) ToGetStackGroupsGroupOutputWithContext

func (o GetStackGroupsGroupOutput) ToGetStackGroupsGroupOutputWithContext(ctx context.Context) GetStackGroupsGroupOutput

type GetStackGroupsGroupParameter

type GetStackGroupsGroupParameter struct {
	// The parameter key.
	ParameterKey string `pulumi:"parameterKey"`
	// The parameter value.
	ParameterValue string `pulumi:"parameterValue"`
}

type GetStackGroupsGroupParameterArgs

type GetStackGroupsGroupParameterArgs struct {
	// The parameter key.
	ParameterKey pulumi.StringInput `pulumi:"parameterKey"`
	// The parameter value.
	ParameterValue pulumi.StringInput `pulumi:"parameterValue"`
}

func (GetStackGroupsGroupParameterArgs) ElementType

func (GetStackGroupsGroupParameterArgs) ToGetStackGroupsGroupParameterOutput

func (i GetStackGroupsGroupParameterArgs) ToGetStackGroupsGroupParameterOutput() GetStackGroupsGroupParameterOutput

func (GetStackGroupsGroupParameterArgs) ToGetStackGroupsGroupParameterOutputWithContext

func (i GetStackGroupsGroupParameterArgs) ToGetStackGroupsGroupParameterOutputWithContext(ctx context.Context) GetStackGroupsGroupParameterOutput

type GetStackGroupsGroupParameterArray

type GetStackGroupsGroupParameterArray []GetStackGroupsGroupParameterInput

func (GetStackGroupsGroupParameterArray) ElementType

func (GetStackGroupsGroupParameterArray) ToGetStackGroupsGroupParameterArrayOutput

func (i GetStackGroupsGroupParameterArray) ToGetStackGroupsGroupParameterArrayOutput() GetStackGroupsGroupParameterArrayOutput

func (GetStackGroupsGroupParameterArray) ToGetStackGroupsGroupParameterArrayOutputWithContext

func (i GetStackGroupsGroupParameterArray) ToGetStackGroupsGroupParameterArrayOutputWithContext(ctx context.Context) GetStackGroupsGroupParameterArrayOutput

type GetStackGroupsGroupParameterArrayInput

type GetStackGroupsGroupParameterArrayInput interface {
	pulumi.Input

	ToGetStackGroupsGroupParameterArrayOutput() GetStackGroupsGroupParameterArrayOutput
	ToGetStackGroupsGroupParameterArrayOutputWithContext(context.Context) GetStackGroupsGroupParameterArrayOutput
}

GetStackGroupsGroupParameterArrayInput is an input type that accepts GetStackGroupsGroupParameterArray and GetStackGroupsGroupParameterArrayOutput values. You can construct a concrete instance of `GetStackGroupsGroupParameterArrayInput` via:

GetStackGroupsGroupParameterArray{ GetStackGroupsGroupParameterArgs{...} }

type GetStackGroupsGroupParameterArrayOutput

type GetStackGroupsGroupParameterArrayOutput struct{ *pulumi.OutputState }

func (GetStackGroupsGroupParameterArrayOutput) ElementType

func (GetStackGroupsGroupParameterArrayOutput) Index

func (GetStackGroupsGroupParameterArrayOutput) ToGetStackGroupsGroupParameterArrayOutput

func (o GetStackGroupsGroupParameterArrayOutput) ToGetStackGroupsGroupParameterArrayOutput() GetStackGroupsGroupParameterArrayOutput

func (GetStackGroupsGroupParameterArrayOutput) ToGetStackGroupsGroupParameterArrayOutputWithContext

func (o GetStackGroupsGroupParameterArrayOutput) ToGetStackGroupsGroupParameterArrayOutputWithContext(ctx context.Context) GetStackGroupsGroupParameterArrayOutput

type GetStackGroupsGroupParameterInput

type GetStackGroupsGroupParameterInput interface {
	pulumi.Input

	ToGetStackGroupsGroupParameterOutput() GetStackGroupsGroupParameterOutput
	ToGetStackGroupsGroupParameterOutputWithContext(context.Context) GetStackGroupsGroupParameterOutput
}

GetStackGroupsGroupParameterInput is an input type that accepts GetStackGroupsGroupParameterArgs and GetStackGroupsGroupParameterOutput values. You can construct a concrete instance of `GetStackGroupsGroupParameterInput` via:

GetStackGroupsGroupParameterArgs{...}

type GetStackGroupsGroupParameterOutput

type GetStackGroupsGroupParameterOutput struct{ *pulumi.OutputState }

func (GetStackGroupsGroupParameterOutput) ElementType

func (GetStackGroupsGroupParameterOutput) ParameterKey

The parameter key.

func (GetStackGroupsGroupParameterOutput) ParameterValue

The parameter value.

func (GetStackGroupsGroupParameterOutput) ToGetStackGroupsGroupParameterOutput

func (o GetStackGroupsGroupParameterOutput) ToGetStackGroupsGroupParameterOutput() GetStackGroupsGroupParameterOutput

func (GetStackGroupsGroupParameterOutput) ToGetStackGroupsGroupParameterOutputWithContext

func (o GetStackGroupsGroupParameterOutput) ToGetStackGroupsGroupParameterOutputWithContext(ctx context.Context) GetStackGroupsGroupParameterOutput

type GetStackGroupsResult

type GetStackGroupsResult struct {
	EnableDetails *bool                 `pulumi:"enableDetails"`
	Groups        []GetStackGroupsGroup `pulumi:"groups"`
	// The provider-assigned unique ID for this managed resource.
	Id         string   `pulumi:"id"`
	Ids        []string `pulumi:"ids"`
	NameRegex  *string  `pulumi:"nameRegex"`
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	Status     *string  `pulumi:"status"`
}

A collection of values returned by getStackGroups.

func GetStackGroups

func GetStackGroups(ctx *pulumi.Context, args *GetStackGroupsArgs, opts ...pulumi.InvokeOption) (*GetStackGroupsResult, error)

This data source provides the Ros Stack Groups of the current Alibaba Cloud user.

> **NOTE:** Available in v1.107.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ros"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "the_resource_name"
		example, err := ros.GetStackGroups(ctx, &ros.GetStackGroupsArgs{
			Ids: []string{
				"example_value",
			},
			NameRegex: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstRosStackGroupId", example.Groups[0].Id)
		return nil
	})
}

```

type GetStacksArgs

type GetStacksArgs struct {
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails *bool `pulumi:"enableDetails"`
	// A list of Stack IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Stack name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// Parent Stack Id.
	ParentStackId *string `pulumi:"parentStackId"`
	// The show nested stack.
	ShowNestedStack *bool `pulumi:"showNestedStack"`
	// Stack Name.
	StackName *string `pulumi:"stackName"`
	// The status of Stack. Valid Values: `CREATE_COMPLETE`, `CREATE_FAILED`, `CREATE_IN_PROGRESS`, `DELETE_COMPLETE`, `DELETE_FAILED`, `DELETE_IN_PROGRESS`, `ROLLBACK_COMPLETE`, `ROLLBACK_FAILED`, `ROLLBACK_IN_PROGRESS`.
	Status *string `pulumi:"status"`
	// Query the instance bound to the tag. The format of the incoming value is `json` string, including `TagKey` and `TagValue`. `TagKey` cannot be null, and `TagValue` can be empty. Format example `{"key1":"value1"}`.
	Tags map[string]interface{} `pulumi:"tags"`
}

A collection of arguments for invoking getStacks.

type GetStacksResult

type GetStacksResult struct {
	EnableDetails *bool `pulumi:"enableDetails"`
	// The provider-assigned unique ID for this managed resource.
	Id              string                 `pulumi:"id"`
	Ids             []string               `pulumi:"ids"`
	NameRegex       *string                `pulumi:"nameRegex"`
	Names           []string               `pulumi:"names"`
	OutputFile      *string                `pulumi:"outputFile"`
	ParentStackId   *string                `pulumi:"parentStackId"`
	ShowNestedStack *bool                  `pulumi:"showNestedStack"`
	StackName       *string                `pulumi:"stackName"`
	Stacks          []GetStacksStack       `pulumi:"stacks"`
	Status          *string                `pulumi:"status"`
	Tags            map[string]interface{} `pulumi:"tags"`
}

A collection of values returned by getStacks.

func GetStacks

func GetStacks(ctx *pulumi.Context, args *GetStacksArgs, opts ...pulumi.InvokeOption) (*GetStacksResult, error)

This data source provides the Ros Stacks of the current Alibaba Cloud user.

> **NOTE:** Available in v1.106.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ros"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "the_resource_name"
		example, err := ros.GetStacks(ctx, &ros.GetStacksArgs{
			Ids: []string{
				"example_value",
			},
			NameRegex: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstRosStackId", example.Stacks[0].Id)
		return nil
	})
}

```

type GetStacksStack

type GetStacksStack struct {
	// Specifies whether to enable deletion protection on the stack.
	DeletionProtection string `pulumi:"deletionProtection"`
	// The Description of the Stack.
	Description string `pulumi:"description"`
	// Specifies whether to disable rollback on stack creation failure..
	DisableRollback bool `pulumi:"disableRollback"`
	// Drift DetectionTime.
	DriftDetectionTime string `pulumi:"driftDetectionTime"`
	// The ID of the Stack.
	Id string `pulumi:"id"`
	// The parameters.
	Parameters []GetStacksStackParameter `pulumi:"parameters"`
	// Parent Stack Id.
	ParentStackId string `pulumi:"parentStackId"`
	// The RamRoleName.
	RamRoleName string `pulumi:"ramRoleName"`
	// Root Stack Id.
	RootStackId string `pulumi:"rootStackId"`
	// Stack DriftStatus.
	StackDriftStatus string `pulumi:"stackDriftStatus"`
	// Stack Id.
	StackId string `pulumi:"stackId"`
	// Stack Name.
	StackName string `pulumi:"stackName"`
	// The structure that contains the stack policy body.
	StackPolicyBody string `pulumi:"stackPolicyBody"`
	// The status of Stack. Valid Values: `CREATE_COMPLETE`, `CREATE_FAILED`, `CREATE_IN_PROGRESS`, `DELETE_COMPLETE`, `DELETE_FAILED`, `DELETE_IN_PROGRESS`, `ROLLBACK_COMPLETE`, `ROLLBACK_FAILED`, `ROLLBACK_IN_PROGRESS`.
	Status string `pulumi:"status"`
	// Status Reason.
	StatusReason string `pulumi:"statusReason"`
	// Query the instance bound to the tag. The format of the incoming value is `json` string, including `TagKey` and `TagValue`. `TagKey` cannot be null, and `TagValue` can be empty. Format example `{"key1":"value1"}`.
	Tags map[string]interface{} `pulumi:"tags"`
	// Template Description.
	TemplateDescription string `pulumi:"templateDescription"`
	// Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
	TimeoutInMinutes int `pulumi:"timeoutInMinutes"`
}

type GetStacksStackArgs

type GetStacksStackArgs struct {
	// Specifies whether to enable deletion protection on the stack.
	DeletionProtection pulumi.StringInput `pulumi:"deletionProtection"`
	// The Description of the Stack.
	Description pulumi.StringInput `pulumi:"description"`
	// Specifies whether to disable rollback on stack creation failure..
	DisableRollback pulumi.BoolInput `pulumi:"disableRollback"`
	// Drift DetectionTime.
	DriftDetectionTime pulumi.StringInput `pulumi:"driftDetectionTime"`
	// The ID of the Stack.
	Id pulumi.StringInput `pulumi:"id"`
	// The parameters.
	Parameters GetStacksStackParameterArrayInput `pulumi:"parameters"`
	// Parent Stack Id.
	ParentStackId pulumi.StringInput `pulumi:"parentStackId"`
	// The RamRoleName.
	RamRoleName pulumi.StringInput `pulumi:"ramRoleName"`
	// Root Stack Id.
	RootStackId pulumi.StringInput `pulumi:"rootStackId"`
	// Stack DriftStatus.
	StackDriftStatus pulumi.StringInput `pulumi:"stackDriftStatus"`
	// Stack Id.
	StackId pulumi.StringInput `pulumi:"stackId"`
	// Stack Name.
	StackName pulumi.StringInput `pulumi:"stackName"`
	// The structure that contains the stack policy body.
	StackPolicyBody pulumi.StringInput `pulumi:"stackPolicyBody"`
	// The status of Stack. Valid Values: `CREATE_COMPLETE`, `CREATE_FAILED`, `CREATE_IN_PROGRESS`, `DELETE_COMPLETE`, `DELETE_FAILED`, `DELETE_IN_PROGRESS`, `ROLLBACK_COMPLETE`, `ROLLBACK_FAILED`, `ROLLBACK_IN_PROGRESS`.
	Status pulumi.StringInput `pulumi:"status"`
	// Status Reason.
	StatusReason pulumi.StringInput `pulumi:"statusReason"`
	// Query the instance bound to the tag. The format of the incoming value is `json` string, including `TagKey` and `TagValue`. `TagKey` cannot be null, and `TagValue` can be empty. Format example `{"key1":"value1"}`.
	Tags pulumi.MapInput `pulumi:"tags"`
	// Template Description.
	TemplateDescription pulumi.StringInput `pulumi:"templateDescription"`
	// Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
	TimeoutInMinutes pulumi.IntInput `pulumi:"timeoutInMinutes"`
}

func (GetStacksStackArgs) ElementType

func (GetStacksStackArgs) ElementType() reflect.Type

func (GetStacksStackArgs) ToGetStacksStackOutput

func (i GetStacksStackArgs) ToGetStacksStackOutput() GetStacksStackOutput

func (GetStacksStackArgs) ToGetStacksStackOutputWithContext

func (i GetStacksStackArgs) ToGetStacksStackOutputWithContext(ctx context.Context) GetStacksStackOutput

type GetStacksStackArray

type GetStacksStackArray []GetStacksStackInput

func (GetStacksStackArray) ElementType

func (GetStacksStackArray) ElementType() reflect.Type

func (GetStacksStackArray) ToGetStacksStackArrayOutput

func (i GetStacksStackArray) ToGetStacksStackArrayOutput() GetStacksStackArrayOutput

func (GetStacksStackArray) ToGetStacksStackArrayOutputWithContext

func (i GetStacksStackArray) ToGetStacksStackArrayOutputWithContext(ctx context.Context) GetStacksStackArrayOutput

type GetStacksStackArrayInput

type GetStacksStackArrayInput interface {
	pulumi.Input

	ToGetStacksStackArrayOutput() GetStacksStackArrayOutput
	ToGetStacksStackArrayOutputWithContext(context.Context) GetStacksStackArrayOutput
}

GetStacksStackArrayInput is an input type that accepts GetStacksStackArray and GetStacksStackArrayOutput values. You can construct a concrete instance of `GetStacksStackArrayInput` via:

GetStacksStackArray{ GetStacksStackArgs{...} }

type GetStacksStackArrayOutput

type GetStacksStackArrayOutput struct{ *pulumi.OutputState }

func (GetStacksStackArrayOutput) ElementType

func (GetStacksStackArrayOutput) ElementType() reflect.Type

func (GetStacksStackArrayOutput) Index

func (GetStacksStackArrayOutput) ToGetStacksStackArrayOutput

func (o GetStacksStackArrayOutput) ToGetStacksStackArrayOutput() GetStacksStackArrayOutput

func (GetStacksStackArrayOutput) ToGetStacksStackArrayOutputWithContext

func (o GetStacksStackArrayOutput) ToGetStacksStackArrayOutputWithContext(ctx context.Context) GetStacksStackArrayOutput

type GetStacksStackInput

type GetStacksStackInput interface {
	pulumi.Input

	ToGetStacksStackOutput() GetStacksStackOutput
	ToGetStacksStackOutputWithContext(context.Context) GetStacksStackOutput
}

GetStacksStackInput is an input type that accepts GetStacksStackArgs and GetStacksStackOutput values. You can construct a concrete instance of `GetStacksStackInput` via:

GetStacksStackArgs{...}

type GetStacksStackOutput

type GetStacksStackOutput struct{ *pulumi.OutputState }

func (GetStacksStackOutput) DeletionProtection

func (o GetStacksStackOutput) DeletionProtection() pulumi.StringOutput

Specifies whether to enable deletion protection on the stack.

func (GetStacksStackOutput) Description

func (o GetStacksStackOutput) Description() pulumi.StringOutput

The Description of the Stack.

func (GetStacksStackOutput) DisableRollback

func (o GetStacksStackOutput) DisableRollback() pulumi.BoolOutput

Specifies whether to disable rollback on stack creation failure..

func (GetStacksStackOutput) DriftDetectionTime

func (o GetStacksStackOutput) DriftDetectionTime() pulumi.StringOutput

Drift DetectionTime.

func (GetStacksStackOutput) ElementType

func (GetStacksStackOutput) ElementType() reflect.Type

func (GetStacksStackOutput) Id

The ID of the Stack.

func (GetStacksStackOutput) Parameters

The parameters.

func (GetStacksStackOutput) ParentStackId

func (o GetStacksStackOutput) ParentStackId() pulumi.StringOutput

Parent Stack Id.

func (GetStacksStackOutput) RamRoleName

func (o GetStacksStackOutput) RamRoleName() pulumi.StringOutput

The RamRoleName.

func (GetStacksStackOutput) RootStackId

func (o GetStacksStackOutput) RootStackId() pulumi.StringOutput

Root Stack Id.

func (GetStacksStackOutput) StackDriftStatus

func (o GetStacksStackOutput) StackDriftStatus() pulumi.StringOutput

Stack DriftStatus.

func (GetStacksStackOutput) StackId

Stack Id.

func (GetStacksStackOutput) StackName

Stack Name.

func (GetStacksStackOutput) StackPolicyBody

func (o GetStacksStackOutput) StackPolicyBody() pulumi.StringOutput

The structure that contains the stack policy body.

func (GetStacksStackOutput) Status

The status of Stack. Valid Values: `CREATE_COMPLETE`, `CREATE_FAILED`, `CREATE_IN_PROGRESS`, `DELETE_COMPLETE`, `DELETE_FAILED`, `DELETE_IN_PROGRESS`, `ROLLBACK_COMPLETE`, `ROLLBACK_FAILED`, `ROLLBACK_IN_PROGRESS`.

func (GetStacksStackOutput) StatusReason

func (o GetStacksStackOutput) StatusReason() pulumi.StringOutput

Status Reason.

func (GetStacksStackOutput) Tags

Query the instance bound to the tag. The format of the incoming value is `json` string, including `TagKey` and `TagValue`. `TagKey` cannot be null, and `TagValue` can be empty. Format example `{"key1":"value1"}`.

func (GetStacksStackOutput) TemplateDescription

func (o GetStacksStackOutput) TemplateDescription() pulumi.StringOutput

Template Description.

func (GetStacksStackOutput) TimeoutInMinutes

func (o GetStacksStackOutput) TimeoutInMinutes() pulumi.IntOutput

Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.

func (GetStacksStackOutput) ToGetStacksStackOutput

func (o GetStacksStackOutput) ToGetStacksStackOutput() GetStacksStackOutput

func (GetStacksStackOutput) ToGetStacksStackOutputWithContext

func (o GetStacksStackOutput) ToGetStacksStackOutputWithContext(ctx context.Context) GetStacksStackOutput

type GetStacksStackParameter

type GetStacksStackParameter struct {
	// The key of parameters.
	ParameterKey string `pulumi:"parameterKey"`
	// The value of parameters.
	ParameterValue string `pulumi:"parameterValue"`
}

type GetStacksStackParameterArgs

type GetStacksStackParameterArgs struct {
	// The key of parameters.
	ParameterKey pulumi.StringInput `pulumi:"parameterKey"`
	// The value of parameters.
	ParameterValue pulumi.StringInput `pulumi:"parameterValue"`
}

func (GetStacksStackParameterArgs) ElementType

func (GetStacksStackParameterArgs) ToGetStacksStackParameterOutput

func (i GetStacksStackParameterArgs) ToGetStacksStackParameterOutput() GetStacksStackParameterOutput

func (GetStacksStackParameterArgs) ToGetStacksStackParameterOutputWithContext

func (i GetStacksStackParameterArgs) ToGetStacksStackParameterOutputWithContext(ctx context.Context) GetStacksStackParameterOutput

type GetStacksStackParameterArray

type GetStacksStackParameterArray []GetStacksStackParameterInput

func (GetStacksStackParameterArray) ElementType

func (GetStacksStackParameterArray) ToGetStacksStackParameterArrayOutput

func (i GetStacksStackParameterArray) ToGetStacksStackParameterArrayOutput() GetStacksStackParameterArrayOutput

func (GetStacksStackParameterArray) ToGetStacksStackParameterArrayOutputWithContext

func (i GetStacksStackParameterArray) ToGetStacksStackParameterArrayOutputWithContext(ctx context.Context) GetStacksStackParameterArrayOutput

type GetStacksStackParameterArrayInput

type GetStacksStackParameterArrayInput interface {
	pulumi.Input

	ToGetStacksStackParameterArrayOutput() GetStacksStackParameterArrayOutput
	ToGetStacksStackParameterArrayOutputWithContext(context.Context) GetStacksStackParameterArrayOutput
}

GetStacksStackParameterArrayInput is an input type that accepts GetStacksStackParameterArray and GetStacksStackParameterArrayOutput values. You can construct a concrete instance of `GetStacksStackParameterArrayInput` via:

GetStacksStackParameterArray{ GetStacksStackParameterArgs{...} }

type GetStacksStackParameterArrayOutput

type GetStacksStackParameterArrayOutput struct{ *pulumi.OutputState }

func (GetStacksStackParameterArrayOutput) ElementType

func (GetStacksStackParameterArrayOutput) Index

func (GetStacksStackParameterArrayOutput) ToGetStacksStackParameterArrayOutput

func (o GetStacksStackParameterArrayOutput) ToGetStacksStackParameterArrayOutput() GetStacksStackParameterArrayOutput

func (GetStacksStackParameterArrayOutput) ToGetStacksStackParameterArrayOutputWithContext

func (o GetStacksStackParameterArrayOutput) ToGetStacksStackParameterArrayOutputWithContext(ctx context.Context) GetStacksStackParameterArrayOutput

type GetStacksStackParameterInput

type GetStacksStackParameterInput interface {
	pulumi.Input

	ToGetStacksStackParameterOutput() GetStacksStackParameterOutput
	ToGetStacksStackParameterOutputWithContext(context.Context) GetStacksStackParameterOutput
}

GetStacksStackParameterInput is an input type that accepts GetStacksStackParameterArgs and GetStacksStackParameterOutput values. You can construct a concrete instance of `GetStacksStackParameterInput` via:

GetStacksStackParameterArgs{...}

type GetStacksStackParameterOutput

type GetStacksStackParameterOutput struct{ *pulumi.OutputState }

func (GetStacksStackParameterOutput) ElementType

func (GetStacksStackParameterOutput) ParameterKey

The key of parameters.

func (GetStacksStackParameterOutput) ParameterValue

The value of parameters.

func (GetStacksStackParameterOutput) ToGetStacksStackParameterOutput

func (o GetStacksStackParameterOutput) ToGetStacksStackParameterOutput() GetStacksStackParameterOutput

func (GetStacksStackParameterOutput) ToGetStacksStackParameterOutputWithContext

func (o GetStacksStackParameterOutput) ToGetStacksStackParameterOutputWithContext(ctx context.Context) GetStacksStackParameterOutput

type GetTemplatesArgs

type GetTemplatesArgs struct {
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails *bool `pulumi:"enableDetails"`
	// A list of Template IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Template name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// Share Type.
	ShareType *string `pulumi:"shareType"`
	// Tags.
	Tags map[string]interface{} `pulumi:"tags"`
	// The name of the template.  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.
	TemplateName *string `pulumi:"templateName"`
}

A collection of arguments for invoking getTemplates.

type GetTemplatesResult

type GetTemplatesResult struct {
	EnableDetails *bool `pulumi:"enableDetails"`
	// The provider-assigned unique ID for this managed resource.
	Id           string                 `pulumi:"id"`
	Ids          []string               `pulumi:"ids"`
	NameRegex    *string                `pulumi:"nameRegex"`
	Names        []string               `pulumi:"names"`
	OutputFile   *string                `pulumi:"outputFile"`
	ShareType    *string                `pulumi:"shareType"`
	Tags         map[string]interface{} `pulumi:"tags"`
	TemplateName *string                `pulumi:"templateName"`
	Templates    []GetTemplatesTemplate `pulumi:"templates"`
}

A collection of values returned by getTemplates.

func GetTemplates

func GetTemplates(ctx *pulumi.Context, args *GetTemplatesArgs, opts ...pulumi.InvokeOption) (*GetTemplatesResult, error)

This data source provides the Ros Templates of the current Alibaba Cloud user.

> **NOTE:** Available in v1.108.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ros"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "the_resource_name"
		example, err := ros.GetTemplates(ctx, &ros.GetTemplatesArgs{
			Ids: []string{
				"example_value",
			},
			NameRegex: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstRosTemplateId", example.Templates[0].Id)
		return nil
	})
}

```

type GetTemplatesTemplate

type GetTemplatesTemplate struct {
	// The ID of the change set.
	ChangeSetId string `pulumi:"changeSetId"`
	// The description of the template. The description can be up to 256 characters in length.
	Description string `pulumi:"description"`
	// The ID of the Template.
	Id string `pulumi:"id"`
	// Share Type.
	ShareType string `pulumi:"shareType"`
	// The name of the stack group. The name must be unique in a region.  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.
	StackGroupName string `pulumi:"stackGroupName"`
	// The ID of the stack.
	StackId string `pulumi:"stackId"`
	// Tags.
	Tags map[string]interface{} `pulumi:"tags"`
	// 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.  You must specify one of the TemplateBody and TemplateURL parameters, but you cannot specify both of them.
	TemplateBody string `pulumi:"templateBody"`
	// The ID of the template.
	TemplateId string `pulumi:"templateId"`
	// The name of the template.  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.
	TemplateName string `pulumi:"templateName"`
	// Template Version.
	TemplateVersion string `pulumi:"templateVersion"`
}

type GetTemplatesTemplateArgs

type GetTemplatesTemplateArgs struct {
	// The ID of the change set.
	ChangeSetId pulumi.StringInput `pulumi:"changeSetId"`
	// The description of the template. The description can be up to 256 characters in length.
	Description pulumi.StringInput `pulumi:"description"`
	// The ID of the Template.
	Id pulumi.StringInput `pulumi:"id"`
	// Share Type.
	ShareType pulumi.StringInput `pulumi:"shareType"`
	// The name of the stack group. The name must be unique in a region.  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.
	StackGroupName pulumi.StringInput `pulumi:"stackGroupName"`
	// The ID of the stack.
	StackId pulumi.StringInput `pulumi:"stackId"`
	// Tags.
	Tags pulumi.MapInput `pulumi:"tags"`
	// 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.  You must specify one of the TemplateBody and TemplateURL parameters, but you cannot specify both of them.
	TemplateBody pulumi.StringInput `pulumi:"templateBody"`
	// The ID of the template.
	TemplateId pulumi.StringInput `pulumi:"templateId"`
	// The name of the template.  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.
	TemplateName pulumi.StringInput `pulumi:"templateName"`
	// Template Version.
	TemplateVersion pulumi.StringInput `pulumi:"templateVersion"`
}

func (GetTemplatesTemplateArgs) ElementType

func (GetTemplatesTemplateArgs) ElementType() reflect.Type

func (GetTemplatesTemplateArgs) ToGetTemplatesTemplateOutput

func (i GetTemplatesTemplateArgs) ToGetTemplatesTemplateOutput() GetTemplatesTemplateOutput

func (GetTemplatesTemplateArgs) ToGetTemplatesTemplateOutputWithContext

func (i GetTemplatesTemplateArgs) ToGetTemplatesTemplateOutputWithContext(ctx context.Context) GetTemplatesTemplateOutput

type GetTemplatesTemplateArray

type GetTemplatesTemplateArray []GetTemplatesTemplateInput

func (GetTemplatesTemplateArray) ElementType

func (GetTemplatesTemplateArray) ElementType() reflect.Type

func (GetTemplatesTemplateArray) ToGetTemplatesTemplateArrayOutput

func (i GetTemplatesTemplateArray) ToGetTemplatesTemplateArrayOutput() GetTemplatesTemplateArrayOutput

func (GetTemplatesTemplateArray) ToGetTemplatesTemplateArrayOutputWithContext

func (i GetTemplatesTemplateArray) ToGetTemplatesTemplateArrayOutputWithContext(ctx context.Context) GetTemplatesTemplateArrayOutput

type GetTemplatesTemplateArrayInput

type GetTemplatesTemplateArrayInput interface {
	pulumi.Input

	ToGetTemplatesTemplateArrayOutput() GetTemplatesTemplateArrayOutput
	ToGetTemplatesTemplateArrayOutputWithContext(context.Context) GetTemplatesTemplateArrayOutput
}

GetTemplatesTemplateArrayInput is an input type that accepts GetTemplatesTemplateArray and GetTemplatesTemplateArrayOutput values. You can construct a concrete instance of `GetTemplatesTemplateArrayInput` via:

GetTemplatesTemplateArray{ GetTemplatesTemplateArgs{...} }

type GetTemplatesTemplateArrayOutput

type GetTemplatesTemplateArrayOutput struct{ *pulumi.OutputState }

func (GetTemplatesTemplateArrayOutput) ElementType

func (GetTemplatesTemplateArrayOutput) Index

func (GetTemplatesTemplateArrayOutput) ToGetTemplatesTemplateArrayOutput

func (o GetTemplatesTemplateArrayOutput) ToGetTemplatesTemplateArrayOutput() GetTemplatesTemplateArrayOutput

func (GetTemplatesTemplateArrayOutput) ToGetTemplatesTemplateArrayOutputWithContext

func (o GetTemplatesTemplateArrayOutput) ToGetTemplatesTemplateArrayOutputWithContext(ctx context.Context) GetTemplatesTemplateArrayOutput

type GetTemplatesTemplateInput

type GetTemplatesTemplateInput interface {
	pulumi.Input

	ToGetTemplatesTemplateOutput() GetTemplatesTemplateOutput
	ToGetTemplatesTemplateOutputWithContext(context.Context) GetTemplatesTemplateOutput
}

GetTemplatesTemplateInput is an input type that accepts GetTemplatesTemplateArgs and GetTemplatesTemplateOutput values. You can construct a concrete instance of `GetTemplatesTemplateInput` via:

GetTemplatesTemplateArgs{...}

type GetTemplatesTemplateOutput

type GetTemplatesTemplateOutput struct{ *pulumi.OutputState }

func (GetTemplatesTemplateOutput) ChangeSetId

The ID of the change set.

func (GetTemplatesTemplateOutput) Description

The description of the template. The description can be up to 256 characters in length.

func (GetTemplatesTemplateOutput) ElementType

func (GetTemplatesTemplateOutput) ElementType() reflect.Type

func (GetTemplatesTemplateOutput) Id

The ID of the Template.

func (GetTemplatesTemplateOutput) ShareType

Share Type.

func (GetTemplatesTemplateOutput) StackGroupName

func (o GetTemplatesTemplateOutput) StackGroupName() pulumi.StringOutput

The name of the stack group. The name must be unique in a region. 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.

func (GetTemplatesTemplateOutput) StackId

The ID of the stack.

func (GetTemplatesTemplateOutput) Tags

Tags.

func (GetTemplatesTemplateOutput) TemplateBody

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. You must specify one of the TemplateBody and TemplateURL parameters, but you cannot specify both of them.

func (GetTemplatesTemplateOutput) TemplateId

The ID of the template.

func (GetTemplatesTemplateOutput) TemplateName

The name of the template. 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.

func (GetTemplatesTemplateOutput) TemplateVersion

func (o GetTemplatesTemplateOutput) TemplateVersion() pulumi.StringOutput

Template Version.

func (GetTemplatesTemplateOutput) ToGetTemplatesTemplateOutput

func (o GetTemplatesTemplateOutput) ToGetTemplatesTemplateOutput() GetTemplatesTemplateOutput

func (GetTemplatesTemplateOutput) ToGetTemplatesTemplateOutputWithContext

func (o GetTemplatesTemplateOutput) ToGetTemplatesTemplateOutputWithContext(ctx context.Context) GetTemplatesTemplateOutput

type Stack

type Stack struct {
	pulumi.CustomResourceState

	// Specifies whether to delete the stack after it is created.
	CreateOption pulumi.StringPtrOutput `pulumi:"createOption"`
	// Specifies whether to enable deletion protection on the stack. Valid values: `Disabled`, `Enabled`. Default to: `Disabled`
	DeletionProtection pulumi.StringPtrOutput `pulumi:"deletionProtection"`
	// Specifies whether to disable rollback on stack creation failure. Default to: `false`.
	DisableRollback pulumi.BoolPtrOutput `pulumi:"disableRollback"`
	// The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
	NotificationUrls pulumi.StringArrayOutput `pulumi:"notificationUrls"`
	// The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
	Parameters StackParameterArrayOutput `pulumi:"parameters"`
	// 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.
	RamRoleName pulumi.StringPtrOutput `pulumi:"ramRoleName"`
	// 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.
	ReplacementOption pulumi.StringPtrOutput `pulumi:"replacementOption"`
	// The retain all resources.
	RetainAllResources pulumi.BoolPtrOutput `pulumi:"retainAllResources"`
	// Specifies whether to retain the resources in the stack.
	RetainResources pulumi.StringArrayOutput `pulumi:"retainResources"`
	// 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.
	StackName pulumi.StringOutput `pulumi:"stackName"`
	// The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
	StackPolicyBody pulumi.StringPtrOutput `pulumi:"stackPolicyBody"`
	// 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.
	StackPolicyDuringUpdateBody pulumi.StringPtrOutput `pulumi:"stackPolicyDuringUpdateBody"`
	// 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.
	StackPolicyDuringUpdateUrl pulumi.StringPtrOutput `pulumi:"stackPolicyDuringUpdateUrl"`
	// 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.
	StackPolicyUrl pulumi.StringPtrOutput `pulumi:"stackPolicyUrl"`
	// The status of Stack.
	Status pulumi.StringOutput `pulumi:"status"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapOutput `pulumi:"tags"`
	// 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.
	TemplateBody pulumi.StringPtrOutput `pulumi:"templateBody"`
	// 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.
	TemplateUrl pulumi.StringPtrOutput `pulumi:"templateUrl"`
	// The version of the template.
	TemplateVersion pulumi.StringPtrOutput `pulumi:"templateVersion"`
	// The timeout period that is specified for the stack creation request. Default to: `60`.
	TimeoutInMinutes pulumi.IntPtrOutput `pulumi:"timeoutInMinutes"`
	// Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
	UsePreviousParameters pulumi.BoolPtrOutput `pulumi:"usePreviousParameters"`
}

Provides a ROS Stack resource.

For information about ROS Stack and how to use it, see [What is Stack](https://www.alibabacloud.com/help/en/doc-detail/132086.htm).

> **NOTE:** Available in v1.106.0+.

## Example Usage

Basic Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ros"
"github.com/pulumi/pulumi/sdk/v2/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("%v%v%v%v%v%v%v%v%v", "    {\n", "    	\"Statement\": [{\n", "    		\"Action\": \"Update:Delete\",\n", "    		\"Resource\": \"*\",\n", "    		\"Effect\": \"Allow\",\n", "    		\"Principal\": \"*\"\n", "    	}]\n", "    }\n", "    \n")),
			TemplateBody: pulumi.String(fmt.Sprintf("%v%v%v%v", "    {\n", "    	\"ROSTemplateFormatVersion\": \"2015-09-01\"\n", "    }\n", "    \n")),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh

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

```

func GetStack

func GetStack(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StackState, opts ...pulumi.ResourceOption) (*Stack, error)

GetStack gets an existing Stack resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewStack

func NewStack(ctx *pulumi.Context,
	name string, args *StackArgs, opts ...pulumi.ResourceOption) (*Stack, error)

NewStack registers a new resource with the given unique name, arguments, and options.

func (*Stack) ElementType

func (*Stack) ElementType() reflect.Type

func (*Stack) ToStackOutput

func (i *Stack) ToStackOutput() StackOutput

func (*Stack) ToStackOutputWithContext

func (i *Stack) ToStackOutputWithContext(ctx context.Context) StackOutput

func (*Stack) ToStackPtrOutput added in v2.35.1

func (i *Stack) ToStackPtrOutput() StackPtrOutput

func (*Stack) ToStackPtrOutputWithContext added in v2.35.1

func (i *Stack) ToStackPtrOutputWithContext(ctx context.Context) StackPtrOutput

type StackArgs

type StackArgs struct {
	// Specifies whether to delete the stack after it is created.
	CreateOption pulumi.StringPtrInput
	// Specifies whether to enable deletion protection on the stack. Valid values: `Disabled`, `Enabled`. Default to: `Disabled`
	DeletionProtection pulumi.StringPtrInput
	// Specifies whether to disable rollback on stack creation failure. Default to: `false`.
	DisableRollback pulumi.BoolPtrInput
	// The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
	NotificationUrls pulumi.StringArrayInput
	// The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
	Parameters StackParameterArrayInput
	// 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.
	RamRoleName pulumi.StringPtrInput
	// 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.
	ReplacementOption pulumi.StringPtrInput
	// The retain all resources.
	RetainAllResources pulumi.BoolPtrInput
	// Specifies whether to retain the resources in the stack.
	RetainResources pulumi.StringArrayInput
	// 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.
	StackName pulumi.StringInput
	// The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
	StackPolicyBody pulumi.StringPtrInput
	// 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.
	StackPolicyDuringUpdateBody pulumi.StringPtrInput
	// 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.
	StackPolicyDuringUpdateUrl pulumi.StringPtrInput
	// 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.
	StackPolicyUrl pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
	// 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.
	TemplateBody pulumi.StringPtrInput
	// 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.
	TemplateUrl pulumi.StringPtrInput
	// The version of the template.
	TemplateVersion pulumi.StringPtrInput
	// The timeout period that is specified for the stack creation request. Default to: `60`.
	TimeoutInMinutes pulumi.IntPtrInput
	// Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
	UsePreviousParameters pulumi.BoolPtrInput
}

The set of arguments for constructing a Stack resource.

func (StackArgs) ElementType

func (StackArgs) ElementType() reflect.Type

type StackArray added in v2.35.1

type StackArray []StackInput

func (StackArray) ElementType added in v2.35.1

func (StackArray) ElementType() reflect.Type

func (StackArray) ToStackArrayOutput added in v2.35.1

func (i StackArray) ToStackArrayOutput() StackArrayOutput

func (StackArray) ToStackArrayOutputWithContext added in v2.35.1

func (i StackArray) ToStackArrayOutputWithContext(ctx context.Context) StackArrayOutput

type StackArrayInput added in v2.35.1

type StackArrayInput interface {
	pulumi.Input

	ToStackArrayOutput() StackArrayOutput
	ToStackArrayOutputWithContext(context.Context) StackArrayOutput
}

StackArrayInput is an input type that accepts StackArray and StackArrayOutput values. You can construct a concrete instance of `StackArrayInput` via:

StackArray{ StackArgs{...} }

type StackArrayOutput added in v2.35.1

type StackArrayOutput struct{ *pulumi.OutputState }

func (StackArrayOutput) ElementType added in v2.35.1

func (StackArrayOutput) ElementType() reflect.Type

func (StackArrayOutput) Index added in v2.35.1

func (StackArrayOutput) ToStackArrayOutput added in v2.35.1

func (o StackArrayOutput) ToStackArrayOutput() StackArrayOutput

func (StackArrayOutput) ToStackArrayOutputWithContext added in v2.35.1

func (o StackArrayOutput) ToStackArrayOutputWithContext(ctx context.Context) StackArrayOutput

type StackGroup

type StackGroup struct {
	pulumi.CustomResourceState

	// The list of target account IDs, in JSON format. A maximum of 20 accounts can be specified.
	AccountIds pulumi.StringPtrOutput `pulumi:"accountIds"`
	// The name of the RAM administrator role assumed by ROS. ROS assumes this role to perform operations on the stack corresponding to the stack instance in the stack group.
	AdministrationRoleName pulumi.StringOutput `pulumi:"administrationRoleName"`
	// The description of the stack group.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The name of the RAM execution role assumed by the administrator role. ROS assumes this role to perform operations on the stack corresponding to the stack instance in the stack group.
	ExecutionRoleName pulumi.StringOutput `pulumi:"executionRoleName"`
	// The description of the operation.
	OperationDescription pulumi.StringPtrOutput `pulumi:"operationDescription"`
	// The operation settings, in JSON format.
	OperationPreferences pulumi.StringPtrOutput `pulumi:"operationPreferences"`
	// The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
	Parameters StackGroupParameterArrayOutput `pulumi:"parameters"`
	// The list of target regions, in JSON format. A maximum of 20 accounts can be specified.
	RegionIds pulumi.StringPtrOutput `pulumi:"regionIds"`
	// The id of Stack Group.
	StackGroupId pulumi.StringOutput `pulumi:"stackGroupId"`
	// The name of the stack group. The name must be unique in a region.
	StackGroupName pulumi.StringOutput `pulumi:"stackGroupName"`
	// The status of Stack Group.
	Status pulumi.StringOutput `pulumi:"status"`
	// 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.
	TemplateBody pulumi.StringPtrOutput `pulumi:"templateBody"`
	// 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.
	TemplateUrl pulumi.StringPtrOutput `pulumi:"templateUrl"`
	// The version of the template.
	TemplateVersion pulumi.StringPtrOutput `pulumi:"templateVersion"`
}

Provides a ROS Stack Group resource.

For information about ROS Stack Group and how to use it, see [What is Stack Group](https://www.alibabacloud.com/help/en/doc-detail/151333.htm).

> **NOTE:** Available in v1.107.0+.

## Example Usage

Basic Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ros"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ros.NewStackGroup(ctx, "example", &ros.StackGroupArgs{
			StackGroupName: pulumi.String("example_value"),
			TemplateBody: pulumi.String(fmt.Sprintf("%v%v%v%v", "    {\n", "    	\"ROSTemplateFormatVersion\": \"2015-09-01\"\n", "    }\n", "    \n")),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh

$ pulumi import alicloud:ros/stackGroup:StackGroup example <stack_group_name>

```

func GetStackGroup

func GetStackGroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StackGroupState, opts ...pulumi.ResourceOption) (*StackGroup, error)

GetStackGroup gets an existing StackGroup resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewStackGroup

func NewStackGroup(ctx *pulumi.Context,
	name string, args *StackGroupArgs, opts ...pulumi.ResourceOption) (*StackGroup, error)

NewStackGroup registers a new resource with the given unique name, arguments, and options.

func (*StackGroup) ElementType

func (*StackGroup) ElementType() reflect.Type

func (*StackGroup) ToStackGroupOutput

func (i *StackGroup) ToStackGroupOutput() StackGroupOutput

func (*StackGroup) ToStackGroupOutputWithContext

func (i *StackGroup) ToStackGroupOutputWithContext(ctx context.Context) StackGroupOutput

func (*StackGroup) ToStackGroupPtrOutput added in v2.35.1

func (i *StackGroup) ToStackGroupPtrOutput() StackGroupPtrOutput

func (*StackGroup) ToStackGroupPtrOutputWithContext added in v2.35.1

func (i *StackGroup) ToStackGroupPtrOutputWithContext(ctx context.Context) StackGroupPtrOutput

type StackGroupArgs

type StackGroupArgs struct {
	// The list of target account IDs, in JSON format. A maximum of 20 accounts can be specified.
	AccountIds pulumi.StringPtrInput
	// The name of the RAM administrator role assumed by ROS. ROS assumes this role to perform operations on the stack corresponding to the stack instance in the stack group.
	AdministrationRoleName pulumi.StringPtrInput
	// The description of the stack group.
	Description pulumi.StringPtrInput
	// The name of the RAM execution role assumed by the administrator role. ROS assumes this role to perform operations on the stack corresponding to the stack instance in the stack group.
	ExecutionRoleName pulumi.StringPtrInput
	// The description of the operation.
	OperationDescription pulumi.StringPtrInput
	// The operation settings, in JSON format.
	OperationPreferences pulumi.StringPtrInput
	// The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
	Parameters StackGroupParameterArrayInput
	// The list of target regions, in JSON format. A maximum of 20 accounts can be specified.
	RegionIds pulumi.StringPtrInput
	// The name of the stack group. The name must be unique in a region.
	StackGroupName pulumi.StringInput
	// 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.
	TemplateBody pulumi.StringPtrInput
	// 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.
	TemplateUrl pulumi.StringPtrInput
	// The version of the template.
	TemplateVersion pulumi.StringPtrInput
}

The set of arguments for constructing a StackGroup resource.

func (StackGroupArgs) ElementType

func (StackGroupArgs) ElementType() reflect.Type

type StackGroupArray added in v2.35.1

type StackGroupArray []StackGroupInput

func (StackGroupArray) ElementType added in v2.35.1

func (StackGroupArray) ElementType() reflect.Type

func (StackGroupArray) ToStackGroupArrayOutput added in v2.35.1

func (i StackGroupArray) ToStackGroupArrayOutput() StackGroupArrayOutput

func (StackGroupArray) ToStackGroupArrayOutputWithContext added in v2.35.1

func (i StackGroupArray) ToStackGroupArrayOutputWithContext(ctx context.Context) StackGroupArrayOutput

type StackGroupArrayInput added in v2.35.1

type StackGroupArrayInput interface {
	pulumi.Input

	ToStackGroupArrayOutput() StackGroupArrayOutput
	ToStackGroupArrayOutputWithContext(context.Context) StackGroupArrayOutput
}

StackGroupArrayInput is an input type that accepts StackGroupArray and StackGroupArrayOutput values. You can construct a concrete instance of `StackGroupArrayInput` via:

StackGroupArray{ StackGroupArgs{...} }

type StackGroupArrayOutput added in v2.35.1

type StackGroupArrayOutput struct{ *pulumi.OutputState }

func (StackGroupArrayOutput) ElementType added in v2.35.1

func (StackGroupArrayOutput) ElementType() reflect.Type

func (StackGroupArrayOutput) Index added in v2.35.1

func (StackGroupArrayOutput) ToStackGroupArrayOutput added in v2.35.1

func (o StackGroupArrayOutput) ToStackGroupArrayOutput() StackGroupArrayOutput

func (StackGroupArrayOutput) ToStackGroupArrayOutputWithContext added in v2.35.1

func (o StackGroupArrayOutput) ToStackGroupArrayOutputWithContext(ctx context.Context) StackGroupArrayOutput

type StackGroupInput

type StackGroupInput interface {
	pulumi.Input

	ToStackGroupOutput() StackGroupOutput
	ToStackGroupOutputWithContext(ctx context.Context) StackGroupOutput
}

type StackGroupMap added in v2.35.1

type StackGroupMap map[string]StackGroupInput

func (StackGroupMap) ElementType added in v2.35.1

func (StackGroupMap) ElementType() reflect.Type

func (StackGroupMap) ToStackGroupMapOutput added in v2.35.1

func (i StackGroupMap) ToStackGroupMapOutput() StackGroupMapOutput

func (StackGroupMap) ToStackGroupMapOutputWithContext added in v2.35.1

func (i StackGroupMap) ToStackGroupMapOutputWithContext(ctx context.Context) StackGroupMapOutput

type StackGroupMapInput added in v2.35.1

type StackGroupMapInput interface {
	pulumi.Input

	ToStackGroupMapOutput() StackGroupMapOutput
	ToStackGroupMapOutputWithContext(context.Context) StackGroupMapOutput
}

StackGroupMapInput is an input type that accepts StackGroupMap and StackGroupMapOutput values. You can construct a concrete instance of `StackGroupMapInput` via:

StackGroupMap{ "key": StackGroupArgs{...} }

type StackGroupMapOutput added in v2.35.1

type StackGroupMapOutput struct{ *pulumi.OutputState }

func (StackGroupMapOutput) ElementType added in v2.35.1

func (StackGroupMapOutput) ElementType() reflect.Type

func (StackGroupMapOutput) MapIndex added in v2.35.1

func (StackGroupMapOutput) ToStackGroupMapOutput added in v2.35.1

func (o StackGroupMapOutput) ToStackGroupMapOutput() StackGroupMapOutput

func (StackGroupMapOutput) ToStackGroupMapOutputWithContext added in v2.35.1

func (o StackGroupMapOutput) ToStackGroupMapOutputWithContext(ctx context.Context) StackGroupMapOutput

type StackGroupOutput

type StackGroupOutput struct {
	*pulumi.OutputState
}

func (StackGroupOutput) ElementType

func (StackGroupOutput) ElementType() reflect.Type

func (StackGroupOutput) ToStackGroupOutput

func (o StackGroupOutput) ToStackGroupOutput() StackGroupOutput

func (StackGroupOutput) ToStackGroupOutputWithContext

func (o StackGroupOutput) ToStackGroupOutputWithContext(ctx context.Context) StackGroupOutput

func (StackGroupOutput) ToStackGroupPtrOutput added in v2.35.1

func (o StackGroupOutput) ToStackGroupPtrOutput() StackGroupPtrOutput

func (StackGroupOutput) ToStackGroupPtrOutputWithContext added in v2.35.1

func (o StackGroupOutput) ToStackGroupPtrOutputWithContext(ctx context.Context) StackGroupPtrOutput

type StackGroupParameter

type StackGroupParameter struct {
	// The parameter key.
	ParameterKey *string `pulumi:"parameterKey"`
	// The parameter value.
	ParameterValue *string `pulumi:"parameterValue"`
}

type StackGroupParameterArgs

type StackGroupParameterArgs struct {
	// The parameter key.
	ParameterKey pulumi.StringPtrInput `pulumi:"parameterKey"`
	// The parameter value.
	ParameterValue pulumi.StringPtrInput `pulumi:"parameterValue"`
}

func (StackGroupParameterArgs) ElementType

func (StackGroupParameterArgs) ElementType() reflect.Type

func (StackGroupParameterArgs) ToStackGroupParameterOutput

func (i StackGroupParameterArgs) ToStackGroupParameterOutput() StackGroupParameterOutput

func (StackGroupParameterArgs) ToStackGroupParameterOutputWithContext

func (i StackGroupParameterArgs) ToStackGroupParameterOutputWithContext(ctx context.Context) StackGroupParameterOutput

type StackGroupParameterArray

type StackGroupParameterArray []StackGroupParameterInput

func (StackGroupParameterArray) ElementType

func (StackGroupParameterArray) ElementType() reflect.Type

func (StackGroupParameterArray) ToStackGroupParameterArrayOutput

func (i StackGroupParameterArray) ToStackGroupParameterArrayOutput() StackGroupParameterArrayOutput

func (StackGroupParameterArray) ToStackGroupParameterArrayOutputWithContext

func (i StackGroupParameterArray) ToStackGroupParameterArrayOutputWithContext(ctx context.Context) StackGroupParameterArrayOutput

type StackGroupParameterArrayInput

type StackGroupParameterArrayInput interface {
	pulumi.Input

	ToStackGroupParameterArrayOutput() StackGroupParameterArrayOutput
	ToStackGroupParameterArrayOutputWithContext(context.Context) StackGroupParameterArrayOutput
}

StackGroupParameterArrayInput is an input type that accepts StackGroupParameterArray and StackGroupParameterArrayOutput values. You can construct a concrete instance of `StackGroupParameterArrayInput` via:

StackGroupParameterArray{ StackGroupParameterArgs{...} }

type StackGroupParameterArrayOutput

type StackGroupParameterArrayOutput struct{ *pulumi.OutputState }

func (StackGroupParameterArrayOutput) ElementType

func (StackGroupParameterArrayOutput) Index

func (StackGroupParameterArrayOutput) ToStackGroupParameterArrayOutput

func (o StackGroupParameterArrayOutput) ToStackGroupParameterArrayOutput() StackGroupParameterArrayOutput

func (StackGroupParameterArrayOutput) ToStackGroupParameterArrayOutputWithContext

func (o StackGroupParameterArrayOutput) ToStackGroupParameterArrayOutputWithContext(ctx context.Context) StackGroupParameterArrayOutput

type StackGroupParameterInput

type StackGroupParameterInput interface {
	pulumi.Input

	ToStackGroupParameterOutput() StackGroupParameterOutput
	ToStackGroupParameterOutputWithContext(context.Context) StackGroupParameterOutput
}

StackGroupParameterInput is an input type that accepts StackGroupParameterArgs and StackGroupParameterOutput values. You can construct a concrete instance of `StackGroupParameterInput` via:

StackGroupParameterArgs{...}

type StackGroupParameterOutput

type StackGroupParameterOutput struct{ *pulumi.OutputState }

func (StackGroupParameterOutput) ElementType

func (StackGroupParameterOutput) ElementType() reflect.Type

func (StackGroupParameterOutput) ParameterKey

The parameter key.

func (StackGroupParameterOutput) ParameterValue

The parameter value.

func (StackGroupParameterOutput) ToStackGroupParameterOutput

func (o StackGroupParameterOutput) ToStackGroupParameterOutput() StackGroupParameterOutput

func (StackGroupParameterOutput) ToStackGroupParameterOutputWithContext

func (o StackGroupParameterOutput) ToStackGroupParameterOutputWithContext(ctx context.Context) StackGroupParameterOutput

type StackGroupPtrInput added in v2.35.1

type StackGroupPtrInput interface {
	pulumi.Input

	ToStackGroupPtrOutput() StackGroupPtrOutput
	ToStackGroupPtrOutputWithContext(ctx context.Context) StackGroupPtrOutput
}

type StackGroupPtrOutput added in v2.35.1

type StackGroupPtrOutput struct {
	*pulumi.OutputState
}

func (StackGroupPtrOutput) ElementType added in v2.35.1

func (StackGroupPtrOutput) ElementType() reflect.Type

func (StackGroupPtrOutput) ToStackGroupPtrOutput added in v2.35.1

func (o StackGroupPtrOutput) ToStackGroupPtrOutput() StackGroupPtrOutput

func (StackGroupPtrOutput) ToStackGroupPtrOutputWithContext added in v2.35.1

func (o StackGroupPtrOutput) ToStackGroupPtrOutputWithContext(ctx context.Context) StackGroupPtrOutput

type StackGroupState

type StackGroupState struct {
	// The list of target account IDs, in JSON format. A maximum of 20 accounts can be specified.
	AccountIds pulumi.StringPtrInput
	// The name of the RAM administrator role assumed by ROS. ROS assumes this role to perform operations on the stack corresponding to the stack instance in the stack group.
	AdministrationRoleName pulumi.StringPtrInput
	// The description of the stack group.
	Description pulumi.StringPtrInput
	// The name of the RAM execution role assumed by the administrator role. ROS assumes this role to perform operations on the stack corresponding to the stack instance in the stack group.
	ExecutionRoleName pulumi.StringPtrInput
	// The description of the operation.
	OperationDescription pulumi.StringPtrInput
	// The operation settings, in JSON format.
	OperationPreferences pulumi.StringPtrInput
	// The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
	Parameters StackGroupParameterArrayInput
	// The list of target regions, in JSON format. A maximum of 20 accounts can be specified.
	RegionIds pulumi.StringPtrInput
	// The id of Stack Group.
	StackGroupId pulumi.StringPtrInput
	// The name of the stack group. The name must be unique in a region.
	StackGroupName pulumi.StringPtrInput
	// The status of Stack Group.
	Status pulumi.StringPtrInput
	// 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.
	TemplateBody pulumi.StringPtrInput
	// 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.
	TemplateUrl pulumi.StringPtrInput
	// The version of the template.
	TemplateVersion pulumi.StringPtrInput
}

func (StackGroupState) ElementType

func (StackGroupState) ElementType() reflect.Type

type StackInput

type StackInput interface {
	pulumi.Input

	ToStackOutput() StackOutput
	ToStackOutputWithContext(ctx context.Context) StackOutput
}

type StackMap added in v2.35.1

type StackMap map[string]StackInput

func (StackMap) ElementType added in v2.35.1

func (StackMap) ElementType() reflect.Type

func (StackMap) ToStackMapOutput added in v2.35.1

func (i StackMap) ToStackMapOutput() StackMapOutput

func (StackMap) ToStackMapOutputWithContext added in v2.35.1

func (i StackMap) ToStackMapOutputWithContext(ctx context.Context) StackMapOutput

type StackMapInput added in v2.35.1

type StackMapInput interface {
	pulumi.Input

	ToStackMapOutput() StackMapOutput
	ToStackMapOutputWithContext(context.Context) StackMapOutput
}

StackMapInput is an input type that accepts StackMap and StackMapOutput values. You can construct a concrete instance of `StackMapInput` via:

StackMap{ "key": StackArgs{...} }

type StackMapOutput added in v2.35.1

type StackMapOutput struct{ *pulumi.OutputState }

func (StackMapOutput) ElementType added in v2.35.1

func (StackMapOutput) ElementType() reflect.Type

func (StackMapOutput) MapIndex added in v2.35.1

func (StackMapOutput) ToStackMapOutput added in v2.35.1

func (o StackMapOutput) ToStackMapOutput() StackMapOutput

func (StackMapOutput) ToStackMapOutputWithContext added in v2.35.1

func (o StackMapOutput) ToStackMapOutputWithContext(ctx context.Context) StackMapOutput

type StackOutput

type StackOutput struct {
	*pulumi.OutputState
}

func (StackOutput) ElementType

func (StackOutput) ElementType() reflect.Type

func (StackOutput) ToStackOutput

func (o StackOutput) ToStackOutput() StackOutput

func (StackOutput) ToStackOutputWithContext

func (o StackOutput) ToStackOutputWithContext(ctx context.Context) StackOutput

func (StackOutput) ToStackPtrOutput added in v2.35.1

func (o StackOutput) ToStackPtrOutput() StackPtrOutput

func (StackOutput) ToStackPtrOutputWithContext added in v2.35.1

func (o StackOutput) ToStackPtrOutputWithContext(ctx context.Context) StackPtrOutput

type StackParameter

type StackParameter struct {
	// The parameter key.
	ParameterKey *string `pulumi:"parameterKey"`
	// The parameter value.
	ParameterValue string `pulumi:"parameterValue"`
}

type StackParameterArgs

type StackParameterArgs struct {
	// The parameter key.
	ParameterKey pulumi.StringPtrInput `pulumi:"parameterKey"`
	// The parameter value.
	ParameterValue pulumi.StringInput `pulumi:"parameterValue"`
}

func (StackParameterArgs) ElementType

func (StackParameterArgs) ElementType() reflect.Type

func (StackParameterArgs) ToStackParameterOutput

func (i StackParameterArgs) ToStackParameterOutput() StackParameterOutput

func (StackParameterArgs) ToStackParameterOutputWithContext

func (i StackParameterArgs) ToStackParameterOutputWithContext(ctx context.Context) StackParameterOutput

type StackParameterArray

type StackParameterArray []StackParameterInput

func (StackParameterArray) ElementType

func (StackParameterArray) ElementType() reflect.Type

func (StackParameterArray) ToStackParameterArrayOutput

func (i StackParameterArray) ToStackParameterArrayOutput() StackParameterArrayOutput

func (StackParameterArray) ToStackParameterArrayOutputWithContext

func (i StackParameterArray) ToStackParameterArrayOutputWithContext(ctx context.Context) StackParameterArrayOutput

type StackParameterArrayInput

type StackParameterArrayInput interface {
	pulumi.Input

	ToStackParameterArrayOutput() StackParameterArrayOutput
	ToStackParameterArrayOutputWithContext(context.Context) StackParameterArrayOutput
}

StackParameterArrayInput is an input type that accepts StackParameterArray and StackParameterArrayOutput values. You can construct a concrete instance of `StackParameterArrayInput` via:

StackParameterArray{ StackParameterArgs{...} }

type StackParameterArrayOutput

type StackParameterArrayOutput struct{ *pulumi.OutputState }

func (StackParameterArrayOutput) ElementType

func (StackParameterArrayOutput) ElementType() reflect.Type

func (StackParameterArrayOutput) Index

func (StackParameterArrayOutput) ToStackParameterArrayOutput

func (o StackParameterArrayOutput) ToStackParameterArrayOutput() StackParameterArrayOutput

func (StackParameterArrayOutput) ToStackParameterArrayOutputWithContext

func (o StackParameterArrayOutput) ToStackParameterArrayOutputWithContext(ctx context.Context) StackParameterArrayOutput

type StackParameterInput

type StackParameterInput interface {
	pulumi.Input

	ToStackParameterOutput() StackParameterOutput
	ToStackParameterOutputWithContext(context.Context) StackParameterOutput
}

StackParameterInput is an input type that accepts StackParameterArgs and StackParameterOutput values. You can construct a concrete instance of `StackParameterInput` via:

StackParameterArgs{...}

type StackParameterOutput

type StackParameterOutput struct{ *pulumi.OutputState }

func (StackParameterOutput) ElementType

func (StackParameterOutput) ElementType() reflect.Type

func (StackParameterOutput) ParameterKey

func (o StackParameterOutput) ParameterKey() pulumi.StringPtrOutput

The parameter key.

func (StackParameterOutput) ParameterValue

func (o StackParameterOutput) ParameterValue() pulumi.StringOutput

The parameter value.

func (StackParameterOutput) ToStackParameterOutput

func (o StackParameterOutput) ToStackParameterOutput() StackParameterOutput

func (StackParameterOutput) ToStackParameterOutputWithContext

func (o StackParameterOutput) ToStackParameterOutputWithContext(ctx context.Context) StackParameterOutput

type StackPtrInput added in v2.35.1

type StackPtrInput interface {
	pulumi.Input

	ToStackPtrOutput() StackPtrOutput
	ToStackPtrOutputWithContext(ctx context.Context) StackPtrOutput
}

type StackPtrOutput added in v2.35.1

type StackPtrOutput struct {
	*pulumi.OutputState
}

func (StackPtrOutput) ElementType added in v2.35.1

func (StackPtrOutput) ElementType() reflect.Type

func (StackPtrOutput) ToStackPtrOutput added in v2.35.1

func (o StackPtrOutput) ToStackPtrOutput() StackPtrOutput

func (StackPtrOutput) ToStackPtrOutputWithContext added in v2.35.1

func (o StackPtrOutput) ToStackPtrOutputWithContext(ctx context.Context) StackPtrOutput

type StackState

type StackState struct {
	// Specifies whether to delete the stack after it is created.
	CreateOption pulumi.StringPtrInput
	// Specifies whether to enable deletion protection on the stack. Valid values: `Disabled`, `Enabled`. Default to: `Disabled`
	DeletionProtection pulumi.StringPtrInput
	// Specifies whether to disable rollback on stack creation failure. Default to: `false`.
	DisableRollback pulumi.BoolPtrInput
	// The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
	NotificationUrls pulumi.StringArrayInput
	// The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
	Parameters StackParameterArrayInput
	// 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.
	RamRoleName pulumi.StringPtrInput
	// 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.
	ReplacementOption pulumi.StringPtrInput
	// The retain all resources.
	RetainAllResources pulumi.BoolPtrInput
	// Specifies whether to retain the resources in the stack.
	RetainResources pulumi.StringArrayInput
	// 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.
	StackName pulumi.StringPtrInput
	// The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
	StackPolicyBody pulumi.StringPtrInput
	// 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.
	StackPolicyDuringUpdateBody pulumi.StringPtrInput
	// 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.
	StackPolicyDuringUpdateUrl pulumi.StringPtrInput
	// 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.
	StackPolicyUrl pulumi.StringPtrInput
	// The status of Stack.
	Status pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
	// 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.
	TemplateBody pulumi.StringPtrInput
	// 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.
	TemplateUrl pulumi.StringPtrInput
	// The version of the template.
	TemplateVersion pulumi.StringPtrInput
	// The timeout period that is specified for the stack creation request. Default to: `60`.
	TimeoutInMinutes pulumi.IntPtrInput
	// Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
	UsePreviousParameters pulumi.BoolPtrInput
}

func (StackState) ElementType

func (StackState) ElementType() reflect.Type

type Template

type Template struct {
	pulumi.CustomResourceState

	// The description of the template. The description can be up to 256 characters in length.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapOutput `pulumi:"tags"`
	// 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.  You must specify one of the TemplateBody and TemplateURL parameters, but you cannot specify both of them.
	TemplateBody pulumi.StringPtrOutput `pulumi:"templateBody"`
	// The name of the template. 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.
	TemplateName pulumi.StringOutput `pulumi:"templateName"`
	// The template url.
	TemplateUrl pulumi.StringPtrOutput `pulumi:"templateUrl"`
}

Provides a ROS Template resource.

For information about ROS Template and how to use it, see [What is Template](https://www.alibabacloud.com/help/en/doc-detail/141851.htm).

> **NOTE:** Available in v1.108.0+.

## Example Usage

Basic Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ros"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ros.NewTemplate(ctx, "example", &ros.TemplateArgs{
			TemplateBody: pulumi.String(fmt.Sprintf("%v%v%v%v", "    {\n", "    	\"ROSTemplateFormatVersion\": \"2015-09-01\"\n", "    }\n", "    \n")),
			TemplateName: pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh

$ pulumi import alicloud:ros/template:Template example <template_id>

```

func GetTemplate

func GetTemplate(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TemplateState, opts ...pulumi.ResourceOption) (*Template, error)

GetTemplate gets an existing Template resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTemplate

func NewTemplate(ctx *pulumi.Context,
	name string, args *TemplateArgs, opts ...pulumi.ResourceOption) (*Template, error)

NewTemplate registers a new resource with the given unique name, arguments, and options.

func (*Template) ElementType

func (*Template) ElementType() reflect.Type

func (*Template) ToTemplateOutput

func (i *Template) ToTemplateOutput() TemplateOutput

func (*Template) ToTemplateOutputWithContext

func (i *Template) ToTemplateOutputWithContext(ctx context.Context) TemplateOutput

func (*Template) ToTemplatePtrOutput added in v2.35.1

func (i *Template) ToTemplatePtrOutput() TemplatePtrOutput

func (*Template) ToTemplatePtrOutputWithContext added in v2.35.1

func (i *Template) ToTemplatePtrOutputWithContext(ctx context.Context) TemplatePtrOutput

type TemplateArgs

type TemplateArgs struct {
	// The description of the template. The description can be up to 256 characters in length.
	Description pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
	// 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.  You must specify one of the TemplateBody and TemplateURL parameters, but you cannot specify both of them.
	TemplateBody pulumi.StringPtrInput
	// The name of the template. 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.
	TemplateName pulumi.StringInput
	// The template url.
	TemplateUrl pulumi.StringPtrInput
}

The set of arguments for constructing a Template resource.

func (TemplateArgs) ElementType

func (TemplateArgs) ElementType() reflect.Type

type TemplateArray added in v2.35.1

type TemplateArray []TemplateInput

func (TemplateArray) ElementType added in v2.35.1

func (TemplateArray) ElementType() reflect.Type

func (TemplateArray) ToTemplateArrayOutput added in v2.35.1

func (i TemplateArray) ToTemplateArrayOutput() TemplateArrayOutput

func (TemplateArray) ToTemplateArrayOutputWithContext added in v2.35.1

func (i TemplateArray) ToTemplateArrayOutputWithContext(ctx context.Context) TemplateArrayOutput

type TemplateArrayInput added in v2.35.1

type TemplateArrayInput interface {
	pulumi.Input

	ToTemplateArrayOutput() TemplateArrayOutput
	ToTemplateArrayOutputWithContext(context.Context) TemplateArrayOutput
}

TemplateArrayInput is an input type that accepts TemplateArray and TemplateArrayOutput values. You can construct a concrete instance of `TemplateArrayInput` via:

TemplateArray{ TemplateArgs{...} }

type TemplateArrayOutput added in v2.35.1

type TemplateArrayOutput struct{ *pulumi.OutputState }

func (TemplateArrayOutput) ElementType added in v2.35.1

func (TemplateArrayOutput) ElementType() reflect.Type

func (TemplateArrayOutput) Index added in v2.35.1

func (TemplateArrayOutput) ToTemplateArrayOutput added in v2.35.1

func (o TemplateArrayOutput) ToTemplateArrayOutput() TemplateArrayOutput

func (TemplateArrayOutput) ToTemplateArrayOutputWithContext added in v2.35.1

func (o TemplateArrayOutput) ToTemplateArrayOutputWithContext(ctx context.Context) TemplateArrayOutput

type TemplateInput

type TemplateInput interface {
	pulumi.Input

	ToTemplateOutput() TemplateOutput
	ToTemplateOutputWithContext(ctx context.Context) TemplateOutput
}

type TemplateMap added in v2.35.1

type TemplateMap map[string]TemplateInput

func (TemplateMap) ElementType added in v2.35.1

func (TemplateMap) ElementType() reflect.Type

func (TemplateMap) ToTemplateMapOutput added in v2.35.1

func (i TemplateMap) ToTemplateMapOutput() TemplateMapOutput

func (TemplateMap) ToTemplateMapOutputWithContext added in v2.35.1

func (i TemplateMap) ToTemplateMapOutputWithContext(ctx context.Context) TemplateMapOutput

type TemplateMapInput added in v2.35.1

type TemplateMapInput interface {
	pulumi.Input

	ToTemplateMapOutput() TemplateMapOutput
	ToTemplateMapOutputWithContext(context.Context) TemplateMapOutput
}

TemplateMapInput is an input type that accepts TemplateMap and TemplateMapOutput values. You can construct a concrete instance of `TemplateMapInput` via:

TemplateMap{ "key": TemplateArgs{...} }

type TemplateMapOutput added in v2.35.1

type TemplateMapOutput struct{ *pulumi.OutputState }

func (TemplateMapOutput) ElementType added in v2.35.1

func (TemplateMapOutput) ElementType() reflect.Type

func (TemplateMapOutput) MapIndex added in v2.35.1

func (TemplateMapOutput) ToTemplateMapOutput added in v2.35.1

func (o TemplateMapOutput) ToTemplateMapOutput() TemplateMapOutput

func (TemplateMapOutput) ToTemplateMapOutputWithContext added in v2.35.1

func (o TemplateMapOutput) ToTemplateMapOutputWithContext(ctx context.Context) TemplateMapOutput

type TemplateOutput

type TemplateOutput struct {
	*pulumi.OutputState
}

func (TemplateOutput) ElementType

func (TemplateOutput) ElementType() reflect.Type

func (TemplateOutput) ToTemplateOutput

func (o TemplateOutput) ToTemplateOutput() TemplateOutput

func (TemplateOutput) ToTemplateOutputWithContext

func (o TemplateOutput) ToTemplateOutputWithContext(ctx context.Context) TemplateOutput

func (TemplateOutput) ToTemplatePtrOutput added in v2.35.1

func (o TemplateOutput) ToTemplatePtrOutput() TemplatePtrOutput

func (TemplateOutput) ToTemplatePtrOutputWithContext added in v2.35.1

func (o TemplateOutput) ToTemplatePtrOutputWithContext(ctx context.Context) TemplatePtrOutput

type TemplatePtrInput added in v2.35.1

type TemplatePtrInput interface {
	pulumi.Input

	ToTemplatePtrOutput() TemplatePtrOutput
	ToTemplatePtrOutputWithContext(ctx context.Context) TemplatePtrOutput
}

type TemplatePtrOutput added in v2.35.1

type TemplatePtrOutput struct {
	*pulumi.OutputState
}

func (TemplatePtrOutput) ElementType added in v2.35.1

func (TemplatePtrOutput) ElementType() reflect.Type

func (TemplatePtrOutput) ToTemplatePtrOutput added in v2.35.1

func (o TemplatePtrOutput) ToTemplatePtrOutput() TemplatePtrOutput

func (TemplatePtrOutput) ToTemplatePtrOutputWithContext added in v2.35.1

func (o TemplatePtrOutput) ToTemplatePtrOutputWithContext(ctx context.Context) TemplatePtrOutput

type TemplateState

type TemplateState struct {
	// The description of the template. The description can be up to 256 characters in length.
	Description pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
	// 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.  You must specify one of the TemplateBody and TemplateURL parameters, but you cannot specify both of them.
	TemplateBody pulumi.StringPtrInput
	// The name of the template. 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.
	TemplateName pulumi.StringPtrInput
	// The template url.
	TemplateUrl pulumi.StringPtrInput
}

func (TemplateState) ElementType

func (TemplateState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL