alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.edas.ApplicationDeployment

Deploys applications on EDAS.

NOTE: Available in 1.82.0+

Example Usage

Basic Usage

using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var @default = new AliCloud.Edas.ApplicationDeployment("default", new()
    {
        AppId = @var.App_id,
        GroupId = @var.Group_id,
        PackageVersion = @var.Package_version,
        WarUrl = @var.War_url,
    });

});
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.NewApplicationDeployment(ctx, "default", &edas.ApplicationDeploymentArgs{
			AppId:          pulumi.Any(_var.App_id),
			GroupId:        pulumi.Any(_var.Group_id),
			PackageVersion: pulumi.Any(_var.Package_version),
			WarUrl:         pulumi.Any(_var.War_url),
		})
		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.ApplicationDeployment;
import com.pulumi.alicloud.edas.ApplicationDeploymentArgs;
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 ApplicationDeployment("default", ApplicationDeploymentArgs.builder()        
            .appId(var_.app_id())
            .groupId(var_.group_id())
            .packageVersion(var_.package_version())
            .warUrl(var_.war_url())
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.edas.ApplicationDeployment("default",
    app_id=var["app_id"],
    group_id=var["group_id"],
    package_version=var["package_version"],
    war_url=var["war_url"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = new alicloud.edas.ApplicationDeployment("default", {
    appId: _var.app_id,
    groupId: _var.group_id,
    packageVersion: _var.package_version,
    warUrl: _var.war_url,
});
resources:
  default:
    type: alicloud:edas:ApplicationDeployment
    properties:
      appId: ${var.app_id}
      groupId: ${var.group_id}
      packageVersion: ${var.package_version}
      warUrl: ${var.war_url}

Create ApplicationDeployment Resource

new ApplicationDeployment(name: string, args: ApplicationDeploymentArgs, opts?: CustomResourceOptions);
@overload
def ApplicationDeployment(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          app_id: Optional[str] = None,
                          group_id: Optional[str] = None,
                          package_version: Optional[str] = None,
                          war_url: Optional[str] = None)
@overload
def ApplicationDeployment(resource_name: str,
                          args: ApplicationDeploymentArgs,
                          opts: Optional[ResourceOptions] = None)
func NewApplicationDeployment(ctx *Context, name string, args ApplicationDeploymentArgs, opts ...ResourceOption) (*ApplicationDeployment, error)
public ApplicationDeployment(string name, ApplicationDeploymentArgs args, CustomResourceOptions? opts = null)
public ApplicationDeployment(String name, ApplicationDeploymentArgs args)
public ApplicationDeployment(String name, ApplicationDeploymentArgs args, CustomResourceOptions options)
type: alicloud:edas:ApplicationDeployment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

AppId string

The ID of the application that you want to deploy.

GroupId string

The ID of the instance group where the application is going to be deployed. Set this parameter to all if you want to deploy the application to all groups.

WarUrl string

The address to store the uploaded web application (WAR) package for application deployment. This parameter is required when the deployType parameter is set as url.

PackageVersion string

The version of the application that you want to deploy. It must be unique for every application. The length cannot exceed 64 characters. We recommended you to use a timestamp.

AppId string

The ID of the application that you want to deploy.

GroupId string

The ID of the instance group where the application is going to be deployed. Set this parameter to all if you want to deploy the application to all groups.

WarUrl string

The address to store the uploaded web application (WAR) package for application deployment. This parameter is required when the deployType parameter is set as url.

PackageVersion string

The version of the application that you want to deploy. It must be unique for every application. The length cannot exceed 64 characters. We recommended you to use a timestamp.

appId String

The ID of the application that you want to deploy.

groupId String

The ID of the instance group where the application is going to be deployed. Set this parameter to all if you want to deploy the application to all groups.

warUrl String

The address to store the uploaded web application (WAR) package for application deployment. This parameter is required when the deployType parameter is set as url.

packageVersion String

The version of the application that you want to deploy. It must be unique for every application. The length cannot exceed 64 characters. We recommended you to use a timestamp.

appId string

The ID of the application that you want to deploy.

groupId string

The ID of the instance group where the application is going to be deployed. Set this parameter to all if you want to deploy the application to all groups.

warUrl string

The address to store the uploaded web application (WAR) package for application deployment. This parameter is required when the deployType parameter is set as url.

packageVersion string

The version of the application that you want to deploy. It must be unique for every application. The length cannot exceed 64 characters. We recommended you to use a timestamp.

app_id str

The ID of the application that you want to deploy.

group_id str

The ID of the instance group where the application is going to be deployed. Set this parameter to all if you want to deploy the application to all groups.

war_url str

The address to store the uploaded web application (WAR) package for application deployment. This parameter is required when the deployType parameter is set as url.

package_version str

The version of the application that you want to deploy. It must be unique for every application. The length cannot exceed 64 characters. We recommended you to use a timestamp.

appId String

The ID of the application that you want to deploy.

groupId String

The ID of the instance group where the application is going to be deployed. Set this parameter to all if you want to deploy the application to all groups.

warUrl String

The address to store the uploaded web application (WAR) package for application deployment. This parameter is required when the deployType parameter is set as url.

packageVersion String

The version of the application that you want to deploy. It must be unique for every application. The length cannot exceed 64 characters. We recommended you to use a timestamp.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

LastPackageVersion string

Last package version deployed.

Id string

The provider-assigned unique ID for this managed resource.

LastPackageVersion string

Last package version deployed.

id String

The provider-assigned unique ID for this managed resource.

lastPackageVersion String

Last package version deployed.

id string

The provider-assigned unique ID for this managed resource.

lastPackageVersion string

Last package version deployed.

id str

The provider-assigned unique ID for this managed resource.

last_package_version str

Last package version deployed.

id String

The provider-assigned unique ID for this managed resource.

lastPackageVersion String

Last package version deployed.

Look up Existing ApplicationDeployment Resource

Get an existing ApplicationDeployment 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?: ApplicationDeploymentState, opts?: CustomResourceOptions): ApplicationDeployment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        app_id: Optional[str] = None,
        group_id: Optional[str] = None,
        last_package_version: Optional[str] = None,
        package_version: Optional[str] = None,
        war_url: Optional[str] = None) -> ApplicationDeployment
func GetApplicationDeployment(ctx *Context, name string, id IDInput, state *ApplicationDeploymentState, opts ...ResourceOption) (*ApplicationDeployment, error)
public static ApplicationDeployment Get(string name, Input<string> id, ApplicationDeploymentState? state, CustomResourceOptions? opts = null)
public static ApplicationDeployment get(String name, Output<String> id, ApplicationDeploymentState 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.

GroupId string

The ID of the instance group where the application is going to be deployed. Set this parameter to all if you want to deploy the application to all groups.

LastPackageVersion string

Last package version deployed.

PackageVersion string

The version of the application that you want to deploy. It must be unique for every application. The length cannot exceed 64 characters. We recommended you to use a timestamp.

WarUrl string

The address to store the uploaded web application (WAR) package for application deployment. This parameter is required when the deployType parameter is set as url.

AppId string

The ID of the application that you want to deploy.

GroupId string

The ID of the instance group where the application is going to be deployed. Set this parameter to all if you want to deploy the application to all groups.

LastPackageVersion string

Last package version deployed.

PackageVersion string

The version of the application that you want to deploy. It must be unique for every application. The length cannot exceed 64 characters. We recommended you to use a timestamp.

WarUrl string

The address to store the uploaded web application (WAR) package for application deployment. This parameter is required when the deployType parameter is set as url.

appId String

The ID of the application that you want to deploy.

groupId String

The ID of the instance group where the application is going to be deployed. Set this parameter to all if you want to deploy the application to all groups.

lastPackageVersion String

Last package version deployed.

packageVersion String

The version of the application that you want to deploy. It must be unique for every application. The length cannot exceed 64 characters. We recommended you to use a timestamp.

warUrl String

The address to store the uploaded web application (WAR) package for application deployment. This parameter is required when the deployType parameter is set as url.

appId string

The ID of the application that you want to deploy.

groupId string

The ID of the instance group where the application is going to be deployed. Set this parameter to all if you want to deploy the application to all groups.

lastPackageVersion string

Last package version deployed.

packageVersion string

The version of the application that you want to deploy. It must be unique for every application. The length cannot exceed 64 characters. We recommended you to use a timestamp.

warUrl string

The address to store the uploaded web application (WAR) package for application deployment. This parameter is required when the deployType parameter is set as url.

app_id str

The ID of the application that you want to deploy.

group_id str

The ID of the instance group where the application is going to be deployed. Set this parameter to all if you want to deploy the application to all groups.

last_package_version str

Last package version deployed.

package_version str

The version of the application that you want to deploy. It must be unique for every application. The length cannot exceed 64 characters. We recommended you to use a timestamp.

war_url str

The address to store the uploaded web application (WAR) package for application deployment. This parameter is required when the deployType parameter is set as url.

appId String

The ID of the application that you want to deploy.

groupId String

The ID of the instance group where the application is going to be deployed. Set this parameter to all if you want to deploy the application to all groups.

lastPackageVersion String

Last package version deployed.

packageVersion String

The version of the application that you want to deploy. It must be unique for every application. The length cannot exceed 64 characters. We recommended you to use a timestamp.

warUrl String

The address to store the uploaded web application (WAR) package for application deployment. This parameter is required when the deployType parameter is set as url.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.