SecretParameterArgs

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

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

NOTE: Available since 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.kms.Key;
import com.pulumi.alicloud.kms.KeyArgs;
import com.pulumi.alicloud.oos.SecretParameter;
import com.pulumi.alicloud.oos.SecretParameterArgs;
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 exampleResourceGroups = ResourcemanagerFunctions.getResourceGroups();
var exampleKey = new Key("exampleKey", KeyArgs.builder()
.description("terraform-example")
.status("Enabled")
.pendingWindowInDays(7)
.build());
var exampleSecretParameter = new SecretParameter("exampleSecretParameter", SecretParameterArgs.builder()
.secretParameterName("terraform-example")
.value("terraform-example")
.type("Secret")
.keyId(exampleKey.id())
.description("terraform-example")
.tags(Map.ofEntries(
Map.entry("Created", "TF"),
Map.entry("For", "OosSecretParameter")
))
.resourceGroupId(exampleResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[0].id()))
.build());
}
}

Import

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

$ pulumi import alicloud:oos/secretParameter:SecretParameter example <secret_parameter_name>

Constructors

Link copied to clipboard
fun SecretParameterArgs(constraints: Output<String>? = null, description: Output<String>? = null, keyId: Output<String>? = null, resourceGroupId: Output<String>? = null, secretParameterName: 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(): SecretParameterArgs

Properties

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

The constraints of the encryption parameter. By default, this parameter is null. Valid values:

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

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

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

The Customer Master Key (CMK) of Key Management Service (KMS) that is used to encrypt the parameter.

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

The ID of the Resource Group.

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

The name of the encryption 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 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 encryption parameter. Valid values: Secret.

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

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