StackGroupArgs

data class StackGroupArgs(val accountIds: Output<String>? = null, val administrationRoleName: Output<String>? = null, val description: Output<String>? = null, val executionRoleName: Output<String>? = null, val operationDescription: Output<String>? = null, val operationPreferences: Output<String>? = null, val parameters: Output<List<StackGroupParameterArgs>>? = null, val regionIds: Output<String>? = null, val stackGroupName: Output<String>? = null, val templateBody: Output<String>? = null, val templateUrl: Output<String>? = null, val templateVersion: Output<String>? = null) : ConvertibleToJava<StackGroupArgs>

Provides a ROS Stack Group resource. For information about ROS Stack Group and how to use it, see What is Stack Group.

NOTE: Available in v1.107.0+.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.ros.StackGroup("example", {
stackGroupName: "example_value",
templateBody: ` {
\x09"ROSTemplateFormatVersion": "2015-09-01"
}
`,
});
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.ros.StackGroup("example",
stack_group_name="example_value",
template_body=""" {
\x09"ROSTemplateFormatVersion": "2015-09-01"
}
""")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.Ros.StackGroup("example", new()
{
StackGroupName = "example_value",
TemplateBody = @" {
""ROSTemplateFormatVersion"": ""2015-09-01""
}
",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ros"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ros.NewStackGroup(ctx, "example", &ros.StackGroupArgs{
StackGroupName: pulumi.String("example_value"),
TemplateBody: pulumi.String(" {\n \"ROSTemplateFormatVersion\": \"2015-09-01\"\n }\n"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ros.StackGroup;
import com.pulumi.alicloud.ros.StackGroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new StackGroup("example", StackGroupArgs.builder()
.stackGroupName("example_value")
.templateBody("""
{
"ROSTemplateFormatVersion": "2015-09-01"
}
""")
.build());
}
}
resources:
example:
type: alicloud:ros:StackGroup
properties:
stackGroupName: example_value
templateBody: |2
{
"ROSTemplateFormatVersion": "2015-09-01"
}

Import

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

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

Constructors

Link copied to clipboard
constructor(accountIds: Output<String>? = null, administrationRoleName: Output<String>? = null, description: Output<String>? = null, executionRoleName: Output<String>? = null, operationDescription: Output<String>? = null, operationPreferences: Output<String>? = null, parameters: Output<List<StackGroupParameterArgs>>? = null, regionIds: Output<String>? = null, stackGroupName: Output<String>? = null, templateBody: Output<String>? = null, templateUrl: Output<String>? = null, templateVersion: Output<String>? = null)

Properties

Link copied to clipboard
val accountIds: Output<String>? = null

The list of target account IDs, in JSON format. A maximum of 20 accounts can be specified.

Link copied to clipboard
val administrationRoleName: Output<String>? = null

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.

Link copied to clipboard
val description: Output<String>? = null

The description of the stack group.

Link copied to clipboard
val executionRoleName: Output<String>? = null

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.

Link copied to clipboard
val operationDescription: Output<String>? = null

The description of the operation.

Link copied to clipboard
val operationPreferences: Output<String>? = null

The operation settings, in JSON format.

Link copied to clipboard

The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.

Link copied to clipboard
val regionIds: Output<String>? = null

The list of target regions, in JSON format. A maximum of 20 accounts can be specified.

Link copied to clipboard
val stackGroupName: Output<String>? = null

The name of the stack group. The name must be unique in a region.

Link copied to clipboard
val templateBody: Output<String>? = null

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.

Link copied to clipboard
val templateUrl: Output<String>? = null

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.

Link copied to clipboard
val templateVersion: Output<String>? = null

The version of the template.

Functions

Link copied to clipboard
open override fun toJava(): StackGroupArgs