ErArgs

data class ErArgs(val description: Output<String>? = null, val envConf: Output<ErEnvConfArgs>? = null, val erName: Output<String>? = null) : ConvertibleToJava<ErArgs>

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

NOTE: Available since v1.201.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.dcdn.Er;
import com.pulumi.alicloud.dcdn.ErArgs;
import com.pulumi.alicloud.dcdn.inputs.ErEnvConfArgs;
import com.pulumi.alicloud.dcdn.inputs.ErEnvConfStagingArgs;
import com.pulumi.alicloud.dcdn.inputs.ErEnvConfProductionArgs;
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 config = ctx.config();
final var name = config.get("name").orElse("tf-example");
var default_ = new Er("default", ErArgs.builder()
.erName(name)
.description(name)
.envConf(ErEnvConfArgs.builder()
.staging(ErEnvConfStagingArgs.builder()
.specName("5ms")
.allowedHosts("example.com")
.build())
.production(ErEnvConfProductionArgs.builder()
.specName("5ms")
.allowedHosts("example.com")
.build())
.build())
.build());
}
}

Import

DCDN Er can be imported using the id, e.g.

$ pulumi import alicloud:dcdn/er:Er example <id>

Constructors

Link copied to clipboard
fun ErArgs(description: Output<String>? = null, envConf: Output<ErEnvConfArgs>? = null, erName: Output<String>? = null)

Functions

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

Properties

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

Routine The description of the routine.

Link copied to clipboard
val envConf: Output<ErEnvConfArgs>? = null

The configurations of the specified environment. See env_conf below.

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

The name of the routine. The name must be unique among the routines that belong to the same Alibaba Cloud account.