ChangeSetArgs

data class ChangeSetArgs(val changeSetName: Output<String>? = null, val changeSetType: Output<String>? = null, val description: Output<String>? = null, val disableRollback: Output<Boolean>? = null, val notificationUrls: Output<List<String>>? = null, val parameters: Output<List<ChangeSetParameterArgs>>? = null, val ramRoleName: Output<String>? = null, val replacementOption: Output<String>? = null, val stackId: Output<String>? = null, val stackName: Output<String>? = null, val stackPolicyBody: Output<String>? = null, val stackPolicyDuringUpdateBody: Output<String>? = null, val stackPolicyDuringUpdateUrl: Output<String>? = null, val stackPolicyUrl: Output<String>? = null, val templateBody: Output<String>? = null, val templateUrl: Output<String>? = null, val timeoutInMinutes: Output<Int>? = null, val usePreviousParameters: Output<Boolean>? = null) : ConvertibleToJava<ChangeSetArgs>

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

NOTE: Available since v1.105.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
const _default = new random.index.Integer("default", {
min: 10000,
max: 99999,
});
const example = new alicloud.ros.ChangeSet("example", {
changeSetName: "example_value",
stackName: `tf-example-${_default.result}`,
changeSetType: "CREATE",
description: "Test From Terraform",
templateBody: "{\"ROSTemplateFormatVersion\":\"2015-09-01\"}",
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
default = random.index.Integer("default",
min=10000,
max=99999)
example = alicloud.ros.ChangeSet("example",
change_set_name="example_value",
stack_name=f"tf-example-{default['result']}",
change_set_type="CREATE",
description="Test From Terraform",
template_body="{\"ROSTemplateFormatVersion\":\"2015-09-01\"}")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var @default = new Random.Index.Integer("default", new()
{
Min = 10000,
Max = 99999,
});
var example = new AliCloud.Ros.ChangeSet("example", new()
{
ChangeSetName = "example_value",
StackName = $"tf-example-{@default.Result}",
ChangeSetType = "CREATE",
Description = "Test From Terraform",
TemplateBody = "{\"ROSTemplateFormatVersion\":\"2015-09-01\"}",
});
});
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ros"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
Min: 10000,
Max: 99999,
})
if err != nil {
return err
}
_, err = ros.NewChangeSet(ctx, "example", &ros.ChangeSetArgs{
ChangeSetName: pulumi.String("example_value"),
StackName: pulumi.Sprintf("tf-example-%v", _default.Result),
ChangeSetType: pulumi.String("CREATE"),
Description: pulumi.String("Test From Terraform"),
TemplateBody: pulumi.String("{\"ROSTemplateFormatVersion\":\"2015-09-01\"}"),
})
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.random.integer;
import com.pulumi.random.integerArgs;
import com.pulumi.alicloud.ros.ChangeSet;
import com.pulumi.alicloud.ros.ChangeSetArgs;
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 default_ = new Integer("default", IntegerArgs.builder()
.min(10000)
.max(99999)
.build());
var example = new ChangeSet("example", ChangeSetArgs.builder()
.changeSetName("example_value")
.stackName(String.format("tf-example-%s", default_.result()))
.changeSetType("CREATE")
.description("Test From Terraform")
.templateBody("{\"ROSTemplateFormatVersion\":\"2015-09-01\"}")
.build());
}
}
resources:
default:
type: random:integer
properties:
min: 10000
max: 99999
example:
type: alicloud:ros:ChangeSet
properties:
changeSetName: example_value
stackName: tf-example-${default.result}
changeSetType: CREATE
description: Test From Terraform
templateBody: '{"ROSTemplateFormatVersion":"2015-09-01"}'

Import

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

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

Constructors

Link copied to clipboard
constructor(changeSetName: Output<String>? = null, changeSetType: Output<String>? = null, description: Output<String>? = null, disableRollback: Output<Boolean>? = null, notificationUrls: Output<List<String>>? = null, parameters: Output<List<ChangeSetParameterArgs>>? = null, ramRoleName: Output<String>? = null, replacementOption: Output<String>? = null, stackId: Output<String>? = null, stackName: Output<String>? = null, stackPolicyBody: Output<String>? = null, stackPolicyDuringUpdateBody: Output<String>? = null, stackPolicyDuringUpdateUrl: Output<String>? = null, stackPolicyUrl: Output<String>? = null, templateBody: Output<String>? = null, templateUrl: Output<String>? = null, timeoutInMinutes: Output<Int>? = null, usePreviousParameters: Output<Boolean>? = null)

Properties

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

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.

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

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.

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

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

Link copied to clipboard
val disableRollback: Output<Boolean>? = null

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.

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

The notification urls.

Link copied to clipboard
val parameters: Output<List<ChangeSetParameterArgs>>? = null

Parameters.

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

The ram role name.

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

The replacement option.

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

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.

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

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.

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

The stack policy body.

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

The stack policy during update body.

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

The stack policy during update url.

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

The stack policy url.

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

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

The template url.

Link copied to clipboard
val timeoutInMinutes: Output<Int>? = null

Timeout In Minutes.

Link copied to clipboard
val usePreviousParameters: Output<Boolean>? = null

The use previous parameters.

Functions

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