alicloud logo
Alibaba Cloud v3.37.0, May 15 23

alicloud.edas.DeployGroup

Explore with Pulumi AI

Provides an EDAS deploy group resource.

NOTE: Available in 1.82.0+

Example Usage

Basic Usage

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

return await Deployment.RunAsync(() => 
{
    var @default = new AliCloud.Edas.DeployGroup("default", new()
    {
        AppId = @var.App_id,
        GroupName = @var.Group_name,
    });

});
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.NewDeployGroup(ctx, "default", &edas.DeployGroupArgs{
			AppId:     pulumi.Any(_var.App_id),
			GroupName: pulumi.Any(_var.Group_name),
		})
		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.DeployGroup;
import com.pulumi.alicloud.edas.DeployGroupArgs;
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 DeployGroup("default", DeployGroupArgs.builder()        
            .appId(var_.app_id())
            .groupName(var_.group_name())
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.edas.DeployGroup("default",
    app_id=var["app_id"],
    group_name=var["group_name"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = new alicloud.edas.DeployGroup("default", {
    appId: _var.app_id,
    groupName: _var.group_name,
});
resources:
  default:
    type: alicloud:edas:DeployGroup
    properties:
      appId: ${var.app_id}
      groupName: ${var.group_name}

Create DeployGroup Resource

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

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

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

AppId string

The ID of the application that you want to deploy.

GroupName string

The name of the instance group that you want to create.

AppId string

The ID of the application that you want to deploy.

GroupName string

The name of the instance group that you want to create.

appId String

The ID of the application that you want to deploy.

groupName String

The name of the instance group that you want to create.

appId string

The ID of the application that you want to deploy.

groupName string

The name of the instance group that you want to create.

app_id str

The ID of the application that you want to deploy.

group_name str

The name of the instance group that you want to create.

appId String

The ID of the application that you want to deploy.

groupName String

The name of the instance group that you want to create.

Outputs

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

GroupType int

The type of the instance group that you want to create. Valid values: 0: Default group. 1: Phased release is disabled for traffic management. 2: Phased release is enabled for traffic management.

Id string

The provider-assigned unique ID for this managed resource.

GroupType int

The type of the instance group that you want to create. Valid values: 0: Default group. 1: Phased release is disabled for traffic management. 2: Phased release is enabled for traffic management.

Id string

The provider-assigned unique ID for this managed resource.

groupType Integer

The type of the instance group that you want to create. Valid values: 0: Default group. 1: Phased release is disabled for traffic management. 2: Phased release is enabled for traffic management.

id String

The provider-assigned unique ID for this managed resource.

groupType number

The type of the instance group that you want to create. Valid values: 0: Default group. 1: Phased release is disabled for traffic management. 2: Phased release is enabled for traffic management.

id string

The provider-assigned unique ID for this managed resource.

group_type int

The type of the instance group that you want to create. Valid values: 0: Default group. 1: Phased release is disabled for traffic management. 2: Phased release is enabled for traffic management.

id str

The provider-assigned unique ID for this managed resource.

groupType Number

The type of the instance group that you want to create. Valid values: 0: Default group. 1: Phased release is disabled for traffic management. 2: Phased release is enabled for traffic management.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing DeployGroup Resource

Get an existing DeployGroup 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?: DeployGroupState, opts?: CustomResourceOptions): DeployGroup
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        app_id: Optional[str] = None,
        group_name: Optional[str] = None,
        group_type: Optional[int] = None) -> DeployGroup
func GetDeployGroup(ctx *Context, name string, id IDInput, state *DeployGroupState, opts ...ResourceOption) (*DeployGroup, error)
public static DeployGroup Get(string name, Input<string> id, DeployGroupState? state, CustomResourceOptions? opts = null)
public static DeployGroup get(String name, Output<String> id, DeployGroupState 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.

GroupName string

The name of the instance group that you want to create.

GroupType int

The type of the instance group that you want to create. Valid values: 0: Default group. 1: Phased release is disabled for traffic management. 2: Phased release is enabled for traffic management.

AppId string

The ID of the application that you want to deploy.

GroupName string

The name of the instance group that you want to create.

GroupType int

The type of the instance group that you want to create. Valid values: 0: Default group. 1: Phased release is disabled for traffic management. 2: Phased release is enabled for traffic management.

appId String

The ID of the application that you want to deploy.

groupName String

The name of the instance group that you want to create.

groupType Integer

The type of the instance group that you want to create. Valid values: 0: Default group. 1: Phased release is disabled for traffic management. 2: Phased release is enabled for traffic management.

appId string

The ID of the application that you want to deploy.

groupName string

The name of the instance group that you want to create.

groupType number

The type of the instance group that you want to create. Valid values: 0: Default group. 1: Phased release is disabled for traffic management. 2: Phased release is enabled for traffic management.

app_id str

The ID of the application that you want to deploy.

group_name str

The name of the instance group that you want to create.

group_type int

The type of the instance group that you want to create. Valid values: 0: Default group. 1: Phased release is disabled for traffic management. 2: Phased release is enabled for traffic management.

appId String

The ID of the application that you want to deploy.

groupName String

The name of the instance group that you want to create.

groupType Number

The type of the instance group that you want to create. Valid values: 0: Default group. 1: Phased release is disabled for traffic management. 2: Phased release is enabled for traffic management.

Import

EDAS deploy group can be imported using the id, e.g.

 $ pulumi import alicloud:edas/deployGroup:DeployGroup group app_id:group_name:group_id

Package Details

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

This Pulumi package is based on the alicloud Terraform Provider.