1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. WafDedicatedInstance
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.WafDedicatedInstance

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manages a WAF dedicated instance resource within FlexibleEngine.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const azName = config.requireObject("azName");
    const ecsFlavorId = config.requireObject("ecsFlavorId");
    const exampleVpc = new flexibleengine.VpcV1("exampleVpc", {cidr: "192.168.0.0/16"});
    const exampleSubnet = new flexibleengine.VpcSubnetV1("exampleSubnet", {
        cidr: "192.168.0.0/24",
        gatewayIp: "192.168.0.1",
        vpcId: exampleVpc.vpcV1Id,
    });
    const exampleSecgroup = new flexibleengine.NetworkingSecgroupV2("exampleSecgroup", {description: "My neutron security group"});
    const instance1 = new flexibleengine.WafDedicatedInstance("instance1", {
        availableZone: azName,
        specificationCode: "waf.instance.professional",
        ecsFlavor: ecsFlavorId,
        vpcId: exampleVpc.vpcV1Id,
        subnetId: exampleSubnet.vpcSubnetV1Id,
        securityGroups: [exampleSecgroup.networkingSecgroupV2Id],
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    az_name = config.require_object("azName")
    ecs_flavor_id = config.require_object("ecsFlavorId")
    example_vpc = flexibleengine.VpcV1("exampleVpc", cidr="192.168.0.0/16")
    example_subnet = flexibleengine.VpcSubnetV1("exampleSubnet",
        cidr="192.168.0.0/24",
        gateway_ip="192.168.0.1",
        vpc_id=example_vpc.vpc_v1_id)
    example_secgroup = flexibleengine.NetworkingSecgroupV2("exampleSecgroup", description="My neutron security group")
    instance1 = flexibleengine.WafDedicatedInstance("instance1",
        available_zone=az_name,
        specification_code="waf.instance.professional",
        ecs_flavor=ecs_flavor_id,
        vpc_id=example_vpc.vpc_v1_id,
        subnet_id=example_subnet.vpc_subnet_v1_id,
        security_groups=[example_secgroup.networking_secgroup_v2_id])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"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, "")
    		azName := cfg.RequireObject("azName")
    		ecsFlavorId := cfg.RequireObject("ecsFlavorId")
    		exampleVpc, err := flexibleengine.NewVpcV1(ctx, "exampleVpc", &flexibleengine.VpcV1Args{
    			Cidr: pulumi.String("192.168.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSubnet, err := flexibleengine.NewVpcSubnetV1(ctx, "exampleSubnet", &flexibleengine.VpcSubnetV1Args{
    			Cidr:      pulumi.String("192.168.0.0/24"),
    			GatewayIp: pulumi.String("192.168.0.1"),
    			VpcId:     exampleVpc.VpcV1Id,
    		})
    		if err != nil {
    			return err
    		}
    		exampleSecgroup, err := flexibleengine.NewNetworkingSecgroupV2(ctx, "exampleSecgroup", &flexibleengine.NetworkingSecgroupV2Args{
    			Description: pulumi.String("My neutron security group"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = flexibleengine.NewWafDedicatedInstance(ctx, "instance1", &flexibleengine.WafDedicatedInstanceArgs{
    			AvailableZone:     pulumi.Any(azName),
    			SpecificationCode: pulumi.String("waf.instance.professional"),
    			EcsFlavor:         pulumi.Any(ecsFlavorId),
    			VpcId:             exampleVpc.VpcV1Id,
    			SubnetId:          exampleSubnet.VpcSubnetV1Id,
    			SecurityGroups: pulumi.StringArray{
    				exampleSecgroup.NetworkingSecgroupV2Id,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var azName = config.RequireObject<dynamic>("azName");
        var ecsFlavorId = config.RequireObject<dynamic>("ecsFlavorId");
        var exampleVpc = new Flexibleengine.VpcV1("exampleVpc", new()
        {
            Cidr = "192.168.0.0/16",
        });
    
        var exampleSubnet = new Flexibleengine.VpcSubnetV1("exampleSubnet", new()
        {
            Cidr = "192.168.0.0/24",
            GatewayIp = "192.168.0.1",
            VpcId = exampleVpc.VpcV1Id,
        });
    
        var exampleSecgroup = new Flexibleengine.NetworkingSecgroupV2("exampleSecgroup", new()
        {
            Description = "My neutron security group",
        });
    
        var instance1 = new Flexibleengine.WafDedicatedInstance("instance1", new()
        {
            AvailableZone = azName,
            SpecificationCode = "waf.instance.professional",
            EcsFlavor = ecsFlavorId,
            VpcId = exampleVpc.VpcV1Id,
            SubnetId = exampleSubnet.VpcSubnetV1Id,
            SecurityGroups = new[]
            {
                exampleSecgroup.NetworkingSecgroupV2Id,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.VpcV1;
    import com.pulumi.flexibleengine.VpcV1Args;
    import com.pulumi.flexibleengine.VpcSubnetV1;
    import com.pulumi.flexibleengine.VpcSubnetV1Args;
    import com.pulumi.flexibleengine.NetworkingSecgroupV2;
    import com.pulumi.flexibleengine.NetworkingSecgroupV2Args;
    import com.pulumi.flexibleengine.WafDedicatedInstance;
    import com.pulumi.flexibleengine.WafDedicatedInstanceArgs;
    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 azName = config.get("azName");
            final var ecsFlavorId = config.get("ecsFlavorId");
            var exampleVpc = new VpcV1("exampleVpc", VpcV1Args.builder()
                .cidr("192.168.0.0/16")
                .build());
    
            var exampleSubnet = new VpcSubnetV1("exampleSubnet", VpcSubnetV1Args.builder()
                .cidr("192.168.0.0/24")
                .gatewayIp("192.168.0.1")
                .vpcId(exampleVpc.vpcV1Id())
                .build());
    
            var exampleSecgroup = new NetworkingSecgroupV2("exampleSecgroup", NetworkingSecgroupV2Args.builder()
                .description("My neutron security group")
                .build());
    
            var instance1 = new WafDedicatedInstance("instance1", WafDedicatedInstanceArgs.builder()
                .availableZone(azName)
                .specificationCode("waf.instance.professional")
                .ecsFlavor(ecsFlavorId)
                .vpcId(exampleVpc.vpcV1Id())
                .subnetId(exampleSubnet.vpcSubnetV1Id())
                .securityGroups(exampleSecgroup.networkingSecgroupV2Id())
                .build());
    
        }
    }
    
    configuration:
      azName:
        type: dynamic
      ecsFlavorId:
        type: dynamic
    resources:
      exampleVpc:
        type: flexibleengine:VpcV1
        properties:
          cidr: 192.168.0.0/16
      exampleSubnet:
        type: flexibleengine:VpcSubnetV1
        properties:
          cidr: 192.168.0.0/24
          gatewayIp: 192.168.0.1
          vpcId: ${exampleVpc.vpcV1Id}
      exampleSecgroup:
        type: flexibleengine:NetworkingSecgroupV2
        properties:
          description: My neutron security group
      instance1:
        type: flexibleengine:WafDedicatedInstance
        properties:
          availableZone: ${azName}
          specificationCode: waf.instance.professional
          ecsFlavor: ${ecsFlavorId}
          vpcId: ${exampleVpc.vpcV1Id}
          subnetId: ${exampleSubnet.vpcSubnetV1Id}
          securityGroups:
            - ${exampleSecgroup.networkingSecgroupV2Id}
    

    Create WafDedicatedInstance Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new WafDedicatedInstance(name: string, args: WafDedicatedInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def WafDedicatedInstance(resource_name: str,
                             args: WafDedicatedInstanceArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def WafDedicatedInstance(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             available_zone: Optional[str] = None,
                             ecs_flavor: Optional[str] = None,
                             security_groups: Optional[Sequence[str]] = None,
                             specification_code: Optional[str] = None,
                             subnet_id: Optional[str] = None,
                             vpc_id: Optional[str] = None,
                             cpu_architecture: Optional[str] = None,
                             group_id: Optional[str] = None,
                             name: Optional[str] = None,
                             region: Optional[str] = None,
                             timeouts: Optional[WafDedicatedInstanceTimeoutsArgs] = None,
                             waf_dedicated_instance_id: Optional[str] = None)
    func NewWafDedicatedInstance(ctx *Context, name string, args WafDedicatedInstanceArgs, opts ...ResourceOption) (*WafDedicatedInstance, error)
    public WafDedicatedInstance(string name, WafDedicatedInstanceArgs args, CustomResourceOptions? opts = null)
    public WafDedicatedInstance(String name, WafDedicatedInstanceArgs args)
    public WafDedicatedInstance(String name, WafDedicatedInstanceArgs args, CustomResourceOptions options)
    
    type: flexibleengine:WafDedicatedInstance
    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 WafDedicatedInstanceArgs
    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 WafDedicatedInstanceArgs
    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 WafDedicatedInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WafDedicatedInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WafDedicatedInstanceArgs
    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 wafDedicatedInstanceResource = new Flexibleengine.WafDedicatedInstance("wafDedicatedInstanceResource", new()
    {
        AvailableZone = "string",
        EcsFlavor = "string",
        SecurityGroups = new[]
        {
            "string",
        },
        SpecificationCode = "string",
        SubnetId = "string",
        VpcId = "string",
        CpuArchitecture = "string",
        GroupId = "string",
        Name = "string",
        Region = "string",
        Timeouts = new Flexibleengine.Inputs.WafDedicatedInstanceTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        WafDedicatedInstanceId = "string",
    });
    
    example, err := flexibleengine.NewWafDedicatedInstance(ctx, "wafDedicatedInstanceResource", &flexibleengine.WafDedicatedInstanceArgs{
    	AvailableZone: pulumi.String("string"),
    	EcsFlavor:     pulumi.String("string"),
    	SecurityGroups: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SpecificationCode: pulumi.String("string"),
    	SubnetId:          pulumi.String("string"),
    	VpcId:             pulumi.String("string"),
    	CpuArchitecture:   pulumi.String("string"),
    	GroupId:           pulumi.String("string"),
    	Name:              pulumi.String("string"),
    	Region:            pulumi.String("string"),
    	Timeouts: &flexibleengine.WafDedicatedInstanceTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	WafDedicatedInstanceId: pulumi.String("string"),
    })
    
    var wafDedicatedInstanceResource = new WafDedicatedInstance("wafDedicatedInstanceResource", WafDedicatedInstanceArgs.builder()
        .availableZone("string")
        .ecsFlavor("string")
        .securityGroups("string")
        .specificationCode("string")
        .subnetId("string")
        .vpcId("string")
        .cpuArchitecture("string")
        .groupId("string")
        .name("string")
        .region("string")
        .timeouts(WafDedicatedInstanceTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .wafDedicatedInstanceId("string")
        .build());
    
    waf_dedicated_instance_resource = flexibleengine.WafDedicatedInstance("wafDedicatedInstanceResource",
        available_zone="string",
        ecs_flavor="string",
        security_groups=["string"],
        specification_code="string",
        subnet_id="string",
        vpc_id="string",
        cpu_architecture="string",
        group_id="string",
        name="string",
        region="string",
        timeouts={
            "create": "string",
            "delete": "string",
        },
        waf_dedicated_instance_id="string")
    
    const wafDedicatedInstanceResource = new flexibleengine.WafDedicatedInstance("wafDedicatedInstanceResource", {
        availableZone: "string",
        ecsFlavor: "string",
        securityGroups: ["string"],
        specificationCode: "string",
        subnetId: "string",
        vpcId: "string",
        cpuArchitecture: "string",
        groupId: "string",
        name: "string",
        region: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
        wafDedicatedInstanceId: "string",
    });
    
    type: flexibleengine:WafDedicatedInstance
    properties:
        availableZone: string
        cpuArchitecture: string
        ecsFlavor: string
        groupId: string
        name: string
        region: string
        securityGroups:
            - string
        specificationCode: string
        subnetId: string
        timeouts:
            create: string
            delete: string
        vpcId: string
        wafDedicatedInstanceId: string
    

    WafDedicatedInstance 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 WafDedicatedInstance resource accepts the following input properties:

    AvailableZone string
    The available zone names for the dedicated instances. It can be obtained through this data source flexibleengine.getAvailabilityZones. Changing this will create a new instance.
    EcsFlavor string

    The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source flexibleengine_compute_flavors. Changing this will create a new instance.

    NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.

    SecurityGroups List<string>
    The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
    SpecificationCode string
    The specification code of instance. Different specifications have different throughput. Changing this will create a new instance. Values are:

    • waf.instance.professional - The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).
    • waf.instance.enterprise - The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
    SubnetId string
    The ID of the VPC Subnet. Changing this will create a new instance.
    VpcId string
    The VPC id of WAF dedicated instance. Changing this will create a new instance.
    CpuArchitecture string
    The ECS cpu architecture of instance, Default value is x86. Changing this will create a new instance.
    GroupId string
    The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
    Name string
    The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
    Region string
    Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
    Timeouts WafDedicatedInstanceTimeouts
    WafDedicatedInstanceId string
    The id of the instance.
    AvailableZone string
    The available zone names for the dedicated instances. It can be obtained through this data source flexibleengine.getAvailabilityZones. Changing this will create a new instance.
    EcsFlavor string

    The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source flexibleengine_compute_flavors. Changing this will create a new instance.

    NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.

    SecurityGroups []string
    The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
    SpecificationCode string
    The specification code of instance. Different specifications have different throughput. Changing this will create a new instance. Values are:

    • waf.instance.professional - The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).
    • waf.instance.enterprise - The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
    SubnetId string
    The ID of the VPC Subnet. Changing this will create a new instance.
    VpcId string
    The VPC id of WAF dedicated instance. Changing this will create a new instance.
    CpuArchitecture string
    The ECS cpu architecture of instance, Default value is x86. Changing this will create a new instance.
    GroupId string
    The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
    Name string
    The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
    Region string
    Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
    Timeouts WafDedicatedInstanceTimeoutsArgs
    WafDedicatedInstanceId string
    The id of the instance.
    availableZone String
    The available zone names for the dedicated instances. It can be obtained through this data source flexibleengine.getAvailabilityZones. Changing this will create a new instance.
    ecsFlavor String

    The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source flexibleengine_compute_flavors. Changing this will create a new instance.

    NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.

    securityGroups List<String>
    The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
    specificationCode String
    The specification code of instance. Different specifications have different throughput. Changing this will create a new instance. Values are:

    • waf.instance.professional - The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).
    • waf.instance.enterprise - The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
    subnetId String
    The ID of the VPC Subnet. Changing this will create a new instance.
    vpcId String
    The VPC id of WAF dedicated instance. Changing this will create a new instance.
    cpuArchitecture String
    The ECS cpu architecture of instance, Default value is x86. Changing this will create a new instance.
    groupId String
    The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
    name String
    The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
    region String
    Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
    timeouts WafDedicatedInstanceTimeouts
    wafDedicatedInstanceId String
    The id of the instance.
    availableZone string
    The available zone names for the dedicated instances. It can be obtained through this data source flexibleengine.getAvailabilityZones. Changing this will create a new instance.
    ecsFlavor string

    The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source flexibleengine_compute_flavors. Changing this will create a new instance.

    NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.

    securityGroups string[]
    The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
    specificationCode string
    The specification code of instance. Different specifications have different throughput. Changing this will create a new instance. Values are:

    • waf.instance.professional - The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).
    • waf.instance.enterprise - The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
    subnetId string
    The ID of the VPC Subnet. Changing this will create a new instance.
    vpcId string
    The VPC id of WAF dedicated instance. Changing this will create a new instance.
    cpuArchitecture string
    The ECS cpu architecture of instance, Default value is x86. Changing this will create a new instance.
    groupId string
    The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
    name string
    The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
    region string
    Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
    timeouts WafDedicatedInstanceTimeouts
    wafDedicatedInstanceId string
    The id of the instance.
    available_zone str
    The available zone names for the dedicated instances. It can be obtained through this data source flexibleengine.getAvailabilityZones. Changing this will create a new instance.
    ecs_flavor str

    The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source flexibleengine_compute_flavors. Changing this will create a new instance.

    NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.

    security_groups Sequence[str]
    The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
    specification_code str
    The specification code of instance. Different specifications have different throughput. Changing this will create a new instance. Values are:

    • waf.instance.professional - The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).
    • waf.instance.enterprise - The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
    subnet_id str
    The ID of the VPC Subnet. Changing this will create a new instance.
    vpc_id str
    The VPC id of WAF dedicated instance. Changing this will create a new instance.
    cpu_architecture str
    The ECS cpu architecture of instance, Default value is x86. Changing this will create a new instance.
    group_id str
    The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
    name str
    The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
    region str
    Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
    timeouts WafDedicatedInstanceTimeoutsArgs
    waf_dedicated_instance_id str
    The id of the instance.
    availableZone String
    The available zone names for the dedicated instances. It can be obtained through this data source flexibleengine.getAvailabilityZones. Changing this will create a new instance.
    ecsFlavor String

    The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source flexibleengine_compute_flavors. Changing this will create a new instance.

    NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.

    securityGroups List<String>
    The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
    specificationCode String
    The specification code of instance. Different specifications have different throughput. Changing this will create a new instance. Values are:

    • waf.instance.professional - The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).
    • waf.instance.enterprise - The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
    subnetId String
    The ID of the VPC Subnet. Changing this will create a new instance.
    vpcId String
    The VPC id of WAF dedicated instance. Changing this will create a new instance.
    cpuArchitecture String
    The ECS cpu architecture of instance, Default value is x86. Changing this will create a new instance.
    groupId String
    The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
    name String
    The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
    region String
    Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
    timeouts Property Map
    wafDedicatedInstanceId String
    The id of the instance.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the WafDedicatedInstance resource produces the following output properties:

    AccessStatus double
    The access status of the instance. 0: inaccessible, 1: accessible.
    Id string
    The provider-assigned unique ID for this managed resource.
    RunStatus double
    The running status of the instance. Values are:
    ServerId string
    The id of the instance server.
    ServiceIp string
    The ip of the instance service.
    Upgradable double
    The instance is to support upgrades. 0: Cannot be upgraded, 1: Can be upgraded.
    AccessStatus float64
    The access status of the instance. 0: inaccessible, 1: accessible.
    Id string
    The provider-assigned unique ID for this managed resource.
    RunStatus float64
    The running status of the instance. Values are:
    ServerId string
    The id of the instance server.
    ServiceIp string
    The ip of the instance service.
    Upgradable float64
    The instance is to support upgrades. 0: Cannot be upgraded, 1: Can be upgraded.
    accessStatus Double
    The access status of the instance. 0: inaccessible, 1: accessible.
    id String
    The provider-assigned unique ID for this managed resource.
    runStatus Double
    The running status of the instance. Values are:
    serverId String
    The id of the instance server.
    serviceIp String
    The ip of the instance service.
    upgradable Double
    The instance is to support upgrades. 0: Cannot be upgraded, 1: Can be upgraded.
    accessStatus number
    The access status of the instance. 0: inaccessible, 1: accessible.
    id string
    The provider-assigned unique ID for this managed resource.
    runStatus number
    The running status of the instance. Values are:
    serverId string
    The id of the instance server.
    serviceIp string
    The ip of the instance service.
    upgradable number
    The instance is to support upgrades. 0: Cannot be upgraded, 1: Can be upgraded.
    access_status float
    The access status of the instance. 0: inaccessible, 1: accessible.
    id str
    The provider-assigned unique ID for this managed resource.
    run_status float
    The running status of the instance. Values are:
    server_id str
    The id of the instance server.
    service_ip str
    The ip of the instance service.
    upgradable float
    The instance is to support upgrades. 0: Cannot be upgraded, 1: Can be upgraded.
    accessStatus Number
    The access status of the instance. 0: inaccessible, 1: accessible.
    id String
    The provider-assigned unique ID for this managed resource.
    runStatus Number
    The running status of the instance. Values are:
    serverId String
    The id of the instance server.
    serviceIp String
    The ip of the instance service.
    upgradable Number
    The instance is to support upgrades. 0: Cannot be upgraded, 1: Can be upgraded.

    Look up Existing WafDedicatedInstance Resource

    Get an existing WafDedicatedInstance 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?: WafDedicatedInstanceState, opts?: CustomResourceOptions): WafDedicatedInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_status: Optional[float] = None,
            available_zone: Optional[str] = None,
            cpu_architecture: Optional[str] = None,
            ecs_flavor: Optional[str] = None,
            group_id: Optional[str] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            run_status: Optional[float] = None,
            security_groups: Optional[Sequence[str]] = None,
            server_id: Optional[str] = None,
            service_ip: Optional[str] = None,
            specification_code: Optional[str] = None,
            subnet_id: Optional[str] = None,
            timeouts: Optional[WafDedicatedInstanceTimeoutsArgs] = None,
            upgradable: Optional[float] = None,
            vpc_id: Optional[str] = None,
            waf_dedicated_instance_id: Optional[str] = None) -> WafDedicatedInstance
    func GetWafDedicatedInstance(ctx *Context, name string, id IDInput, state *WafDedicatedInstanceState, opts ...ResourceOption) (*WafDedicatedInstance, error)
    public static WafDedicatedInstance Get(string name, Input<string> id, WafDedicatedInstanceState? state, CustomResourceOptions? opts = null)
    public static WafDedicatedInstance get(String name, Output<String> id, WafDedicatedInstanceState state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:WafDedicatedInstance    get:      id: ${id}
    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.
    The following state arguments are supported:
    AccessStatus double
    The access status of the instance. 0: inaccessible, 1: accessible.
    AvailableZone string
    The available zone names for the dedicated instances. It can be obtained through this data source flexibleengine.getAvailabilityZones. Changing this will create a new instance.
    CpuArchitecture string
    The ECS cpu architecture of instance, Default value is x86. Changing this will create a new instance.
    EcsFlavor string

    The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source flexibleengine_compute_flavors. Changing this will create a new instance.

    NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.

    GroupId string
    The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
    Name string
    The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
    Region string
    Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
    RunStatus double
    The running status of the instance. Values are:
    SecurityGroups List<string>
    The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
    ServerId string
    The id of the instance server.
    ServiceIp string
    The ip of the instance service.
    SpecificationCode string
    The specification code of instance. Different specifications have different throughput. Changing this will create a new instance. Values are:

    • waf.instance.professional - The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).
    • waf.instance.enterprise - The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
    SubnetId string
    The ID of the VPC Subnet. Changing this will create a new instance.
    Timeouts WafDedicatedInstanceTimeouts
    Upgradable double
    The instance is to support upgrades. 0: Cannot be upgraded, 1: Can be upgraded.
    VpcId string
    The VPC id of WAF dedicated instance. Changing this will create a new instance.
    WafDedicatedInstanceId string
    The id of the instance.
    AccessStatus float64
    The access status of the instance. 0: inaccessible, 1: accessible.
    AvailableZone string
    The available zone names for the dedicated instances. It can be obtained through this data source flexibleengine.getAvailabilityZones. Changing this will create a new instance.
    CpuArchitecture string
    The ECS cpu architecture of instance, Default value is x86. Changing this will create a new instance.
    EcsFlavor string

    The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source flexibleengine_compute_flavors. Changing this will create a new instance.

    NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.

    GroupId string
    The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
    Name string
    The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
    Region string
    Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
    RunStatus float64
    The running status of the instance. Values are:
    SecurityGroups []string
    The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
    ServerId string
    The id of the instance server.
    ServiceIp string
    The ip of the instance service.
    SpecificationCode string
    The specification code of instance. Different specifications have different throughput. Changing this will create a new instance. Values are:

    • waf.instance.professional - The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).
    • waf.instance.enterprise - The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
    SubnetId string
    The ID of the VPC Subnet. Changing this will create a new instance.
    Timeouts WafDedicatedInstanceTimeoutsArgs
    Upgradable float64
    The instance is to support upgrades. 0: Cannot be upgraded, 1: Can be upgraded.
    VpcId string
    The VPC id of WAF dedicated instance. Changing this will create a new instance.
    WafDedicatedInstanceId string
    The id of the instance.
    accessStatus Double
    The access status of the instance. 0: inaccessible, 1: accessible.
    availableZone String
    The available zone names for the dedicated instances. It can be obtained through this data source flexibleengine.getAvailabilityZones. Changing this will create a new instance.
    cpuArchitecture String
    The ECS cpu architecture of instance, Default value is x86. Changing this will create a new instance.
    ecsFlavor String

    The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source flexibleengine_compute_flavors. Changing this will create a new instance.

    NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.

    groupId String
    The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
    name String
    The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
    region String
    Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
    runStatus Double
    The running status of the instance. Values are:
    securityGroups List<String>
    The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
    serverId String
    The id of the instance server.
    serviceIp String
    The ip of the instance service.
    specificationCode String
    The specification code of instance. Different specifications have different throughput. Changing this will create a new instance. Values are:

    • waf.instance.professional - The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).
    • waf.instance.enterprise - The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
    subnetId String
    The ID of the VPC Subnet. Changing this will create a new instance.
    timeouts WafDedicatedInstanceTimeouts
    upgradable Double
    The instance is to support upgrades. 0: Cannot be upgraded, 1: Can be upgraded.
    vpcId String
    The VPC id of WAF dedicated instance. Changing this will create a new instance.
    wafDedicatedInstanceId String
    The id of the instance.
    accessStatus number
    The access status of the instance. 0: inaccessible, 1: accessible.
    availableZone string
    The available zone names for the dedicated instances. It can be obtained through this data source flexibleengine.getAvailabilityZones. Changing this will create a new instance.
    cpuArchitecture string
    The ECS cpu architecture of instance, Default value is x86. Changing this will create a new instance.
    ecsFlavor string

    The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source flexibleengine_compute_flavors. Changing this will create a new instance.

    NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.

    groupId string
    The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
    name string
    The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
    region string
    Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
    runStatus number
    The running status of the instance. Values are:
    securityGroups string[]
    The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
    serverId string
    The id of the instance server.
    serviceIp string
    The ip of the instance service.
    specificationCode string
    The specification code of instance. Different specifications have different throughput. Changing this will create a new instance. Values are:

    • waf.instance.professional - The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).
    • waf.instance.enterprise - The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
    subnetId string
    The ID of the VPC Subnet. Changing this will create a new instance.
    timeouts WafDedicatedInstanceTimeouts
    upgradable number
    The instance is to support upgrades. 0: Cannot be upgraded, 1: Can be upgraded.
    vpcId string
    The VPC id of WAF dedicated instance. Changing this will create a new instance.
    wafDedicatedInstanceId string
    The id of the instance.
    access_status float
    The access status of the instance. 0: inaccessible, 1: accessible.
    available_zone str
    The available zone names for the dedicated instances. It can be obtained through this data source flexibleengine.getAvailabilityZones. Changing this will create a new instance.
    cpu_architecture str
    The ECS cpu architecture of instance, Default value is x86. Changing this will create a new instance.
    ecs_flavor str

    The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source flexibleengine_compute_flavors. Changing this will create a new instance.

    NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.

    group_id str
    The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
    name str
    The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
    region str
    Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
    run_status float
    The running status of the instance. Values are:
    security_groups Sequence[str]
    The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
    server_id str
    The id of the instance server.
    service_ip str
    The ip of the instance service.
    specification_code str
    The specification code of instance. Different specifications have different throughput. Changing this will create a new instance. Values are:

    • waf.instance.professional - The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).
    • waf.instance.enterprise - The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
    subnet_id str
    The ID of the VPC Subnet. Changing this will create a new instance.
    timeouts WafDedicatedInstanceTimeoutsArgs
    upgradable float
    The instance is to support upgrades. 0: Cannot be upgraded, 1: Can be upgraded.
    vpc_id str
    The VPC id of WAF dedicated instance. Changing this will create a new instance.
    waf_dedicated_instance_id str
    The id of the instance.
    accessStatus Number
    The access status of the instance. 0: inaccessible, 1: accessible.
    availableZone String
    The available zone names for the dedicated instances. It can be obtained through this data source flexibleengine.getAvailabilityZones. Changing this will create a new instance.
    cpuArchitecture String
    The ECS cpu architecture of instance, Default value is x86. Changing this will create a new instance.
    ecsFlavor String

    The flavor of the ECS used by the WAF instance. Flavors can be obtained through this data source flexibleengine_compute_flavors. Changing this will create a new instance.

    NOTE: If the instance specification is the professional edition, the ECS specification should be 2U4G. If the instance specification is the enterprise edition, the ECS specification should be 8U16G.

    groupId String
    The instance group ID used by the WAF dedicated instance in ELB mode. Changing this will create a new instance.
    name String
    The name of WAF dedicated instance. Duplicate names are allowed, we suggest to keeping the name unique.
    region String
    Specifies the region in which to create the WAF dedicated instance resource. If omitted, the provider-level region will be used. Changing this will create a new WAF dedicated instance resource.
    runStatus Number
    The running status of the instance. Values are:
    securityGroups List<String>
    The security group of the instance. This is an array of security group ids. Changing this will create a new instance.
    serverId String
    The id of the instance server.
    serviceIp String
    The ip of the instance service.
    specificationCode String
    The specification code of instance. Different specifications have different throughput. Changing this will create a new instance. Values are:

    • waf.instance.professional - The professional edition, throughput: 100 Mbit/s; QPS: 2,000 (Reference only).
    • waf.instance.enterprise - The enterprise edition, throughput: 500 Mbit/s; QPS: 10,000 (Reference only).
    subnetId String
    The ID of the VPC Subnet. Changing this will create a new instance.
    timeouts Property Map
    upgradable Number
    The instance is to support upgrades. 0: Cannot be upgraded, 1: Can be upgraded.
    vpcId String
    The VPC id of WAF dedicated instance. Changing this will create a new instance.
    wafDedicatedInstanceId String
    The id of the instance.

    Supporting Types

    WafDedicatedInstanceTimeouts, WafDedicatedInstanceTimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    WAF dedicated instance can be imported using the id, e.g.

    $ pulumi import flexibleengine:index/wafDedicatedInstance:WafDedicatedInstance instance_1 2f87641090206b821f07e0f6bd6
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud