alicloud.ecs.EcsDeploymentSet
Explore with Pulumi AI
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
Basic Usage
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()
{
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
})
}
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()
.deploymentSetName("example_value")
.description("example_value")
.domain("Default")
.granularity("Host")
.strategy("Availability")
.build());
}
}
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 _default = new alicloud.ecs.EcsDeploymentSet("default", {
deploymentSetName: "example_value",
description: "example_value",
domain: "Default",
granularity: "Host",
strategy: "Availability",
});
resources:
default:
type: alicloud:ecs:EcsDeploymentSet
properties:
deploymentSetName: example_value
description: example_value
domain: Default
granularity: Host
strategy: Availability
Create 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:
- Deployment
Set stringName 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://
orhttps://
.- Description string
The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- Domain string
The deployment domain. Valid values:
Default
.- Granularity string
The deployment granularity. Valid values:
Host
.- On
Unable stringTo Redeploy Failed Instance The on unable to redeploy failed instance. Valid values:
CancelMembershipAndStart
,KeepStopped
.- Strategy string
The deployment strategy. Valid values:
Availability
.
- Deployment
Set stringName 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://
orhttps://
.- Description string
The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- Domain string
The deployment domain. Valid values:
Default
.- Granularity string
The deployment granularity. Valid values:
Host
.- On
Unable stringTo Redeploy Failed Instance The on unable to redeploy failed instance. Valid values:
CancelMembershipAndStart
,KeepStopped
.- Strategy string
The deployment strategy. Valid values:
Availability
.
- deployment
Set StringName 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://
orhttps://
.- description String
The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- domain String
The deployment domain. Valid values:
Default
.- granularity String
The deployment granularity. Valid values:
Host
.- on
Unable StringTo Redeploy Failed Instance The on unable to redeploy failed instance. Valid values:
CancelMembershipAndStart
,KeepStopped
.- strategy String
The deployment strategy. Valid values:
Availability
.
- deployment
Set stringName 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://
orhttps://
.- description string
The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- domain string
The deployment domain. Valid values:
Default
.- granularity string
The deployment granularity. Valid values:
Host
.- on
Unable stringTo Redeploy Failed Instance The on unable to redeploy failed instance. Valid values:
CancelMembershipAndStart
,KeepStopped
.- strategy string
The deployment strategy. Valid values:
Availability
.
- deployment_
set_ strname 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://
orhttps://
.- description str
The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- domain str
The deployment domain. Valid values:
Default
.- granularity str
The deployment granularity. Valid values:
Host
.- on_
unable_ strto_ redeploy_ failed_ instance The on unable to redeploy failed instance. Valid values:
CancelMembershipAndStart
,KeepStopped
.- strategy str
The deployment strategy. Valid values:
Availability
.
- deployment
Set StringName 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://
orhttps://
.- description String
The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- domain String
The deployment domain. Valid values:
Default
.- granularity String
The deployment granularity. Valid values:
Host
.- on
Unable StringTo Redeploy Failed Instance 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 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.
- Deployment
Set stringName 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://
orhttps://
.- Description string
The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- Domain string
The deployment domain. Valid values:
Default
.- Granularity string
The deployment granularity. Valid values:
Host
.- On
Unable stringTo Redeploy Failed Instance The on unable to redeploy failed instance. Valid values:
CancelMembershipAndStart
,KeepStopped
.- Strategy string
The deployment strategy. Valid values:
Availability
.
- Deployment
Set stringName 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://
orhttps://
.- Description string
The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- Domain string
The deployment domain. Valid values:
Default
.- Granularity string
The deployment granularity. Valid values:
Host
.- On
Unable stringTo Redeploy Failed Instance The on unable to redeploy failed instance. Valid values:
CancelMembershipAndStart
,KeepStopped
.- Strategy string
The deployment strategy. Valid values:
Availability
.
- deployment
Set StringName 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://
orhttps://
.- description String
The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- domain String
The deployment domain. Valid values:
Default
.- granularity String
The deployment granularity. Valid values:
Host
.- on
Unable StringTo Redeploy Failed Instance The on unable to redeploy failed instance. Valid values:
CancelMembershipAndStart
,KeepStopped
.- strategy String
The deployment strategy. Valid values:
Availability
.
- deployment
Set stringName 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://
orhttps://
.- description string
The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- domain string
The deployment domain. Valid values:
Default
.- granularity string
The deployment granularity. Valid values:
Host
.- on
Unable stringTo Redeploy Failed Instance The on unable to redeploy failed instance. Valid values:
CancelMembershipAndStart
,KeepStopped
.- strategy string
The deployment strategy. Valid values:
Availability
.
- deployment_
set_ strname 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://
orhttps://
.- description str
The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- domain str
The deployment domain. Valid values:
Default
.- granularity str
The deployment granularity. Valid values:
Host
.- on_
unable_ strto_ redeploy_ failed_ instance The on unable to redeploy failed instance. Valid values:
CancelMembershipAndStart
,KeepStopped
.- strategy str
The deployment strategy. Valid values:
Availability
.
- deployment
Set StringName 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://
orhttps://
.- description String
The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- domain String
The deployment domain. Valid values:
Default
.- granularity String
The deployment granularity. Valid values:
Host
.- on
Unable StringTo Redeploy Failed Instance 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
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.