alicloud.apigateway.Instance
Explore with Pulumi AI
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",
instanceType: "normal",
});
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",
instance_type="normal")
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"),
InstanceType: pulumi.String("normal"),
})
if err != nil {
return err
}
return nil
})
}
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",
InstanceType = "normal",
});
});
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")
.instanceType("normal")
.build());
}
}
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
instanceType: normal
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 vpc = new alicloud.vpc.Network("vpc", {
cidrBlock: "172.16.0.0/12",
vpcName: name,
});
const vswitch1 = new alicloud.vpc.Switch("vswitch_1", {
vpcId: vpc.id,
cidrBlock: "172.16.0.0/16",
zoneId: "cn-hangzhou-j",
vswitchName: `${name}_1`,
});
const vswitch2 = new alicloud.vpc.Switch("vswitch_2", {
vpcId: vpc.id,
cidrBlock: "172.17.0.0/16",
zoneId: "cn-hangzhou-k",
vswitchName: `${name}_2`,
});
const securityGroup = new alicloud.ecs.SecurityGroup("security_group", {
vpcId: vpc.id,
name: name,
});
const vpcIntegrationInstance = new alicloud.apigateway.Instance("vpc_integration_instance", {
instanceName: name,
httpsPolicy: "HTTPS2_TLS1_0",
instanceSpec: "api.s1.small",
instanceType: "vpc_connect",
paymentType: "PayAsYouGo",
userVpcId: vpc.id,
instanceCidr: "192.168.0.0/16",
zoneVswitchSecurityGroups: [
{
zoneId: vswitch1.zoneId,
vswitchId: vswitch1.id,
cidrBlock: vswitch1.cidrBlock,
securityGroup: securityGroup.id,
},
{
zoneId: vswitch2.zoneId,
vswitchId: vswitch2.id,
cidrBlock: vswitch2.cidrBlock,
securityGroup: securityGroup.id,
},
],
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
vpc = alicloud.vpc.Network("vpc",
cidr_block="172.16.0.0/12",
vpc_name=name)
vswitch1 = alicloud.vpc.Switch("vswitch_1",
vpc_id=vpc.id,
cidr_block="172.16.0.0/16",
zone_id="cn-hangzhou-j",
vswitch_name=f"{name}_1")
vswitch2 = alicloud.vpc.Switch("vswitch_2",
vpc_id=vpc.id,
cidr_block="172.17.0.0/16",
zone_id="cn-hangzhou-k",
vswitch_name=f"{name}_2")
security_group = alicloud.ecs.SecurityGroup("security_group",
vpc_id=vpc.id,
name=name)
vpc_integration_instance = alicloud.apigateway.Instance("vpc_integration_instance",
instance_name=name,
https_policy="HTTPS2_TLS1_0",
instance_spec="api.s1.small",
instance_type="vpc_connect",
payment_type="PayAsYouGo",
user_vpc_id=vpc.id,
instance_cidr="192.168.0.0/16",
zone_vswitch_security_groups=[
{
"zone_id": vswitch1.zone_id,
"vswitch_id": vswitch1.id,
"cidr_block": vswitch1.cidr_block,
"security_group": security_group.id,
},
{
"zone_id": vswitch2.zone_id,
"vswitch_id": vswitch2.id,
"cidr_block": vswitch2.cidr_block,
"security_group": security_group.id,
},
])
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apigateway"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"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
}
vpc, err := vpc.NewNetwork(ctx, "vpc", &vpc.NetworkArgs{
CidrBlock: pulumi.String("172.16.0.0/12"),
VpcName: pulumi.String(name),
})
if err != nil {
return err
}
vswitch1, err := vpc.NewSwitch(ctx, "vswitch_1", &vpc.SwitchArgs{
VpcId: vpc.ID(),
CidrBlock: pulumi.String("172.16.0.0/16"),
ZoneId: pulumi.String("cn-hangzhou-j"),
VswitchName: pulumi.Sprintf("%v_1", name),
})
if err != nil {
return err
}
vswitch2, err := vpc.NewSwitch(ctx, "vswitch_2", &vpc.SwitchArgs{
VpcId: vpc.ID(),
CidrBlock: pulumi.String("172.17.0.0/16"),
ZoneId: pulumi.String("cn-hangzhou-k"),
VswitchName: pulumi.Sprintf("%v_2", name),
})
if err != nil {
return err
}
securityGroup, err := ecs.NewSecurityGroup(ctx, "security_group", &ecs.SecurityGroupArgs{
VpcId: vpc.ID(),
Name: pulumi.String(name),
})
if err != nil {
return err
}
_, err = apigateway.NewInstance(ctx, "vpc_integration_instance", &apigateway.InstanceArgs{
InstanceName: pulumi.String(name),
HttpsPolicy: pulumi.String("HTTPS2_TLS1_0"),
InstanceSpec: pulumi.String("api.s1.small"),
InstanceType: pulumi.String("vpc_connect"),
PaymentType: pulumi.String("PayAsYouGo"),
UserVpcId: vpc.ID(),
InstanceCidr: pulumi.String("192.168.0.0/16"),
ZoneVswitchSecurityGroups: apigateway.InstanceZoneVswitchSecurityGroupArray{
&apigateway.InstanceZoneVswitchSecurityGroupArgs{
ZoneId: vswitch1.ZoneId,
VswitchId: vswitch1.ID(),
CidrBlock: vswitch1.CidrBlock,
SecurityGroup: securityGroup.ID(),
},
&apigateway.InstanceZoneVswitchSecurityGroupArgs{
ZoneId: vswitch2.ZoneId,
VswitchId: vswitch2.ID(),
CidrBlock: vswitch2.CidrBlock,
SecurityGroup: securityGroup.ID(),
},
},
})
if err != nil {
return err
}
return nil
})
}
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 vpc = new AliCloud.Vpc.Network("vpc", new()
{
CidrBlock = "172.16.0.0/12",
VpcName = name,
});
var vswitch1 = new AliCloud.Vpc.Switch("vswitch_1", new()
{
VpcId = vpc.Id,
CidrBlock = "172.16.0.0/16",
ZoneId = "cn-hangzhou-j",
VswitchName = $"{name}_1",
});
var vswitch2 = new AliCloud.Vpc.Switch("vswitch_2", new()
{
VpcId = vpc.Id,
CidrBlock = "172.17.0.0/16",
ZoneId = "cn-hangzhou-k",
VswitchName = $"{name}_2",
});
var securityGroup = new AliCloud.Ecs.SecurityGroup("security_group", new()
{
VpcId = vpc.Id,
Name = name,
});
var vpcIntegrationInstance = new AliCloud.ApiGateway.Instance("vpc_integration_instance", new()
{
InstanceName = name,
HttpsPolicy = "HTTPS2_TLS1_0",
InstanceSpec = "api.s1.small",
InstanceType = "vpc_connect",
PaymentType = "PayAsYouGo",
UserVpcId = vpc.Id,
InstanceCidr = "192.168.0.0/16",
ZoneVswitchSecurityGroups = new[]
{
new AliCloud.ApiGateway.Inputs.InstanceZoneVswitchSecurityGroupArgs
{
ZoneId = vswitch1.ZoneId,
VswitchId = vswitch1.Id,
CidrBlock = vswitch1.CidrBlock,
SecurityGroup = securityGroup.Id,
},
new AliCloud.ApiGateway.Inputs.InstanceZoneVswitchSecurityGroupArgs
{
ZoneId = vswitch2.ZoneId,
VswitchId = vswitch2.Id,
CidrBlock = vswitch2.CidrBlock,
SecurityGroup = securityGroup.Id,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
import com.pulumi.alicloud.apigateway.Instance;
import com.pulumi.alicloud.apigateway.InstanceArgs;
import com.pulumi.alicloud.apigateway.inputs.InstanceZoneVswitchSecurityGroupArgs;
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 vpc = new Network("vpc", NetworkArgs.builder()
.cidrBlock("172.16.0.0/12")
.vpcName(name)
.build());
var vswitch1 = new Switch("vswitch1", SwitchArgs.builder()
.vpcId(vpc.id())
.cidrBlock("172.16.0.0/16")
.zoneId("cn-hangzhou-j")
.vswitchName(String.format("%s_1", name))
.build());
var vswitch2 = new Switch("vswitch2", SwitchArgs.builder()
.vpcId(vpc.id())
.cidrBlock("172.17.0.0/16")
.zoneId("cn-hangzhou-k")
.vswitchName(String.format("%s_2", name))
.build());
var securityGroup = new SecurityGroup("securityGroup", SecurityGroupArgs.builder()
.vpcId(vpc.id())
.name(name)
.build());
var vpcIntegrationInstance = new Instance("vpcIntegrationInstance", InstanceArgs.builder()
.instanceName(name)
.httpsPolicy("HTTPS2_TLS1_0")
.instanceSpec("api.s1.small")
.instanceType("vpc_connect")
.paymentType("PayAsYouGo")
.userVpcId(vpc.id())
.instanceCidr("192.168.0.0/16")
.zoneVswitchSecurityGroups(
InstanceZoneVswitchSecurityGroupArgs.builder()
.zoneId(vswitch1.zoneId())
.vswitchId(vswitch1.id())
.cidrBlock(vswitch1.cidrBlock())
.securityGroup(securityGroup.id())
.build(),
InstanceZoneVswitchSecurityGroupArgs.builder()
.zoneId(vswitch2.zoneId())
.vswitchId(vswitch2.id())
.cidrBlock(vswitch2.cidrBlock())
.securityGroup(securityGroup.id())
.build())
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
vpc:
type: alicloud:vpc:Network
properties:
cidrBlock: 172.16.0.0/12
vpcName: ${name}
vswitch1:
type: alicloud:vpc:Switch
name: vswitch_1
properties:
vpcId: ${vpc.id}
cidrBlock: 172.16.0.0/16
zoneId: cn-hangzhou-j
vswitchName: ${name}_1
vswitch2:
type: alicloud:vpc:Switch
name: vswitch_2
properties:
vpcId: ${vpc.id}
cidrBlock: 172.17.0.0/16
zoneId: cn-hangzhou-k
vswitchName: ${name}_2
securityGroup:
type: alicloud:ecs:SecurityGroup
name: security_group
properties:
vpcId: ${vpc.id}
name: ${name}
vpcIntegrationInstance:
type: alicloud:apigateway:Instance
name: vpc_integration_instance
properties:
instanceName: ${name}
httpsPolicy: HTTPS2_TLS1_0
instanceSpec: api.s1.small
instanceType: vpc_connect
paymentType: PayAsYouGo
userVpcId: ${vpc.id}
instanceCidr: 192.168.0.0/16
zoneVswitchSecurityGroups:
- zoneId: ${vswitch1.zoneId}
vswitchId: ${vswitch1.id}
cidrBlock: ${vswitch1.cidrBlock}
securityGroup: ${securityGroup.id}
- zoneId: ${vswitch2.zoneId}
vswitchId: ${vswitch2.id}
cidrBlock: ${vswitch2.cidrBlock}
securityGroup: ${securityGroup.id}
Create Instance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);
@overload
def Instance(resource_name: str,
args: InstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Instance(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_name: Optional[str] = None,
payment_type: Optional[str] = None,
instance_spec: Optional[str] = None,
https_policy: Optional[str] = None,
ipv6_enabled: Optional[bool] = None,
instance_cidr: Optional[str] = None,
egress_ipv6_enable: Optional[bool] = None,
instance_type: Optional[str] = None,
delete_vpc_ip_block: Optional[str] = None,
duration: Optional[int] = None,
pricing_cycle: Optional[str] = None,
to_connect_vpc_ip_block: Optional[InstanceToConnectVpcIpBlockArgs] = None,
user_vpc_id: Optional[str] = None,
vpc_slb_intranet_enable: Optional[bool] = None,
zone_id: Optional[str] = None,
zone_vswitch_security_groups: Optional[Sequence[InstanceZoneVswitchSecurityGroupArgs]] = None)
func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)
public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
public Instance(String name, InstanceArgs args)
public Instance(String name, InstanceArgs args, CustomResourceOptions options)
type: alicloud:apigateway:Instance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleinstanceResourceResourceFromApigatewayinstance = new AliCloud.ApiGateway.Instance("exampleinstanceResourceResourceFromApigatewayinstance", new()
{
InstanceName = "string",
PaymentType = "string",
InstanceSpec = "string",
HttpsPolicy = "string",
Ipv6Enabled = false,
InstanceCidr = "string",
EgressIpv6Enable = false,
InstanceType = "string",
DeleteVpcIpBlock = "string",
Duration = 0,
PricingCycle = "string",
ToConnectVpcIpBlock = new AliCloud.ApiGateway.Inputs.InstanceToConnectVpcIpBlockArgs
{
CidrBlock = "string",
Customized = false,
VswitchId = "string",
ZoneId = "string",
},
UserVpcId = "string",
VpcSlbIntranetEnable = false,
ZoneId = "string",
ZoneVswitchSecurityGroups = new[]
{
new AliCloud.ApiGateway.Inputs.InstanceZoneVswitchSecurityGroupArgs
{
CidrBlock = "string",
SecurityGroup = "string",
VswitchId = "string",
ZoneId = "string",
},
},
});
example, err := apigateway.NewInstance(ctx, "exampleinstanceResourceResourceFromApigatewayinstance", &apigateway.InstanceArgs{
InstanceName: pulumi.String("string"),
PaymentType: pulumi.String("string"),
InstanceSpec: pulumi.String("string"),
HttpsPolicy: pulumi.String("string"),
Ipv6Enabled: pulumi.Bool(false),
InstanceCidr: pulumi.String("string"),
EgressIpv6Enable: pulumi.Bool(false),
InstanceType: pulumi.String("string"),
DeleteVpcIpBlock: pulumi.String("string"),
Duration: pulumi.Int(0),
PricingCycle: pulumi.String("string"),
ToConnectVpcIpBlock: &apigateway.InstanceToConnectVpcIpBlockArgs{
CidrBlock: pulumi.String("string"),
Customized: pulumi.Bool(false),
VswitchId: pulumi.String("string"),
ZoneId: pulumi.String("string"),
},
UserVpcId: pulumi.String("string"),
VpcSlbIntranetEnable: pulumi.Bool(false),
ZoneId: pulumi.String("string"),
ZoneVswitchSecurityGroups: apigateway.InstanceZoneVswitchSecurityGroupArray{
&apigateway.InstanceZoneVswitchSecurityGroupArgs{
CidrBlock: pulumi.String("string"),
SecurityGroup: pulumi.String("string"),
VswitchId: pulumi.String("string"),
ZoneId: pulumi.String("string"),
},
},
})
var exampleinstanceResourceResourceFromApigatewayinstance = new Instance("exampleinstanceResourceResourceFromApigatewayinstance", InstanceArgs.builder()
.instanceName("string")
.paymentType("string")
.instanceSpec("string")
.httpsPolicy("string")
.ipv6Enabled(false)
.instanceCidr("string")
.egressIpv6Enable(false)
.instanceType("string")
.deleteVpcIpBlock("string")
.duration(0)
.pricingCycle("string")
.toConnectVpcIpBlock(InstanceToConnectVpcIpBlockArgs.builder()
.cidrBlock("string")
.customized(false)
.vswitchId("string")
.zoneId("string")
.build())
.userVpcId("string")
.vpcSlbIntranetEnable(false)
.zoneId("string")
.zoneVswitchSecurityGroups(InstanceZoneVswitchSecurityGroupArgs.builder()
.cidrBlock("string")
.securityGroup("string")
.vswitchId("string")
.zoneId("string")
.build())
.build());
exampleinstance_resource_resource_from_apigatewayinstance = alicloud.apigateway.Instance("exampleinstanceResourceResourceFromApigatewayinstance",
instance_name="string",
payment_type="string",
instance_spec="string",
https_policy="string",
ipv6_enabled=False,
instance_cidr="string",
egress_ipv6_enable=False,
instance_type="string",
delete_vpc_ip_block="string",
duration=0,
pricing_cycle="string",
to_connect_vpc_ip_block={
"cidr_block": "string",
"customized": False,
"vswitch_id": "string",
"zone_id": "string",
},
user_vpc_id="string",
vpc_slb_intranet_enable=False,
zone_id="string",
zone_vswitch_security_groups=[{
"cidr_block": "string",
"security_group": "string",
"vswitch_id": "string",
"zone_id": "string",
}])
const exampleinstanceResourceResourceFromApigatewayinstance = new alicloud.apigateway.Instance("exampleinstanceResourceResourceFromApigatewayinstance", {
instanceName: "string",
paymentType: "string",
instanceSpec: "string",
httpsPolicy: "string",
ipv6Enabled: false,
instanceCidr: "string",
egressIpv6Enable: false,
instanceType: "string",
deleteVpcIpBlock: "string",
duration: 0,
pricingCycle: "string",
toConnectVpcIpBlock: {
cidrBlock: "string",
customized: false,
vswitchId: "string",
zoneId: "string",
},
userVpcId: "string",
vpcSlbIntranetEnable: false,
zoneId: "string",
zoneVswitchSecurityGroups: [{
cidrBlock: "string",
securityGroup: "string",
vswitchId: "string",
zoneId: "string",
}],
});
type: alicloud:apigateway:Instance
properties:
deleteVpcIpBlock: string
duration: 0
egressIpv6Enable: false
httpsPolicy: string
instanceCidr: string
instanceName: string
instanceSpec: string
instanceType: string
ipv6Enabled: false
paymentType: string
pricingCycle: string
toConnectVpcIpBlock:
cidrBlock: string
customized: false
vswitchId: string
zoneId: string
userVpcId: string
vpcSlbIntranetEnable: false
zoneId: string
zoneVswitchSecurityGroups:
- cidrBlock: string
securityGroup: string
vswitchId: string
zoneId: string
Instance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Instance resource accepts the following input properties:
- Https
Policy string - Https policy.
- Instance
Name string - Instance name.
- Instance
Spec string - Instance type.
- Payment
Type string - The payment type of the resource.
- Delete
Vpc stringIp Block - Indicates whether to delete the IP block that the VPC can access, conflict with
to_connect_vpc_ip_block
. - Duration int
The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is Year, indicating annual payment. The value range is 1 to 3.
When the value of> ChargeType is PrePaid, this parameter is available and must be passed in.
- Egress
Ipv6Enable bool - Specifies whether IPv6 egress capability is enabled.
- Instance
Cidr string - The CIDR block for the instance deployment. Valid values are:
192.168.0.0/16
.172.16.0.0/12
.
- Instance
Type string - The type of the instance. Valid values are:
- Ipv6Enabled bool
- Specifies whether IPv6 ingress capability is enabled.
- Pricing
Cycle string - The subscription instance is of the subscription year or month type. This parameter is required when the Payment type is PrePaid. The value range is as follows:
- To
Connect Pulumi.Vpc Ip Block Ali Cloud. Api Gateway. Inputs. Instance To Connect Vpc Ip Block - The additional IP block that the VPC integration instance can access, conflict with
delete_vpc_ip_block
. Seeto_connect_vpc_ip_block
below. - User
Vpc stringId - User's VpcID.
- Vpc
Slb boolIntranet Enable - Whether the slb of the Vpc supports.
- Zone
Id string - The zone where the instance is deployed.
- Zone
Vswitch List<Pulumi.Security Groups Ali Cloud. Api Gateway. Inputs. Instance Zone Vswitch Security Group> - Network configuration details for Vpc integration instance which includes the availability zone, VSwitch, and security group information. See
zone_vswitch_security_group
below.
- Https
Policy string - Https policy.
- Instance
Name string - Instance name.
- Instance
Spec string - Instance type.
- Payment
Type string - The payment type of the resource.
- Delete
Vpc stringIp Block - Indicates whether to delete the IP block that the VPC can access, conflict with
to_connect_vpc_ip_block
. - Duration int
The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is Year, indicating annual payment. The value range is 1 to 3.
When the value of> ChargeType is PrePaid, this parameter is available and must be passed in.
- Egress
Ipv6Enable bool - Specifies whether IPv6 egress capability is enabled.
- Instance
Cidr string - The CIDR block for the instance deployment. Valid values are:
192.168.0.0/16
.172.16.0.0/12
.
- Instance
Type string - The type of the instance. Valid values are:
- Ipv6Enabled bool
- Specifies whether IPv6 ingress capability is enabled.
- Pricing
Cycle string - The subscription instance is of the subscription year or month type. This parameter is required when the Payment type is PrePaid. The value range is as follows:
- To
Connect InstanceVpc Ip Block To Connect Vpc Ip Block Args - The additional IP block that the VPC integration instance can access, conflict with
delete_vpc_ip_block
. Seeto_connect_vpc_ip_block
below. - User
Vpc stringId - User's VpcID.
- Vpc
Slb boolIntranet Enable - Whether the slb of the Vpc supports.
- Zone
Id string - The zone where the instance is deployed.
- Zone
Vswitch []InstanceSecurity Groups Zone Vswitch Security Group Args - Network configuration details for Vpc integration instance which includes the availability zone, VSwitch, and security group information. See
zone_vswitch_security_group
below.
- https
Policy String - Https policy.
- instance
Name String - Instance name.
- instance
Spec String - Instance type.
- payment
Type String - The payment type of the resource.
- delete
Vpc StringIp Block - Indicates whether to delete the IP block that the VPC can access, conflict with
to_connect_vpc_ip_block
. - duration Integer
The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is Year, indicating annual payment. The value range is 1 to 3.
When the value of> ChargeType is PrePaid, this parameter is available and must be passed in.
- egress
Ipv6Enable Boolean - Specifies whether IPv6 egress capability is enabled.
- instance
Cidr String - The CIDR block for the instance deployment. Valid values are:
192.168.0.0/16
.172.16.0.0/12
.
- instance
Type String - The type of the instance. Valid values are:
- ipv6Enabled Boolean
- Specifies whether IPv6 ingress capability is enabled.
- pricing
Cycle String - The subscription instance is of the subscription year or month type. This parameter is required when the Payment type is PrePaid. The value range is as follows:
- to
Connect InstanceVpc Ip Block To Connect Vpc Ip Block - The additional IP block that the VPC integration instance can access, conflict with
delete_vpc_ip_block
. Seeto_connect_vpc_ip_block
below. - user
Vpc StringId - User's VpcID.
- vpc
Slb BooleanIntranet Enable - Whether the slb of the Vpc supports.
- zone
Id String - The zone where the instance is deployed.
- zone
Vswitch List<InstanceSecurity Groups Zone Vswitch Security Group> - Network configuration details for Vpc integration instance which includes the availability zone, VSwitch, and security group information. See
zone_vswitch_security_group
below.
- https
Policy string - Https policy.
- instance
Name string - Instance name.
- instance
Spec string - Instance type.
- payment
Type string - The payment type of the resource.
- delete
Vpc stringIp Block - Indicates whether to delete the IP block that the VPC can access, conflict with
to_connect_vpc_ip_block
. - duration number
The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is Year, indicating annual payment. The value range is 1 to 3.
When the value of> ChargeType is PrePaid, this parameter is available and must be passed in.
- egress
Ipv6Enable boolean - Specifies whether IPv6 egress capability is enabled.
- instance
Cidr string - The CIDR block for the instance deployment. Valid values are:
192.168.0.0/16
.172.16.0.0/12
.
- instance
Type string - The type of the instance. Valid values are:
- ipv6Enabled boolean
- Specifies whether IPv6 ingress capability is enabled.
- pricing
Cycle string - The subscription instance is of the subscription year or month type. This parameter is required when the Payment type is PrePaid. The value range is as follows:
- to
Connect InstanceVpc Ip Block To Connect Vpc Ip Block - The additional IP block that the VPC integration instance can access, conflict with
delete_vpc_ip_block
. Seeto_connect_vpc_ip_block
below. - user
Vpc stringId - User's VpcID.
- vpc
Slb booleanIntranet Enable - Whether the slb of the Vpc supports.
- zone
Id string - The zone where the instance is deployed.
- zone
Vswitch InstanceSecurity Groups Zone Vswitch Security Group[] - Network configuration details for Vpc integration instance which includes the availability zone, VSwitch, and security group information. See
zone_vswitch_security_group
below.
- https_
policy str - Https policy.
- instance_
name str - Instance name.
- instance_
spec str - Instance type.
- payment_
type str - The payment type of the resource.
- delete_
vpc_ strip_ block - Indicates whether to delete the IP block that the VPC can access, conflict with
to_connect_vpc_ip_block
. - duration int
The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is Year, indicating annual payment. The value range is 1 to 3.
When the value of> ChargeType is PrePaid, this parameter is available and must be passed in.
- egress_
ipv6_ boolenable - Specifies whether IPv6 egress capability is enabled.
- instance_
cidr str - The CIDR block for the instance deployment. Valid values are:
192.168.0.0/16
.172.16.0.0/12
.
- instance_
type str - The type of the instance. Valid values are:
- ipv6_
enabled bool - Specifies whether IPv6 ingress capability is enabled.
- pricing_
cycle str - The subscription instance is of the subscription year or month type. This parameter is required when the Payment type is PrePaid. The value range is as follows:
- to_
connect_ Instancevpc_ ip_ block To Connect Vpc Ip Block Args - The additional IP block that the VPC integration instance can access, conflict with
delete_vpc_ip_block
. Seeto_connect_vpc_ip_block
below. - user_
vpc_ strid - User's VpcID.
- vpc_
slb_ boolintranet_ enable - Whether the slb of the Vpc supports.
- zone_
id str - The zone where the instance is deployed.
- zone_
vswitch_ Sequence[Instancesecurity_ groups Zone Vswitch Security Group Args] - Network configuration details for Vpc integration instance which includes the availability zone, VSwitch, and security group information. See
zone_vswitch_security_group
below.
- https
Policy String - Https policy.
- instance
Name String - Instance name.
- instance
Spec String - Instance type.
- payment
Type String - The payment type of the resource.
- delete
Vpc StringIp Block - Indicates whether to delete the IP block that the VPC can access, conflict with
to_connect_vpc_ip_block
. - duration Number
The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is Year, indicating annual payment. The value range is 1 to 3.
When the value of> ChargeType is PrePaid, this parameter is available and must be passed in.
- egress
Ipv6Enable Boolean - Specifies whether IPv6 egress capability is enabled.
- instance
Cidr String - The CIDR block for the instance deployment. Valid values are:
192.168.0.0/16
.172.16.0.0/12
.
- instance
Type String - The type of the instance. Valid values are:
- ipv6Enabled Boolean
- Specifies whether IPv6 ingress capability is enabled.
- pricing
Cycle String - The subscription instance is of the subscription year or month type. This parameter is required when the Payment type is PrePaid. The value range is as follows:
- to
Connect Property MapVpc Ip Block - The additional IP block that the VPC integration instance can access, conflict with
delete_vpc_ip_block
. Seeto_connect_vpc_ip_block
below. - user
Vpc StringId - User's VpcID.
- vpc
Slb BooleanIntranet Enable - Whether the slb of the Vpc supports.
- zone
Id String - The zone where the instance is deployed.
- zone
Vswitch List<Property Map>Security Groups - Network configuration details for Vpc integration instance which includes the availability zone, VSwitch, and security group information. See
zone_vswitch_security_group
below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Connect
Cidr stringBlocks - (Available since v1.228.0) The CIDR blocks that can be accessed by the Vpc integration instance.
- Create
Time string - Creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The status of the resource.
- Support
Ipv6 bool - Does ipv6 support.
- Connect
Cidr stringBlocks - (Available since v1.228.0) The CIDR blocks that can be accessed by the Vpc integration instance.
- Create
Time string - Creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The status of the resource.
- Support
Ipv6 bool - Does ipv6 support.
- connect
Cidr StringBlocks - (Available since v1.228.0) The CIDR blocks that can be accessed by the Vpc integration instance.
- create
Time String - Creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The status of the resource.
- support
Ipv6 Boolean - Does ipv6 support.
- connect
Cidr stringBlocks - (Available since v1.228.0) The CIDR blocks that can be accessed by the Vpc integration instance.
- create
Time string - Creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- The status of the resource.
- support
Ipv6 boolean - Does ipv6 support.
- connect_
cidr_ strblocks - (Available since v1.228.0) The CIDR blocks that can be accessed by the Vpc integration instance.
- create_
time str - Creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- The status of the resource.
- support_
ipv6 bool - Does ipv6 support.
- connect
Cidr StringBlocks - (Available since v1.228.0) The CIDR blocks that can be accessed by the Vpc integration instance.
- create
Time String - Creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The status of the resource.
- support
Ipv6 Boolean - Does ipv6 support.
Look up Existing Instance Resource
Get an existing Instance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: InstanceState, opts?: CustomResourceOptions): Instance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
connect_cidr_blocks: Optional[str] = None,
create_time: Optional[str] = None,
delete_vpc_ip_block: Optional[str] = None,
duration: Optional[int] = None,
egress_ipv6_enable: Optional[bool] = None,
https_policy: Optional[str] = None,
instance_cidr: Optional[str] = None,
instance_name: Optional[str] = None,
instance_spec: Optional[str] = None,
instance_type: Optional[str] = None,
ipv6_enabled: Optional[bool] = None,
payment_type: Optional[str] = None,
pricing_cycle: Optional[str] = None,
status: Optional[str] = None,
support_ipv6: Optional[bool] = None,
to_connect_vpc_ip_block: Optional[InstanceToConnectVpcIpBlockArgs] = None,
user_vpc_id: Optional[str] = None,
vpc_slb_intranet_enable: Optional[bool] = None,
zone_id: Optional[str] = None,
zone_vswitch_security_groups: Optional[Sequence[InstanceZoneVswitchSecurityGroupArgs]] = None) -> Instance
func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)
public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)
public static Instance get(String name, Output<String> id, InstanceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Connect
Cidr stringBlocks - (Available since v1.228.0) The CIDR blocks that can be accessed by the Vpc integration instance.
- Create
Time string - Creation time.
- Delete
Vpc stringIp Block - Indicates whether to delete the IP block that the VPC can access, conflict with
to_connect_vpc_ip_block
. - Duration int
The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is Year, indicating annual payment. The value range is 1 to 3.
When the value of> ChargeType is PrePaid, this parameter is available and must be passed in.
- Egress
Ipv6Enable bool - Specifies whether IPv6 egress capability is enabled.
- Https
Policy string - Https policy.
- Instance
Cidr string - The CIDR block for the instance deployment. Valid values are:
192.168.0.0/16
.172.16.0.0/12
.
- Instance
Name string - Instance name.
- Instance
Spec string - Instance type.
- Instance
Type string - The type of the instance. Valid values are:
- Ipv6Enabled bool
- Specifies whether IPv6 ingress capability is enabled.
- Payment
Type string - The payment type of the resource.
- Pricing
Cycle string - The subscription instance is of the subscription year or month type. This parameter is required when the Payment type is PrePaid. The value range is as follows:
- Status string
- The status of the resource.
- Support
Ipv6 bool - Does ipv6 support.
- To
Connect Pulumi.Vpc Ip Block Ali Cloud. Api Gateway. Inputs. Instance To Connect Vpc Ip Block - The additional IP block that the VPC integration instance can access, conflict with
delete_vpc_ip_block
. Seeto_connect_vpc_ip_block
below. - User
Vpc stringId - User's VpcID.
- Vpc
Slb boolIntranet Enable - Whether the slb of the Vpc supports.
- Zone
Id string - The zone where the instance is deployed.
- Zone
Vswitch List<Pulumi.Security Groups Ali Cloud. Api Gateway. Inputs. Instance Zone Vswitch Security Group> - Network configuration details for Vpc integration instance which includes the availability zone, VSwitch, and security group information. See
zone_vswitch_security_group
below.
- Connect
Cidr stringBlocks - (Available since v1.228.0) The CIDR blocks that can be accessed by the Vpc integration instance.
- Create
Time string - Creation time.
- Delete
Vpc stringIp Block - Indicates whether to delete the IP block that the VPC can access, conflict with
to_connect_vpc_ip_block
. - Duration int
The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is Year, indicating annual payment. The value range is 1 to 3.
When the value of> ChargeType is PrePaid, this parameter is available and must be passed in.
- Egress
Ipv6Enable bool - Specifies whether IPv6 egress capability is enabled.
- Https
Policy string - Https policy.
- Instance
Cidr string - The CIDR block for the instance deployment. Valid values are:
192.168.0.0/16
.172.16.0.0/12
.
- Instance
Name string - Instance name.
- Instance
Spec string - Instance type.
- Instance
Type string - The type of the instance. Valid values are:
- Ipv6Enabled bool
- Specifies whether IPv6 ingress capability is enabled.
- Payment
Type string - The payment type of the resource.
- Pricing
Cycle string - The subscription instance is of the subscription year or month type. This parameter is required when the Payment type is PrePaid. The value range is as follows:
- Status string
- The status of the resource.
- Support
Ipv6 bool - Does ipv6 support.
- To
Connect InstanceVpc Ip Block To Connect Vpc Ip Block Args - The additional IP block that the VPC integration instance can access, conflict with
delete_vpc_ip_block
. Seeto_connect_vpc_ip_block
below. - User
Vpc stringId - User's VpcID.
- Vpc
Slb boolIntranet Enable - Whether the slb of the Vpc supports.
- Zone
Id string - The zone where the instance is deployed.
- Zone
Vswitch []InstanceSecurity Groups Zone Vswitch Security Group Args - Network configuration details for Vpc integration instance which includes the availability zone, VSwitch, and security group information. See
zone_vswitch_security_group
below.
- connect
Cidr StringBlocks - (Available since v1.228.0) The CIDR blocks that can be accessed by the Vpc integration instance.
- create
Time String - Creation time.
- delete
Vpc StringIp Block - Indicates whether to delete the IP block that the VPC can access, conflict with
to_connect_vpc_ip_block
. - duration Integer
The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is Year, indicating annual payment. The value range is 1 to 3.
When the value of> ChargeType is PrePaid, this parameter is available and must be passed in.
- egress
Ipv6Enable Boolean - Specifies whether IPv6 egress capability is enabled.
- https
Policy String - Https policy.
- instance
Cidr String - The CIDR block for the instance deployment. Valid values are:
192.168.0.0/16
.172.16.0.0/12
.
- instance
Name String - Instance name.
- instance
Spec String - Instance type.
- instance
Type String - The type of the instance. Valid values are:
- ipv6Enabled Boolean
- Specifies whether IPv6 ingress capability is enabled.
- payment
Type String - The payment type of the resource.
- pricing
Cycle String - The subscription instance is of the subscription year or month type. This parameter is required when the Payment type is PrePaid. The value range is as follows:
- status String
- The status of the resource.
- support
Ipv6 Boolean - Does ipv6 support.
- to
Connect InstanceVpc Ip Block To Connect Vpc Ip Block - The additional IP block that the VPC integration instance can access, conflict with
delete_vpc_ip_block
. Seeto_connect_vpc_ip_block
below. - user
Vpc StringId - User's VpcID.
- vpc
Slb BooleanIntranet Enable - Whether the slb of the Vpc supports.
- zone
Id String - The zone where the instance is deployed.
- zone
Vswitch List<InstanceSecurity Groups Zone Vswitch Security Group> - Network configuration details for Vpc integration instance which includes the availability zone, VSwitch, and security group information. See
zone_vswitch_security_group
below.
- connect
Cidr stringBlocks - (Available since v1.228.0) The CIDR blocks that can be accessed by the Vpc integration instance.
- create
Time string - Creation time.
- delete
Vpc stringIp Block - Indicates whether to delete the IP block that the VPC can access, conflict with
to_connect_vpc_ip_block
. - duration number
The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is Year, indicating annual payment. The value range is 1 to 3.
When the value of> ChargeType is PrePaid, this parameter is available and must be passed in.
- egress
Ipv6Enable boolean - Specifies whether IPv6 egress capability is enabled.
- https
Policy string - Https policy.
- instance
Cidr string - The CIDR block for the instance deployment. Valid values are:
192.168.0.0/16
.172.16.0.0/12
.
- instance
Name string - Instance name.
- instance
Spec string - Instance type.
- instance
Type string - The type of the instance. Valid values are:
- ipv6Enabled boolean
- Specifies whether IPv6 ingress capability is enabled.
- payment
Type string - The payment type of the resource.
- pricing
Cycle string - The subscription instance is of the subscription year or month type. This parameter is required when the Payment type is PrePaid. The value range is as follows:
- status string
- The status of the resource.
- support
Ipv6 boolean - Does ipv6 support.
- to
Connect InstanceVpc Ip Block To Connect Vpc Ip Block - The additional IP block that the VPC integration instance can access, conflict with
delete_vpc_ip_block
. Seeto_connect_vpc_ip_block
below. - user
Vpc stringId - User's VpcID.
- vpc
Slb booleanIntranet Enable - Whether the slb of the Vpc supports.
- zone
Id string - The zone where the instance is deployed.
- zone
Vswitch InstanceSecurity Groups Zone Vswitch Security Group[] - Network configuration details for Vpc integration instance which includes the availability zone, VSwitch, and security group information. See
zone_vswitch_security_group
below.
- connect_
cidr_ strblocks - (Available since v1.228.0) The CIDR blocks that can be accessed by the Vpc integration instance.
- create_
time str - Creation time.
- delete_
vpc_ strip_ block - Indicates whether to delete the IP block that the VPC can access, conflict with
to_connect_vpc_ip_block
. - duration int
The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is Year, indicating annual payment. The value range is 1 to 3.
When the value of> ChargeType is PrePaid, this parameter is available and must be passed in.
- egress_
ipv6_ boolenable - Specifies whether IPv6 egress capability is enabled.
- https_
policy str - Https policy.
- instance_
cidr str - The CIDR block for the instance deployment. Valid values are:
192.168.0.0/16
.172.16.0.0/12
.
- instance_
name str - Instance name.
- instance_
spec str - Instance type.
- instance_
type str - The type of the instance. Valid values are:
- ipv6_
enabled bool - Specifies whether IPv6 ingress capability is enabled.
- payment_
type str - The payment type of the resource.
- pricing_
cycle str - The subscription instance is of the subscription year or month type. This parameter is required when the Payment type is PrePaid. The value range is as follows:
- status str
- The status of the resource.
- support_
ipv6 bool - Does ipv6 support.
- to_
connect_ Instancevpc_ ip_ block To Connect Vpc Ip Block Args - The additional IP block that the VPC integration instance can access, conflict with
delete_vpc_ip_block
. Seeto_connect_vpc_ip_block
below. - user_
vpc_ strid - User's VpcID.
- vpc_
slb_ boolintranet_ enable - Whether the slb of the Vpc supports.
- zone_
id str - The zone where the instance is deployed.
- zone_
vswitch_ Sequence[Instancesecurity_ groups Zone Vswitch Security Group Args] - Network configuration details for Vpc integration instance which includes the availability zone, VSwitch, and security group information. See
zone_vswitch_security_group
below.
- connect
Cidr StringBlocks - (Available since v1.228.0) The CIDR blocks that can be accessed by the Vpc integration instance.
- create
Time String - Creation time.
- delete
Vpc StringIp Block - Indicates whether to delete the IP block that the VPC can access, conflict with
to_connect_vpc_ip_block
. - duration Number
The time of the instance package. Valid values:
- PricingCycle is Month, indicating monthly payment. The value range is 1 to 9.
- PricingCycle is Year, indicating annual payment. The value range is 1 to 3.
When the value of> ChargeType is PrePaid, this parameter is available and must be passed in.
- egress
Ipv6Enable Boolean - Specifies whether IPv6 egress capability is enabled.
- https
Policy String - Https policy.
- instance
Cidr String - The CIDR block for the instance deployment. Valid values are:
192.168.0.0/16
.172.16.0.0/12
.
- instance
Name String - Instance name.
- instance
Spec String - Instance type.
- instance
Type String - The type of the instance. Valid values are:
- ipv6Enabled Boolean
- Specifies whether IPv6 ingress capability is enabled.
- payment
Type String - The payment type of the resource.
- pricing
Cycle String - The subscription instance is of the subscription year or month type. This parameter is required when the Payment type is PrePaid. The value range is as follows:
- status String
- The status of the resource.
- support
Ipv6 Boolean - Does ipv6 support.
- to
Connect Property MapVpc Ip Block - The additional IP block that the VPC integration instance can access, conflict with
delete_vpc_ip_block
. Seeto_connect_vpc_ip_block
below. - user
Vpc StringId - User's VpcID.
- vpc
Slb BooleanIntranet Enable - Whether the slb of the Vpc supports.
- zone
Id String - The zone where the instance is deployed.
- zone
Vswitch List<Property Map>Security Groups - Network configuration details for Vpc integration instance which includes the availability zone, VSwitch, and security group information. See
zone_vswitch_security_group
below.
Supporting Types
InstanceToConnectVpcIpBlock, InstanceToConnectVpcIpBlockArgs
- Cidr
Block string - The CIDR block of the VSwitch.
- Customized bool
- Specifies whether the IP block is customized.
- Vswitch
Id string - The VSwitch ID.
- Zone
Id string - The zone ID.
- Cidr
Block string - The CIDR block of the VSwitch.
- Customized bool
- Specifies whether the IP block is customized.
- Vswitch
Id string - The VSwitch ID.
- Zone
Id string - The zone ID.
- cidr
Block String - The CIDR block of the VSwitch.
- customized Boolean
- Specifies whether the IP block is customized.
- vswitch
Id String - The VSwitch ID.
- zone
Id String - The zone ID.
- cidr
Block string - The CIDR block of the VSwitch.
- customized boolean
- Specifies whether the IP block is customized.
- vswitch
Id string - The VSwitch ID.
- zone
Id string - The zone ID.
- cidr_
block str - The CIDR block of the VSwitch.
- customized bool
- Specifies whether the IP block is customized.
- vswitch_
id str - The VSwitch ID.
- zone_
id str - The zone ID.
- cidr
Block String - The CIDR block of the VSwitch.
- customized Boolean
- Specifies whether the IP block is customized.
- vswitch
Id String - The VSwitch ID.
- zone
Id String - The zone ID.
InstanceZoneVswitchSecurityGroup, InstanceZoneVswitchSecurityGroupArgs
- Cidr
Block string - The CIDR block of the VSwitch.
- Security
Group string - The ID of the security group.
- Vswitch
Id string - The VSwitch ID.
- Zone
Id string - The zone ID.
- Cidr
Block string - The CIDR block of the VSwitch.
- Security
Group string - The ID of the security group.
- Vswitch
Id string - The VSwitch ID.
- Zone
Id string - The zone ID.
- cidr
Block String - The CIDR block of the VSwitch.
- security
Group String - The ID of the security group.
- vswitch
Id String - The VSwitch ID.
- zone
Id String - The zone ID.
- cidr
Block string - The CIDR block of the VSwitch.
- security
Group string - The ID of the security group.
- vswitch
Id string - The VSwitch ID.
- zone
Id string - The zone ID.
- cidr_
block str - The CIDR block of the VSwitch.
- security_
group str - The ID of the security group.
- vswitch_
id str - The VSwitch ID.
- zone_
id str - The zone ID.
- cidr
Block String - The CIDR block of the VSwitch.
- security
Group String - The ID of the security group.
- vswitch
Id String - The VSwitch ID.
- zone
Id String - The zone ID.
Import
Api Gateway Instance can be imported using the id, e.g.
$ pulumi import alicloud:apigateway/instance:Instance example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.