azuredevops logo
Azure DevOps v2.7.0, Mar 27 23

azuredevops.CheckBusinessHours

Explore with Pulumi AI

Manages a branch control check on a resource within Azure DevOps.

Supported Time Zones

  • AUS Central Standard Time
  • AUS Eastern Standard Time
  • Afghanistan Standard Time
  • Alaskan Standard Time
  • Aleutian Standard Time
  • Altai Standard Time
  • Arab Standard Time
  • Arabian Standard Time
  • Arabic Standard Time
  • Argentina Standard Time
  • Astrakhan Standard Time
  • Atlantic Standard Time
  • Aus Central W. Standard Time
  • Azerbaijan Standard Time
  • Azores Standard Time
  • Bahia Standard Time
  • Bangladesh Standard Time
  • Belarus Standard Time
  • Bougainville Standard Time
  • Canada Central Standard Time
  • Cape Verde Standard Time
  • Caucasus Standard Time
  • Cen. Australia Standard Time
  • Central America Standard Time
  • Central Asia Standard Time
  • Central Brazilian Standard Time
  • Central Europe Standard Time
  • Central European Standard Time
  • Central Pacific Standard Time
  • Central Standard Time (Mexico)
  • Central Standard Time
  • Chatham Islands Standard Time
  • China Standard Time
  • Cuba Standard Time
  • Dateline Standard Time
  • E. Africa Standard Time
  • E. Australia Standard Time
  • E. Europe Standard Time
  • E. South America Standard Time
  • Easter Island Standard Time
  • Eastern Standard Time (Mexico)
  • Eastern Standard Time
  • Egypt Standard Time
  • Ekaterinburg Standard Time
  • FLE Standard Time
  • Fiji Standard Time
  • GMT Standard Time
  • GTB Standard Time
  • Georgian Standard Time
  • Greenland Standard Time
  • Greenwich Standard Time
  • Haiti Standard Time
  • Hawaiian Standard Time
  • India Standard Time
  • Iran Standard Time
  • Israel Standard Time
  • Jordan Standard Time
  • Kaliningrad Standard Time
  • Kamchatka Standard Time
  • Korea Standard Time
  • Libya Standard Time
  • Line Islands Standard Time
  • Lord Howe Standard Time
  • Magadan Standard Time
  • Magallanes Standard Time
  • Marquesas Standard Time
  • Mauritius Standard Time
  • Mid-Atlantic Standard Time
  • Middle East Standard Time
  • Montevideo Standard Time
  • Morocco Standard Time
  • Mountain Standard Time (Mexico)
  • Mountain Standard Time
  • Myanmar Standard Time
  • N. Central Asia Standard Time
  • Namibia Standard Time
  • Nepal Standard Time
  • New Zealand Standard Time
  • Newfoundland Standard Time
  • Norfolk Standard Time
  • North Asia East Standard Time
  • North Asia Standard Time
  • North Korea Standard Time
  • Omsk Standard Time
  • Pacific SA Standard Time
  • Pacific Standard Time (Mexico)
  • Pacific Standard Time
  • Pakistan Standard Time
  • Paraguay Standard Time
  • Qyzylorda Standard Time
  • Romance Standard Time
  • Russia Time Zone 10
  • Russia Time Zone 11
  • Russia Time Zone 3
  • Russian Standard Time
  • SA Eastern Standard Time
  • SA Pacific Standard Time
  • SA Western Standard Time
  • SE Asia Standard Time
  • Saint Pierre Standard Time
  • Sakhalin Standard Time
  • Samoa Standard Time
  • Sao Tome Standard Time
  • Saratov Standard Time
  • Singapore Standard Time
  • South Africa Standard Time
  • South Sudan Standard Time
  • Sri Lanka Standard Time
  • Sudan Standard Time
  • Syria Standard Time
  • Taipei Standard Time
  • Tasmania Standard Time
  • Tocantins Standard Time
  • Tokyo Standard Time
  • Tomsk Standard Time
  • Tonga Standard Time
  • Transbaikal Standard Time
  • Turkey Standard Time
  • Turks And Caicos Standard Time
  • US Eastern Standard Time
  • US Mountain Standard Time
  • UTC
  • UTC+12
  • UTC+13
  • UTC-02
  • UTC-08
  • UTC-09
  • UTC-11
  • Ulaanbaatar Standard Time
  • Venezuela Standard Time
  • Vladivostok Standard Time
  • Volgograd Standard Time
  • W. Australia Standard Time
  • W. Central Africa Standard Time
  • W. Europe Standard Time
  • W. Mongolia Standard Time
  • West Asia Standard Time
  • West Bank Standard Time
  • West Pacific Standard Time
  • Yakutsk Standard Time
  • Yukon Standard Time

Example Usage

Protect a service connection

using System.Collections.Generic;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;

return await Deployment.RunAsync(() => 
{
    var exampleProject = new AzureDevOps.Project("exampleProject");

    var exampleServiceEndpointGeneric = new AzureDevOps.ServiceEndpointGeneric("exampleServiceEndpointGeneric", new()
    {
        ProjectId = exampleProject.Id,
        ServerUrl = "https://some-server.example.com",
        Username = "username",
        Password = "password",
        ServiceEndpointName = "Example Generic",
        Description = "Managed by Terraform",
    });

    var exampleCheckBusinessHours = new AzureDevOps.CheckBusinessHours("exampleCheckBusinessHours", new()
    {
        ProjectId = exampleProject.Id,
        DisplayName = "Managed by Terraform",
        TargetResourceId = exampleServiceEndpointGeneric.Id,
        TargetResourceType = "endpoint",
        StartTime = "07:00",
        EndTime = "15:30",
        TimeZone = "UTC",
        Monday = true,
        Tuesday = true,
    });

});
package main

import (
	"github.com/pulumi/pulumi-azuredevops/sdk/v2/go/azuredevops"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleProject, err := azuredevops.NewProject(ctx, "exampleProject", nil)
		if err != nil {
			return err
		}
		exampleServiceEndpointGeneric, err := azuredevops.NewServiceEndpointGeneric(ctx, "exampleServiceEndpointGeneric", &azuredevops.ServiceEndpointGenericArgs{
			ProjectId:           exampleProject.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 Terraform"),
		})
		if err != nil {
			return err
		}
		_, err = azuredevops.NewCheckBusinessHours(ctx, "exampleCheckBusinessHours", &azuredevops.CheckBusinessHoursArgs{
			ProjectId:          exampleProject.ID(),
			DisplayName:        pulumi.String("Managed by Terraform"),
			TargetResourceId:   exampleServiceEndpointGeneric.ID(),
			TargetResourceType: pulumi.String("endpoint"),
			StartTime:          pulumi.String("07:00"),
			EndTime:            pulumi.String("15:30"),
			TimeZone:           pulumi.String("UTC"),
			Monday:             pulumi.Bool(true),
			Tuesday:            pulumi.Bool(true),
		})
		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.azuredevops.Project;
import com.pulumi.azuredevops.ServiceEndpointGeneric;
import com.pulumi.azuredevops.ServiceEndpointGenericArgs;
import com.pulumi.azuredevops.CheckBusinessHours;
import com.pulumi.azuredevops.CheckBusinessHoursArgs;
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 exampleProject = new Project("exampleProject");

        var exampleServiceEndpointGeneric = new ServiceEndpointGeneric("exampleServiceEndpointGeneric", ServiceEndpointGenericArgs.builder()        
            .projectId(exampleProject.id())
            .serverUrl("https://some-server.example.com")
            .username("username")
            .password("password")
            .serviceEndpointName("Example Generic")
            .description("Managed by Terraform")
            .build());

        var exampleCheckBusinessHours = new CheckBusinessHours("exampleCheckBusinessHours", CheckBusinessHoursArgs.builder()        
            .projectId(exampleProject.id())
            .displayName("Managed by Terraform")
            .targetResourceId(exampleServiceEndpointGeneric.id())
            .targetResourceType("endpoint")
            .startTime("07:00")
            .endTime("15:30")
            .timeZone("UTC")
            .monday(true)
            .tuesday(true)
            .build());

    }
}
import pulumi
import pulumi_azuredevops as azuredevops

example_project = azuredevops.Project("exampleProject")
example_service_endpoint_generic = azuredevops.ServiceEndpointGeneric("exampleServiceEndpointGeneric",
    project_id=example_project.id,
    server_url="https://some-server.example.com",
    username="username",
    password="password",
    service_endpoint_name="Example Generic",
    description="Managed by Terraform")
example_check_business_hours = azuredevops.CheckBusinessHours("exampleCheckBusinessHours",
    project_id=example_project.id,
    display_name="Managed by Terraform",
    target_resource_id=example_service_endpoint_generic.id,
    target_resource_type="endpoint",
    start_time="07:00",
    end_time="15:30",
    time_zone="UTC",
    monday=True,
    tuesday=True)
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";

const exampleProject = new azuredevops.Project("exampleProject", {});
const exampleServiceEndpointGeneric = new azuredevops.ServiceEndpointGeneric("exampleServiceEndpointGeneric", {
    projectId: exampleProject.id,
    serverUrl: "https://some-server.example.com",
    username: "username",
    password: "password",
    serviceEndpointName: "Example Generic",
    description: "Managed by Terraform",
});
const exampleCheckBusinessHours = new azuredevops.CheckBusinessHours("exampleCheckBusinessHours", {
    projectId: exampleProject.id,
    displayName: "Managed by Terraform",
    targetResourceId: exampleServiceEndpointGeneric.id,
    targetResourceType: "endpoint",
    startTime: "07:00",
    endTime: "15:30",
    timeZone: "UTC",
    monday: true,
    tuesday: true,
});
resources:
  exampleProject:
    type: azuredevops:Project
  exampleServiceEndpointGeneric:
    type: azuredevops:ServiceEndpointGeneric
    properties:
      projectId: ${exampleProject.id}
      serverUrl: https://some-server.example.com
      username: username
      password: password
      serviceEndpointName: Example Generic
      description: Managed by Terraform
  exampleCheckBusinessHours:
    type: azuredevops:CheckBusinessHours
    properties:
      projectId: ${exampleProject.id}
      displayName: Managed by Terraform
      targetResourceId: ${exampleServiceEndpointGeneric.id}
      targetResourceType: endpoint
      startTime: 07:00
      endTime: 15:30
      timeZone: UTC
      monday: true
      tuesday: true

Protect an environment

using System.Collections.Generic;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;

return await Deployment.RunAsync(() => 
{
    var exampleProject = new AzureDevOps.Project("exampleProject");

    var exampleEnvironment = new AzureDevOps.Environment("exampleEnvironment", new()
    {
        ProjectId = exampleProject.Id,
    });

    var exampleCheckBusinessHours = new AzureDevOps.CheckBusinessHours("exampleCheckBusinessHours", new()
    {
        ProjectId = exampleProject.Id,
        DisplayName = "Managed by Terraform",
        TargetResourceId = exampleEnvironment.Id,
        TargetResourceType = "environment",
        StartTime = "07:00",
        EndTime = "15:30",
        TimeZone = "UTC",
        Monday = true,
        Tuesday = true,
    });

});
package main

import (
	"github.com/pulumi/pulumi-azuredevops/sdk/v2/go/azuredevops"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleProject, err := azuredevops.NewProject(ctx, "exampleProject", nil)
		if err != nil {
			return err
		}
		exampleEnvironment, err := azuredevops.NewEnvironment(ctx, "exampleEnvironment", &azuredevops.EnvironmentArgs{
			ProjectId: exampleProject.ID(),
		})
		if err != nil {
			return err
		}
		_, err = azuredevops.NewCheckBusinessHours(ctx, "exampleCheckBusinessHours", &azuredevops.CheckBusinessHoursArgs{
			ProjectId:          exampleProject.ID(),
			DisplayName:        pulumi.String("Managed by Terraform"),
			TargetResourceId:   exampleEnvironment.ID(),
			TargetResourceType: pulumi.String("environment"),
			StartTime:          pulumi.String("07:00"),
			EndTime:            pulumi.String("15:30"),
			TimeZone:           pulumi.String("UTC"),
			Monday:             pulumi.Bool(true),
			Tuesday:            pulumi.Bool(true),
		})
		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.azuredevops.Project;
import com.pulumi.azuredevops.Environment;
import com.pulumi.azuredevops.EnvironmentArgs;
import com.pulumi.azuredevops.CheckBusinessHours;
import com.pulumi.azuredevops.CheckBusinessHoursArgs;
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 exampleProject = new Project("exampleProject");

        var exampleEnvironment = new Environment("exampleEnvironment", EnvironmentArgs.builder()        
            .projectId(exampleProject.id())
            .build());

        var exampleCheckBusinessHours = new CheckBusinessHours("exampleCheckBusinessHours", CheckBusinessHoursArgs.builder()        
            .projectId(exampleProject.id())
            .displayName("Managed by Terraform")
            .targetResourceId(exampleEnvironment.id())
            .targetResourceType("environment")
            .startTime("07:00")
            .endTime("15:30")
            .timeZone("UTC")
            .monday(true)
            .tuesday(true)
            .build());

    }
}
import pulumi
import pulumi_azuredevops as azuredevops

example_project = azuredevops.Project("exampleProject")
example_environment = azuredevops.Environment("exampleEnvironment", project_id=example_project.id)
example_check_business_hours = azuredevops.CheckBusinessHours("exampleCheckBusinessHours",
    project_id=example_project.id,
    display_name="Managed by Terraform",
    target_resource_id=example_environment.id,
    target_resource_type="environment",
    start_time="07:00",
    end_time="15:30",
    time_zone="UTC",
    monday=True,
    tuesday=True)
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";

const exampleProject = new azuredevops.Project("exampleProject", {});
const exampleEnvironment = new azuredevops.Environment("exampleEnvironment", {projectId: exampleProject.id});
const exampleCheckBusinessHours = new azuredevops.CheckBusinessHours("exampleCheckBusinessHours", {
    projectId: exampleProject.id,
    displayName: "Managed by Terraform",
    targetResourceId: exampleEnvironment.id,
    targetResourceType: "environment",
    startTime: "07:00",
    endTime: "15:30",
    timeZone: "UTC",
    monday: true,
    tuesday: true,
});
resources:
  exampleProject:
    type: azuredevops:Project
  exampleEnvironment:
    type: azuredevops:Environment
    properties:
      projectId: ${exampleProject.id}
  exampleCheckBusinessHours:
    type: azuredevops:CheckBusinessHours
    properties:
      projectId: ${exampleProject.id}
      displayName: Managed by Terraform
      targetResourceId: ${exampleEnvironment.id}
      targetResourceType: environment
      startTime: 07:00
      endTime: 15:30
      timeZone: UTC
      monday: true
      tuesday: true

Protect an agent queue

using System.Collections.Generic;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;

return await Deployment.RunAsync(() => 
{
    var exampleProject = new AzureDevOps.Project("exampleProject");

    var examplePool = new AzureDevOps.Pool("examplePool");

    var exampleQueue = new AzureDevOps.Queue("exampleQueue", new()
    {
        ProjectId = exampleProject.Id,
        AgentPoolId = examplePool.Id,
    });

    var exampleCheckBusinessHours = new AzureDevOps.CheckBusinessHours("exampleCheckBusinessHours", new()
    {
        ProjectId = exampleProject.Id,
        DisplayName = "Managed by Terraform",
        TargetResourceId = exampleQueue.Id,
        TargetResourceType = "queue",
        StartTime = "07:00",
        EndTime = "15:30",
        TimeZone = "UTC",
        Monday = true,
        Tuesday = true,
    });

});
package main

import (
	"github.com/pulumi/pulumi-azuredevops/sdk/v2/go/azuredevops"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleProject, err := azuredevops.NewProject(ctx, "exampleProject", nil)
		if err != nil {
			return err
		}
		examplePool, err := azuredevops.NewPool(ctx, "examplePool", nil)
		if err != nil {
			return err
		}
		exampleQueue, err := azuredevops.NewQueue(ctx, "exampleQueue", &azuredevops.QueueArgs{
			ProjectId:   exampleProject.ID(),
			AgentPoolId: examplePool.ID(),
		})
		if err != nil {
			return err
		}
		_, err = azuredevops.NewCheckBusinessHours(ctx, "exampleCheckBusinessHours", &azuredevops.CheckBusinessHoursArgs{
			ProjectId:          exampleProject.ID(),
			DisplayName:        pulumi.String("Managed by Terraform"),
			TargetResourceId:   exampleQueue.ID(),
			TargetResourceType: pulumi.String("queue"),
			StartTime:          pulumi.String("07:00"),
			EndTime:            pulumi.String("15:30"),
			TimeZone:           pulumi.String("UTC"),
			Monday:             pulumi.Bool(true),
			Tuesday:            pulumi.Bool(true),
		})
		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.azuredevops.Project;
import com.pulumi.azuredevops.Pool;
import com.pulumi.azuredevops.Queue;
import com.pulumi.azuredevops.QueueArgs;
import com.pulumi.azuredevops.CheckBusinessHours;
import com.pulumi.azuredevops.CheckBusinessHoursArgs;
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 exampleProject = new Project("exampleProject");

        var examplePool = new Pool("examplePool");

        var exampleQueue = new Queue("exampleQueue", QueueArgs.builder()        
            .projectId(exampleProject.id())
            .agentPoolId(examplePool.id())
            .build());

        var exampleCheckBusinessHours = new CheckBusinessHours("exampleCheckBusinessHours", CheckBusinessHoursArgs.builder()        
            .projectId(exampleProject.id())
            .displayName("Managed by Terraform")
            .targetResourceId(exampleQueue.id())
            .targetResourceType("queue")
            .startTime("07:00")
            .endTime("15:30")
            .timeZone("UTC")
            .monday(true)
            .tuesday(true)
            .build());

    }
}
import pulumi
import pulumi_azuredevops as azuredevops

example_project = azuredevops.Project("exampleProject")
example_pool = azuredevops.Pool("examplePool")
example_queue = azuredevops.Queue("exampleQueue",
    project_id=example_project.id,
    agent_pool_id=example_pool.id)
example_check_business_hours = azuredevops.CheckBusinessHours("exampleCheckBusinessHours",
    project_id=example_project.id,
    display_name="Managed by Terraform",
    target_resource_id=example_queue.id,
    target_resource_type="queue",
    start_time="07:00",
    end_time="15:30",
    time_zone="UTC",
    monday=True,
    tuesday=True)
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";

const exampleProject = new azuredevops.Project("exampleProject", {});
const examplePool = new azuredevops.Pool("examplePool", {});
const exampleQueue = new azuredevops.Queue("exampleQueue", {
    projectId: exampleProject.id,
    agentPoolId: examplePool.id,
});
const exampleCheckBusinessHours = new azuredevops.CheckBusinessHours("exampleCheckBusinessHours", {
    projectId: exampleProject.id,
    displayName: "Managed by Terraform",
    targetResourceId: exampleQueue.id,
    targetResourceType: "queue",
    startTime: "07:00",
    endTime: "15:30",
    timeZone: "UTC",
    monday: true,
    tuesday: true,
});
resources:
  exampleProject:
    type: azuredevops:Project
  examplePool:
    type: azuredevops:Pool
  exampleQueue:
    type: azuredevops:Queue
    properties:
      projectId: ${exampleProject.id}
      agentPoolId: ${examplePool.id}
  exampleCheckBusinessHours:
    type: azuredevops:CheckBusinessHours
    properties:
      projectId: ${exampleProject.id}
      displayName: Managed by Terraform
      targetResourceId: ${exampleQueue.id}
      targetResourceType: queue
      startTime: 07:00
      endTime: 15:30
      timeZone: UTC
      monday: true
      tuesday: true

Protect a repository

using System.Collections.Generic;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;

return await Deployment.RunAsync(() => 
{
    var exampleProject = new AzureDevOps.Project("exampleProject");

    var exampleGit = new AzureDevOps.Git("exampleGit", new()
    {
        ProjectId = exampleProject.Id,
        Initialization = new AzureDevOps.Inputs.GitInitializationArgs
        {
            InitType = "Clean",
        },
    });

    var exampleCheckBusinessHours = new AzureDevOps.CheckBusinessHours("exampleCheckBusinessHours", new()
    {
        ProjectId = exampleProject.Id,
        DisplayName = "Managed by Terraform",
        TargetResourceId = Output.Tuple(exampleProject.Id, exampleGit.Id).Apply(values =>
        {
            var exampleProjectId = values.Item1;
            var exampleGitId = values.Item2;
            return $"{exampleProjectId}.{exampleGitId}";
        }),
        TargetResourceType = "repository",
        StartTime = "07:00",
        EndTime = "15:30",
        TimeZone = "UTC",
        Monday = true,
        Tuesday = true,
    });

});
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-azuredevops/sdk/v2/go/azuredevops"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleProject, err := azuredevops.NewProject(ctx, "exampleProject", nil)
		if err != nil {
			return err
		}
		exampleGit, err := azuredevops.NewGit(ctx, "exampleGit", &azuredevops.GitArgs{
			ProjectId: exampleProject.ID(),
			Initialization: &azuredevops.GitInitializationArgs{
				InitType: pulumi.String("Clean"),
			},
		})
		if err != nil {
			return err
		}
		_, err = azuredevops.NewCheckBusinessHours(ctx, "exampleCheckBusinessHours", &azuredevops.CheckBusinessHoursArgs{
			ProjectId:   exampleProject.ID(),
			DisplayName: pulumi.String("Managed by Terraform"),
			TargetResourceId: pulumi.All(exampleProject.ID(), exampleGit.ID()).ApplyT(func(_args []interface{}) (string, error) {
				exampleProjectId := _args[0].(string)
				exampleGitId := _args[1].(string)
				return fmt.Sprintf("%v.%v", exampleProjectId, exampleGitId), nil
			}).(pulumi.StringOutput),
			TargetResourceType: pulumi.String("repository"),
			StartTime:          pulumi.String("07:00"),
			EndTime:            pulumi.String("15:30"),
			TimeZone:           pulumi.String("UTC"),
			Monday:             pulumi.Bool(true),
			Tuesday:            pulumi.Bool(true),
		})
		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.azuredevops.Project;
import com.pulumi.azuredevops.Git;
import com.pulumi.azuredevops.GitArgs;
import com.pulumi.azuredevops.inputs.GitInitializationArgs;
import com.pulumi.azuredevops.CheckBusinessHours;
import com.pulumi.azuredevops.CheckBusinessHoursArgs;
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 exampleProject = new Project("exampleProject");

        var exampleGit = new Git("exampleGit", GitArgs.builder()        
            .projectId(exampleProject.id())
            .initialization(GitInitializationArgs.builder()
                .initType("Clean")
                .build())
            .build());

        var exampleCheckBusinessHours = new CheckBusinessHours("exampleCheckBusinessHours", CheckBusinessHoursArgs.builder()        
            .projectId(exampleProject.id())
            .displayName("Managed by Terraform")
            .targetResourceId(Output.tuple(exampleProject.id(), exampleGit.id()).applyValue(values -> {
                var exampleProjectId = values.t1;
                var exampleGitId = values.t2;
                return String.format("%s.%s", exampleProjectId,exampleGitId);
            }))
            .targetResourceType("repository")
            .startTime("07:00")
            .endTime("15:30")
            .timeZone("UTC")
            .monday(true)
            .tuesday(true)
            .build());

    }
}
import pulumi
import pulumi_azuredevops as azuredevops

example_project = azuredevops.Project("exampleProject")
example_git = azuredevops.Git("exampleGit",
    project_id=example_project.id,
    initialization=azuredevops.GitInitializationArgs(
        init_type="Clean",
    ))
example_check_business_hours = azuredevops.CheckBusinessHours("exampleCheckBusinessHours",
    project_id=example_project.id,
    display_name="Managed by Terraform",
    target_resource_id=pulumi.Output.all(example_project.id, example_git.id).apply(lambda exampleProjectId, exampleGitId: f"{example_project_id}.{example_git_id}"),
    target_resource_type="repository",
    start_time="07:00",
    end_time="15:30",
    time_zone="UTC",
    monday=True,
    tuesday=True)
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";

const exampleProject = new azuredevops.Project("exampleProject", {});
const exampleGit = new azuredevops.Git("exampleGit", {
    projectId: exampleProject.id,
    initialization: {
        initType: "Clean",
    },
});
const exampleCheckBusinessHours = new azuredevops.CheckBusinessHours("exampleCheckBusinessHours", {
    projectId: exampleProject.id,
    displayName: "Managed by Terraform",
    targetResourceId: pulumi.interpolate`${exampleProject.id}.${exampleGit.id}`,
    targetResourceType: "repository",
    startTime: "07:00",
    endTime: "15:30",
    timeZone: "UTC",
    monday: true,
    tuesday: true,
});
resources:
  exampleProject:
    type: azuredevops:Project
  exampleGit:
    type: azuredevops:Git
    properties:
      projectId: ${exampleProject.id}
      initialization:
        initType: Clean
  exampleCheckBusinessHours:
    type: azuredevops:CheckBusinessHours
    properties:
      projectId: ${exampleProject.id}
      displayName: Managed by Terraform
      targetResourceId: ${exampleProject.id}.${exampleGit.id}
      targetResourceType: repository
      startTime: 07:00
      endTime: 15:30
      timeZone: UTC
      monday: true
      tuesday: true

Protect a variable group

using System.Collections.Generic;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;

return await Deployment.RunAsync(() => 
{
    var exampleProject = new AzureDevOps.Project("exampleProject");

    var exampleVariableGroup = new AzureDevOps.VariableGroup("exampleVariableGroup", new()
    {
        ProjectId = exampleProject.Id,
        Description = "Example Variable Group Description",
        AllowAccess = true,
        Variables = new[]
        {
            new AzureDevOps.Inputs.VariableGroupVariableArgs
            {
                Name = "key1",
                Value = "val1",
            },
            new AzureDevOps.Inputs.VariableGroupVariableArgs
            {
                Name = "key2",
                SecretValue = "val2",
                IsSecret = true,
            },
        },
    });

    var exampleCheckBusinessHours = new AzureDevOps.CheckBusinessHours("exampleCheckBusinessHours", new()
    {
        ProjectId = exampleProject.Id,
        DisplayName = "Managed by Terraform",
        TargetResourceId = exampleVariableGroup.Id,
        TargetResourceType = "variablegroup",
        StartTime = "07:00",
        EndTime = "15:30",
        TimeZone = "UTC",
        Monday = true,
        Tuesday = true,
    });

});
package main

import (
	"github.com/pulumi/pulumi-azuredevops/sdk/v2/go/azuredevops"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleProject, err := azuredevops.NewProject(ctx, "exampleProject", nil)
		if err != nil {
			return err
		}
		exampleVariableGroup, err := azuredevops.NewVariableGroup(ctx, "exampleVariableGroup", &azuredevops.VariableGroupArgs{
			ProjectId:   exampleProject.ID(),
			Description: pulumi.String("Example Variable Group Description"),
			AllowAccess: pulumi.Bool(true),
			Variables: azuredevops.VariableGroupVariableArray{
				&azuredevops.VariableGroupVariableArgs{
					Name:  pulumi.String("key1"),
					Value: pulumi.String("val1"),
				},
				&azuredevops.VariableGroupVariableArgs{
					Name:        pulumi.String("key2"),
					SecretValue: pulumi.String("val2"),
					IsSecret:    pulumi.Bool(true),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = azuredevops.NewCheckBusinessHours(ctx, "exampleCheckBusinessHours", &azuredevops.CheckBusinessHoursArgs{
			ProjectId:          exampleProject.ID(),
			DisplayName:        pulumi.String("Managed by Terraform"),
			TargetResourceId:   exampleVariableGroup.ID(),
			TargetResourceType: pulumi.String("variablegroup"),
			StartTime:          pulumi.String("07:00"),
			EndTime:            pulumi.String("15:30"),
			TimeZone:           pulumi.String("UTC"),
			Monday:             pulumi.Bool(true),
			Tuesday:            pulumi.Bool(true),
		})
		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.azuredevops.Project;
import com.pulumi.azuredevops.VariableGroup;
import com.pulumi.azuredevops.VariableGroupArgs;
import com.pulumi.azuredevops.inputs.VariableGroupVariableArgs;
import com.pulumi.azuredevops.CheckBusinessHours;
import com.pulumi.azuredevops.CheckBusinessHoursArgs;
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 exampleProject = new Project("exampleProject");

        var exampleVariableGroup = new VariableGroup("exampleVariableGroup", VariableGroupArgs.builder()        
            .projectId(exampleProject.id())
            .description("Example Variable Group Description")
            .allowAccess(true)
            .variables(            
                VariableGroupVariableArgs.builder()
                    .name("key1")
                    .value("val1")
                    .build(),
                VariableGroupVariableArgs.builder()
                    .name("key2")
                    .secretValue("val2")
                    .isSecret(true)
                    .build())
            .build());

        var exampleCheckBusinessHours = new CheckBusinessHours("exampleCheckBusinessHours", CheckBusinessHoursArgs.builder()        
            .projectId(exampleProject.id())
            .displayName("Managed by Terraform")
            .targetResourceId(exampleVariableGroup.id())
            .targetResourceType("variablegroup")
            .startTime("07:00")
            .endTime("15:30")
            .timeZone("UTC")
            .monday(true)
            .tuesday(true)
            .build());

    }
}
import pulumi
import pulumi_azuredevops as azuredevops

example_project = azuredevops.Project("exampleProject")
example_variable_group = azuredevops.VariableGroup("exampleVariableGroup",
    project_id=example_project.id,
    description="Example Variable Group Description",
    allow_access=True,
    variables=[
        azuredevops.VariableGroupVariableArgs(
            name="key1",
            value="val1",
        ),
        azuredevops.VariableGroupVariableArgs(
            name="key2",
            secret_value="val2",
            is_secret=True,
        ),
    ])
example_check_business_hours = azuredevops.CheckBusinessHours("exampleCheckBusinessHours",
    project_id=example_project.id,
    display_name="Managed by Terraform",
    target_resource_id=example_variable_group.id,
    target_resource_type="variablegroup",
    start_time="07:00",
    end_time="15:30",
    time_zone="UTC",
    monday=True,
    tuesday=True)
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";

const exampleProject = new azuredevops.Project("exampleProject", {});
const exampleVariableGroup = new azuredevops.VariableGroup("exampleVariableGroup", {
    projectId: exampleProject.id,
    description: "Example Variable Group Description",
    allowAccess: true,
    variables: [
        {
            name: "key1",
            value: "val1",
        },
        {
            name: "key2",
            secretValue: "val2",
            isSecret: true,
        },
    ],
});
const exampleCheckBusinessHours = new azuredevops.CheckBusinessHours("exampleCheckBusinessHours", {
    projectId: exampleProject.id,
    displayName: "Managed by Terraform",
    targetResourceId: exampleVariableGroup.id,
    targetResourceType: "variablegroup",
    startTime: "07:00",
    endTime: "15:30",
    timeZone: "UTC",
    monday: true,
    tuesday: true,
});
resources:
  exampleProject:
    type: azuredevops:Project
  exampleVariableGroup:
    type: azuredevops:VariableGroup
    properties:
      projectId: ${exampleProject.id}
      description: Example Variable Group Description
      allowAccess: true
      variables:
        - name: key1
          value: val1
        - name: key2
          secretValue: val2
          isSecret: true
  exampleCheckBusinessHours:
    type: azuredevops:CheckBusinessHours
    properties:
      projectId: ${exampleProject.id}
      displayName: Managed by Terraform
      targetResourceId: ${exampleVariableGroup.id}
      targetResourceType: variablegroup
      startTime: 07:00
      endTime: 15:30
      timeZone: UTC
      monday: true
      tuesday: true

Create CheckBusinessHours Resource

new CheckBusinessHours(name: string, args: CheckBusinessHoursArgs, opts?: CustomResourceOptions);
@overload
def CheckBusinessHours(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       display_name: Optional[str] = None,
                       end_time: Optional[str] = None,
                       friday: Optional[bool] = None,
                       monday: Optional[bool] = None,
                       project_id: Optional[str] = None,
                       saturday: Optional[bool] = None,
                       start_time: Optional[str] = None,
                       sunday: Optional[bool] = None,
                       target_resource_id: Optional[str] = None,
                       target_resource_type: Optional[str] = None,
                       thursday: Optional[bool] = None,
                       time_zone: Optional[str] = None,
                       tuesday: Optional[bool] = None,
                       wednesday: Optional[bool] = None)
@overload
def CheckBusinessHours(resource_name: str,
                       args: CheckBusinessHoursArgs,
                       opts: Optional[ResourceOptions] = None)
func NewCheckBusinessHours(ctx *Context, name string, args CheckBusinessHoursArgs, opts ...ResourceOption) (*CheckBusinessHours, error)
public CheckBusinessHours(string name, CheckBusinessHoursArgs args, CustomResourceOptions? opts = null)
public CheckBusinessHours(String name, CheckBusinessHoursArgs args)
public CheckBusinessHours(String name, CheckBusinessHoursArgs args, CustomResourceOptions options)
type: azuredevops:CheckBusinessHours
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args CheckBusinessHoursArgs
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 CheckBusinessHoursArgs
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 CheckBusinessHoursArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CheckBusinessHoursArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args CheckBusinessHoursArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

EndTime string

The end of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

ProjectId string

The project ID.

StartTime string

The beginning of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

TargetResourceId string

The ID of the resource being protected by the check.

TargetResourceType string

The type of resource being protected by the check. Valid values: endpoint, environment, queue, repository, securefile, variablegroup.

TimeZone string

The time zone this check will be evaluated in. See below for supported values.

DisplayName string

The name of the business hours check displayed in the web UI.

Friday bool

This check will pass on Fridays. Defaults to false.

Monday bool

This check will pass on Mondays. Defaults to false.

Saturday bool

This check will pass on Saturdays. Defaults to false.

Sunday bool

This check will pass on Sundays. Defaults to false.

Thursday bool

This check will pass on Thursdays. Defaults to false.

Tuesday bool

This check will pass on Tuesday. Defaults to false.

Wednesday bool

This check will pass on Wednesdays. Defaults to false.

EndTime string

The end of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

ProjectId string

The project ID.

StartTime string

The beginning of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

TargetResourceId string

The ID of the resource being protected by the check.

TargetResourceType string

The type of resource being protected by the check. Valid values: endpoint, environment, queue, repository, securefile, variablegroup.

TimeZone string

The time zone this check will be evaluated in. See below for supported values.

DisplayName string

The name of the business hours check displayed in the web UI.

Friday bool

This check will pass on Fridays. Defaults to false.

Monday bool

This check will pass on Mondays. Defaults to false.

Saturday bool

This check will pass on Saturdays. Defaults to false.

Sunday bool

This check will pass on Sundays. Defaults to false.

Thursday bool

This check will pass on Thursdays. Defaults to false.

Tuesday bool

This check will pass on Tuesday. Defaults to false.

Wednesday bool

This check will pass on Wednesdays. Defaults to false.

endTime String

The end of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

projectId String

The project ID.

startTime String

The beginning of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

targetResourceId String

The ID of the resource being protected by the check.

targetResourceType String

The type of resource being protected by the check. Valid values: endpoint, environment, queue, repository, securefile, variablegroup.

timeZone String

The time zone this check will be evaluated in. See below for supported values.

displayName String

The name of the business hours check displayed in the web UI.

friday Boolean

This check will pass on Fridays. Defaults to false.

monday Boolean

This check will pass on Mondays. Defaults to false.

saturday Boolean

This check will pass on Saturdays. Defaults to false.

sunday Boolean

This check will pass on Sundays. Defaults to false.

thursday Boolean

This check will pass on Thursdays. Defaults to false.

tuesday Boolean

This check will pass on Tuesday. Defaults to false.

wednesday Boolean

This check will pass on Wednesdays. Defaults to false.

endTime string

The end of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

projectId string

The project ID.

startTime string

The beginning of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

targetResourceId string

The ID of the resource being protected by the check.

targetResourceType string

The type of resource being protected by the check. Valid values: endpoint, environment, queue, repository, securefile, variablegroup.

timeZone string

The time zone this check will be evaluated in. See below for supported values.

displayName string

The name of the business hours check displayed in the web UI.

friday boolean

This check will pass on Fridays. Defaults to false.

monday boolean

This check will pass on Mondays. Defaults to false.

saturday boolean

This check will pass on Saturdays. Defaults to false.

sunday boolean

This check will pass on Sundays. Defaults to false.

thursday boolean

This check will pass on Thursdays. Defaults to false.

tuesday boolean

This check will pass on Tuesday. Defaults to false.

wednesday boolean

This check will pass on Wednesdays. Defaults to false.

end_time str

The end of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

project_id str

The project ID.

start_time str

The beginning of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

target_resource_id str

The ID of the resource being protected by the check.

target_resource_type str

The type of resource being protected by the check. Valid values: endpoint, environment, queue, repository, securefile, variablegroup.

time_zone str

The time zone this check will be evaluated in. See below for supported values.

display_name str

The name of the business hours check displayed in the web UI.

friday bool

This check will pass on Fridays. Defaults to false.

monday bool

This check will pass on Mondays. Defaults to false.

saturday bool

This check will pass on Saturdays. Defaults to false.

sunday bool

This check will pass on Sundays. Defaults to false.

thursday bool

This check will pass on Thursdays. Defaults to false.

tuesday bool

This check will pass on Tuesday. Defaults to false.

wednesday bool

This check will pass on Wednesdays. Defaults to false.

endTime String

The end of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

projectId String

The project ID.

startTime String

The beginning of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

targetResourceId String

The ID of the resource being protected by the check.

targetResourceType String

The type of resource being protected by the check. Valid values: endpoint, environment, queue, repository, securefile, variablegroup.

timeZone String

The time zone this check will be evaluated in. See below for supported values.

displayName String

The name of the business hours check displayed in the web UI.

friday Boolean

This check will pass on Fridays. Defaults to false.

monday Boolean

This check will pass on Mondays. Defaults to false.

saturday Boolean

This check will pass on Saturdays. Defaults to false.

sunday Boolean

This check will pass on Sundays. Defaults to false.

thursday Boolean

This check will pass on Thursdays. Defaults to false.

tuesday Boolean

This check will pass on Tuesday. Defaults to false.

wednesday Boolean

This check will pass on Wednesdays. Defaults to false.

Outputs

All input properties are implicitly available as output properties. Additionally, the CheckBusinessHours 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 CheckBusinessHours Resource

Get an existing CheckBusinessHours 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?: CheckBusinessHoursState, opts?: CustomResourceOptions): CheckBusinessHours
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        display_name: Optional[str] = None,
        end_time: Optional[str] = None,
        friday: Optional[bool] = None,
        monday: Optional[bool] = None,
        project_id: Optional[str] = None,
        saturday: Optional[bool] = None,
        start_time: Optional[str] = None,
        sunday: Optional[bool] = None,
        target_resource_id: Optional[str] = None,
        target_resource_type: Optional[str] = None,
        thursday: Optional[bool] = None,
        time_zone: Optional[str] = None,
        tuesday: Optional[bool] = None,
        wednesday: Optional[bool] = None) -> CheckBusinessHours
func GetCheckBusinessHours(ctx *Context, name string, id IDInput, state *CheckBusinessHoursState, opts ...ResourceOption) (*CheckBusinessHours, error)
public static CheckBusinessHours Get(string name, Input<string> id, CheckBusinessHoursState? state, CustomResourceOptions? opts = null)
public static CheckBusinessHours get(String name, Output<String> id, CheckBusinessHoursState 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:
DisplayName string

The name of the business hours check displayed in the web UI.

EndTime string

The end of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

Friday bool

This check will pass on Fridays. Defaults to false.

Monday bool

This check will pass on Mondays. Defaults to false.

ProjectId string

The project ID.

Saturday bool

This check will pass on Saturdays. Defaults to false.

StartTime string

The beginning of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

Sunday bool

This check will pass on Sundays. Defaults to false.

TargetResourceId string

The ID of the resource being protected by the check.

TargetResourceType string

The type of resource being protected by the check. Valid values: endpoint, environment, queue, repository, securefile, variablegroup.

Thursday bool

This check will pass on Thursdays. Defaults to false.

TimeZone string

The time zone this check will be evaluated in. See below for supported values.

Tuesday bool

This check will pass on Tuesday. Defaults to false.

Wednesday bool

This check will pass on Wednesdays. Defaults to false.

DisplayName string

The name of the business hours check displayed in the web UI.

EndTime string

The end of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

Friday bool

This check will pass on Fridays. Defaults to false.

Monday bool

This check will pass on Mondays. Defaults to false.

ProjectId string

The project ID.

Saturday bool

This check will pass on Saturdays. Defaults to false.

StartTime string

The beginning of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

Sunday bool

This check will pass on Sundays. Defaults to false.

TargetResourceId string

The ID of the resource being protected by the check.

TargetResourceType string

The type of resource being protected by the check. Valid values: endpoint, environment, queue, repository, securefile, variablegroup.

Thursday bool

This check will pass on Thursdays. Defaults to false.

TimeZone string

The time zone this check will be evaluated in. See below for supported values.

Tuesday bool

This check will pass on Tuesday. Defaults to false.

Wednesday bool

This check will pass on Wednesdays. Defaults to false.

displayName String

The name of the business hours check displayed in the web UI.

endTime String

The end of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

friday Boolean

This check will pass on Fridays. Defaults to false.

monday Boolean

This check will pass on Mondays. Defaults to false.

projectId String

The project ID.

saturday Boolean

This check will pass on Saturdays. Defaults to false.

startTime String

The beginning of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

sunday Boolean

This check will pass on Sundays. Defaults to false.

targetResourceId String

The ID of the resource being protected by the check.

targetResourceType String

The type of resource being protected by the check. Valid values: endpoint, environment, queue, repository, securefile, variablegroup.

thursday Boolean

This check will pass on Thursdays. Defaults to false.

timeZone String

The time zone this check will be evaluated in. See below for supported values.

tuesday Boolean

This check will pass on Tuesday. Defaults to false.

wednesday Boolean

This check will pass on Wednesdays. Defaults to false.

displayName string

The name of the business hours check displayed in the web UI.

endTime string

The end of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

friday boolean

This check will pass on Fridays. Defaults to false.

monday boolean

This check will pass on Mondays. Defaults to false.

projectId string

The project ID.

saturday boolean

This check will pass on Saturdays. Defaults to false.

startTime string

The beginning of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

sunday boolean

This check will pass on Sundays. Defaults to false.

targetResourceId string

The ID of the resource being protected by the check.

targetResourceType string

The type of resource being protected by the check. Valid values: endpoint, environment, queue, repository, securefile, variablegroup.

thursday boolean

This check will pass on Thursdays. Defaults to false.

timeZone string

The time zone this check will be evaluated in. See below for supported values.

tuesday boolean

This check will pass on Tuesday. Defaults to false.

wednesday boolean

This check will pass on Wednesdays. Defaults to false.

display_name str

The name of the business hours check displayed in the web UI.

end_time str

The end of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

friday bool

This check will pass on Fridays. Defaults to false.

monday bool

This check will pass on Mondays. Defaults to false.

project_id str

The project ID.

saturday bool

This check will pass on Saturdays. Defaults to false.

start_time str

The beginning of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

sunday bool

This check will pass on Sundays. Defaults to false.

target_resource_id str

The ID of the resource being protected by the check.

target_resource_type str

The type of resource being protected by the check. Valid values: endpoint, environment, queue, repository, securefile, variablegroup.

thursday bool

This check will pass on Thursdays. Defaults to false.

time_zone str

The time zone this check will be evaluated in. See below for supported values.

tuesday bool

This check will pass on Tuesday. Defaults to false.

wednesday bool

This check will pass on Wednesdays. Defaults to false.

displayName String

The name of the business hours check displayed in the web UI.

endTime String

The end of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

friday Boolean

This check will pass on Fridays. Defaults to false.

monday Boolean

This check will pass on Mondays. Defaults to false.

projectId String

The project ID.

saturday Boolean

This check will pass on Saturdays. Defaults to false.

startTime String

The beginning of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.

sunday Boolean

This check will pass on Sundays. Defaults to false.

targetResourceId String

The ID of the resource being protected by the check.

targetResourceType String

The type of resource being protected by the check. Valid values: endpoint, environment, queue, repository, securefile, variablegroup.

thursday Boolean

This check will pass on Thursdays. Defaults to false.

timeZone String

The time zone this check will be evaluated in. See below for supported values.

tuesday Boolean

This check will pass on Tuesday. Defaults to false.

wednesday Boolean

This check will pass on Wednesdays. Defaults to false.

Import

Importing this resource is not supported.

Package Details

Repository
Azure DevOps pulumi/pulumi-azuredevops
License
Apache-2.0
Notes

This Pulumi package is based on the azuredevops Terraform Provider.