azuredevops.CheckExclusiveLock
Explore with Pulumi AI
Manages a Exclusive Lock Check.
Adding an exclusive lock will only allow a single stage to utilize this resource at a time. If multiple stages are waiting on the lock, only the latest will run. All others will be canceled.
Example Usage
Add Exclusive Lock to an environment
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const example = new azuredevops.Project("example", {name: "Example Project"});
const exampleServiceEndpointGeneric = new azuredevops.ServiceEndpointGeneric("example", {
    projectId: example.id,
    serverUrl: "https://some-server.example.com",
    username: "username",
    password: "password",
    serviceEndpointName: "Example Generic",
    description: "Managed by Pulumi",
});
const exampleCheckExclusiveLock = new azuredevops.CheckExclusiveLock("example", {
    projectId: example.id,
    targetResourceId: exampleServiceEndpointGeneric.id,
    targetResourceType: "endpoint",
    timeout: 43200,
});
import pulumi
import pulumi_azuredevops as azuredevops
example = azuredevops.Project("example", name="Example Project")
example_service_endpoint_generic = azuredevops.ServiceEndpointGeneric("example",
    project_id=example.id,
    server_url="https://some-server.example.com",
    username="username",
    password="password",
    service_endpoint_name="Example Generic",
    description="Managed by Pulumi")
example_check_exclusive_lock = azuredevops.CheckExclusiveLock("example",
    project_id=example.id,
    target_resource_id=example_service_endpoint_generic.id,
    target_resource_type="endpoint",
    timeout=43200)
package main
import (
	"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := azuredevops.NewProject(ctx, "example", &azuredevops.ProjectArgs{
			Name: pulumi.String("Example Project"),
		})
		if err != nil {
			return err
		}
		exampleServiceEndpointGeneric, err := azuredevops.NewServiceEndpointGeneric(ctx, "example", &azuredevops.ServiceEndpointGenericArgs{
			ProjectId:           example.ID(),
			ServerUrl:           pulumi.String("https://some-server.example.com"),
			Username:            pulumi.String("username"),
			Password:            pulumi.String("password"),
			ServiceEndpointName: pulumi.String("Example Generic"),
			Description:         pulumi.String("Managed by Pulumi"),
		})
		if err != nil {
			return err
		}
		_, err = azuredevops.NewCheckExclusiveLock(ctx, "example", &azuredevops.CheckExclusiveLockArgs{
			ProjectId:          example.ID(),
			TargetResourceId:   exampleServiceEndpointGeneric.ID(),
			TargetResourceType: pulumi.String("endpoint"),
			Timeout:            pulumi.Int(43200),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
return await Deployment.RunAsync(() => 
{
    var example = new AzureDevOps.Project("example", new()
    {
        Name = "Example Project",
    });
    var exampleServiceEndpointGeneric = new AzureDevOps.ServiceEndpointGeneric("example", new()
    {
        ProjectId = example.Id,
        ServerUrl = "https://some-server.example.com",
        Username = "username",
        Password = "password",
        ServiceEndpointName = "Example Generic",
        Description = "Managed by Pulumi",
    });
    var exampleCheckExclusiveLock = new AzureDevOps.CheckExclusiveLock("example", new()
    {
        ProjectId = example.Id,
        TargetResourceId = exampleServiceEndpointGeneric.Id,
        TargetResourceType = "endpoint",
        Timeout = 43200,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.Project;
import com.pulumi.azuredevops.ProjectArgs;
import com.pulumi.azuredevops.ServiceEndpointGeneric;
import com.pulumi.azuredevops.ServiceEndpointGenericArgs;
import com.pulumi.azuredevops.CheckExclusiveLock;
import com.pulumi.azuredevops.CheckExclusiveLockArgs;
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 Project("example", ProjectArgs.builder()
            .name("Example Project")
            .build());
        var exampleServiceEndpointGeneric = new ServiceEndpointGeneric("exampleServiceEndpointGeneric", ServiceEndpointGenericArgs.builder()
            .projectId(example.id())
            .serverUrl("https://some-server.example.com")
            .username("username")
            .password("password")
            .serviceEndpointName("Example Generic")
            .description("Managed by Pulumi")
            .build());
        var exampleCheckExclusiveLock = new CheckExclusiveLock("exampleCheckExclusiveLock", CheckExclusiveLockArgs.builder()
            .projectId(example.id())
            .targetResourceId(exampleServiceEndpointGeneric.id())
            .targetResourceType("endpoint")
            .timeout(43200)
            .build());
    }
}
resources:
  example:
    type: azuredevops:Project
    properties:
      name: Example Project
  exampleServiceEndpointGeneric:
    type: azuredevops:ServiceEndpointGeneric
    name: example
    properties:
      projectId: ${example.id}
      serverUrl: https://some-server.example.com
      username: username
      password: password
      serviceEndpointName: Example Generic
      description: Managed by Pulumi
  exampleCheckExclusiveLock:
    type: azuredevops:CheckExclusiveLock
    name: example
    properties:
      projectId: ${example.id}
      targetResourceId: ${exampleServiceEndpointGeneric.id}
      targetResourceType: endpoint
      timeout: 43200
Protect an environment
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const example = new azuredevops.Project("example", {name: "Example Project"});
const exampleEnvironment = new azuredevops.Environment("example", {
    projectId: example.id,
    name: "Example Environment",
});
const exampleCheckExclusiveLock = new azuredevops.CheckExclusiveLock("example", {
    projectId: example.id,
    targetResourceId: exampleEnvironment.id,
    targetResourceType: "environment",
    timeout: 43200,
});
import pulumi
import pulumi_azuredevops as azuredevops
example = azuredevops.Project("example", name="Example Project")
example_environment = azuredevops.Environment("example",
    project_id=example.id,
    name="Example Environment")
example_check_exclusive_lock = azuredevops.CheckExclusiveLock("example",
    project_id=example.id,
    target_resource_id=example_environment.id,
    target_resource_type="environment",
    timeout=43200)
package main
import (
	"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := azuredevops.NewProject(ctx, "example", &azuredevops.ProjectArgs{
			Name: pulumi.String("Example Project"),
		})
		if err != nil {
			return err
		}
		exampleEnvironment, err := azuredevops.NewEnvironment(ctx, "example", &azuredevops.EnvironmentArgs{
			ProjectId: example.ID(),
			Name:      pulumi.String("Example Environment"),
		})
		if err != nil {
			return err
		}
		_, err = azuredevops.NewCheckExclusiveLock(ctx, "example", &azuredevops.CheckExclusiveLockArgs{
			ProjectId:          example.ID(),
			TargetResourceId:   exampleEnvironment.ID(),
			TargetResourceType: pulumi.String("environment"),
			Timeout:            pulumi.Int(43200),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
return await Deployment.RunAsync(() => 
{
    var example = new AzureDevOps.Project("example", new()
    {
        Name = "Example Project",
    });
    var exampleEnvironment = new AzureDevOps.Environment("example", new()
    {
        ProjectId = example.Id,
        Name = "Example Environment",
    });
    var exampleCheckExclusiveLock = new AzureDevOps.CheckExclusiveLock("example", new()
    {
        ProjectId = example.Id,
        TargetResourceId = exampleEnvironment.Id,
        TargetResourceType = "environment",
        Timeout = 43200,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.Project;
import com.pulumi.azuredevops.ProjectArgs;
import com.pulumi.azuredevops.Environment;
import com.pulumi.azuredevops.EnvironmentArgs;
import com.pulumi.azuredevops.CheckExclusiveLock;
import com.pulumi.azuredevops.CheckExclusiveLockArgs;
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 Project("example", ProjectArgs.builder()
            .name("Example Project")
            .build());
        var exampleEnvironment = new Environment("exampleEnvironment", EnvironmentArgs.builder()
            .projectId(example.id())
            .name("Example Environment")
            .build());
        var exampleCheckExclusiveLock = new CheckExclusiveLock("exampleCheckExclusiveLock", CheckExclusiveLockArgs.builder()
            .projectId(example.id())
            .targetResourceId(exampleEnvironment.id())
            .targetResourceType("environment")
            .timeout(43200)
            .build());
    }
}
resources:
  example:
    type: azuredevops:Project
    properties:
      name: Example Project
  exampleEnvironment:
    type: azuredevops:Environment
    name: example
    properties:
      projectId: ${example.id}
      name: Example Environment
  exampleCheckExclusiveLock:
    type: azuredevops:CheckExclusiveLock
    name: example
    properties:
      projectId: ${example.id}
      targetResourceId: ${exampleEnvironment.id}
      targetResourceType: environment
      timeout: 43200
Protect a repository
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const example = new azuredevops.Project("example", {name: "Example Project"});
const exampleGit = new azuredevops.Git("example", {
    projectId: example.id,
    name: "Example Repository",
    initialization: {
        initType: "Clean",
    },
});
const exampleCheckExclusiveLock = new azuredevops.CheckExclusiveLock("example", {
    projectId: example.id,
    targetResourceId: pulumi.interpolate`${example.id}.${exampleGit.id}`,
    targetResourceType: "repository",
    timeout: 43200,
});
import pulumi
import pulumi_azuredevops as azuredevops
example = azuredevops.Project("example", name="Example Project")
example_git = azuredevops.Git("example",
    project_id=example.id,
    name="Example Repository",
    initialization={
        "init_type": "Clean",
    })
example_check_exclusive_lock = azuredevops.CheckExclusiveLock("example",
    project_id=example.id,
    target_resource_id=pulumi.Output.all(
        exampleId=example.id,
        exampleGitId=example_git.id
).apply(lambda resolved_outputs: f"{resolved_outputs['exampleId']}.{resolved_outputs['exampleGitId']}")
,
    target_resource_type="repository",
    timeout=43200)
package main
import (
	"fmt"
	"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := azuredevops.NewProject(ctx, "example", &azuredevops.ProjectArgs{
			Name: pulumi.String("Example Project"),
		})
		if err != nil {
			return err
		}
		exampleGit, err := azuredevops.NewGit(ctx, "example", &azuredevops.GitArgs{
			ProjectId: example.ID(),
			Name:      pulumi.String("Example Repository"),
			Initialization: &azuredevops.GitInitializationArgs{
				InitType: pulumi.String("Clean"),
			},
		})
		if err != nil {
			return err
		}
		_, err = azuredevops.NewCheckExclusiveLock(ctx, "example", &azuredevops.CheckExclusiveLockArgs{
			ProjectId: example.ID(),
			TargetResourceId: pulumi.All(example.ID(), exampleGit.ID()).ApplyT(func(_args []interface{}) (string, error) {
				exampleId := _args[0].(string)
				exampleGitId := _args[1].(string)
				return fmt.Sprintf("%v.%v", exampleId, exampleGitId), nil
			}).(pulumi.StringOutput),
			TargetResourceType: pulumi.String("repository"),
			Timeout:            pulumi.Int(43200),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
return await Deployment.RunAsync(() => 
{
    var example = new AzureDevOps.Project("example", new()
    {
        Name = "Example Project",
    });
    var exampleGit = new AzureDevOps.Git("example", new()
    {
        ProjectId = example.Id,
        Name = "Example Repository",
        Initialization = new AzureDevOps.Inputs.GitInitializationArgs
        {
            InitType = "Clean",
        },
    });
    var exampleCheckExclusiveLock = new AzureDevOps.CheckExclusiveLock("example", new()
    {
        ProjectId = example.Id,
        TargetResourceId = Output.Tuple(example.Id, exampleGit.Id).Apply(values =>
        {
            var exampleId = values.Item1;
            var exampleGitId = values.Item2;
            return $"{exampleId}.{exampleGitId}";
        }),
        TargetResourceType = "repository",
        Timeout = 43200,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.Project;
import com.pulumi.azuredevops.ProjectArgs;
import com.pulumi.azuredevops.Git;
import com.pulumi.azuredevops.GitArgs;
import com.pulumi.azuredevops.inputs.GitInitializationArgs;
import com.pulumi.azuredevops.CheckExclusiveLock;
import com.pulumi.azuredevops.CheckExclusiveLockArgs;
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 Project("example", ProjectArgs.builder()
            .name("Example Project")
            .build());
        var exampleGit = new Git("exampleGit", GitArgs.builder()
            .projectId(example.id())
            .name("Example Repository")
            .initialization(GitInitializationArgs.builder()
                .initType("Clean")
                .build())
            .build());
        var exampleCheckExclusiveLock = new CheckExclusiveLock("exampleCheckExclusiveLock", CheckExclusiveLockArgs.builder()
            .projectId(example.id())
            .targetResourceId(Output.tuple(example.id(), exampleGit.id()).applyValue(values -> {
                var exampleId = values.t1;
                var exampleGitId = values.t2;
                return String.format("%s.%s", exampleId,exampleGitId);
            }))
            .targetResourceType("repository")
            .timeout(43200)
            .build());
    }
}
resources:
  example:
    type: azuredevops:Project
    properties:
      name: Example Project
  exampleGit:
    type: azuredevops:Git
    name: example
    properties:
      projectId: ${example.id}
      name: Example Repository
      initialization:
        initType: Clean
  exampleCheckExclusiveLock:
    type: azuredevops:CheckExclusiveLock
    name: example
    properties:
      projectId: ${example.id}
      targetResourceId: ${example.id}.${exampleGit.id}
      targetResourceType: repository
      timeout: 43200
Create CheckExclusiveLock Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CheckExclusiveLock(name: string, args: CheckExclusiveLockArgs, opts?: CustomResourceOptions);@overload
def CheckExclusiveLock(resource_name: str,
                       args: CheckExclusiveLockArgs,
                       opts: Optional[ResourceOptions] = None)
@overload
def CheckExclusiveLock(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       project_id: Optional[str] = None,
                       target_resource_id: Optional[str] = None,
                       target_resource_type: Optional[str] = None,
                       timeout: Optional[int] = None)func NewCheckExclusiveLock(ctx *Context, name string, args CheckExclusiveLockArgs, opts ...ResourceOption) (*CheckExclusiveLock, error)public CheckExclusiveLock(string name, CheckExclusiveLockArgs args, CustomResourceOptions? opts = null)
public CheckExclusiveLock(String name, CheckExclusiveLockArgs args)
public CheckExclusiveLock(String name, CheckExclusiveLockArgs args, CustomResourceOptions options)
type: azuredevops:CheckExclusiveLock
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 CheckExclusiveLockArgs
- 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 CheckExclusiveLockArgs
- 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 CheckExclusiveLockArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CheckExclusiveLockArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CheckExclusiveLockArgs
- 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 checkExclusiveLockResource = new AzureDevOps.CheckExclusiveLock("checkExclusiveLockResource", new()
{
    ProjectId = "string",
    TargetResourceId = "string",
    TargetResourceType = "string",
    Timeout = 0,
});
example, err := azuredevops.NewCheckExclusiveLock(ctx, "checkExclusiveLockResource", &azuredevops.CheckExclusiveLockArgs{
	ProjectId:          pulumi.String("string"),
	TargetResourceId:   pulumi.String("string"),
	TargetResourceType: pulumi.String("string"),
	Timeout:            pulumi.Int(0),
})
var checkExclusiveLockResource = new CheckExclusiveLock("checkExclusiveLockResource", CheckExclusiveLockArgs.builder()
    .projectId("string")
    .targetResourceId("string")
    .targetResourceType("string")
    .timeout(0)
    .build());
check_exclusive_lock_resource = azuredevops.CheckExclusiveLock("checkExclusiveLockResource",
    project_id="string",
    target_resource_id="string",
    target_resource_type="string",
    timeout=0)
const checkExclusiveLockResource = new azuredevops.CheckExclusiveLock("checkExclusiveLockResource", {
    projectId: "string",
    targetResourceId: "string",
    targetResourceType: "string",
    timeout: 0,
});
type: azuredevops:CheckExclusiveLock
properties:
    projectId: string
    targetResourceId: string
    targetResourceType: string
    timeout: 0
CheckExclusiveLock 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 CheckExclusiveLock resource accepts the following input properties:
- ProjectId string
- The project ID. Changing this forces a new Exclusive Lock Check to be created.
- TargetResource stringId 
- The ID of the resource being protected by the check. Changing this forces a new Exclusive Lock to be created.
- TargetResource stringType 
- The type of resource being protected by the check. Possible values are: endpoint,environment,queue,repository,securefile,variablegroup. Changing this forces a new Exclusive Lock to be created.
- Timeout int
- The timeout in minutes for the exclusive lock. Defaults to 43200.
- ProjectId string
- The project ID. Changing this forces a new Exclusive Lock Check to be created.
- TargetResource stringId 
- The ID of the resource being protected by the check. Changing this forces a new Exclusive Lock to be created.
- TargetResource stringType 
- The type of resource being protected by the check. Possible values are: endpoint,environment,queue,repository,securefile,variablegroup. Changing this forces a new Exclusive Lock to be created.
- Timeout int
- The timeout in minutes for the exclusive lock. Defaults to 43200.
- projectId String
- The project ID. Changing this forces a new Exclusive Lock Check to be created.
- targetResource StringId 
- The ID of the resource being protected by the check. Changing this forces a new Exclusive Lock to be created.
- targetResource StringType 
- The type of resource being protected by the check. Possible values are: endpoint,environment,queue,repository,securefile,variablegroup. Changing this forces a new Exclusive Lock to be created.
- timeout Integer
- The timeout in minutes for the exclusive lock. Defaults to 43200.
- projectId string
- The project ID. Changing this forces a new Exclusive Lock Check to be created.
- targetResource stringId 
- The ID of the resource being protected by the check. Changing this forces a new Exclusive Lock to be created.
- targetResource stringType 
- The type of resource being protected by the check. Possible values are: endpoint,environment,queue,repository,securefile,variablegroup. Changing this forces a new Exclusive Lock to be created.
- timeout number
- The timeout in minutes for the exclusive lock. Defaults to 43200.
- project_id str
- The project ID. Changing this forces a new Exclusive Lock Check to be created.
- target_resource_ strid 
- The ID of the resource being protected by the check. Changing this forces a new Exclusive Lock to be created.
- target_resource_ strtype 
- The type of resource being protected by the check. Possible values are: endpoint,environment,queue,repository,securefile,variablegroup. Changing this forces a new Exclusive Lock to be created.
- timeout int
- The timeout in minutes for the exclusive lock. Defaults to 43200.
- projectId String
- The project ID. Changing this forces a new Exclusive Lock Check to be created.
- targetResource StringId 
- The ID of the resource being protected by the check. Changing this forces a new Exclusive Lock to be created.
- targetResource StringType 
- The type of resource being protected by the check. Possible values are: endpoint,environment,queue,repository,securefile,variablegroup. Changing this forces a new Exclusive Lock to be created.
- timeout Number
- The timeout in minutes for the exclusive lock. Defaults to 43200.
Outputs
All input properties are implicitly available as output properties. Additionally, the CheckExclusiveLock resource produces the following output properties:
Look up Existing CheckExclusiveLock Resource
Get an existing CheckExclusiveLock 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?: CheckExclusiveLockState, opts?: CustomResourceOptions): CheckExclusiveLock@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        project_id: Optional[str] = None,
        target_resource_id: Optional[str] = None,
        target_resource_type: Optional[str] = None,
        timeout: Optional[int] = None,
        version: Optional[int] = None) -> CheckExclusiveLockfunc GetCheckExclusiveLock(ctx *Context, name string, id IDInput, state *CheckExclusiveLockState, opts ...ResourceOption) (*CheckExclusiveLock, error)public static CheckExclusiveLock Get(string name, Input<string> id, CheckExclusiveLockState? state, CustomResourceOptions? opts = null)public static CheckExclusiveLock get(String name, Output<String> id, CheckExclusiveLockState state, CustomResourceOptions options)resources:  _:    type: azuredevops:CheckExclusiveLock    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.
- ProjectId string
- The project ID. Changing this forces a new Exclusive Lock Check to be created.
- TargetResource stringId 
- The ID of the resource being protected by the check. Changing this forces a new Exclusive Lock to be created.
- TargetResource stringType 
- The type of resource being protected by the check. Possible values are: endpoint,environment,queue,repository,securefile,variablegroup. Changing this forces a new Exclusive Lock to be created.
- Timeout int
- The timeout in minutes for the exclusive lock. Defaults to 43200.
- Version int
- The version of the check.
- ProjectId string
- The project ID. Changing this forces a new Exclusive Lock Check to be created.
- TargetResource stringId 
- The ID of the resource being protected by the check. Changing this forces a new Exclusive Lock to be created.
- TargetResource stringType 
- The type of resource being protected by the check. Possible values are: endpoint,environment,queue,repository,securefile,variablegroup. Changing this forces a new Exclusive Lock to be created.
- Timeout int
- The timeout in minutes for the exclusive lock. Defaults to 43200.
- Version int
- The version of the check.
- projectId String
- The project ID. Changing this forces a new Exclusive Lock Check to be created.
- targetResource StringId 
- The ID of the resource being protected by the check. Changing this forces a new Exclusive Lock to be created.
- targetResource StringType 
- The type of resource being protected by the check. Possible values are: endpoint,environment,queue,repository,securefile,variablegroup. Changing this forces a new Exclusive Lock to be created.
- timeout Integer
- The timeout in minutes for the exclusive lock. Defaults to 43200.
- version Integer
- The version of the check.
- projectId string
- The project ID. Changing this forces a new Exclusive Lock Check to be created.
- targetResource stringId 
- The ID of the resource being protected by the check. Changing this forces a new Exclusive Lock to be created.
- targetResource stringType 
- The type of resource being protected by the check. Possible values are: endpoint,environment,queue,repository,securefile,variablegroup. Changing this forces a new Exclusive Lock to be created.
- timeout number
- The timeout in minutes for the exclusive lock. Defaults to 43200.
- version number
- The version of the check.
- project_id str
- The project ID. Changing this forces a new Exclusive Lock Check to be created.
- target_resource_ strid 
- The ID of the resource being protected by the check. Changing this forces a new Exclusive Lock to be created.
- target_resource_ strtype 
- The type of resource being protected by the check. Possible values are: endpoint,environment,queue,repository,securefile,variablegroup. Changing this forces a new Exclusive Lock to be created.
- timeout int
- The timeout in minutes for the exclusive lock. Defaults to 43200.
- version int
- The version of the check.
- projectId String
- The project ID. Changing this forces a new Exclusive Lock Check to be created.
- targetResource StringId 
- The ID of the resource being protected by the check. Changing this forces a new Exclusive Lock to be created.
- targetResource StringType 
- The type of resource being protected by the check. Possible values are: endpoint,environment,queue,repository,securefile,variablegroup. Changing this forces a new Exclusive Lock to be created.
- timeout Number
- The timeout in minutes for the exclusive lock. Defaults to 43200.
- version Number
- The version of the check.
Import
Importing this resource is not supported.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure DevOps pulumi/pulumi-azuredevops
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azuredevopsTerraform Provider.