1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. ecs
  5. EcsDeploymentSet
Alibaba Cloud v3.59.0 published on Friday, Jul 12, 2024 by Pulumi

alicloud.ecs.EcsDeploymentSet

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.59.0 published on Friday, Jul 12, 2024 by Pulumi

    Provides a ECS Deployment Set resource.

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

    NOTE: Available since v1.140.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const _default = new alicloud.ecs.EcsDeploymentSet("default", {
        strategy: "Availability",
        domain: "Default",
        granularity: "Host",
        deploymentSetName: "example_value",
        description: "example_value",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.ecs.EcsDeploymentSet("default",
        strategy="Availability",
        domain="Default",
        granularity="Host",
        deployment_set_name="example_value",
        description="example_value")
    
    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{
    			Strategy:          pulumi.String("Availability"),
    			Domain:            pulumi.String("Default"),
    			Granularity:       pulumi.String("Host"),
    			DeploymentSetName: pulumi.String("example_value"),
    			Description:       pulumi.String("example_value"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new AliCloud.Ecs.EcsDeploymentSet("default", new()
        {
            Strategy = "Availability",
            Domain = "Default",
            Granularity = "Host",
            DeploymentSetName = "example_value",
            Description = "example_value",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.ecs.EcsDeploymentSet;
    import com.pulumi.alicloud.ecs.EcsDeploymentSetArgs;
    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 EcsDeploymentSet("default", EcsDeploymentSetArgs.builder()
                .strategy("Availability")
                .domain("Default")
                .granularity("Host")
                .deploymentSetName("example_value")
                .description("example_value")
                .build());
    
        }
    }
    
    resources:
      default:
        type: alicloud:ecs:EcsDeploymentSet
        properties:
          strategy: Availability
          domain: Default
          granularity: Host
          deploymentSetName: example_value
          description: example_value
    

    Create EcsDeploymentSet Resource

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

    Constructor syntax

    new EcsDeploymentSet(name: string, args?: EcsDeploymentSetArgs, opts?: CustomResourceOptions);
    @overload
    def EcsDeploymentSet(resource_name: str,
                         args: Optional[EcsDeploymentSetArgs] = None,
                         opts: Optional[ResourceOptions] = None)
    
    @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)
    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.
    
    

    Parameters

    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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var ecsDeploymentSetResource = new AliCloud.Ecs.EcsDeploymentSet("ecsDeploymentSetResource", new()
    {
        DeploymentSetName = "string",
        Description = "string",
        Domain = "string",
        Granularity = "string",
        OnUnableToRedeployFailedInstance = "string",
        Strategy = "string",
    });
    
    example, err := ecs.NewEcsDeploymentSet(ctx, "ecsDeploymentSetResource", &ecs.EcsDeploymentSetArgs{
    	DeploymentSetName:                pulumi.String("string"),
    	Description:                      pulumi.String("string"),
    	Domain:                           pulumi.String("string"),
    	Granularity:                      pulumi.String("string"),
    	OnUnableToRedeployFailedInstance: pulumi.String("string"),
    	Strategy:                         pulumi.String("string"),
    })
    
    var ecsDeploymentSetResource = new EcsDeploymentSet("ecsDeploymentSetResource", EcsDeploymentSetArgs.builder()
        .deploymentSetName("string")
        .description("string")
        .domain("string")
        .granularity("string")
        .onUnableToRedeployFailedInstance("string")
        .strategy("string")
        .build());
    
    ecs_deployment_set_resource = alicloud.ecs.EcsDeploymentSet("ecsDeploymentSetResource",
        deployment_set_name="string",
        description="string",
        domain="string",
        granularity="string",
        on_unable_to_redeploy_failed_instance="string",
        strategy="string")
    
    const ecsDeploymentSetResource = new alicloud.ecs.EcsDeploymentSet("ecsDeploymentSetResource", {
        deploymentSetName: "string",
        description: "string",
        domain: "string",
        granularity: "string",
        onUnableToRedeployFailedInstance: "string",
        strategy: "string",
    });
    
    type: alicloud:ecs:EcsDeploymentSet
    properties:
        deploymentSetName: string
        description: string
        domain: string
        granularity: string
        onUnableToRedeployFailedInstance: string
        strategy: string
    

    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.

    • CancelMembershipAndStart - Removes the instances from the deployment set and restarts the instances immediately after the failover is complete.
    • KeepStopped- Keeps the instances in the abnormal state and restarts them after ECS resources are replenished.
    Strategy string
    The deployment strategy. Valid values: Availability(Default), AvailabilityGroup, LowLatency.
    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.

    • CancelMembershipAndStart - Removes the instances from the deployment set and restarts the instances immediately after the failover is complete.
    • KeepStopped- Keeps the instances in the abnormal state and restarts them after ECS resources are replenished.
    Strategy string
    The deployment strategy. Valid values: Availability(Default), AvailabilityGroup, LowLatency.
    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.

    • CancelMembershipAndStart - Removes the instances from the deployment set and restarts the instances immediately after the failover is complete.
    • KeepStopped- Keeps the instances in the abnormal state and restarts them after ECS resources are replenished.
    strategy String
    The deployment strategy. Valid values: Availability(Default), AvailabilityGroup, LowLatency.
    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.

    • CancelMembershipAndStart - Removes the instances from the deployment set and restarts the instances immediately after the failover is complete.
    • KeepStopped- Keeps the instances in the abnormal state and restarts them after ECS resources are replenished.
    strategy string
    The deployment strategy. Valid values: Availability(Default), AvailabilityGroup, LowLatency.
    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.

    • CancelMembershipAndStart - Removes the instances from the deployment set and restarts the instances immediately after the failover is complete.
    • KeepStopped- Keeps the instances in the abnormal state and restarts them after ECS resources are replenished.
    strategy str
    The deployment strategy. Valid values: Availability(Default), AvailabilityGroup, LowLatency.
    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.

    • CancelMembershipAndStart - Removes the instances from the deployment set and restarts the instances immediately after the failover is complete.
    • KeepStopped- Keeps the instances in the abnormal state and restarts them after ECS resources are replenished.
    strategy String
    The deployment strategy. Valid values: Availability(Default), AvailabilityGroup, LowLatency.

    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 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.

    • CancelMembershipAndStart - Removes the instances from the deployment set and restarts the instances immediately after the failover is complete.
    • KeepStopped- Keeps the instances in the abnormal state and restarts them after ECS resources are replenished.
    Strategy string
    The deployment strategy. Valid values: Availability(Default), AvailabilityGroup, LowLatency.
    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.

    • CancelMembershipAndStart - Removes the instances from the deployment set and restarts the instances immediately after the failover is complete.
    • KeepStopped- Keeps the instances in the abnormal state and restarts them after ECS resources are replenished.
    Strategy string
    The deployment strategy. Valid values: Availability(Default), AvailabilityGroup, LowLatency.
    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.

    • CancelMembershipAndStart - Removes the instances from the deployment set and restarts the instances immediately after the failover is complete.
    • KeepStopped- Keeps the instances in the abnormal state and restarts them after ECS resources are replenished.
    strategy String
    The deployment strategy. Valid values: Availability(Default), AvailabilityGroup, LowLatency.
    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.

    • CancelMembershipAndStart - Removes the instances from the deployment set and restarts the instances immediately after the failover is complete.
    • KeepStopped- Keeps the instances in the abnormal state and restarts them after ECS resources are replenished.
    strategy string
    The deployment strategy. Valid values: Availability(Default), AvailabilityGroup, LowLatency.
    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.

    • CancelMembershipAndStart - Removes the instances from the deployment set and restarts the instances immediately after the failover is complete.
    • KeepStopped- Keeps the instances in the abnormal state and restarts them after ECS resources are replenished.
    strategy str
    The deployment strategy. Valid values: Availability(Default), AvailabilityGroup, LowLatency.
    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.

    • CancelMembershipAndStart - Removes the instances from the deployment set and restarts the instances immediately after the failover is complete.
    • KeepStopped- Keeps the instances in the abnormal state and restarts them after ECS resources are replenished.
    strategy String
    The deployment strategy. Valid values: Availability(Default), AvailabilityGroup, LowLatency.

    Import

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

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

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.59.0 published on Friday, Jul 12, 2024 by Pulumi