BackendArgs

data class BackendArgs(val backendName: Output<String>? = null, val backendType: Output<String>? = null, val createEventBridgeServiceLinkedRole: Output<Boolean>? = null, val description: Output<String>? = null) : ConvertibleToJava<BackendArgs>

Provides a Api Gateway Backend resource. For information about Api Gateway Backend and how to use it, see What is Backend.

NOTE: Available since v1.181.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.apigateway.Backend;
import com.pulumi.alicloud.apigateway.BackendArgs;
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 Backend("default", BackendArgs.builder()
.backendName(name)
.description(name)
.backendType("HTTP")
.build());
}
}

Import

Api Gateway Backend can be imported using the id, e.g.

$ pulumi import alicloud:apigateway/backend:Backend example <id>

Constructors

Link copied to clipboard
fun BackendArgs(backendName: Output<String>? = null, backendType: Output<String>? = null, createEventBridgeServiceLinkedRole: Output<Boolean>? = null, description: Output<String>? = null)

Functions

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

Properties

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

The name of the Backend.

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

The type of the Backend. Valid values: HTTP, VPC, FC_EVENT, FC_HTTP, OSS, MOCK.

Link copied to clipboard

Whether to create an Event bus service association role.

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

The description of the Backend.