ChangeSet

class ChangeSet : KotlinCustomResource

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

NOTE: Available in 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>

Properties

Link copied to clipboard
val changeSetName: Output<String>

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

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

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

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 id: Output<String>
Link copied to clipboard

The notification urls.

Link copied to clipboard

Parameters.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val ramRoleName: Output<String>?

The ram role name.

Link copied to clipboard

The replacement option.

Link copied to clipboard
val stackId: Output<String>

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

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

The stack policy body.

Link copied to clipboard

The stack policy during update body.

Link copied to clipboard

The stack policy during update url.

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

The stack policy url.

Link copied to clipboard
val status: Output<String>

The status of the change set.

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

The structure that contains the template body. The template body must be 1 to 524,288 bytes in length. If the length of the template body is longer than required, we recommend that you add parameters to the HTTP POST request body to avoid request failures due to excessive length of URLs. You can specify one of TemplateBody or TemplateURL parameters, but you cannot specify both of them.

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

The template url.

Link copied to clipboard
val timeoutInMinutes: Output<Int>

Timeout In Minutes.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

The use previous parameters.