1. Packages
  2. Volcengine
  3. API Docs
  4. ecs
  5. DeploymentSet
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

volcengine.ecs.DeploymentSet

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

    Provides a resource to manage ecs deployment set

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Volcengine.Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Ecs.DeploymentSet("foo", new()
        {
            DeploymentSetName = "acc-test-ecs-ds",
            Description = "acc-test",
            Granularity = "switch",
            Strategy = "Availability",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ecs.NewDeploymentSet(ctx, "foo", &ecs.DeploymentSetArgs{
    			DeploymentSetName: pulumi.String("acc-test-ecs-ds"),
    			Description:       pulumi.String("acc-test"),
    			Granularity:       pulumi.String("switch"),
    			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.volcengine.ecs.DeploymentSet;
    import com.pulumi.volcengine.ecs.DeploymentSetArgs;
    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 foo = new DeploymentSet("foo", DeploymentSetArgs.builder()        
                .deploymentSetName("acc-test-ecs-ds")
                .description("acc-test")
                .granularity("switch")
                .strategy("Availability")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.ecs.DeploymentSet("foo",
        deployment_set_name="acc-test-ecs-ds",
        description="acc-test",
        granularity="switch",
        strategy="Availability")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.ecs.DeploymentSet("foo", {
        deploymentSetName: "acc-test-ecs-ds",
        description: "acc-test",
        granularity: "switch",
        strategy: "Availability",
    });
    
    resources:
      foo:
        type: volcengine:ecs:DeploymentSet
        properties:
          deploymentSetName: acc-test-ecs-ds
          description: acc-test
          granularity: switch
          strategy: Availability
    

    Create DeploymentSet Resource

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

    Constructor syntax

    new DeploymentSet(name: string, args: DeploymentSetArgs, opts?: CustomResourceOptions);
    @overload
    def DeploymentSet(resource_name: str,
                      args: DeploymentSetArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def DeploymentSet(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      deployment_set_name: Optional[str] = None,
                      description: Optional[str] = None,
                      granularity: Optional[str] = None,
                      strategy: Optional[str] = None)
    func NewDeploymentSet(ctx *Context, name string, args DeploymentSetArgs, opts ...ResourceOption) (*DeploymentSet, error)
    public DeploymentSet(string name, DeploymentSetArgs args, CustomResourceOptions? opts = null)
    public DeploymentSet(String name, DeploymentSetArgs args)
    public DeploymentSet(String name, DeploymentSetArgs args, CustomResourceOptions options)
    
    type: volcengine:ecs:DeploymentSet
    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 DeploymentSetArgs
    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 DeploymentSetArgs
    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 DeploymentSetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DeploymentSetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DeploymentSetArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var deploymentSetResource = new Volcengine.Ecs.DeploymentSet("deploymentSetResource", new()
    {
        DeploymentSetName = "string",
        Description = "string",
        Granularity = "string",
        Strategy = "string",
    });
    
    example, err := ecs.NewDeploymentSet(ctx, "deploymentSetResource", &ecs.DeploymentSetArgs{
    	DeploymentSetName: pulumi.String("string"),
    	Description:       pulumi.String("string"),
    	Granularity:       pulumi.String("string"),
    	Strategy:          pulumi.String("string"),
    })
    
    var deploymentSetResource = new DeploymentSet("deploymentSetResource", DeploymentSetArgs.builder()
        .deploymentSetName("string")
        .description("string")
        .granularity("string")
        .strategy("string")
        .build());
    
    deployment_set_resource = volcengine.ecs.DeploymentSet("deploymentSetResource",
        deployment_set_name="string",
        description="string",
        granularity="string",
        strategy="string")
    
    const deploymentSetResource = new volcengine.ecs.DeploymentSet("deploymentSetResource", {
        deploymentSetName: "string",
        description: "string",
        granularity: "string",
        strategy: "string",
    });
    
    type: volcengine:ecs:DeploymentSet
    properties:
        deploymentSetName: string
        description: string
        granularity: string
        strategy: string
    

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

    DeploymentSetName string
    The name of ECS DeploymentSet.
    Description string
    The description of ECS DeploymentSet.
    Granularity string
    The granularity of ECS DeploymentSet.Valid values: switch, host, rack,Default is host.
    Strategy string
    The strategy of ECS DeploymentSet.Valid values: Availability.Default is Availability.
    DeploymentSetName string
    The name of ECS DeploymentSet.
    Description string
    The description of ECS DeploymentSet.
    Granularity string
    The granularity of ECS DeploymentSet.Valid values: switch, host, rack,Default is host.
    Strategy string
    The strategy of ECS DeploymentSet.Valid values: Availability.Default is Availability.
    deploymentSetName String
    The name of ECS DeploymentSet.
    description String
    The description of ECS DeploymentSet.
    granularity String
    The granularity of ECS DeploymentSet.Valid values: switch, host, rack,Default is host.
    strategy String
    The strategy of ECS DeploymentSet.Valid values: Availability.Default is Availability.
    deploymentSetName string
    The name of ECS DeploymentSet.
    description string
    The description of ECS DeploymentSet.
    granularity string
    The granularity of ECS DeploymentSet.Valid values: switch, host, rack,Default is host.
    strategy string
    The strategy of ECS DeploymentSet.Valid values: Availability.Default is Availability.
    deployment_set_name str
    The name of ECS DeploymentSet.
    description str
    The description of ECS DeploymentSet.
    granularity str
    The granularity of ECS DeploymentSet.Valid values: switch, host, rack,Default is host.
    strategy str
    The strategy of ECS DeploymentSet.Valid values: Availability.Default is Availability.
    deploymentSetName String
    The name of ECS DeploymentSet.
    description String
    The description of ECS DeploymentSet.
    granularity String
    The granularity of ECS DeploymentSet.Valid values: switch, host, rack,Default is host.
    strategy String
    The strategy of ECS DeploymentSet.Valid values: Availability.Default is Availability.

    Outputs

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

    DeploymentSetId string
    The ID of ECS DeploymentSet.
    Id string
    The provider-assigned unique ID for this managed resource.
    DeploymentSetId string
    The ID of ECS DeploymentSet.
    Id string
    The provider-assigned unique ID for this managed resource.
    deploymentSetId String
    The ID of ECS DeploymentSet.
    id String
    The provider-assigned unique ID for this managed resource.
    deploymentSetId string
    The ID of ECS DeploymentSet.
    id string
    The provider-assigned unique ID for this managed resource.
    deployment_set_id str
    The ID of ECS DeploymentSet.
    id str
    The provider-assigned unique ID for this managed resource.
    deploymentSetId String
    The ID of ECS DeploymentSet.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DeploymentSet Resource

    Get an existing DeploymentSet 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?: DeploymentSetState, opts?: CustomResourceOptions): DeploymentSet
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            deployment_set_id: Optional[str] = None,
            deployment_set_name: Optional[str] = None,
            description: Optional[str] = None,
            granularity: Optional[str] = None,
            strategy: Optional[str] = None) -> DeploymentSet
    func GetDeploymentSet(ctx *Context, name string, id IDInput, state *DeploymentSetState, opts ...ResourceOption) (*DeploymentSet, error)
    public static DeploymentSet Get(string name, Input<string> id, DeploymentSetState? state, CustomResourceOptions? opts = null)
    public static DeploymentSet get(String name, Output<String> id, DeploymentSetState 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:
    DeploymentSetId string
    The ID of ECS DeploymentSet.
    DeploymentSetName string
    The name of ECS DeploymentSet.
    Description string
    The description of ECS DeploymentSet.
    Granularity string
    The granularity of ECS DeploymentSet.Valid values: switch, host, rack,Default is host.
    Strategy string
    The strategy of ECS DeploymentSet.Valid values: Availability.Default is Availability.
    DeploymentSetId string
    The ID of ECS DeploymentSet.
    DeploymentSetName string
    The name of ECS DeploymentSet.
    Description string
    The description of ECS DeploymentSet.
    Granularity string
    The granularity of ECS DeploymentSet.Valid values: switch, host, rack,Default is host.
    Strategy string
    The strategy of ECS DeploymentSet.Valid values: Availability.Default is Availability.
    deploymentSetId String
    The ID of ECS DeploymentSet.
    deploymentSetName String
    The name of ECS DeploymentSet.
    description String
    The description of ECS DeploymentSet.
    granularity String
    The granularity of ECS DeploymentSet.Valid values: switch, host, rack,Default is host.
    strategy String
    The strategy of ECS DeploymentSet.Valid values: Availability.Default is Availability.
    deploymentSetId string
    The ID of ECS DeploymentSet.
    deploymentSetName string
    The name of ECS DeploymentSet.
    description string
    The description of ECS DeploymentSet.
    granularity string
    The granularity of ECS DeploymentSet.Valid values: switch, host, rack,Default is host.
    strategy string
    The strategy of ECS DeploymentSet.Valid values: Availability.Default is Availability.
    deployment_set_id str
    The ID of ECS DeploymentSet.
    deployment_set_name str
    The name of ECS DeploymentSet.
    description str
    The description of ECS DeploymentSet.
    granularity str
    The granularity of ECS DeploymentSet.Valid values: switch, host, rack,Default is host.
    strategy str
    The strategy of ECS DeploymentSet.Valid values: Availability.Default is Availability.
    deploymentSetId String
    The ID of ECS DeploymentSet.
    deploymentSetName String
    The name of ECS DeploymentSet.
    description String
    The description of ECS DeploymentSet.
    granularity String
    The granularity of ECS DeploymentSet.Valid values: switch, host, rack,Default is host.
    strategy String
    The strategy of ECS DeploymentSet.Valid values: Availability.Default is Availability.

    Import

    ECS deployment set can be imported using the id, e.g.

     $ pulumi import volcengine:ecs/deploymentSet:DeploymentSet default i-mizl7m1kqccg5smt1bdpijuj
    

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine