UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

117 lines (116 loc) 3.98 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage ecs deployment set * ## Example Usage * * ```typescript * 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", * }); * ``` * * ## Import * * ECS deployment set can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:ecs/deploymentSet:DeploymentSet default i-mizl7m1kqccg5smt1bdpijuj * ``` */ export declare class DeploymentSet extends pulumi.CustomResource { /** * Get an existing DeploymentSet resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DeploymentSetState, opts?: pulumi.CustomResourceOptions): DeploymentSet; /** * Returns true if the given object is an instance of DeploymentSet. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is DeploymentSet; /** * The ID of ECS DeploymentSet. */ readonly deploymentSetId: pulumi.Output<string>; /** * The name of ECS DeploymentSet. */ readonly deploymentSetName: pulumi.Output<string>; /** * The description of ECS DeploymentSet. */ readonly description: pulumi.Output<string | undefined>; /** * The granularity of ECS DeploymentSet.Valid values: switch, host, rack,Default is host. */ readonly granularity: pulumi.Output<string | undefined>; /** * The strategy of ECS DeploymentSet.Valid values: Availability.Default is Availability. */ readonly strategy: pulumi.Output<string | undefined>; /** * Create a DeploymentSet resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: DeploymentSetArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DeploymentSet resources. */ export interface DeploymentSetState { /** * The ID of ECS DeploymentSet. */ deploymentSetId?: pulumi.Input<string>; /** * The name of ECS DeploymentSet. */ deploymentSetName?: pulumi.Input<string>; /** * The description of ECS DeploymentSet. */ description?: pulumi.Input<string>; /** * The granularity of ECS DeploymentSet.Valid values: switch, host, rack,Default is host. */ granularity?: pulumi.Input<string>; /** * The strategy of ECS DeploymentSet.Valid values: Availability.Default is Availability. */ strategy?: pulumi.Input<string>; } /** * The set of arguments for constructing a DeploymentSet resource. */ export interface DeploymentSetArgs { /** * The name of ECS DeploymentSet. */ deploymentSetName: pulumi.Input<string>; /** * The description of ECS DeploymentSet. */ description?: pulumi.Input<string>; /** * The granularity of ECS DeploymentSet.Valid values: switch, host, rack,Default is host. */ granularity?: pulumi.Input<string>; /** * The strategy of ECS DeploymentSet.Valid values: Availability.Default is Availability. */ strategy?: pulumi.Input<string>; }