Instance Args
data class InstanceArgs(val duration: Output<Int>? = null, val egressIpv6Enable: Output<Boolean>? = null, val httpsPolicy: Output<String>? = null, val instanceName: Output<String>? = null, val instanceSpec: Output<String>? = null, val instanceType: Output<String>? = null, val paymentType: Output<String>? = null, val pricingCycle: Output<String>? = null, val supportIpv6: Output<Boolean>? = null, val userVpcId: Output<String>? = null, val vpcSlbIntranetEnable: Output<Boolean>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<InstanceArgs>
Provides a Api Gateway Instance resource. For information about Api Gateway Instance and how to use it, see What is Instance.
NOTE: Available since v1.218.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = new alicloud.apigateway.Instance("default", {
instanceName: name,
instanceSpec: "api.s1.small",
httpsPolicy: "HTTPS2_TLS1_0",
zoneId: "cn-hangzhou-MAZ6",
paymentType: "PayAsYouGo",
userVpcId: "1709116870",
instanceType: "normal",
});Content copied to clipboard
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.apigateway.Instance("default",
instance_name=name,
instance_spec="api.s1.small",
https_policy="HTTPS2_TLS1_0",
zone_id="cn-hangzhou-MAZ6",
payment_type="PayAsYouGo",
user_vpc_id="1709116870",
instance_type="normal")Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = new AliCloud.ApiGateway.Instance("default", new()
{
InstanceName = name,
InstanceSpec = "api.s1.small",
HttpsPolicy = "HTTPS2_TLS1_0",
ZoneId = "cn-hangzhou-MAZ6",
PaymentType = "PayAsYouGo",
UserVpcId = "1709116870",
InstanceType = "normal",
});
});Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apigateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := apigateway.NewInstance(ctx, "default", &apigateway.InstanceArgs{
InstanceName: pulumi.String(name),
InstanceSpec: pulumi.String("api.s1.small"),
HttpsPolicy: pulumi.String("HTTPS2_TLS1_0"),
ZoneId: pulumi.String("cn-hangzhou-MAZ6"),
PaymentType: pulumi.String("PayAsYouGo"),
UserVpcId: pulumi.String("1709116870"),
InstanceType: pulumi.String("normal"),
})
if err != nil {
return err
}
return nil
})
}Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.apigateway.Instance;
import com.pulumi.alicloud.apigateway.InstanceArgs;
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("terraform-example");
var default_ = new Instance("default", InstanceArgs.builder()
.instanceName(name)
.instanceSpec("api.s1.small")
.httpsPolicy("HTTPS2_TLS1_0")
.zoneId("cn-hangzhou-MAZ6")
.paymentType("PayAsYouGo")
.userVpcId("1709116870")
.instanceType("normal")
.build());
}
}Content copied to clipboard
configuration:
name:
type: string
default: terraform-example
resources:
default:
type: alicloud:apigateway:Instance
properties:
instanceName: ${name}
instanceSpec: api.s1.small
httpsPolicy: HTTPS2_TLS1_0
zoneId: cn-hangzhou-MAZ6
paymentType: PayAsYouGo
userVpcId: '1709116870'
instanceType: normalContent copied to clipboard
Import
Api Gateway Instance can be imported using the id, e.g.
$ pulumi import alicloud:apigateway/instance:Instance example <id>Content copied to clipboard
Constructors
Link copied to clipboard
constructor(duration: Output<Int>? = null, egressIpv6Enable: Output<Boolean>? = null, httpsPolicy: Output<String>? = null, instanceName: Output<String>? = null, instanceSpec: Output<String>? = null, instanceType: Output<String>? = null, paymentType: Output<String>? = null, pricingCycle: Output<String>? = null, supportIpv6: Output<Boolean>? = null, userVpcId: Output<String>? = null, vpcSlbIntranetEnable: Output<Boolean>? = null, zoneId: Output<String>? = null)
Properties
Link copied to clipboard
Does IPV6 Capability Support.
Link copied to clipboard
Https policy.
Link copied to clipboard
Instance name.
Link copied to clipboard
Instance type.
Link copied to clipboard
Instance type-normal: traditional exclusive instance.
Link copied to clipboard
The payment type of the resource.
Link copied to clipboard
The subscription instance is of the subscription year or month type. The value range is as follows:
Link copied to clipboard
Does ipv6 support.
Link copied to clipboard
Whether the slb of the Vpc supports.