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

flexibleengine.AsConfiguration

Explore with Pulumi AI

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

    Manages a V1 AS Configuration resource within flexibleengine.

    Example Usage

    Basic AS Configuration

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    import * as fs from "fs";
    
    const myAsConfig = new flexibleengine.AsConfiguration("myAsConfig", {
        scalingConfigurationName: "my_as_config",
        instanceConfig: {
            flavor: _var.flavor,
            image: _var.image_id,
            disks: [{
                size: 40,
                volumeType: "SATA",
                diskType: "SYS",
            }],
            keyName: _var.keyname,
            userData: fs.readFileSync("userdata.txt", "utf8"),
        },
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    my_as_config = flexibleengine.AsConfiguration("myAsConfig",
        scaling_configuration_name="my_as_config",
        instance_config={
            "flavor": var["flavor"],
            "image": var["image_id"],
            "disks": [{
                "size": 40,
                "volume_type": "SATA",
                "disk_type": "SYS",
            }],
            "key_name": var["keyname"],
            "user_data": (lambda path: open(path).read())("userdata.txt"),
        })
    
    package main
    
    import (
    	"os"
    
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func readFileOrPanic(path string) pulumi.StringPtrInput {
    	data, err := os.ReadFile(path)
    	if err != nil {
    		panic(err.Error())
    	}
    	return pulumi.String(string(data))
    }
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := flexibleengine.NewAsConfiguration(ctx, "myAsConfig", &flexibleengine.AsConfigurationArgs{
    			ScalingConfigurationName: pulumi.String("my_as_config"),
    			InstanceConfig: &flexibleengine.AsConfigurationInstanceConfigArgs{
    				Flavor: pulumi.Any(_var.Flavor),
    				Image:  pulumi.Any(_var.Image_id),
    				Disks: flexibleengine.AsConfigurationInstanceConfigDiskArray{
    					&flexibleengine.AsConfigurationInstanceConfigDiskArgs{
    						Size:       pulumi.Float64(40),
    						VolumeType: pulumi.String("SATA"),
    						DiskType:   pulumi.String("SYS"),
    					},
    				},
    				KeyName:  pulumi.Any(_var.Keyname),
    				UserData: pulumi.String(readFileOrPanic("userdata.txt")),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var myAsConfig = new Flexibleengine.AsConfiguration("myAsConfig", new()
        {
            ScalingConfigurationName = "my_as_config",
            InstanceConfig = new Flexibleengine.Inputs.AsConfigurationInstanceConfigArgs
            {
                Flavor = @var.Flavor,
                Image = @var.Image_id,
                Disks = new[]
                {
                    new Flexibleengine.Inputs.AsConfigurationInstanceConfigDiskArgs
                    {
                        Size = 40,
                        VolumeType = "SATA",
                        DiskType = "SYS",
                    },
                },
                KeyName = @var.Keyname,
                UserData = File.ReadAllText("userdata.txt"),
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.AsConfiguration;
    import com.pulumi.flexibleengine.AsConfigurationArgs;
    import com.pulumi.flexibleengine.inputs.AsConfigurationInstanceConfigArgs;
    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) {
            var myAsConfig = new AsConfiguration("myAsConfig", AsConfigurationArgs.builder()
                .scalingConfigurationName("my_as_config")
                .instanceConfig(AsConfigurationInstanceConfigArgs.builder()
                    .flavor(var_.flavor())
                    .image(var_.image_id())
                    .disks(AsConfigurationInstanceConfigDiskArgs.builder()
                        .size(40)
                        .volumeType("SATA")
                        .diskType("SYS")
                        .build())
                    .keyName(var_.keyname())
                    .userData(Files.readString(Paths.get("userdata.txt")))
                    .build())
                .build());
    
        }
    }
    
    resources:
      myAsConfig:
        type: flexibleengine:AsConfiguration
        properties:
          scalingConfigurationName: my_as_config
          instanceConfig:
            flavor: ${var.flavor}
            image: ${var.image_id}
            disks:
              - size: 40
                volumeType: SATA
                diskType: SYS
            keyName: ${var.keyname}
            userData:
              fn::readFile: userdata.txt
    

    AS Configuration With User Data and Metadata

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    import * as fs from "fs";
    
    const myAsConfig = new flexibleengine.AsConfiguration("myAsConfig", {
        scalingConfigurationName: "my_as_config",
        instanceConfig: {
            flavor: _var.flavor,
            image: _var.image_id,
            disks: [{
                size: 40,
                volumeType: "SATA",
                diskType: "SYS",
            }],
            keyName: _var.keyname,
            userData: fs.readFileSync("userdata.txt", "utf8"),
            metadata: {
                some_key: "some_value",
            },
        },
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    my_as_config = flexibleengine.AsConfiguration("myAsConfig",
        scaling_configuration_name="my_as_config",
        instance_config={
            "flavor": var["flavor"],
            "image": var["image_id"],
            "disks": [{
                "size": 40,
                "volume_type": "SATA",
                "disk_type": "SYS",
            }],
            "key_name": var["keyname"],
            "user_data": (lambda path: open(path).read())("userdata.txt"),
            "metadata": {
                "some_key": "some_value",
            },
        })
    
    package main
    
    import (
    	"os"
    
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func readFileOrPanic(path string) pulumi.StringPtrInput {
    	data, err := os.ReadFile(path)
    	if err != nil {
    		panic(err.Error())
    	}
    	return pulumi.String(string(data))
    }
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := flexibleengine.NewAsConfiguration(ctx, "myAsConfig", &flexibleengine.AsConfigurationArgs{
    			ScalingConfigurationName: pulumi.String("my_as_config"),
    			InstanceConfig: &flexibleengine.AsConfigurationInstanceConfigArgs{
    				Flavor: pulumi.Any(_var.Flavor),
    				Image:  pulumi.Any(_var.Image_id),
    				Disks: flexibleengine.AsConfigurationInstanceConfigDiskArray{
    					&flexibleengine.AsConfigurationInstanceConfigDiskArgs{
    						Size:       pulumi.Float64(40),
    						VolumeType: pulumi.String("SATA"),
    						DiskType:   pulumi.String("SYS"),
    					},
    				},
    				KeyName:  pulumi.Any(_var.Keyname),
    				UserData: pulumi.String(readFileOrPanic("userdata.txt")),
    				Metadata: pulumi.StringMap{
    					"some_key": pulumi.String("some_value"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var myAsConfig = new Flexibleengine.AsConfiguration("myAsConfig", new()
        {
            ScalingConfigurationName = "my_as_config",
            InstanceConfig = new Flexibleengine.Inputs.AsConfigurationInstanceConfigArgs
            {
                Flavor = @var.Flavor,
                Image = @var.Image_id,
                Disks = new[]
                {
                    new Flexibleengine.Inputs.AsConfigurationInstanceConfigDiskArgs
                    {
                        Size = 40,
                        VolumeType = "SATA",
                        DiskType = "SYS",
                    },
                },
                KeyName = @var.Keyname,
                UserData = File.ReadAllText("userdata.txt"),
                Metadata = 
                {
                    { "some_key", "some_value" },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.AsConfiguration;
    import com.pulumi.flexibleengine.AsConfigurationArgs;
    import com.pulumi.flexibleengine.inputs.AsConfigurationInstanceConfigArgs;
    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) {
            var myAsConfig = new AsConfiguration("myAsConfig", AsConfigurationArgs.builder()
                .scalingConfigurationName("my_as_config")
                .instanceConfig(AsConfigurationInstanceConfigArgs.builder()
                    .flavor(var_.flavor())
                    .image(var_.image_id())
                    .disks(AsConfigurationInstanceConfigDiskArgs.builder()
                        .size(40)
                        .volumeType("SATA")
                        .diskType("SYS")
                        .build())
                    .keyName(var_.keyname())
                    .userData(Files.readString(Paths.get("userdata.txt")))
                    .metadata(Map.of("some_key", "some_value"))
                    .build())
                .build());
    
        }
    }
    
    resources:
      myAsConfig:
        type: flexibleengine:AsConfiguration
        properties:
          scalingConfigurationName: my_as_config
          instanceConfig:
            flavor: ${var.flavor}
            image: ${var.image_id}
            disks:
              - size: 40
                volumeType: SATA
                diskType: SYS
            keyName: ${var.keyname}
            userData:
              fn::readFile: userdata.txt
            metadata:
              some_key: some_value
    

    user_data can come from a variety of sources: inline, read in from the file function, or the template_cloudinit_config resource.

    AS Configuration uses the existing instance specifications as the template

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const myAsConfig = new flexibleengine.AsConfiguration("myAsConfig", {
        scalingConfigurationName: "my_as_config",
        instanceConfig: {
            instanceId: "4579f2f5-cbe8-425a-8f32-53dcb9d9053a",
            keyName: _var.keyname,
        },
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    my_as_config = flexibleengine.AsConfiguration("myAsConfig",
        scaling_configuration_name="my_as_config",
        instance_config={
            "instance_id": "4579f2f5-cbe8-425a-8f32-53dcb9d9053a",
            "key_name": var["keyname"],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := flexibleengine.NewAsConfiguration(ctx, "myAsConfig", &flexibleengine.AsConfigurationArgs{
    			ScalingConfigurationName: pulumi.String("my_as_config"),
    			InstanceConfig: &flexibleengine.AsConfigurationInstanceConfigArgs{
    				InstanceId: pulumi.String("4579f2f5-cbe8-425a-8f32-53dcb9d9053a"),
    				KeyName:    pulumi.Any(_var.Keyname),
    			},
    		})
    		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 myAsConfig = new Flexibleengine.AsConfiguration("myAsConfig", new()
        {
            ScalingConfigurationName = "my_as_config",
            InstanceConfig = new Flexibleengine.Inputs.AsConfigurationInstanceConfigArgs
            {
                InstanceId = "4579f2f5-cbe8-425a-8f32-53dcb9d9053a",
                KeyName = @var.Keyname,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.AsConfiguration;
    import com.pulumi.flexibleengine.AsConfigurationArgs;
    import com.pulumi.flexibleengine.inputs.AsConfigurationInstanceConfigArgs;
    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) {
            var myAsConfig = new AsConfiguration("myAsConfig", AsConfigurationArgs.builder()
                .scalingConfigurationName("my_as_config")
                .instanceConfig(AsConfigurationInstanceConfigArgs.builder()
                    .instanceId("4579f2f5-cbe8-425a-8f32-53dcb9d9053a")
                    .keyName(var_.keyname())
                    .build())
                .build());
    
        }
    }
    
    resources:
      myAsConfig:
        type: flexibleengine:AsConfiguration
        properties:
          scalingConfigurationName: my_as_config
          instanceConfig:
            instanceId: 4579f2f5-cbe8-425a-8f32-53dcb9d9053a
            keyName: ${var.keyname}
    

    Create AsConfiguration Resource

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

    Constructor syntax

    new AsConfiguration(name: string, args: AsConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def AsConfiguration(resource_name: str,
                        args: AsConfigurationArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def AsConfiguration(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        instance_config: Optional[AsConfigurationInstanceConfigArgs] = None,
                        scaling_configuration_name: Optional[str] = None,
                        as_configuration_id: Optional[str] = None,
                        region: Optional[str] = None)
    func NewAsConfiguration(ctx *Context, name string, args AsConfigurationArgs, opts ...ResourceOption) (*AsConfiguration, error)
    public AsConfiguration(string name, AsConfigurationArgs args, CustomResourceOptions? opts = null)
    public AsConfiguration(String name, AsConfigurationArgs args)
    public AsConfiguration(String name, AsConfigurationArgs args, CustomResourceOptions options)
    
    type: flexibleengine:AsConfiguration
    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 AsConfigurationArgs
    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 AsConfigurationArgs
    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 AsConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AsConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AsConfigurationArgs
    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 asConfigurationResource = new Flexibleengine.AsConfiguration("asConfigurationResource", new()
    {
        InstanceConfig = new Flexibleengine.Inputs.AsConfigurationInstanceConfigArgs
        {
            KeyName = "string",
            Disks = new[]
            {
                new Flexibleengine.Inputs.AsConfigurationInstanceConfigDiskArgs
                {
                    DiskType = "string",
                    Size = 0,
                    VolumeType = "string",
                },
            },
            Flavor = "string",
            Image = "string",
            InstanceId = "string",
            Metadata = 
            {
                { "string", "string" },
            },
            Personalities = new[]
            {
                new Flexibleengine.Inputs.AsConfigurationInstanceConfigPersonalityArgs
                {
                    Content = "string",
                    Path = "string",
                },
            },
            PublicIp = new Flexibleengine.Inputs.AsConfigurationInstanceConfigPublicIpArgs
            {
                Eip = new Flexibleengine.Inputs.AsConfigurationInstanceConfigPublicIpEipArgs
                {
                    Bandwidth = new Flexibleengine.Inputs.AsConfigurationInstanceConfigPublicIpEipBandwidthArgs
                    {
                        ChargingMode = "string",
                        ShareType = "string",
                        Size = 0,
                    },
                    IpType = "string",
                },
            },
            UserData = "string",
        },
        ScalingConfigurationName = "string",
        AsConfigurationId = "string",
        Region = "string",
    });
    
    example, err := flexibleengine.NewAsConfiguration(ctx, "asConfigurationResource", &flexibleengine.AsConfigurationArgs{
    	InstanceConfig: &flexibleengine.AsConfigurationInstanceConfigArgs{
    		KeyName: pulumi.String("string"),
    		Disks: flexibleengine.AsConfigurationInstanceConfigDiskArray{
    			&flexibleengine.AsConfigurationInstanceConfigDiskArgs{
    				DiskType:   pulumi.String("string"),
    				Size:       pulumi.Float64(0),
    				VolumeType: pulumi.String("string"),
    			},
    		},
    		Flavor:     pulumi.String("string"),
    		Image:      pulumi.String("string"),
    		InstanceId: pulumi.String("string"),
    		Metadata: pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    		Personalities: flexibleengine.AsConfigurationInstanceConfigPersonalityArray{
    			&flexibleengine.AsConfigurationInstanceConfigPersonalityArgs{
    				Content: pulumi.String("string"),
    				Path:    pulumi.String("string"),
    			},
    		},
    		PublicIp: &flexibleengine.AsConfigurationInstanceConfigPublicIpArgs{
    			Eip: &flexibleengine.AsConfigurationInstanceConfigPublicIpEipArgs{
    				Bandwidth: &flexibleengine.AsConfigurationInstanceConfigPublicIpEipBandwidthArgs{
    					ChargingMode: pulumi.String("string"),
    					ShareType:    pulumi.String("string"),
    					Size:         pulumi.Float64(0),
    				},
    				IpType: pulumi.String("string"),
    			},
    		},
    		UserData: pulumi.String("string"),
    	},
    	ScalingConfigurationName: pulumi.String("string"),
    	AsConfigurationId:        pulumi.String("string"),
    	Region:                   pulumi.String("string"),
    })
    
    var asConfigurationResource = new AsConfiguration("asConfigurationResource", AsConfigurationArgs.builder()
        .instanceConfig(AsConfigurationInstanceConfigArgs.builder()
            .keyName("string")
            .disks(AsConfigurationInstanceConfigDiskArgs.builder()
                .diskType("string")
                .size(0)
                .volumeType("string")
                .build())
            .flavor("string")
            .image("string")
            .instanceId("string")
            .metadata(Map.of("string", "string"))
            .personalities(AsConfigurationInstanceConfigPersonalityArgs.builder()
                .content("string")
                .path("string")
                .build())
            .publicIp(AsConfigurationInstanceConfigPublicIpArgs.builder()
                .eip(AsConfigurationInstanceConfigPublicIpEipArgs.builder()
                    .bandwidth(AsConfigurationInstanceConfigPublicIpEipBandwidthArgs.builder()
                        .chargingMode("string")
                        .shareType("string")
                        .size(0)
                        .build())
                    .ipType("string")
                    .build())
                .build())
            .userData("string")
            .build())
        .scalingConfigurationName("string")
        .asConfigurationId("string")
        .region("string")
        .build());
    
    as_configuration_resource = flexibleengine.AsConfiguration("asConfigurationResource",
        instance_config={
            "key_name": "string",
            "disks": [{
                "disk_type": "string",
                "size": 0,
                "volume_type": "string",
            }],
            "flavor": "string",
            "image": "string",
            "instance_id": "string",
            "metadata": {
                "string": "string",
            },
            "personalities": [{
                "content": "string",
                "path": "string",
            }],
            "public_ip": {
                "eip": {
                    "bandwidth": {
                        "charging_mode": "string",
                        "share_type": "string",
                        "size": 0,
                    },
                    "ip_type": "string",
                },
            },
            "user_data": "string",
        },
        scaling_configuration_name="string",
        as_configuration_id="string",
        region="string")
    
    const asConfigurationResource = new flexibleengine.AsConfiguration("asConfigurationResource", {
        instanceConfig: {
            keyName: "string",
            disks: [{
                diskType: "string",
                size: 0,
                volumeType: "string",
            }],
            flavor: "string",
            image: "string",
            instanceId: "string",
            metadata: {
                string: "string",
            },
            personalities: [{
                content: "string",
                path: "string",
            }],
            publicIp: {
                eip: {
                    bandwidth: {
                        chargingMode: "string",
                        shareType: "string",
                        size: 0,
                    },
                    ipType: "string",
                },
            },
            userData: "string",
        },
        scalingConfigurationName: "string",
        asConfigurationId: "string",
        region: "string",
    });
    
    type: flexibleengine:AsConfiguration
    properties:
        asConfigurationId: string
        instanceConfig:
            disks:
                - diskType: string
                  size: 0
                  volumeType: string
            flavor: string
            image: string
            instanceId: string
            keyName: string
            metadata:
                string: string
            personalities:
                - content: string
                  path: string
            publicIp:
                eip:
                    bandwidth:
                        chargingMode: string
                        shareType: string
                        size: 0
                    ipType: string
            userData: string
        region: string
        scalingConfigurationName: string
    

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

    InstanceConfig AsConfigurationInstanceConfig
    The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
    ScalingConfigurationName string
    The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.
    AsConfigurationId string
    Region string
    The region in which to create the AS configuration. If omitted, the region argument of the provider is used. Changing this creates a new AS configuration.
    InstanceConfig AsConfigurationInstanceConfigArgs
    The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
    ScalingConfigurationName string
    The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.
    AsConfigurationId string
    Region string
    The region in which to create the AS configuration. If omitted, the region argument of the provider is used. Changing this creates a new AS configuration.
    instanceConfig AsConfigurationInstanceConfig
    The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
    scalingConfigurationName String
    The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.
    asConfigurationId String
    region String
    The region in which to create the AS configuration. If omitted, the region argument of the provider is used. Changing this creates a new AS configuration.
    instanceConfig AsConfigurationInstanceConfig
    The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
    scalingConfigurationName string
    The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.
    asConfigurationId string
    region string
    The region in which to create the AS configuration. If omitted, the region argument of the provider is used. Changing this creates a new AS configuration.
    instance_config AsConfigurationInstanceConfigArgs
    The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
    scaling_configuration_name str
    The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.
    as_configuration_id str
    region str
    The region in which to create the AS configuration. If omitted, the region argument of the provider is used. Changing this creates a new AS configuration.
    instanceConfig Property Map
    The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
    scalingConfigurationName String
    The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.
    asConfigurationId String
    region String
    The region in which to create the AS configuration. If omitted, the region argument of the provider is used. Changing this creates a new AS configuration.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AsConfiguration Resource

    Get an existing AsConfiguration 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?: AsConfigurationState, opts?: CustomResourceOptions): AsConfiguration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            as_configuration_id: Optional[str] = None,
            instance_config: Optional[AsConfigurationInstanceConfigArgs] = None,
            region: Optional[str] = None,
            scaling_configuration_name: Optional[str] = None) -> AsConfiguration
    func GetAsConfiguration(ctx *Context, name string, id IDInput, state *AsConfigurationState, opts ...ResourceOption) (*AsConfiguration, error)
    public static AsConfiguration Get(string name, Input<string> id, AsConfigurationState? state, CustomResourceOptions? opts = null)
    public static AsConfiguration get(String name, Output<String> id, AsConfigurationState state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:AsConfiguration    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:
    AsConfigurationId string
    InstanceConfig AsConfigurationInstanceConfig
    The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
    Region string
    The region in which to create the AS configuration. If omitted, the region argument of the provider is used. Changing this creates a new AS configuration.
    ScalingConfigurationName string
    The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.
    AsConfigurationId string
    InstanceConfig AsConfigurationInstanceConfigArgs
    The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
    Region string
    The region in which to create the AS configuration. If omitted, the region argument of the provider is used. Changing this creates a new AS configuration.
    ScalingConfigurationName string
    The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.
    asConfigurationId String
    instanceConfig AsConfigurationInstanceConfig
    The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
    region String
    The region in which to create the AS configuration. If omitted, the region argument of the provider is used. Changing this creates a new AS configuration.
    scalingConfigurationName String
    The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.
    asConfigurationId string
    instanceConfig AsConfigurationInstanceConfig
    The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
    region string
    The region in which to create the AS configuration. If omitted, the region argument of the provider is used. Changing this creates a new AS configuration.
    scalingConfigurationName string
    The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.
    as_configuration_id str
    instance_config AsConfigurationInstanceConfigArgs
    The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
    region str
    The region in which to create the AS configuration. If omitted, the region argument of the provider is used. Changing this creates a new AS configuration.
    scaling_configuration_name str
    The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.
    asConfigurationId String
    instanceConfig Property Map
    The information about instance configurations. The instance_config dictionary data structure is documented below. Changing this creates a new AS configuration.
    region String
    The region in which to create the AS configuration. If omitted, the region argument of the provider is used. Changing this creates a new AS configuration.
    scalingConfigurationName String
    The name of the AS configuration. The name can contain letters, digits, underscores(_), and hyphens(-), and cannot exceed 64 characters. Changing this creates a new AS configuration.

    Supporting Types

    AsConfigurationInstanceConfig, AsConfigurationInstanceConfigArgs

    KeyName string
    The name of the SSH key pair used to log in to the instance.
    Disks List<AsConfigurationInstanceConfigDisk>
    The disk group information. System disks are mandatory and data disks are optional. The dick structure is described below.
    Flavor string
    The flavor ID.
    Image string
    The image ID.
    InstanceId string
    When using the existing instance specifications as the template to create AS configurations, specify this argument. In this case, flavor, image, and disk arguments do not take effect. If the instance_id argument is not specified, flavor, image, and disk arguments are mandatory.
    Metadata Dictionary<string, string>
    Metadata key/value pairs to make available from within the instance.
    Personalities List<AsConfigurationInstanceConfigPersonality>
    Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below.
    PublicIp AsConfigurationInstanceConfigPublicIp
    The elastic IP address of the instance. The public_ip structure is described below.
    UserData string
    The user data to provide when launching the instance. The file content must be encoded with Base64. Changing this creates a new AS configuration.
    KeyName string
    The name of the SSH key pair used to log in to the instance.
    Disks []AsConfigurationInstanceConfigDisk
    The disk group information. System disks are mandatory and data disks are optional. The dick structure is described below.
    Flavor string
    The flavor ID.
    Image string
    The image ID.
    InstanceId string
    When using the existing instance specifications as the template to create AS configurations, specify this argument. In this case, flavor, image, and disk arguments do not take effect. If the instance_id argument is not specified, flavor, image, and disk arguments are mandatory.
    Metadata map[string]string
    Metadata key/value pairs to make available from within the instance.
    Personalities []AsConfigurationInstanceConfigPersonality
    Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below.
    PublicIp AsConfigurationInstanceConfigPublicIp
    The elastic IP address of the instance. The public_ip structure is described below.
    UserData string
    The user data to provide when launching the instance. The file content must be encoded with Base64. Changing this creates a new AS configuration.
    keyName String
    The name of the SSH key pair used to log in to the instance.
    disks List<AsConfigurationInstanceConfigDisk>
    The disk group information. System disks are mandatory and data disks are optional. The dick structure is described below.
    flavor String
    The flavor ID.
    image String
    The image ID.
    instanceId String
    When using the existing instance specifications as the template to create AS configurations, specify this argument. In this case, flavor, image, and disk arguments do not take effect. If the instance_id argument is not specified, flavor, image, and disk arguments are mandatory.
    metadata Map<String,String>
    Metadata key/value pairs to make available from within the instance.
    personalities List<AsConfigurationInstanceConfigPersonality>
    Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below.
    publicIp AsConfigurationInstanceConfigPublicIp
    The elastic IP address of the instance. The public_ip structure is described below.
    userData String
    The user data to provide when launching the instance. The file content must be encoded with Base64. Changing this creates a new AS configuration.
    keyName string
    The name of the SSH key pair used to log in to the instance.
    disks AsConfigurationInstanceConfigDisk[]
    The disk group information. System disks are mandatory and data disks are optional. The dick structure is described below.
    flavor string
    The flavor ID.
    image string
    The image ID.
    instanceId string
    When using the existing instance specifications as the template to create AS configurations, specify this argument. In this case, flavor, image, and disk arguments do not take effect. If the instance_id argument is not specified, flavor, image, and disk arguments are mandatory.
    metadata {[key: string]: string}
    Metadata key/value pairs to make available from within the instance.
    personalities AsConfigurationInstanceConfigPersonality[]
    Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below.
    publicIp AsConfigurationInstanceConfigPublicIp
    The elastic IP address of the instance. The public_ip structure is described below.
    userData string
    The user data to provide when launching the instance. The file content must be encoded with Base64. Changing this creates a new AS configuration.
    key_name str
    The name of the SSH key pair used to log in to the instance.
    disks Sequence[AsConfigurationInstanceConfigDisk]
    The disk group information. System disks are mandatory and data disks are optional. The dick structure is described below.
    flavor str
    The flavor ID.
    image str
    The image ID.
    instance_id str
    When using the existing instance specifications as the template to create AS configurations, specify this argument. In this case, flavor, image, and disk arguments do not take effect. If the instance_id argument is not specified, flavor, image, and disk arguments are mandatory.
    metadata Mapping[str, str]
    Metadata key/value pairs to make available from within the instance.
    personalities Sequence[AsConfigurationInstanceConfigPersonality]
    Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below.
    public_ip AsConfigurationInstanceConfigPublicIp
    The elastic IP address of the instance. The public_ip structure is described below.
    user_data str
    The user data to provide when launching the instance. The file content must be encoded with Base64. Changing this creates a new AS configuration.
    keyName String
    The name of the SSH key pair used to log in to the instance.
    disks List<Property Map>
    The disk group information. System disks are mandatory and data disks are optional. The dick structure is described below.
    flavor String
    The flavor ID.
    image String
    The image ID.
    instanceId String
    When using the existing instance specifications as the template to create AS configurations, specify this argument. In this case, flavor, image, and disk arguments do not take effect. If the instance_id argument is not specified, flavor, image, and disk arguments are mandatory.
    metadata Map<String>
    Metadata key/value pairs to make available from within the instance.
    personalities List<Property Map>
    Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below.
    publicIp Property Map
    The elastic IP address of the instance. The public_ip structure is described below.
    userData String
    The user data to provide when launching the instance. The file content must be encoded with Base64. Changing this creates a new AS configuration.

    AsConfigurationInstanceConfigDisk, AsConfigurationInstanceConfigDiskArgs

    DiskType string
    Whether the disk is a system disk or a data disk. Option DATA indicates a data disk. option SYS indicates a system disk.
    Size double
    The disk size. The unit is GB. The system disk size ranges from 1 to 32768, and the data disk size ranges from 10 to 32768.
    VolumeType string
    The disk type, which must be the same as the disk type available in the system. The options include SATA (common I/O disk type) and SSD (ultra-high I/O disk type).
    DiskType string
    Whether the disk is a system disk or a data disk. Option DATA indicates a data disk. option SYS indicates a system disk.
    Size float64
    The disk size. The unit is GB. The system disk size ranges from 1 to 32768, and the data disk size ranges from 10 to 32768.
    VolumeType string
    The disk type, which must be the same as the disk type available in the system. The options include SATA (common I/O disk type) and SSD (ultra-high I/O disk type).
    diskType String
    Whether the disk is a system disk or a data disk. Option DATA indicates a data disk. option SYS indicates a system disk.
    size Double
    The disk size. The unit is GB. The system disk size ranges from 1 to 32768, and the data disk size ranges from 10 to 32768.
    volumeType String
    The disk type, which must be the same as the disk type available in the system. The options include SATA (common I/O disk type) and SSD (ultra-high I/O disk type).
    diskType string
    Whether the disk is a system disk or a data disk. Option DATA indicates a data disk. option SYS indicates a system disk.
    size number
    The disk size. The unit is GB. The system disk size ranges from 1 to 32768, and the data disk size ranges from 10 to 32768.
    volumeType string
    The disk type, which must be the same as the disk type available in the system. The options include SATA (common I/O disk type) and SSD (ultra-high I/O disk type).
    disk_type str
    Whether the disk is a system disk or a data disk. Option DATA indicates a data disk. option SYS indicates a system disk.
    size float
    The disk size. The unit is GB. The system disk size ranges from 1 to 32768, and the data disk size ranges from 10 to 32768.
    volume_type str
    The disk type, which must be the same as the disk type available in the system. The options include SATA (common I/O disk type) and SSD (ultra-high I/O disk type).
    diskType String
    Whether the disk is a system disk or a data disk. Option DATA indicates a data disk. option SYS indicates a system disk.
    size Number
    The disk size. The unit is GB. The system disk size ranges from 1 to 32768, and the data disk size ranges from 10 to 32768.
    volumeType String
    The disk type, which must be the same as the disk type available in the system. The options include SATA (common I/O disk type) and SSD (ultra-high I/O disk type).

    AsConfigurationInstanceConfigPersonality, AsConfigurationInstanceConfigPersonalityArgs

    Content string
    The content of the injected file, which must be encoded with base64.
    Path string
    The absolute path of the destination file.
    Content string
    The content of the injected file, which must be encoded with base64.
    Path string
    The absolute path of the destination file.
    content String
    The content of the injected file, which must be encoded with base64.
    path String
    The absolute path of the destination file.
    content string
    The content of the injected file, which must be encoded with base64.
    path string
    The absolute path of the destination file.
    content str
    The content of the injected file, which must be encoded with base64.
    path str
    The absolute path of the destination file.
    content String
    The content of the injected file, which must be encoded with base64.
    path String
    The absolute path of the destination file.

    AsConfigurationInstanceConfigPublicIp, AsConfigurationInstanceConfigPublicIpArgs

    Eip AsConfigurationInstanceConfigPublicIpEip
    The configuration parameter for creating an elastic IP address that will be automatically assigned to the instance. The eip structure is described below.
    Eip AsConfigurationInstanceConfigPublicIpEip
    The configuration parameter for creating an elastic IP address that will be automatically assigned to the instance. The eip structure is described below.
    eip AsConfigurationInstanceConfigPublicIpEip
    The configuration parameter for creating an elastic IP address that will be automatically assigned to the instance. The eip structure is described below.
    eip AsConfigurationInstanceConfigPublicIpEip
    The configuration parameter for creating an elastic IP address that will be automatically assigned to the instance. The eip structure is described below.
    eip AsConfigurationInstanceConfigPublicIpEip
    The configuration parameter for creating an elastic IP address that will be automatically assigned to the instance. The eip structure is described below.
    eip Property Map
    The configuration parameter for creating an elastic IP address that will be automatically assigned to the instance. The eip structure is described below.

    AsConfigurationInstanceConfigPublicIpEip, AsConfigurationInstanceConfigPublicIpEipArgs

    Bandwidth AsConfigurationInstanceConfigPublicIpEipBandwidth
    The bandwidth information. The structure is described below.
    IpType string
    The IP address type. The system only supports 5_bgp (indicates dynamic BGP).
    Bandwidth AsConfigurationInstanceConfigPublicIpEipBandwidth
    The bandwidth information. The structure is described below.
    IpType string
    The IP address type. The system only supports 5_bgp (indicates dynamic BGP).
    bandwidth AsConfigurationInstanceConfigPublicIpEipBandwidth
    The bandwidth information. The structure is described below.
    ipType String
    The IP address type. The system only supports 5_bgp (indicates dynamic BGP).
    bandwidth AsConfigurationInstanceConfigPublicIpEipBandwidth
    The bandwidth information. The structure is described below.
    ipType string
    The IP address type. The system only supports 5_bgp (indicates dynamic BGP).
    bandwidth AsConfigurationInstanceConfigPublicIpEipBandwidth
    The bandwidth information. The structure is described below.
    ip_type str
    The IP address type. The system only supports 5_bgp (indicates dynamic BGP).
    bandwidth Property Map
    The bandwidth information. The structure is described below.
    ipType String
    The IP address type. The system only supports 5_bgp (indicates dynamic BGP).

    AsConfigurationInstanceConfigPublicIpEipBandwidth, AsConfigurationInstanceConfigPublicIpEipBandwidthArgs

    ChargingMode string
    The bandwidth charging mode. The system only supports traffic.
    ShareType string
    The bandwidth sharing type. The system only supports PER (indicates exclusive bandwidth).
    Size double
    The bandwidth (Mbit/s). The value range is 1 to 300.
    ChargingMode string
    The bandwidth charging mode. The system only supports traffic.
    ShareType string
    The bandwidth sharing type. The system only supports PER (indicates exclusive bandwidth).
    Size float64
    The bandwidth (Mbit/s). The value range is 1 to 300.
    chargingMode String
    The bandwidth charging mode. The system only supports traffic.
    shareType String
    The bandwidth sharing type. The system only supports PER (indicates exclusive bandwidth).
    size Double
    The bandwidth (Mbit/s). The value range is 1 to 300.
    chargingMode string
    The bandwidth charging mode. The system only supports traffic.
    shareType string
    The bandwidth sharing type. The system only supports PER (indicates exclusive bandwidth).
    size number
    The bandwidth (Mbit/s). The value range is 1 to 300.
    charging_mode str
    The bandwidth charging mode. The system only supports traffic.
    share_type str
    The bandwidth sharing type. The system only supports PER (indicates exclusive bandwidth).
    size float
    The bandwidth (Mbit/s). The value range is 1 to 300.
    chargingMode String
    The bandwidth charging mode. The system only supports traffic.
    shareType String
    The bandwidth sharing type. The system only supports PER (indicates exclusive bandwidth).
    size Number
    The bandwidth (Mbit/s). The value range is 1 to 300.

    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