alicloud.ros.Stack
Explore with Pulumi AI
Provides a ROS Stack resource.
For information about ROS Stack and how to use it, see What is Stack.
NOTE: Available in v1.106.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.ros.Stack("example", {
stackName: "tf-testaccstack",
templateBody: ` {
\x09"ROSTemplateFormatVersion": "2015-09-01"
}
`,
stackPolicyBody: ` {
\x09"Statement": [{
\x09\x09"Action": "Update:Delete",
\x09\x09"Resource": "*",
\x09\x09"Effect": "Allow",
\x09\x09"Principal": "*"
\x09}]
}
`,
});
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.ros.Stack("example",
stack_name="tf-testaccstack",
template_body=""" {
\x09"ROSTemplateFormatVersion": "2015-09-01"
}
""",
stack_policy_body=""" {
\x09"Statement": [{
\x09\x09"Action": "Update:Delete",
\x09\x09"Resource": "*",
\x09\x09"Effect": "Allow",
\x09\x09"Principal": "*"
\x09}]
}
""")
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.NewStack(ctx, "example", &ros.StackArgs{
StackName: pulumi.String("tf-testaccstack"),
TemplateBody: pulumi.String(" {\n \"ROSTemplateFormatVersion\": \"2015-09-01\"\n }\n"),
StackPolicyBody: pulumi.String(` {
"Statement": [{
"Action": "Update:Delete",
"Resource": "*",
"Effect": "Allow",
"Principal": "*"
}]
}
`),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.Ros.Stack("example", new()
{
StackName = "tf-testaccstack",
TemplateBody = @" {
""ROSTemplateFormatVersion"": ""2015-09-01""
}
",
StackPolicyBody = @" {
""Statement"": [{
""Action"": ""Update:Delete"",
""Resource"": ""*"",
""Effect"": ""Allow"",
""Principal"": ""*""
}]
}
",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ros.Stack;
import com.pulumi.alicloud.ros.StackArgs;
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 Stack("example", StackArgs.builder()
.stackName("tf-testaccstack")
.templateBody("""
{
"ROSTemplateFormatVersion": "2015-09-01"
}
""")
.stackPolicyBody("""
{
"Statement": [{
"Action": "Update:Delete",
"Resource": "*",
"Effect": "Allow",
"Principal": "*"
}]
}
""")
.build());
}
}
resources:
example:
type: alicloud:ros:Stack
properties:
stackName: tf-testaccstack
templateBody: |2
{
"ROSTemplateFormatVersion": "2015-09-01"
}
stackPolicyBody: |2
{
"Statement": [{
"Action": "Update:Delete",
"Resource": "*",
"Effect": "Allow",
"Principal": "*"
}]
}
Create Stack Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Stack(name: string, args: StackArgs, opts?: CustomResourceOptions);
@overload
def Stack(resource_name: str,
args: StackArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Stack(resource_name: str,
opts: Optional[ResourceOptions] = None,
stack_name: Optional[str] = None,
stack_policy_body: Optional[str] = None,
use_previous_parameters: Optional[bool] = None,
deletion_protection: Optional[str] = None,
parameters: Optional[Sequence[StackParameterArgs]] = None,
ram_role_name: Optional[str] = None,
replacement_option: Optional[str] = None,
retain_all_resources: Optional[bool] = None,
retain_resources: Optional[Sequence[str]] = None,
notification_urls: Optional[Sequence[str]] = None,
disable_rollback: Optional[bool] = None,
stack_policy_during_update_url: Optional[str] = None,
stack_policy_during_update_body: Optional[str] = None,
stack_policy_url: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
template_body: Optional[str] = None,
template_url: Optional[str] = None,
template_version: Optional[str] = None,
timeout_in_minutes: Optional[int] = None,
create_option: Optional[str] = None)
func NewStack(ctx *Context, name string, args StackArgs, opts ...ResourceOption) (*Stack, error)
public Stack(string name, StackArgs args, CustomResourceOptions? opts = null)
type: alicloud:ros:Stack
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args StackArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args StackArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args StackArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StackArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StackArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var stackResource = new AliCloud.Ros.Stack("stackResource", new()
{
StackName = "string",
StackPolicyBody = "string",
UsePreviousParameters = false,
DeletionProtection = "string",
Parameters = new[]
{
new AliCloud.Ros.Inputs.StackParameterArgs
{
ParameterValue = "string",
ParameterKey = "string",
},
},
RamRoleName = "string",
ReplacementOption = "string",
RetainAllResources = false,
RetainResources = new[]
{
"string",
},
NotificationUrls = new[]
{
"string",
},
DisableRollback = false,
StackPolicyDuringUpdateUrl = "string",
StackPolicyDuringUpdateBody = "string",
StackPolicyUrl = "string",
Tags =
{
{ "string", "string" },
},
TemplateBody = "string",
TemplateUrl = "string",
TemplateVersion = "string",
TimeoutInMinutes = 0,
CreateOption = "string",
});
example, err := ros.NewStack(ctx, "stackResource", &ros.StackArgs{
StackName: pulumi.String("string"),
StackPolicyBody: pulumi.String("string"),
UsePreviousParameters: pulumi.Bool(false),
DeletionProtection: pulumi.String("string"),
Parameters: ros.StackParameterArray{
&ros.StackParameterArgs{
ParameterValue: pulumi.String("string"),
ParameterKey: pulumi.String("string"),
},
},
RamRoleName: pulumi.String("string"),
ReplacementOption: pulumi.String("string"),
RetainAllResources: pulumi.Bool(false),
RetainResources: pulumi.StringArray{
pulumi.String("string"),
},
NotificationUrls: pulumi.StringArray{
pulumi.String("string"),
},
DisableRollback: pulumi.Bool(false),
StackPolicyDuringUpdateUrl: pulumi.String("string"),
StackPolicyDuringUpdateBody: pulumi.String("string"),
StackPolicyUrl: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TemplateBody: pulumi.String("string"),
TemplateUrl: pulumi.String("string"),
TemplateVersion: pulumi.String("string"),
TimeoutInMinutes: pulumi.Int(0),
CreateOption: pulumi.String("string"),
})
var stackResource = new Stack("stackResource", StackArgs.builder()
.stackName("string")
.stackPolicyBody("string")
.usePreviousParameters(false)
.deletionProtection("string")
.parameters(StackParameterArgs.builder()
.parameterValue("string")
.parameterKey("string")
.build())
.ramRoleName("string")
.replacementOption("string")
.retainAllResources(false)
.retainResources("string")
.notificationUrls("string")
.disableRollback(false)
.stackPolicyDuringUpdateUrl("string")
.stackPolicyDuringUpdateBody("string")
.stackPolicyUrl("string")
.tags(Map.of("string", "string"))
.templateBody("string")
.templateUrl("string")
.templateVersion("string")
.timeoutInMinutes(0)
.createOption("string")
.build());
stack_resource = alicloud.ros.Stack("stackResource",
stack_name="string",
stack_policy_body="string",
use_previous_parameters=False,
deletion_protection="string",
parameters=[alicloud.ros.StackParameterArgs(
parameter_value="string",
parameter_key="string",
)],
ram_role_name="string",
replacement_option="string",
retain_all_resources=False,
retain_resources=["string"],
notification_urls=["string"],
disable_rollback=False,
stack_policy_during_update_url="string",
stack_policy_during_update_body="string",
stack_policy_url="string",
tags={
"string": "string",
},
template_body="string",
template_url="string",
template_version="string",
timeout_in_minutes=0,
create_option="string")
const stackResource = new alicloud.ros.Stack("stackResource", {
stackName: "string",
stackPolicyBody: "string",
usePreviousParameters: false,
deletionProtection: "string",
parameters: [{
parameterValue: "string",
parameterKey: "string",
}],
ramRoleName: "string",
replacementOption: "string",
retainAllResources: false,
retainResources: ["string"],
notificationUrls: ["string"],
disableRollback: false,
stackPolicyDuringUpdateUrl: "string",
stackPolicyDuringUpdateBody: "string",
stackPolicyUrl: "string",
tags: {
string: "string",
},
templateBody: "string",
templateUrl: "string",
templateVersion: "string",
timeoutInMinutes: 0,
createOption: "string",
});
type: alicloud:ros:Stack
properties:
createOption: string
deletionProtection: string
disableRollback: false
notificationUrls:
- string
parameters:
- parameterKey: string
parameterValue: string
ramRoleName: string
replacementOption: string
retainAllResources: false
retainResources:
- string
stackName: string
stackPolicyBody: string
stackPolicyDuringUpdateBody: string
stackPolicyDuringUpdateUrl: string
stackPolicyUrl: string
tags:
string: string
templateBody: string
templateUrl: string
templateVersion: string
timeoutInMinutes: 0
usePreviousParameters: false
Stack Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Stack resource accepts the following input properties:
- Stack
Name string - 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.
- Create
Option string - Specifies whether to delete the stack after it is created.
- Deletion
Protection string - Specifies whether to enable deletion protection on the stack. Valid values:
Disabled
,Enabled
. Default to:Disabled
- Disable
Rollback bool - Specifies whether to disable rollback on stack creation failure. Default to:
false
. - Notification
Urls List<string> - The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
- Parameters
List<Pulumi.
Ali Cloud. Ros. Inputs. Stack Parameter> - The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
- Ram
Role stringName - 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.
- Replacement
Option string - 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.
- Retain
All boolResources - The retain all resources.
- Retain
Resources List<string> - Specifies whether to retain the resources in the stack.
- Stack
Policy stringBody - The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
- Stack
Policy stringDuring Update Body - 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.
- Stack
Policy stringDuring Update Url - 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.
- Stack
Policy stringUrl - 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.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Template
Body 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.
- Template
Url string - 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.
- Template
Version string - The version of the template.
- Timeout
In intMinutes - The timeout period that is specified for the stack creation request. Default to:
60
. - Use
Previous boolParameters - Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
- Stack
Name string - 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.
- Create
Option string - Specifies whether to delete the stack after it is created.
- Deletion
Protection string - Specifies whether to enable deletion protection on the stack. Valid values:
Disabled
,Enabled
. Default to:Disabled
- Disable
Rollback bool - Specifies whether to disable rollback on stack creation failure. Default to:
false
. - Notification
Urls []string - The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
- Parameters
[]Stack
Parameter Args - The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
- Ram
Role stringName - 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.
- Replacement
Option string - 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.
- Retain
All boolResources - The retain all resources.
- Retain
Resources []string - Specifies whether to retain the resources in the stack.
- Stack
Policy stringBody - The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
- Stack
Policy stringDuring Update Body - 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.
- Stack
Policy stringDuring Update Url - 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.
- Stack
Policy stringUrl - 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.
- map[string]string
- A mapping of tags to assign to the resource.
- Template
Body 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.
- Template
Url string - 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.
- Template
Version string - The version of the template.
- Timeout
In intMinutes - The timeout period that is specified for the stack creation request. Default to:
60
. - Use
Previous boolParameters - Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
- stack
Name String - 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.
- create
Option String - Specifies whether to delete the stack after it is created.
- deletion
Protection String - Specifies whether to enable deletion protection on the stack. Valid values:
Disabled
,Enabled
. Default to:Disabled
- disable
Rollback Boolean - Specifies whether to disable rollback on stack creation failure. Default to:
false
. - notification
Urls List<String> - The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
- parameters
List<Stack
Parameter> - The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
- ram
Role StringName - 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.
- replacement
Option String - 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.
- retain
All BooleanResources - The retain all resources.
- retain
Resources List<String> - Specifies whether to retain the resources in the stack.
- stack
Policy StringBody - The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
- stack
Policy StringDuring Update Body - 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.
- stack
Policy StringDuring Update Url - 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.
- stack
Policy StringUrl - 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.
- Map<String,String>
- A mapping of tags to assign to the resource.
- template
Body 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.
- template
Url String - 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.
- template
Version String - The version of the template.
- timeout
In IntegerMinutes - The timeout period that is specified for the stack creation request. Default to:
60
. - use
Previous BooleanParameters - Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
- stack
Name string - 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.
- create
Option string - Specifies whether to delete the stack after it is created.
- deletion
Protection string - Specifies whether to enable deletion protection on the stack. Valid values:
Disabled
,Enabled
. Default to:Disabled
- disable
Rollback boolean - Specifies whether to disable rollback on stack creation failure. Default to:
false
. - notification
Urls string[] - The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
- parameters
Stack
Parameter[] - The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
- ram
Role stringName - 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.
- replacement
Option string - 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.
- retain
All booleanResources - The retain all resources.
- retain
Resources string[] - Specifies whether to retain the resources in the stack.
- stack
Policy stringBody - The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
- stack
Policy stringDuring Update Body - 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.
- stack
Policy stringDuring Update Url - 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.
- stack
Policy stringUrl - 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.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- template
Body 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.
- template
Url string - 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.
- template
Version string - The version of the template.
- timeout
In numberMinutes - The timeout period that is specified for the stack creation request. Default to:
60
. - use
Previous booleanParameters - Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
- stack_
name str - 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.
- create_
option str - Specifies whether to delete the stack after it is created.
- deletion_
protection str - Specifies whether to enable deletion protection on the stack. Valid values:
Disabled
,Enabled
. Default to:Disabled
- disable_
rollback bool - Specifies whether to disable rollback on stack creation failure. Default to:
false
. - notification_
urls Sequence[str] - The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
- parameters
Sequence[Stack
Parameter Args] - The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
- ram_
role_ strname - 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.
- replacement_
option str - 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.
- retain_
all_ boolresources - The retain all resources.
- retain_
resources Sequence[str] - Specifies whether to retain the resources in the stack.
- stack_
policy_ strbody - The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
- stack_
policy_ strduring_ update_ body - 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.
- stack_
policy_ strduring_ update_ url - 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.
- stack_
policy_ strurl - 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.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- template_
body str - 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.
- template_
url str - 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.
- template_
version str - The version of the template.
- timeout_
in_ intminutes - The timeout period that is specified for the stack creation request. Default to:
60
. - use_
previous_ boolparameters - Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
- stack
Name String - 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.
- create
Option String - Specifies whether to delete the stack after it is created.
- deletion
Protection String - Specifies whether to enable deletion protection on the stack. Valid values:
Disabled
,Enabled
. Default to:Disabled
- disable
Rollback Boolean - Specifies whether to disable rollback on stack creation failure. Default to:
false
. - notification
Urls List<String> - The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
- parameters List<Property Map>
- The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
- ram
Role StringName - 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.
- replacement
Option String - 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.
- retain
All BooleanResources - The retain all resources.
- retain
Resources List<String> - Specifies whether to retain the resources in the stack.
- stack
Policy StringBody - The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
- stack
Policy StringDuring Update Body - 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.
- stack
Policy StringDuring Update Url - 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.
- stack
Policy StringUrl - 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.
- Map<String>
- A mapping of tags to assign to the resource.
- template
Body 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.
- template
Url String - 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.
- template
Version String - The version of the template.
- timeout
In NumberMinutes - The timeout period that is specified for the stack creation request. Default to:
60
. - use
Previous BooleanParameters - Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
Outputs
All input properties are implicitly available as output properties. Additionally, the Stack resource produces the following output properties:
Look up Existing Stack Resource
Get an existing Stack resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: StackState, opts?: CustomResourceOptions): Stack
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_option: Optional[str] = None,
deletion_protection: Optional[str] = None,
disable_rollback: Optional[bool] = None,
notification_urls: Optional[Sequence[str]] = None,
parameters: Optional[Sequence[StackParameterArgs]] = None,
ram_role_name: Optional[str] = None,
replacement_option: Optional[str] = None,
retain_all_resources: Optional[bool] = None,
retain_resources: Optional[Sequence[str]] = None,
stack_name: Optional[str] = None,
stack_policy_body: Optional[str] = None,
stack_policy_during_update_body: Optional[str] = None,
stack_policy_during_update_url: Optional[str] = None,
stack_policy_url: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
template_body: Optional[str] = None,
template_url: Optional[str] = None,
template_version: Optional[str] = None,
timeout_in_minutes: Optional[int] = None,
use_previous_parameters: Optional[bool] = None) -> Stack
func GetStack(ctx *Context, name string, id IDInput, state *StackState, opts ...ResourceOption) (*Stack, error)
public static Stack Get(string name, Input<string> id, StackState? state, CustomResourceOptions? opts = null)
public static Stack get(String name, Output<String> id, StackState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Create
Option string - Specifies whether to delete the stack after it is created.
- Deletion
Protection string - Specifies whether to enable deletion protection on the stack. Valid values:
Disabled
,Enabled
. Default to:Disabled
- Disable
Rollback bool - Specifies whether to disable rollback on stack creation failure. Default to:
false
. - Notification
Urls List<string> - The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
- Parameters
List<Pulumi.
Ali Cloud. Ros. Inputs. Stack Parameter> - The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
- Ram
Role stringName - 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.
- Replacement
Option string - 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.
- Retain
All boolResources - The retain all resources.
- Retain
Resources List<string> - Specifies whether to retain the resources in the stack.
- Stack
Name string - 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.
- Stack
Policy stringBody - The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
- Stack
Policy stringDuring Update Body - 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.
- Stack
Policy stringDuring Update Url - 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.
- Stack
Policy stringUrl - 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.
- Status string
- The status of Stack.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Template
Body 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.
- Template
Url string - 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.
- Template
Version string - The version of the template.
- Timeout
In intMinutes - The timeout period that is specified for the stack creation request. Default to:
60
. - Use
Previous boolParameters - Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
- Create
Option string - Specifies whether to delete the stack after it is created.
- Deletion
Protection string - Specifies whether to enable deletion protection on the stack. Valid values:
Disabled
,Enabled
. Default to:Disabled
- Disable
Rollback bool - Specifies whether to disable rollback on stack creation failure. Default to:
false
. - Notification
Urls []string - The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
- Parameters
[]Stack
Parameter Args - The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
- Ram
Role stringName - 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.
- Replacement
Option string - 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.
- Retain
All boolResources - The retain all resources.
- Retain
Resources []string - Specifies whether to retain the resources in the stack.
- Stack
Name string - 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.
- Stack
Policy stringBody - The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
- Stack
Policy stringDuring Update Body - 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.
- Stack
Policy stringDuring Update Url - 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.
- Stack
Policy stringUrl - 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.
- Status string
- The status of Stack.
- map[string]string
- A mapping of tags to assign to the resource.
- Template
Body 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.
- Template
Url string - 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.
- Template
Version string - The version of the template.
- Timeout
In intMinutes - The timeout period that is specified for the stack creation request. Default to:
60
. - Use
Previous boolParameters - Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
- create
Option String - Specifies whether to delete the stack after it is created.
- deletion
Protection String - Specifies whether to enable deletion protection on the stack. Valid values:
Disabled
,Enabled
. Default to:Disabled
- disable
Rollback Boolean - Specifies whether to disable rollback on stack creation failure. Default to:
false
. - notification
Urls List<String> - The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
- parameters
List<Stack
Parameter> - The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
- ram
Role StringName - 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.
- replacement
Option String - 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.
- retain
All BooleanResources - The retain all resources.
- retain
Resources List<String> - Specifies whether to retain the resources in the stack.
- stack
Name String - 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.
- stack
Policy StringBody - The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
- stack
Policy StringDuring Update Body - 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.
- stack
Policy StringDuring Update Url - 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.
- stack
Policy StringUrl - 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.
- status String
- The status of Stack.
- Map<String,String>
- A mapping of tags to assign to the resource.
- template
Body 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.
- template
Url String - 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.
- template
Version String - The version of the template.
- timeout
In IntegerMinutes - The timeout period that is specified for the stack creation request. Default to:
60
. - use
Previous BooleanParameters - Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
- create
Option string - Specifies whether to delete the stack after it is created.
- deletion
Protection string - Specifies whether to enable deletion protection on the stack. Valid values:
Disabled
,Enabled
. Default to:Disabled
- disable
Rollback boolean - Specifies whether to disable rollback on stack creation failure. Default to:
false
. - notification
Urls string[] - The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
- parameters
Stack
Parameter[] - The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
- ram
Role stringName - 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.
- replacement
Option string - 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.
- retain
All booleanResources - The retain all resources.
- retain
Resources string[] - Specifies whether to retain the resources in the stack.
- stack
Name string - 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.
- stack
Policy stringBody - The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
- stack
Policy stringDuring Update Body - 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.
- stack
Policy stringDuring Update Url - 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.
- stack
Policy stringUrl - 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.
- status string
- The status of Stack.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- template
Body 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.
- template
Url string - 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.
- template
Version string - The version of the template.
- timeout
In numberMinutes - The timeout period that is specified for the stack creation request. Default to:
60
. - use
Previous booleanParameters - Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
- create_
option str - Specifies whether to delete the stack after it is created.
- deletion_
protection str - Specifies whether to enable deletion protection on the stack. Valid values:
Disabled
,Enabled
. Default to:Disabled
- disable_
rollback bool - Specifies whether to disable rollback on stack creation failure. Default to:
false
. - notification_
urls Sequence[str] - The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
- parameters
Sequence[Stack
Parameter Args] - The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
- ram_
role_ strname - 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.
- replacement_
option str - 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.
- retain_
all_ boolresources - The retain all resources.
- retain_
resources Sequence[str] - Specifies whether to retain the resources in the stack.
- stack_
name str - 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.
- stack_
policy_ strbody - The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
- stack_
policy_ strduring_ update_ body - 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.
- stack_
policy_ strduring_ update_ url - 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.
- stack_
policy_ strurl - 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.
- status str
- The status of Stack.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- template_
body str - 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.
- template_
url str - 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.
- template_
version str - The version of the template.
- timeout_
in_ intminutes - The timeout period that is specified for the stack creation request. Default to:
60
. - use_
previous_ boolparameters - Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
- create
Option String - Specifies whether to delete the stack after it is created.
- deletion
Protection String - Specifies whether to enable deletion protection on the stack. Valid values:
Disabled
,Enabled
. Default to:Disabled
- disable
Rollback Boolean - Specifies whether to disable rollback on stack creation failure. Default to:
false
. - notification
Urls List<String> - The callback URL for receiving stack event N. Only HTTP POST is supported. Maximum value of N: 5.
- parameters List<Property Map>
- The parameters. If the parameter name and value are not specified, ROS will use the default value specified in the template.
- ram
Role StringName - 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.
- replacement
Option String - 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.
- retain
All BooleanResources - The retain all resources.
- retain
Resources List<String> - Specifies whether to retain the resources in the stack.
- stack
Name String - 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.
- stack
Policy StringBody - The structure that contains the stack policy body. The stack policy body must be 1 to 16,384 bytes in length.
- stack
Policy StringDuring Update Body - 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.
- stack
Policy StringDuring Update Url - 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.
- stack
Policy StringUrl - 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.
- status String
- The status of Stack.
- Map<String>
- A mapping of tags to assign to the resource.
- template
Body 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.
- template
Url String - 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.
- template
Version String - The version of the template.
- timeout
In NumberMinutes - The timeout period that is specified for the stack creation request. Default to:
60
. - use
Previous BooleanParameters - Specifies whether to use the values that were passed last time for the parameters that you do not specify in the current request.
Supporting Types
StackParameter, StackParameterArgs
- Parameter
Value string - The parameter value.
- Parameter
Key string - The parameter key.
- Parameter
Value string - The parameter value.
- Parameter
Key string - The parameter key.
- parameter
Value String - The parameter value.
- parameter
Key String - The parameter key.
- parameter
Value string - The parameter value.
- parameter
Key string - The parameter key.
- parameter_
value str - The parameter value.
- parameter_
key str - The parameter key.
- parameter
Value String - The parameter value.
- parameter
Key String - The parameter key.
Import
ROS Stack can be imported using the id, e.g.
$ pulumi import alicloud:ros/stack:Stack example <stack_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.