Alibaba Cloud

v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

ApplicationScale

This operation is provided to scale out an EDAS application.

NOTE: Available in 1.82.0+

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var @default = new AliCloud.Edas.ApplicationScale("default", new AliCloud.Edas.ApplicationScaleArgs
        {
            AppId = @var.App_id,
            DeployGroup = @var.Deploy_group,
            EcuInfos = @var.Ecu_info,
            ForceStatus = @var.Force_status,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/edas"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := edas.NewApplicationScale(ctx, "default", &edas.ApplicationScaleArgs{
			AppId:       pulumi.Any(_var.App_id),
			DeployGroup: pulumi.Any(_var.Deploy_group),
			EcuInfos:    pulumi.Any(_var.Ecu_info),
			ForceStatus: pulumi.Any(_var.Force_status),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.edas.ApplicationScale;
import com.pulumi.alicloud.edas.ApplicationScaleArgs;
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 default_ = new ApplicationScale("default", ApplicationScaleArgs.builder()        
            .appId(var_.app_id())
            .deployGroup(var_.deploy_group())
            .ecuInfos(var_.ecu_info())
            .forceStatus(var_.force_status())
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.edas.ApplicationScale("default",
    app_id=var["app_id"],
    deploy_group=var["deploy_group"],
    ecu_infos=var["ecu_info"],
    force_status=var["force_status"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = new alicloud.edas.ApplicationScale("default", {
    appId: _var.app_id,
    deployGroup: _var.deploy_group,
    ecuInfos: _var.ecu_info,
    forceStatus: _var.force_status,
});
resources:
  default:
    type: alicloud:edas:ApplicationScale
    properties:
      appId: ${var.app_id}
      deployGroup: ${var.deploy_group}
      ecuInfos: ${var.ecu_info}
      forceStatus: ${var.force_status}

Create a ApplicationScale Resource

new ApplicationScale(name: string, args: ApplicationScaleArgs, opts?: CustomResourceOptions);
@overload
def ApplicationScale(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     app_id: Optional[str] = None,
                     deploy_group: Optional[str] = None,
                     ecu_infos: Optional[Sequence[str]] = None,
                     force_status: Optional[bool] = None)
@overload
def ApplicationScale(resource_name: str,
                     args: ApplicationScaleArgs,
                     opts: Optional[ResourceOptions] = None)
func NewApplicationScale(ctx *Context, name string, args ApplicationScaleArgs, opts ...ResourceOption) (*ApplicationScale, error)
public ApplicationScale(string name, ApplicationScaleArgs args, CustomResourceOptions? opts = null)
public ApplicationScale(String name, ApplicationScaleArgs args)
public ApplicationScale(String name, ApplicationScaleArgs args, CustomResourceOptions options)
type: alicloud:edas:ApplicationScale
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ApplicationScaleArgs
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 ApplicationScaleArgs
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 ApplicationScaleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ApplicationScaleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ApplicationScaleArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ApplicationScale Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The ApplicationScale resource accepts the following input properties:

AppId string

The ID of the application that you want to deploy.

DeployGroup string

The ID of the instance group to which you want to add ECS instances to scale out the application.

EcuInfos List<string>

The IDs of the Elastic Compute Unit (ECU) where you want to deploy the application. Type: List.

ForceStatus bool

This parameter specifies whether to forcibly remove an ECS instance where the application is deployed. It is set as true only after the ECS instance expires. In normal cases, this parameter do not need to be specified.

AppId string

The ID of the application that you want to deploy.

DeployGroup string

The ID of the instance group to which you want to add ECS instances to scale out the application.

EcuInfos []string

The IDs of the Elastic Compute Unit (ECU) where you want to deploy the application. Type: List.

ForceStatus bool

This parameter specifies whether to forcibly remove an ECS instance where the application is deployed. It is set as true only after the ECS instance expires. In normal cases, this parameter do not need to be specified.

appId String

The ID of the application that you want to deploy.

deployGroup String

The ID of the instance group to which you want to add ECS instances to scale out the application.

ecuInfos List<String>

The IDs of the Elastic Compute Unit (ECU) where you want to deploy the application. Type: List.

forceStatus Boolean

This parameter specifies whether to forcibly remove an ECS instance where the application is deployed. It is set as true only after the ECS instance expires. In normal cases, this parameter do not need to be specified.

appId string

The ID of the application that you want to deploy.

deployGroup string

The ID of the instance group to which you want to add ECS instances to scale out the application.

ecuInfos string[]

The IDs of the Elastic Compute Unit (ECU) where you want to deploy the application. Type: List.

forceStatus boolean

This parameter specifies whether to forcibly remove an ECS instance where the application is deployed. It is set as true only after the ECS instance expires. In normal cases, this parameter do not need to be specified.

app_id str

The ID of the application that you want to deploy.

deploy_group str

The ID of the instance group to which you want to add ECS instances to scale out the application.

ecu_infos Sequence[str]

The IDs of the Elastic Compute Unit (ECU) where you want to deploy the application. Type: List.

force_status bool

This parameter specifies whether to forcibly remove an ECS instance where the application is deployed. It is set as true only after the ECS instance expires. In normal cases, this parameter do not need to be specified.

appId String

The ID of the application that you want to deploy.

deployGroup String

The ID of the instance group to which you want to add ECS instances to scale out the application.

ecuInfos List<String>

The IDs of the Elastic Compute Unit (ECU) where you want to deploy the application. Type: List.

forceStatus Boolean

This parameter specifies whether to forcibly remove an ECS instance where the application is deployed. It is set as true only after the ECS instance expires. In normal cases, this parameter do not need to be specified.

Outputs

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

EccInfo string

The ecc information of the resource supplied above. The value is formulated as <ecc1,ecc2>.

Id string

The provider-assigned unique ID for this managed resource.

EccInfo string

The ecc information of the resource supplied above. The value is formulated as <ecc1,ecc2>.

Id string

The provider-assigned unique ID for this managed resource.

eccInfo String

The ecc information of the resource supplied above. The value is formulated as <ecc1,ecc2>.

id String

The provider-assigned unique ID for this managed resource.

eccInfo string

The ecc information of the resource supplied above. The value is formulated as <ecc1,ecc2>.

id string

The provider-assigned unique ID for this managed resource.

ecc_info str

The ecc information of the resource supplied above. The value is formulated as <ecc1,ecc2>.

id str

The provider-assigned unique ID for this managed resource.

eccInfo String

The ecc information of the resource supplied above. The value is formulated as <ecc1,ecc2>.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing ApplicationScale Resource

Get an existing ApplicationScale 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?: ApplicationScaleState, opts?: CustomResourceOptions): ApplicationScale
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        app_id: Optional[str] = None,
        deploy_group: Optional[str] = None,
        ecc_info: Optional[str] = None,
        ecu_infos: Optional[Sequence[str]] = None,
        force_status: Optional[bool] = None) -> ApplicationScale
func GetApplicationScale(ctx *Context, name string, id IDInput, state *ApplicationScaleState, opts ...ResourceOption) (*ApplicationScale, error)
public static ApplicationScale Get(string name, Input<string> id, ApplicationScaleState? state, CustomResourceOptions? opts = null)
public static ApplicationScale get(String name, Output<String> id, ApplicationScaleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AppId string

The ID of the application that you want to deploy.

DeployGroup string

The ID of the instance group to which you want to add ECS instances to scale out the application.

EccInfo string

The ecc information of the resource supplied above. The value is formulated as <ecc1,ecc2>.

EcuInfos List<string>

The IDs of the Elastic Compute Unit (ECU) where you want to deploy the application. Type: List.

ForceStatus bool

This parameter specifies whether to forcibly remove an ECS instance where the application is deployed. It is set as true only after the ECS instance expires. In normal cases, this parameter do not need to be specified.

AppId string

The ID of the application that you want to deploy.

DeployGroup string

The ID of the instance group to which you want to add ECS instances to scale out the application.

EccInfo string

The ecc information of the resource supplied above. The value is formulated as <ecc1,ecc2>.

EcuInfos []string

The IDs of the Elastic Compute Unit (ECU) where you want to deploy the application. Type: List.

ForceStatus bool

This parameter specifies whether to forcibly remove an ECS instance where the application is deployed. It is set as true only after the ECS instance expires. In normal cases, this parameter do not need to be specified.

appId String

The ID of the application that you want to deploy.

deployGroup String

The ID of the instance group to which you want to add ECS instances to scale out the application.

eccInfo String

The ecc information of the resource supplied above. The value is formulated as <ecc1,ecc2>.

ecuInfos List<String>

The IDs of the Elastic Compute Unit (ECU) where you want to deploy the application. Type: List.

forceStatus Boolean

This parameter specifies whether to forcibly remove an ECS instance where the application is deployed. It is set as true only after the ECS instance expires. In normal cases, this parameter do not need to be specified.

appId string

The ID of the application that you want to deploy.

deployGroup string

The ID of the instance group to which you want to add ECS instances to scale out the application.

eccInfo string

The ecc information of the resource supplied above. The value is formulated as <ecc1,ecc2>.

ecuInfos string[]

The IDs of the Elastic Compute Unit (ECU) where you want to deploy the application. Type: List.

forceStatus boolean

This parameter specifies whether to forcibly remove an ECS instance where the application is deployed. It is set as true only after the ECS instance expires. In normal cases, this parameter do not need to be specified.

app_id str

The ID of the application that you want to deploy.

deploy_group str

The ID of the instance group to which you want to add ECS instances to scale out the application.

ecc_info str

The ecc information of the resource supplied above. The value is formulated as <ecc1,ecc2>.

ecu_infos Sequence[str]

The IDs of the Elastic Compute Unit (ECU) where you want to deploy the application. Type: List.

force_status bool

This parameter specifies whether to forcibly remove an ECS instance where the application is deployed. It is set as true only after the ECS instance expires. In normal cases, this parameter do not need to be specified.

appId String

The ID of the application that you want to deploy.

deployGroup String

The ID of the instance group to which you want to add ECS instances to scale out the application.

eccInfo String

The ecc information of the resource supplied above. The value is formulated as <ecc1,ecc2>.

ecuInfos List<String>

The IDs of the Elastic Compute Unit (ECU) where you want to deploy the application. Type: List.

forceStatus Boolean

This parameter specifies whether to forcibly remove an ECS instance where the application is deployed. It is set as true only after the ECS instance expires. In normal cases, this parameter do not need to be specified.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.