Backend

class Backend : KotlinCustomResource

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>

Properties

Link copied to clipboard
val backendName: Output<String>

The name of the Backend.

Link copied to clipboard
val backendType: Output<String>

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>?

The description of the Backend.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>