azuredevops.CheckBusinessHours
Explore with Pulumi AI
Manages a business hours check on a resource within Azure DevOps.
Example Usage
Protect a service connection
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 exampleCheckBusinessHours = new azuredevops.CheckBusinessHours("example", {
projectId: example.id,
displayName: "Managed by Pulumi",
targetResourceId: exampleServiceEndpointGeneric.id,
targetResourceType: "endpoint",
startTime: "07:00",
endTime: "15:30",
timeZone: "UTC",
monday: true,
tuesday: true,
timeout: 1440,
});
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_business_hours = azuredevops.CheckBusinessHours("example",
project_id=example.id,
display_name="Managed by Pulumi",
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,
timeout=1440)
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.NewCheckBusinessHours(ctx, "example", &azuredevops.CheckBusinessHoursArgs{
ProjectId: example.ID(),
DisplayName: pulumi.String("Managed by Pulumi"),
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),
Timeout: pulumi.Int(1440),
})
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 exampleCheckBusinessHours = new AzureDevOps.CheckBusinessHours("example", new()
{
ProjectId = example.Id,
DisplayName = "Managed by Pulumi",
TargetResourceId = exampleServiceEndpointGeneric.Id,
TargetResourceType = "endpoint",
StartTime = "07:00",
EndTime = "15:30",
TimeZone = "UTC",
Monday = true,
Tuesday = true,
Timeout = 1440,
});
});
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.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 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 exampleCheckBusinessHours = new CheckBusinessHours("exampleCheckBusinessHours", CheckBusinessHoursArgs.builder()
.projectId(example.id())
.displayName("Managed by Pulumi")
.targetResourceId(exampleServiceEndpointGeneric.id())
.targetResourceType("endpoint")
.startTime("07:00")
.endTime("15:30")
.timeZone("UTC")
.monday(true)
.tuesday(true)
.timeout(1440)
.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
exampleCheckBusinessHours:
type: azuredevops:CheckBusinessHours
name: example
properties:
projectId: ${example.id}
displayName: Managed by Pulumi
targetResourceId: ${exampleServiceEndpointGeneric.id}
targetResourceType: endpoint
startTime: 07:00
endTime: 15:30
timeZone: UTC
monday: true
tuesday: true
timeout: 1440
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 exampleCheckBusinessHours = new azuredevops.CheckBusinessHours("example", {
projectId: example.id,
displayName: "Managed by Pulumi",
targetResourceId: exampleEnvironment.id,
targetResourceType: "environment",
startTime: "07:00",
endTime: "15:30",
timeZone: "UTC",
monday: true,
tuesday: true,
});
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_business_hours = azuredevops.CheckBusinessHours("example",
project_id=example.id,
display_name="Managed by Pulumi",
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)
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.NewCheckBusinessHours(ctx, "example", &azuredevops.CheckBusinessHoursArgs{
ProjectId: example.ID(),
DisplayName: pulumi.String("Managed by Pulumi"),
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
})
}
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 exampleCheckBusinessHours = new AzureDevOps.CheckBusinessHours("example", new()
{
ProjectId = example.Id,
DisplayName = "Managed by Pulumi",
TargetResourceId = exampleEnvironment.Id,
TargetResourceType = "environment",
StartTime = "07:00",
EndTime = "15:30",
TimeZone = "UTC",
Monday = true,
Tuesday = true,
});
});
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.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 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 exampleCheckBusinessHours = new CheckBusinessHours("exampleCheckBusinessHours", CheckBusinessHoursArgs.builder()
.projectId(example.id())
.displayName("Managed by Pulumi")
.targetResourceId(exampleEnvironment.id())
.targetResourceType("environment")
.startTime("07:00")
.endTime("15:30")
.timeZone("UTC")
.monday(true)
.tuesday(true)
.build());
}
}
resources:
example:
type: azuredevops:Project
properties:
name: Example Project
exampleEnvironment:
type: azuredevops:Environment
name: example
properties:
projectId: ${example.id}
name: Example Environment
exampleCheckBusinessHours:
type: azuredevops:CheckBusinessHours
name: example
properties:
projectId: ${example.id}
displayName: Managed by Pulumi
targetResourceId: ${exampleEnvironment.id}
targetResourceType: environment
startTime: 07:00
endTime: 15:30
timeZone: UTC
monday: true
tuesday: true
Protect an agent queue
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const example = new azuredevops.Project("example", {name: "Example Project"});
const examplePool = new azuredevops.Pool("example", {name: "example-pool"});
const exampleQueue = new azuredevops.Queue("example", {
projectId: example.id,
agentPoolId: examplePool.id,
});
const exampleCheckBusinessHours = new azuredevops.CheckBusinessHours("example", {
projectId: example.id,
displayName: "Managed by Pulumi",
targetResourceId: exampleQueue.id,
targetResourceType: "queue",
startTime: "07:00",
endTime: "15:30",
timeZone: "UTC",
monday: true,
tuesday: true,
});
import pulumi
import pulumi_azuredevops as azuredevops
example = azuredevops.Project("example", name="Example Project")
example_pool = azuredevops.Pool("example", name="example-pool")
example_queue = azuredevops.Queue("example",
project_id=example.id,
agent_pool_id=example_pool.id)
example_check_business_hours = azuredevops.CheckBusinessHours("example",
project_id=example.id,
display_name="Managed by Pulumi",
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)
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
}
examplePool, err := azuredevops.NewPool(ctx, "example", &azuredevops.PoolArgs{
Name: pulumi.String("example-pool"),
})
if err != nil {
return err
}
exampleQueue, err := azuredevops.NewQueue(ctx, "example", &azuredevops.QueueArgs{
ProjectId: example.ID(),
AgentPoolId: examplePool.ID(),
})
if err != nil {
return err
}
_, err = azuredevops.NewCheckBusinessHours(ctx, "example", &azuredevops.CheckBusinessHoursArgs{
ProjectId: example.ID(),
DisplayName: pulumi.String("Managed by Pulumi"),
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
})
}
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 examplePool = new AzureDevOps.Pool("example", new()
{
Name = "example-pool",
});
var exampleQueue = new AzureDevOps.Queue("example", new()
{
ProjectId = example.Id,
AgentPoolId = examplePool.Id,
});
var exampleCheckBusinessHours = new AzureDevOps.CheckBusinessHours("example", new()
{
ProjectId = example.Id,
DisplayName = "Managed by Pulumi",
TargetResourceId = exampleQueue.Id,
TargetResourceType = "queue",
StartTime = "07:00",
EndTime = "15:30",
TimeZone = "UTC",
Monday = true,
Tuesday = true,
});
});
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.Pool;
import com.pulumi.azuredevops.PoolArgs;
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 example = new Project("example", ProjectArgs.builder()
.name("Example Project")
.build());
var examplePool = new Pool("examplePool", PoolArgs.builder()
.name("example-pool")
.build());
var exampleQueue = new Queue("exampleQueue", QueueArgs.builder()
.projectId(example.id())
.agentPoolId(examplePool.id())
.build());
var exampleCheckBusinessHours = new CheckBusinessHours("exampleCheckBusinessHours", CheckBusinessHoursArgs.builder()
.projectId(example.id())
.displayName("Managed by Pulumi")
.targetResourceId(exampleQueue.id())
.targetResourceType("queue")
.startTime("07:00")
.endTime("15:30")
.timeZone("UTC")
.monday(true)
.tuesday(true)
.build());
}
}
resources:
example:
type: azuredevops:Project
properties:
name: Example Project
examplePool:
type: azuredevops:Pool
name: example
properties:
name: example-pool
exampleQueue:
type: azuredevops:Queue
name: example
properties:
projectId: ${example.id}
agentPoolId: ${examplePool.id}
exampleCheckBusinessHours:
type: azuredevops:CheckBusinessHours
name: example
properties:
projectId: ${example.id}
displayName: Managed by Pulumi
targetResourceId: ${exampleQueue.id}
targetResourceType: queue
startTime: 07:00
endTime: 15:30
timeZone: UTC
monday: true
tuesday: true
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 Empty Git Repository",
initialization: {
initType: "Clean",
},
});
const exampleCheckBusinessHours = new azuredevops.CheckBusinessHours("example", {
projectId: example.id,
displayName: "Managed by Pulumi",
targetResourceId: pulumi.interpolate`${example.id}.${exampleGit.id}`,
targetResourceType: "repository",
startTime: "07:00",
endTime: "15:30",
timeZone: "UTC",
monday: true,
tuesday: true,
});
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 Empty Git Repository",
initialization={
"init_type": "Clean",
})
example_check_business_hours = azuredevops.CheckBusinessHours("example",
project_id=example.id,
display_name="Managed by Pulumi",
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",
start_time="07:00",
end_time="15:30",
time_zone="UTC",
monday=True,
tuesday=True)
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 Empty Git Repository"),
Initialization: &azuredevops.GitInitializationArgs{
InitType: pulumi.String("Clean"),
},
})
if err != nil {
return err
}
_, err = azuredevops.NewCheckBusinessHours(ctx, "example", &azuredevops.CheckBusinessHoursArgs{
ProjectId: example.ID(),
DisplayName: pulumi.String("Managed by Pulumi"),
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"),
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
})
}
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 Empty Git Repository",
Initialization = new AzureDevOps.Inputs.GitInitializationArgs
{
InitType = "Clean",
},
});
var exampleCheckBusinessHours = new AzureDevOps.CheckBusinessHours("example", new()
{
ProjectId = example.Id,
DisplayName = "Managed by Pulumi",
TargetResourceId = Output.Tuple(example.Id, exampleGit.Id).Apply(values =>
{
var exampleId = values.Item1;
var exampleGitId = values.Item2;
return $"{exampleId}.{exampleGitId}";
}),
TargetResourceType = "repository",
StartTime = "07:00",
EndTime = "15:30",
TimeZone = "UTC",
Monday = true,
Tuesday = true,
});
});
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.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 example = new Project("example", ProjectArgs.builder()
.name("Example Project")
.build());
var exampleGit = new Git("exampleGit", GitArgs.builder()
.projectId(example.id())
.name("Example Empty Git Repository")
.initialization(GitInitializationArgs.builder()
.initType("Clean")
.build())
.build());
var exampleCheckBusinessHours = new CheckBusinessHours("exampleCheckBusinessHours", CheckBusinessHoursArgs.builder()
.projectId(example.id())
.displayName("Managed by Pulumi")
.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")
.startTime("07:00")
.endTime("15:30")
.timeZone("UTC")
.monday(true)
.tuesday(true)
.build());
}
}
resources:
example:
type: azuredevops:Project
properties:
name: Example Project
exampleGit:
type: azuredevops:Git
name: example
properties:
projectId: ${example.id}
name: Example Empty Git Repository
initialization:
initType: Clean
exampleCheckBusinessHours:
type: azuredevops:CheckBusinessHours
name: example
properties:
projectId: ${example.id}
displayName: Managed by Pulumi
targetResourceId: ${example.id}.${exampleGit.id}
targetResourceType: repository
startTime: 07:00
endTime: 15:30
timeZone: UTC
monday: true
tuesday: true
Protect a variable group
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const example = new azuredevops.Project("example", {name: "Example Project"});
const exampleVariableGroup = new azuredevops.VariableGroup("example", {
projectId: example.id,
name: "Example Variable Group",
description: "Example Variable Group Description",
allowAccess: true,
variables: [
{
name: "key1",
value: "val1",
},
{
name: "key2",
secretValue: "val2",
isSecret: true,
},
],
});
const exampleCheckBusinessHours = new azuredevops.CheckBusinessHours("example", {
projectId: example.id,
displayName: "Managed by Pulumi",
targetResourceId: exampleVariableGroup.id,
targetResourceType: "variablegroup",
startTime: "07:00",
endTime: "15:30",
timeZone: "UTC",
monday: true,
tuesday: true,
});
import pulumi
import pulumi_azuredevops as azuredevops
example = azuredevops.Project("example", name="Example Project")
example_variable_group = azuredevops.VariableGroup("example",
project_id=example.id,
name="Example Variable Group",
description="Example Variable Group Description",
allow_access=True,
variables=[
{
"name": "key1",
"value": "val1",
},
{
"name": "key2",
"secret_value": "val2",
"is_secret": True,
},
])
example_check_business_hours = azuredevops.CheckBusinessHours("example",
project_id=example.id,
display_name="Managed by Pulumi",
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)
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
}
exampleVariableGroup, err := azuredevops.NewVariableGroup(ctx, "example", &azuredevops.VariableGroupArgs{
ProjectId: example.ID(),
Name: pulumi.String("Example Variable Group"),
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, "example", &azuredevops.CheckBusinessHoursArgs{
ProjectId: example.ID(),
DisplayName: pulumi.String("Managed by Pulumi"),
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
})
}
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 exampleVariableGroup = new AzureDevOps.VariableGroup("example", new()
{
ProjectId = example.Id,
Name = "Example Variable Group",
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("example", new()
{
ProjectId = example.Id,
DisplayName = "Managed by Pulumi",
TargetResourceId = exampleVariableGroup.Id,
TargetResourceType = "variablegroup",
StartTime = "07:00",
EndTime = "15:30",
TimeZone = "UTC",
Monday = true,
Tuesday = true,
});
});
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.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 example = new Project("example", ProjectArgs.builder()
.name("Example Project")
.build());
var exampleVariableGroup = new VariableGroup("exampleVariableGroup", VariableGroupArgs.builder()
.projectId(example.id())
.name("Example Variable Group")
.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(example.id())
.displayName("Managed by Pulumi")
.targetResourceId(exampleVariableGroup.id())
.targetResourceType("variablegroup")
.startTime("07:00")
.endTime("15:30")
.timeZone("UTC")
.monday(true)
.tuesday(true)
.build());
}
}
resources:
example:
type: azuredevops:Project
properties:
name: Example Project
exampleVariableGroup:
type: azuredevops:VariableGroup
name: example
properties:
projectId: ${example.id}
name: Example Variable Group
description: Example Variable Group Description
allowAccess: true
variables:
- name: key1
value: val1
- name: key2
secretValue: val2
isSecret: true
exampleCheckBusinessHours:
type: azuredevops:CheckBusinessHours
name: example
properties:
projectId: ${example.id}
displayName: Managed by Pulumi
targetResourceId: ${exampleVariableGroup.id}
targetResourceType: variablegroup
startTime: 07:00
endTime: 15:30
timeZone: UTC
monday: true
tuesday: true
Relevant Links
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
Create CheckBusinessHours Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CheckBusinessHours(name: string, args: CheckBusinessHoursArgs, opts?: CustomResourceOptions);
@overload
def CheckBusinessHours(resource_name: str,
args: CheckBusinessHoursArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CheckBusinessHours(resource_name: str,
opts: Optional[ResourceOptions] = None,
target_resource_type: Optional[str] = None,
target_resource_id: Optional[str] = None,
time_zone: Optional[str] = None,
start_time: Optional[str] = None,
project_id: Optional[str] = None,
end_time: Optional[str] = None,
saturday: Optional[bool] = None,
sunday: Optional[bool] = None,
monday: Optional[bool] = None,
display_name: Optional[str] = None,
thursday: Optional[bool] = None,
friday: Optional[bool] = None,
timeout: Optional[int] = None,
tuesday: Optional[bool] = None,
wednesday: Optional[bool] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var checkBusinessHoursResource = new AzureDevOps.CheckBusinessHours("checkBusinessHoursResource", new()
{
TargetResourceType = "string",
TargetResourceId = "string",
TimeZone = "string",
StartTime = "string",
ProjectId = "string",
EndTime = "string",
Saturday = false,
Sunday = false,
Monday = false,
DisplayName = "string",
Thursday = false,
Friday = false,
Timeout = 0,
Tuesday = false,
Wednesday = false,
});
example, err := azuredevops.NewCheckBusinessHours(ctx, "checkBusinessHoursResource", &azuredevops.CheckBusinessHoursArgs{
TargetResourceType: pulumi.String("string"),
TargetResourceId: pulumi.String("string"),
TimeZone: pulumi.String("string"),
StartTime: pulumi.String("string"),
ProjectId: pulumi.String("string"),
EndTime: pulumi.String("string"),
Saturday: pulumi.Bool(false),
Sunday: pulumi.Bool(false),
Monday: pulumi.Bool(false),
DisplayName: pulumi.String("string"),
Thursday: pulumi.Bool(false),
Friday: pulumi.Bool(false),
Timeout: pulumi.Int(0),
Tuesday: pulumi.Bool(false),
Wednesday: pulumi.Bool(false),
})
var checkBusinessHoursResource = new CheckBusinessHours("checkBusinessHoursResource", CheckBusinessHoursArgs.builder()
.targetResourceType("string")
.targetResourceId("string")
.timeZone("string")
.startTime("string")
.projectId("string")
.endTime("string")
.saturday(false)
.sunday(false)
.monday(false)
.displayName("string")
.thursday(false)
.friday(false)
.timeout(0)
.tuesday(false)
.wednesday(false)
.build());
check_business_hours_resource = azuredevops.CheckBusinessHours("checkBusinessHoursResource",
target_resource_type="string",
target_resource_id="string",
time_zone="string",
start_time="string",
project_id="string",
end_time="string",
saturday=False,
sunday=False,
monday=False,
display_name="string",
thursday=False,
friday=False,
timeout=0,
tuesday=False,
wednesday=False)
const checkBusinessHoursResource = new azuredevops.CheckBusinessHours("checkBusinessHoursResource", {
targetResourceType: "string",
targetResourceId: "string",
timeZone: "string",
startTime: "string",
projectId: "string",
endTime: "string",
saturday: false,
sunday: false,
monday: false,
displayName: "string",
thursday: false,
friday: false,
timeout: 0,
tuesday: false,
wednesday: false,
});
type: azuredevops:CheckBusinessHours
properties:
displayName: string
endTime: string
friday: false
monday: false
projectId: string
saturday: false
startTime: string
sunday: false
targetResourceId: string
targetResourceType: string
thursday: false
timeZone: string
timeout: 0
tuesday: false
wednesday: false
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CheckBusinessHours resource accepts the following input properties:
- End
Time string - The end of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.
- Project
Id string - The project ID.
- Start
Time string - The beginning of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.
- Target
Resource stringId - The ID of the resource being protected by the check.
- Target
Resource stringType - The type of resource being protected by the check. Valid values:
endpoint
,environment
,queue
,repository
,securefile
,variablegroup
. - Time
Zone string - The time zone this check will be evaluated in. See below for supported values.
- Display
Name 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
. - Timeout int
- The timeout in minutes for the business hours check. Defaults to
1440
. - Tuesday bool
- This check will pass on Tuesday. Defaults to
false
. - Wednesday bool
- This check will pass on Wednesdays. Defaults to
false
.
- End
Time string - The end of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.
- Project
Id string - The project ID.
- Start
Time string - The beginning of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.
- Target
Resource stringId - The ID of the resource being protected by the check.
- Target
Resource stringType - The type of resource being protected by the check. Valid values:
endpoint
,environment
,queue
,repository
,securefile
,variablegroup
. - Time
Zone string - The time zone this check will be evaluated in. See below for supported values.
- Display
Name 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
. - Timeout int
- The timeout in minutes for the business hours check. Defaults to
1440
. - Tuesday bool
- This check will pass on Tuesday. Defaults to
false
. - Wednesday bool
- This check will pass on Wednesdays. Defaults to
false
.
- end
Time String - The end of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.
- project
Id String - The project ID.
- start
Time String - The beginning of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.
- target
Resource StringId - The ID of the resource being protected by the check.
- target
Resource StringType - The type of resource being protected by the check. Valid values:
endpoint
,environment
,queue
,repository
,securefile
,variablegroup
. - time
Zone String - The time zone this check will be evaluated in. See below for supported values.
- display
Name 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
. - timeout Integer
- The timeout in minutes for the business hours check. Defaults to
1440
. - tuesday Boolean
- This check will pass on Tuesday. Defaults to
false
. - wednesday Boolean
- This check will pass on Wednesdays. Defaults to
false
.
- end
Time string - The end of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.
- project
Id string - The project ID.
- start
Time string - The beginning of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.
- target
Resource stringId - The ID of the resource being protected by the check.
- target
Resource stringType - The type of resource being protected by the check. Valid values:
endpoint
,environment
,queue
,repository
,securefile
,variablegroup
. - time
Zone string - The time zone this check will be evaluated in. See below for supported values.
- display
Name 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
. - timeout number
- The timeout in minutes for the business hours check. Defaults to
1440
. - 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_ strid - The ID of the resource being protected by the check.
- target_
resource_ strtype - 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
. - timeout int
- The timeout in minutes for the business hours check. Defaults to
1440
. - tuesday bool
- This check will pass on Tuesday. Defaults to
false
. - wednesday bool
- This check will pass on Wednesdays. Defaults to
false
.
- end
Time String - The end of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.
- project
Id String - The project ID.
- start
Time String - The beginning of the time period that this check will be allowed to pass, specified as 24-hour time with leading zeros.
- target
Resource StringId - The ID of the resource being protected by the check.
- target
Resource StringType - The type of resource being protected by the check. Valid values:
endpoint
,environment
,queue
,repository
,securefile
,variablegroup
. - time
Zone String - The time zone this check will be evaluated in. See below for supported values.
- display
Name 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
. - timeout Number
- The timeout in minutes for the business hours check. Defaults to
1440
. - 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:
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,
timeout: Optional[int] = None,
tuesday: Optional[bool] = None,
version: Optional[int] = 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.
- Display
Name string - The name of the business hours check displayed in the web UI.
- End
Time 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
. - Project
Id string - The project ID.
- Saturday bool
- This check will pass on Saturdays. Defaults to
false
. - Start
Time 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
. - Target
Resource stringId - The ID of the resource being protected by the check.
- Target
Resource stringType - 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 string - The time zone this check will be evaluated in. See below for supported values.
- Timeout int
- The timeout in minutes for the business hours check. Defaults to
1440
. - Tuesday bool
- This check will pass on Tuesday. Defaults to
false
. - Version int
- The version of the check.
- Wednesday bool
- This check will pass on Wednesdays. Defaults to
false
.
- Display
Name string - The name of the business hours check displayed in the web UI.
- End
Time 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
. - Project
Id string - The project ID.
- Saturday bool
- This check will pass on Saturdays. Defaults to
false
. - Start
Time 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
. - Target
Resource stringId - The ID of the resource being protected by the check.
- Target
Resource stringType - 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 string - The time zone this check will be evaluated in. See below for supported values.
- Timeout int
- The timeout in minutes for the business hours check. Defaults to
1440
. - Tuesday bool
- This check will pass on Tuesday. Defaults to
false
. - Version int
- The version of the check.
- Wednesday bool
- This check will pass on Wednesdays. Defaults to
false
.
- display
Name String - The name of the business hours check displayed in the web UI.
- end
Time 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
. - project
Id String - The project ID.
- saturday Boolean
- This check will pass on Saturdays. Defaults to
false
. - start
Time 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
. - target
Resource StringId - The ID of the resource being protected by the check.
- target
Resource StringType - 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
. - time
Zone String - The time zone this check will be evaluated in. See below for supported values.
- timeout Integer
- The timeout in minutes for the business hours check. Defaults to
1440
. - tuesday Boolean
- This check will pass on Tuesday. Defaults to
false
. - version Integer
- The version of the check.
- wednesday Boolean
- This check will pass on Wednesdays. Defaults to
false
.
- display
Name string - The name of the business hours check displayed in the web UI.
- end
Time 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
. - project
Id string - The project ID.
- saturday boolean
- This check will pass on Saturdays. Defaults to
false
. - start
Time 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
. - target
Resource stringId - The ID of the resource being protected by the check.
- target
Resource stringType - 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
. - time
Zone string - The time zone this check will be evaluated in. See below for supported values.
- timeout number
- The timeout in minutes for the business hours check. Defaults to
1440
. - tuesday boolean
- This check will pass on Tuesday. Defaults to
false
. - version number
- The version of the check.
- 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_ strid - The ID of the resource being protected by the check.
- target_
resource_ strtype - 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.
- timeout int
- The timeout in minutes for the business hours check. Defaults to
1440
. - tuesday bool
- This check will pass on Tuesday. Defaults to
false
. - version int
- The version of the check.
- wednesday bool
- This check will pass on Wednesdays. Defaults to
false
.
- display
Name String - The name of the business hours check displayed in the web UI.
- end
Time 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
. - project
Id String - The project ID.
- saturday Boolean
- This check will pass on Saturdays. Defaults to
false
. - start
Time 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
. - target
Resource StringId - The ID of the resource being protected by the check.
- target
Resource StringType - 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
. - time
Zone String - The time zone this check will be evaluated in. See below for supported values.
- timeout Number
- The timeout in minutes for the business hours check. Defaults to
1440
. - tuesday Boolean
- This check will pass on Tuesday. Defaults to
false
. - version Number
- The version of the check.
- wednesday Boolean
- This check will pass on Wednesdays. Defaults to
false
.
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
azuredevops
Terraform Provider.