Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.19.0 published on Friday, Mar 18, 2022 by Pulumi

EcsDeploymentSet

Provides a ECS Deployment Set resource.

For information about ECS Deployment Set and how to use it, see What is Deployment Set.

NOTE: Available in v1.140.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var @default = new AliCloud.Ecs.EcsDeploymentSet("default", new AliCloud.Ecs.EcsDeploymentSetArgs
        {
            DeploymentSetName = "example_value",
            Description = "example_value",
            Domain = "Default",
            Granularity = "Host",
            Strategy = "Availability",
        });
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ecs.NewEcsDeploymentSet(ctx, "default", &ecs.EcsDeploymentSetArgs{
			DeploymentSetName: pulumi.String("example_value"),
			Description:       pulumi.String("example_value"),
			Domain:            pulumi.String("Default"),
			Granularity:       pulumi.String("Host"),
			Strategy:          pulumi.String("Availability"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

default = alicloud.ecs.EcsDeploymentSet("default",
    deployment_set_name="example_value",
    description="example_value",
    domain="Default",
    granularity="Host",
    strategy="Availability")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultEcsDeploymentSet = new alicloud.ecs.EcsDeploymentSet("default", {
    deploymentSetName: "example_value",
    description: "example_value",
    domain: "Default",
    granularity: "Host",
    strategy: "Availability",
});

Coming soon!

Create a EcsDeploymentSet Resource

new EcsDeploymentSet(name: string, args?: EcsDeploymentSetArgs, opts?: CustomResourceOptions);
@overload
def EcsDeploymentSet(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     deployment_set_name: Optional[str] = None,
                     description: Optional[str] = None,
                     domain: Optional[str] = None,
                     granularity: Optional[str] = None,
                     on_unable_to_redeploy_failed_instance: Optional[str] = None,
                     strategy: Optional[str] = None)
@overload
def EcsDeploymentSet(resource_name: str,
                     args: Optional[EcsDeploymentSetArgs] = None,
                     opts: Optional[ResourceOptions] = None)
func NewEcsDeploymentSet(ctx *Context, name string, args *EcsDeploymentSetArgs, opts ...ResourceOption) (*EcsDeploymentSet, error)
public EcsDeploymentSet(string name, EcsDeploymentSetArgs? args = null, CustomResourceOptions? opts = null)
public EcsDeploymentSet(String name, EcsDeploymentSetArgs args)
public EcsDeploymentSet(String name, EcsDeploymentSetArgs args, CustomResourceOptions options)
type: alicloud:ecs:EcsDeploymentSet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

DeploymentSetName string

The name of the deployment set. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.

Description string

The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

Domain string

The deployment domain. Valid values: Default.

Granularity string

The deployment granularity. Valid values: Host.

OnUnableToRedeployFailedInstance string

The on unable to redeploy failed instance. Valid values: CancelMembershipAndStart, KeepStopped.

Strategy string

The deployment strategy. Valid values: Availability.

DeploymentSetName string

The name of the deployment set. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.

Description string

The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

Domain string

The deployment domain. Valid values: Default.

Granularity string

The deployment granularity. Valid values: Host.

OnUnableToRedeployFailedInstance string

The on unable to redeploy failed instance. Valid values: CancelMembershipAndStart, KeepStopped.

Strategy string

The deployment strategy. Valid values: Availability.

deploymentSetName String

The name of the deployment set. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.

description String

The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

domain String

The deployment domain. Valid values: Default.

granularity String

The deployment granularity. Valid values: Host.

onUnableToRedeployFailedInstance String

The on unable to redeploy failed instance. Valid values: CancelMembershipAndStart, KeepStopped.

strategy String

The deployment strategy. Valid values: Availability.

deploymentSetName string

The name of the deployment set. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.

description string

The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

domain string

The deployment domain. Valid values: Default.

granularity string

The deployment granularity. Valid values: Host.

onUnableToRedeployFailedInstance string

The on unable to redeploy failed instance. Valid values: CancelMembershipAndStart, KeepStopped.

strategy string

The deployment strategy. Valid values: Availability.

deployment_set_name str

The name of the deployment set. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.

description str

The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

domain str

The deployment domain. Valid values: Default.

granularity str

The deployment granularity. Valid values: Host.

on_unable_to_redeploy_failed_instance str

The on unable to redeploy failed instance. Valid values: CancelMembershipAndStart, KeepStopped.

strategy str

The deployment strategy. Valid values: Availability.

deploymentSetName String

The name of the deployment set. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.

description String

The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

domain String

The deployment domain. Valid values: Default.

granularity String

The deployment granularity. Valid values: Host.

onUnableToRedeployFailedInstance String

The on unable to redeploy failed instance. Valid values: CancelMembershipAndStart, KeepStopped.

strategy String

The deployment strategy. Valid values: Availability.

Outputs

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

Get an existing EcsDeploymentSet 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?: EcsDeploymentSetState, opts?: CustomResourceOptions): EcsDeploymentSet
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        deployment_set_name: Optional[str] = None,
        description: Optional[str] = None,
        domain: Optional[str] = None,
        granularity: Optional[str] = None,
        on_unable_to_redeploy_failed_instance: Optional[str] = None,
        strategy: Optional[str] = None) -> EcsDeploymentSet
func GetEcsDeploymentSet(ctx *Context, name string, id IDInput, state *EcsDeploymentSetState, opts ...ResourceOption) (*EcsDeploymentSet, error)
public static EcsDeploymentSet Get(string name, Input<string> id, EcsDeploymentSetState? state, CustomResourceOptions? opts = null)
public static EcsDeploymentSet get(String name, Output<String> id, EcsDeploymentSetState 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:
DeploymentSetName string

The name of the deployment set. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.

Description string

The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

Domain string

The deployment domain. Valid values: Default.

Granularity string

The deployment granularity. Valid values: Host.

OnUnableToRedeployFailedInstance string

The on unable to redeploy failed instance. Valid values: CancelMembershipAndStart, KeepStopped.

Strategy string

The deployment strategy. Valid values: Availability.

DeploymentSetName string

The name of the deployment set. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.

Description string

The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

Domain string

The deployment domain. Valid values: Default.

Granularity string

The deployment granularity. Valid values: Host.

OnUnableToRedeployFailedInstance string

The on unable to redeploy failed instance. Valid values: CancelMembershipAndStart, KeepStopped.

Strategy string

The deployment strategy. Valid values: Availability.

deploymentSetName String

The name of the deployment set. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.

description String

The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

domain String

The deployment domain. Valid values: Default.

granularity String

The deployment granularity. Valid values: Host.

onUnableToRedeployFailedInstance String

The on unable to redeploy failed instance. Valid values: CancelMembershipAndStart, KeepStopped.

strategy String

The deployment strategy. Valid values: Availability.

deploymentSetName string

The name of the deployment set. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.

description string

The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

domain string

The deployment domain. Valid values: Default.

granularity string

The deployment granularity. Valid values: Host.

onUnableToRedeployFailedInstance string

The on unable to redeploy failed instance. Valid values: CancelMembershipAndStart, KeepStopped.

strategy string

The deployment strategy. Valid values: Availability.

deployment_set_name str

The name of the deployment set. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.

description str

The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

domain str

The deployment domain. Valid values: Default.

granularity str

The deployment granularity. Valid values: Host.

on_unable_to_redeploy_failed_instance str

The on unable to redeploy failed instance. Valid values: CancelMembershipAndStart, KeepStopped.

strategy str

The deployment strategy. Valid values: Availability.

deploymentSetName String

The name of the deployment set. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.

description String

The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

domain String

The deployment domain. Valid values: Default.

granularity String

The deployment granularity. Valid values: Host.

onUnableToRedeployFailedInstance String

The on unable to redeploy failed instance. Valid values: CancelMembershipAndStart, KeepStopped.

strategy String

The deployment strategy. Valid values: Availability.

Import

ECS Deployment Set can be imported using the id, e.g.

 $ pulumi import alicloud:ecs/ecsDeploymentSet:EcsDeploymentSet example <id>

Package Details

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

This Pulumi package is based on the alicloud Terraform Provider.