ParameterArgs

data class ParameterArgs(val constraints: Output<String>? = null, val description: Output<String>? = null, val parameterName: Output<String>? = null, val resourceGroupId: Output<String>? = null, val tags: Output<Map<String, Any>>? = null, val type: Output<String>? = null, val value: Output<String>? = null) : ConvertibleToJava<ParameterArgs>

Provides a OOS Parameter resource. For information about OOS Parameter and how to use it, see What is Parameter.

NOTE: Available in v1.147.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.oos.Parameter;
import com.pulumi.alicloud.oos.ParameterArgs;
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) {
final var default = ResourcemanagerFunctions.getResourceGroups();
var example = new Parameter("example", ParameterArgs.builder()
.parameterName("my-Parameter")
.type("String")
.value("example_value")
.description("example_value")
.tags(Map.ofEntries(
Map.entry("Created", "TF"),
Map.entry("For", "OosParameter")
))
.resourceGroupId(default_.groups()[0].id())
.build());
}
}

Import

OOS Parameter can be imported using the id, e.g.

$ pulumi import alicloud:oos/parameter:Parameter example <parameter_name>

Constructors

Link copied to clipboard
fun ParameterArgs(constraints: Output<String>? = null, description: Output<String>? = null, parameterName: Output<String>? = null, resourceGroupId: Output<String>? = null, tags: Output<Map<String, Any>>? = null, type: Output<String>? = null, value: Output<String>? = null)

Functions

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

Properties

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

The constraints of the common parameter. This value follows the json format. By default, this parameter is null. Valid values:

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

The description of the common parameter. The description must be 1 to 200 characters in length.

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

The name of the common parameter. The name must be 2 to 180 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/) and underscores (_). It cannot start with ALIYUN, ACS, ALIBABA, ALICLOUD, or OOS.

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

The ID of the Resource Group.

Link copied to clipboard
val tags: Output<Map<String, Any>>? = null

A mapping of tags to assign to the resource.

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

The data type of the common parameter. Valid values: String and StringList.

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

The value of the common parameter. The value must be 1 to 4096 characters in length.