GitHubConnector

class GitHubConnector : KotlinCustomResource

Represents an ARM resource for /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.SecurityDevOps/gitHubConnectors. API Version: 2022-09-01-preview.

Example Usage

GitHubConnector_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var gitHubConnector = new AzureNative.SecurityDevOps.GitHubConnector("gitHubConnector", new()
{
GitHubConnectorName = "testconnector",
Location = "West US",
Properties = new AzureNative.SecurityDevOps.Inputs.GitHubConnectorPropertiesArgs
{
Code = "00000000000000000000",
},
ResourceGroupName = "westusrg",
});
});
package main
import (
securitydevops "github.com/pulumi/pulumi-azure-native-sdk/securitydevops"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := securitydevops.NewGitHubConnector(ctx, "gitHubConnector", &securitydevops.GitHubConnectorArgs{
GitHubConnectorName: pulumi.String("testconnector"),
Location: pulumi.String("West US"),
Properties: &securitydevops.GitHubConnectorPropertiesArgs{
Code: pulumi.String("00000000000000000000"),
},
ResourceGroupName: pulumi.String("westusrg"),
})
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.azurenative.securitydevops.GitHubConnector;
import com.pulumi.azurenative.securitydevops.GitHubConnectorArgs;
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 gitHubConnector = new GitHubConnector("gitHubConnector", GitHubConnectorArgs.builder()
.gitHubConnectorName("testconnector")
.location("West US")
.properties(Map.of("code", "00000000000000000000"))
.resourceGroupName("westusrg")
.build());
}
}

Import

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

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

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

Properties of the ARM resource for /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.SecurityDevOps/gitHubConnectors.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

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

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>