octopusdeploy.DynamicWorkerPool
Explore with Pulumi AI
This resource manages dynamic worker pools in Octopus Deploy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as octopusdeploy from "@pulumi/octopusdeploy";
const example = new octopusdeploy.DynamicWorkerPool("example", {
description: "Description for the dynamic worker pool.",
isDefault: true,
sortOrder: 5,
workerType: "UbuntuDefault",
});
import pulumi
import pulumi_octopusdeploy as octopusdeploy
example = octopusdeploy.DynamicWorkerPool("example",
description="Description for the dynamic worker pool.",
is_default=True,
sort_order=5,
worker_type="UbuntuDefault")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/octopusdeploy/octopusdeploy"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := octopusdeploy.NewDynamicWorkerPool(ctx, "example", &octopusdeploy.DynamicWorkerPoolArgs{
Description: pulumi.String("Description for the dynamic worker pool."),
IsDefault: pulumi.Bool(true),
SortOrder: pulumi.Float64(5),
WorkerType: pulumi.String("UbuntuDefault"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Octopusdeploy = Pulumi.Octopusdeploy;
return await Deployment.RunAsync(() =>
{
var example = new Octopusdeploy.DynamicWorkerPool("example", new()
{
Description = "Description for the dynamic worker pool.",
IsDefault = true,
SortOrder = 5,
WorkerType = "UbuntuDefault",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.octopusdeploy.DynamicWorkerPool;
import com.pulumi.octopusdeploy.DynamicWorkerPoolArgs;
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 example = new DynamicWorkerPool("example", DynamicWorkerPoolArgs.builder()
.description("Description for the dynamic worker pool.")
.isDefault(true)
.sortOrder(5)
.workerType("UbuntuDefault")
.build());
}
}
resources:
example:
type: octopusdeploy:DynamicWorkerPool
properties:
description: Description for the dynamic worker pool.
isDefault: true
sortOrder: 5
workerType: UbuntuDefault
Create DynamicWorkerPool Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DynamicWorkerPool(name: string, args: DynamicWorkerPoolArgs, opts?: CustomResourceOptions);
@overload
def DynamicWorkerPool(resource_name: str,
args: DynamicWorkerPoolArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DynamicWorkerPool(resource_name: str,
opts: Optional[ResourceOptions] = None,
worker_type: Optional[str] = None,
description: Optional[str] = None,
dynamic_worker_pool_id: Optional[str] = None,
is_default: Optional[bool] = None,
name: Optional[str] = None,
sort_order: Optional[float] = None,
space_id: Optional[str] = None)
func NewDynamicWorkerPool(ctx *Context, name string, args DynamicWorkerPoolArgs, opts ...ResourceOption) (*DynamicWorkerPool, error)
public DynamicWorkerPool(string name, DynamicWorkerPoolArgs args, CustomResourceOptions? opts = null)
public DynamicWorkerPool(String name, DynamicWorkerPoolArgs args)
public DynamicWorkerPool(String name, DynamicWorkerPoolArgs args, CustomResourceOptions options)
type: octopusdeploy:DynamicWorkerPool
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 DynamicWorkerPoolArgs
- 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 DynamicWorkerPoolArgs
- 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 DynamicWorkerPoolArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DynamicWorkerPoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DynamicWorkerPoolArgs
- 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 dynamicWorkerPoolResource = new Octopusdeploy.DynamicWorkerPool("dynamicWorkerPoolResource", new()
{
WorkerType = "string",
Description = "string",
DynamicWorkerPoolId = "string",
IsDefault = false,
Name = "string",
SortOrder = 0,
SpaceId = "string",
});
example, err := octopusdeploy.NewDynamicWorkerPool(ctx, "dynamicWorkerPoolResource", &octopusdeploy.DynamicWorkerPoolArgs{
WorkerType: pulumi.String("string"),
Description: pulumi.String("string"),
DynamicWorkerPoolId: pulumi.String("string"),
IsDefault: pulumi.Bool(false),
Name: pulumi.String("string"),
SortOrder: pulumi.Float64(0),
SpaceId: pulumi.String("string"),
})
var dynamicWorkerPoolResource = new DynamicWorkerPool("dynamicWorkerPoolResource", DynamicWorkerPoolArgs.builder()
.workerType("string")
.description("string")
.dynamicWorkerPoolId("string")
.isDefault(false)
.name("string")
.sortOrder(0)
.spaceId("string")
.build());
dynamic_worker_pool_resource = octopusdeploy.DynamicWorkerPool("dynamicWorkerPoolResource",
worker_type="string",
description="string",
dynamic_worker_pool_id="string",
is_default=False,
name="string",
sort_order=0,
space_id="string")
const dynamicWorkerPoolResource = new octopusdeploy.DynamicWorkerPool("dynamicWorkerPoolResource", {
workerType: "string",
description: "string",
dynamicWorkerPoolId: "string",
isDefault: false,
name: "string",
sortOrder: 0,
spaceId: "string",
});
type: octopusdeploy:DynamicWorkerPool
properties:
description: string
dynamicWorkerPoolId: string
isDefault: false
name: string
sortOrder: 0
spaceId: string
workerType: string
DynamicWorkerPool Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DynamicWorkerPool resource accepts the following input properties:
- Worker
Type string - Description string
- The description of this dynamic worker pool.
- Dynamic
Worker stringPool Id - The unique ID for this resource.
- Is
Default bool - Name string
- The name of this resource.
- Sort
Order double - The order number to sort a dynamic worker pool.
- Space
Id string - The space ID associated with this resource.
- Worker
Type string - Description string
- The description of this dynamic worker pool.
- Dynamic
Worker stringPool Id - The unique ID for this resource.
- Is
Default bool - Name string
- The name of this resource.
- Sort
Order float64 - The order number to sort a dynamic worker pool.
- Space
Id string - The space ID associated with this resource.
- worker
Type String - description String
- The description of this dynamic worker pool.
- dynamic
Worker StringPool Id - The unique ID for this resource.
- is
Default Boolean - name String
- The name of this resource.
- sort
Order Double - The order number to sort a dynamic worker pool.
- space
Id String - The space ID associated with this resource.
- worker
Type string - description string
- The description of this dynamic worker pool.
- dynamic
Worker stringPool Id - The unique ID for this resource.
- is
Default boolean - name string
- The name of this resource.
- sort
Order number - The order number to sort a dynamic worker pool.
- space
Id string - The space ID associated with this resource.
- worker_
type str - description str
- The description of this dynamic worker pool.
- dynamic_
worker_ strpool_ id - The unique ID for this resource.
- is_
default bool - name str
- The name of this resource.
- sort_
order float - The order number to sort a dynamic worker pool.
- space_
id str - The space ID associated with this resource.
- worker
Type String - description String
- The description of this dynamic worker pool.
- dynamic
Worker StringPool Id - The unique ID for this resource.
- is
Default Boolean - name String
- The name of this resource.
- sort
Order Number - The order number to sort a dynamic worker pool.
- space
Id String - The space ID associated with this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the DynamicWorkerPool resource produces the following output properties:
- Can
Add boolWorkers - Id string
- The provider-assigned unique ID for this managed resource.
- Can
Add boolWorkers - Id string
- The provider-assigned unique ID for this managed resource.
- can
Add BooleanWorkers - id String
- The provider-assigned unique ID for this managed resource.
- can
Add booleanWorkers - id string
- The provider-assigned unique ID for this managed resource.
- can_
add_ boolworkers - id str
- The provider-assigned unique ID for this managed resource.
- can
Add BooleanWorkers - id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DynamicWorkerPool Resource
Get an existing DynamicWorkerPool 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?: DynamicWorkerPoolState, opts?: CustomResourceOptions): DynamicWorkerPool
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
can_add_workers: Optional[bool] = None,
description: Optional[str] = None,
dynamic_worker_pool_id: Optional[str] = None,
is_default: Optional[bool] = None,
name: Optional[str] = None,
sort_order: Optional[float] = None,
space_id: Optional[str] = None,
worker_type: Optional[str] = None) -> DynamicWorkerPool
func GetDynamicWorkerPool(ctx *Context, name string, id IDInput, state *DynamicWorkerPoolState, opts ...ResourceOption) (*DynamicWorkerPool, error)
public static DynamicWorkerPool Get(string name, Input<string> id, DynamicWorkerPoolState? state, CustomResourceOptions? opts = null)
public static DynamicWorkerPool get(String name, Output<String> id, DynamicWorkerPoolState state, CustomResourceOptions options)
resources: _: type: octopusdeploy:DynamicWorkerPool get: id: ${id}
- 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.
- Can
Add boolWorkers - Description string
- The description of this dynamic worker pool.
- Dynamic
Worker stringPool Id - The unique ID for this resource.
- Is
Default bool - Name string
- The name of this resource.
- Sort
Order double - The order number to sort a dynamic worker pool.
- Space
Id string - The space ID associated with this resource.
- Worker
Type string
- Can
Add boolWorkers - Description string
- The description of this dynamic worker pool.
- Dynamic
Worker stringPool Id - The unique ID for this resource.
- Is
Default bool - Name string
- The name of this resource.
- Sort
Order float64 - The order number to sort a dynamic worker pool.
- Space
Id string - The space ID associated with this resource.
- Worker
Type string
- can
Add BooleanWorkers - description String
- The description of this dynamic worker pool.
- dynamic
Worker StringPool Id - The unique ID for this resource.
- is
Default Boolean - name String
- The name of this resource.
- sort
Order Double - The order number to sort a dynamic worker pool.
- space
Id String - The space ID associated with this resource.
- worker
Type String
- can
Add booleanWorkers - description string
- The description of this dynamic worker pool.
- dynamic
Worker stringPool Id - The unique ID for this resource.
- is
Default boolean - name string
- The name of this resource.
- sort
Order number - The order number to sort a dynamic worker pool.
- space
Id string - The space ID associated with this resource.
- worker
Type string
- can_
add_ boolworkers - description str
- The description of this dynamic worker pool.
- dynamic_
worker_ strpool_ id - The unique ID for this resource.
- is_
default bool - name str
- The name of this resource.
- sort_
order float - The order number to sort a dynamic worker pool.
- space_
id str - The space ID associated with this resource.
- worker_
type str
- can
Add BooleanWorkers - description String
- The description of this dynamic worker pool.
- dynamic
Worker StringPool Id - The unique ID for this resource.
- is
Default Boolean - name String
- The name of this resource.
- sort
Order Number - The order number to sort a dynamic worker pool.
- space
Id String - The space ID associated with this resource.
- worker
Type String
Package Details
- Repository
- octopusdeploy octopusdeploylabs/terraform-provider-octopusdeploy
- License
- Notes
- This Pulumi package is based on the
octopusdeploy
Terraform Provider.