AzureDevOpsConnectorArgs

data class AzureDevOpsConnectorArgs(val azureDevOpsConnectorName: Output<String>? = null, val location: Output<String>? = null, val properties: Output<AzureDevOpsConnectorPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<AzureDevOpsConnectorArgs>

API Version: 2022-09-01-preview.

Example Usage

AzureDevOpsConnector_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var azureDevOpsConnector = new AzureNative.SecurityDevOps.AzureDevOpsConnector("azureDevOpsConnector", new()
{
AzureDevOpsConnectorName = "testconnector",
Location = "West US",
Properties = new AzureNative.SecurityDevOps.Inputs.AzureDevOpsConnectorPropertiesArgs
{
Authorization = new AzureNative.SecurityDevOps.Inputs.AuthorizationInfoArgs
{
Code = "00000000000000000000",
},
Orgs = new[]
{
new AzureNative.SecurityDevOps.Inputs.AzureDevOpsOrgMetadataArgs
{
Name = "testOrg",
Projects = new[]
{
new AzureNative.SecurityDevOps.Inputs.AzureDevOpsProjectMetadataArgs
{
Name = "testProject",
Repos = new[]
{
"testRepo",
},
},
},
},
},
},
ResourceGroupName = "westusrg",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.securitydevops.AzureDevOpsConnector;
import com.pulumi.azurenative.securitydevops.AzureDevOpsConnectorArgs;
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 azureDevOpsConnector = new AzureDevOpsConnector("azureDevOpsConnector", AzureDevOpsConnectorArgs.builder()
.azureDevOpsConnectorName("testconnector")
.location("West US")
.properties(Map.ofEntries(
Map.entry("authorization", Map.of("code", "00000000000000000000")),
Map.entry("orgs", Map.ofEntries(
Map.entry("name", "testOrg"),
Map.entry("projects", Map.ofEntries(
Map.entry("name", "testProject"),
Map.entry("repos", "testRepo")
))
))
))
.resourceGroupName("westusrg")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:securitydevops:AzureDevOpsConnector testconnector /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/westusrg/providers/Microsoft.SecurityDevOps/azureDevOpsConnectors/testconnector

Constructors

Link copied to clipboard
constructor(azureDevOpsConnectorName: Output<String>? = null, location: Output<String>? = null, properties: Output<AzureDevOpsConnectorPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val azureDevOpsConnectorName: Output<String>? = null

Name of the AzureDevOps Connector.

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): AzureDevOpsConnectorArgs