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

flexibleengine.AsConfigurationV1

Explore with Pulumi AI

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

    Create AsConfigurationV1 Resource

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

    Constructor syntax

    new AsConfigurationV1(name: string, args: AsConfigurationV1Args, opts?: CustomResourceOptions);
    @overload
    def AsConfigurationV1(resource_name: str,
                          args: AsConfigurationV1Args,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def AsConfigurationV1(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          instance_config: Optional[AsConfigurationV1InstanceConfigArgs] = None,
                          scaling_configuration_name: Optional[str] = None,
                          as_configuration_v1_id: Optional[str] = None,
                          region: Optional[str] = None)
    func NewAsConfigurationV1(ctx *Context, name string, args AsConfigurationV1Args, opts ...ResourceOption) (*AsConfigurationV1, error)
    public AsConfigurationV1(string name, AsConfigurationV1Args args, CustomResourceOptions? opts = null)
    public AsConfigurationV1(String name, AsConfigurationV1Args args)
    public AsConfigurationV1(String name, AsConfigurationV1Args args, CustomResourceOptions options)
    
    type: flexibleengine:AsConfigurationV1
    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 AsConfigurationV1Args
    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 AsConfigurationV1Args
    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 AsConfigurationV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AsConfigurationV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AsConfigurationV1Args
    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 asConfigurationV1Resource = new Flexibleengine.AsConfigurationV1("asConfigurationV1Resource", new()
    {
        InstanceConfig = new Flexibleengine.Inputs.AsConfigurationV1InstanceConfigArgs
        {
            KeyName = "string",
            Disks = new[]
            {
                new Flexibleengine.Inputs.AsConfigurationV1InstanceConfigDiskArgs
                {
                    DiskType = "string",
                    Size = 0,
                    VolumeType = "string",
                },
            },
            Flavor = "string",
            Image = "string",
            InstanceId = "string",
            Metadata = 
            {
                { "string", "string" },
            },
            Personalities = new[]
            {
                new Flexibleengine.Inputs.AsConfigurationV1InstanceConfigPersonalityArgs
                {
                    Content = "string",
                    Path = "string",
                },
            },
            PublicIp = new Flexibleengine.Inputs.AsConfigurationV1InstanceConfigPublicIpArgs
            {
                Eip = new Flexibleengine.Inputs.AsConfigurationV1InstanceConfigPublicIpEipArgs
                {
                    Bandwidth = new Flexibleengine.Inputs.AsConfigurationV1InstanceConfigPublicIpEipBandwidthArgs
                    {
                        ChargingMode = "string",
                        ShareType = "string",
                        Size = 0,
                    },
                    IpType = "string",
                },
            },
            UserData = "string",
        },
        ScalingConfigurationName = "string",
        AsConfigurationV1Id = "string",
        Region = "string",
    });
    
    example, err := flexibleengine.NewAsConfigurationV1(ctx, "asConfigurationV1Resource", &flexibleengine.AsConfigurationV1Args{
    	InstanceConfig: &flexibleengine.AsConfigurationV1InstanceConfigArgs{
    		KeyName: pulumi.String("string"),
    		Disks: flexibleengine.AsConfigurationV1InstanceConfigDiskArray{
    			&flexibleengine.AsConfigurationV1InstanceConfigDiskArgs{
    				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.AsConfigurationV1InstanceConfigPersonalityArray{
    			&flexibleengine.AsConfigurationV1InstanceConfigPersonalityArgs{
    				Content: pulumi.String("string"),
    				Path:    pulumi.String("string"),
    			},
    		},
    		PublicIp: &flexibleengine.AsConfigurationV1InstanceConfigPublicIpArgs{
    			Eip: &flexibleengine.AsConfigurationV1InstanceConfigPublicIpEipArgs{
    				Bandwidth: &flexibleengine.AsConfigurationV1InstanceConfigPublicIpEipBandwidthArgs{
    					ChargingMode: pulumi.String("string"),
    					ShareType:    pulumi.String("string"),
    					Size:         pulumi.Float64(0),
    				},
    				IpType: pulumi.String("string"),
    			},
    		},
    		UserData: pulumi.String("string"),
    	},
    	ScalingConfigurationName: pulumi.String("string"),
    	AsConfigurationV1Id:      pulumi.String("string"),
    	Region:                   pulumi.String("string"),
    })
    
    var asConfigurationV1Resource = new AsConfigurationV1("asConfigurationV1Resource", AsConfigurationV1Args.builder()
        .instanceConfig(AsConfigurationV1InstanceConfigArgs.builder()
            .keyName("string")
            .disks(AsConfigurationV1InstanceConfigDiskArgs.builder()
                .diskType("string")
                .size(0)
                .volumeType("string")
                .build())
            .flavor("string")
            .image("string")
            .instanceId("string")
            .metadata(Map.of("string", "string"))
            .personalities(AsConfigurationV1InstanceConfigPersonalityArgs.builder()
                .content("string")
                .path("string")
                .build())
            .publicIp(AsConfigurationV1InstanceConfigPublicIpArgs.builder()
                .eip(AsConfigurationV1InstanceConfigPublicIpEipArgs.builder()
                    .bandwidth(AsConfigurationV1InstanceConfigPublicIpEipBandwidthArgs.builder()
                        .chargingMode("string")
                        .shareType("string")
                        .size(0)
                        .build())
                    .ipType("string")
                    .build())
                .build())
            .userData("string")
            .build())
        .scalingConfigurationName("string")
        .asConfigurationV1Id("string")
        .region("string")
        .build());
    
    as_configuration_v1_resource = flexibleengine.AsConfigurationV1("asConfigurationV1Resource",
        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_v1_id="string",
        region="string")
    
    const asConfigurationV1Resource = new flexibleengine.AsConfigurationV1("asConfigurationV1Resource", {
        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",
        asConfigurationV1Id: "string",
        region: "string",
    });
    
    type: flexibleengine:AsConfigurationV1
    properties:
        asConfigurationV1Id: 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
    

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

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AsConfigurationV1 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 AsConfigurationV1 Resource

    Get an existing AsConfigurationV1 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?: AsConfigurationV1State, opts?: CustomResourceOptions): AsConfigurationV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            as_configuration_v1_id: Optional[str] = None,
            instance_config: Optional[AsConfigurationV1InstanceConfigArgs] = None,
            region: Optional[str] = None,
            scaling_configuration_name: Optional[str] = None) -> AsConfigurationV1
    func GetAsConfigurationV1(ctx *Context, name string, id IDInput, state *AsConfigurationV1State, opts ...ResourceOption) (*AsConfigurationV1, error)
    public static AsConfigurationV1 Get(string name, Input<string> id, AsConfigurationV1State? state, CustomResourceOptions? opts = null)
    public static AsConfigurationV1 get(String name, Output<String> id, AsConfigurationV1State state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:AsConfigurationV1    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.

    Supporting Types

    AsConfigurationV1InstanceConfig, AsConfigurationV1InstanceConfigArgs

    AsConfigurationV1InstanceConfigDisk, AsConfigurationV1InstanceConfigDiskArgs

    DiskType string
    Size double
    VolumeType string
    DiskType string
    Size float64
    VolumeType string
    diskType String
    size Double
    volumeType String
    diskType string
    size number
    volumeType string
    diskType String
    size Number
    volumeType String

    AsConfigurationV1InstanceConfigPersonality, AsConfigurationV1InstanceConfigPersonalityArgs

    Content string
    Path string
    Content string
    Path string
    content String
    path String
    content string
    path string
    content str
    path str
    content String
    path String

    AsConfigurationV1InstanceConfigPublicIp, AsConfigurationV1InstanceConfigPublicIpArgs

    AsConfigurationV1InstanceConfigPublicIpEip, AsConfigurationV1InstanceConfigPublicIpEipArgs

    AsConfigurationV1InstanceConfigPublicIpEipBandwidth, AsConfigurationV1InstanceConfigPublicIpEipBandwidthArgs

    ChargingMode string
    ShareType string
    Size double
    ChargingMode string
    ShareType string
    Size float64
    chargingMode String
    shareType String
    size Double
    chargingMode string
    shareType string
    size number
    chargingMode String
    shareType String
    size Number

    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