ArtifactSourceArgs

data class ArtifactSourceArgs(val armTemplateFolderPath: Output<String>? = null, val branchRef: Output<String>? = null, val displayName: Output<String>? = null, val folderPath: Output<String>? = null, val labName: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val securityToken: Output<String>? = null, val sourceType: Output<Either<String, SourceControlType>>? = null, val status: Output<Either<String, EnableStatus>>? = null, val tags: Output<Map<String, String>>? = null, val uri: Output<String>? = null) : ConvertibleToJava<ArtifactSourceArgs>

Properties of an artifact source. Uses Azure REST API version 2018-09-15. In version 2.x of the Azure Native provider, it used API version 2018-09-15.

Example Usage

ArtifactSources_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var artifactSource = new AzureNative.DevTestLab.ArtifactSource("artifactSource", new()
{
ArmTemplateFolderPath = "{armTemplateFolderPath}",
BranchRef = "{branchRef}",
DisplayName = "{displayName}",
FolderPath = "{folderPath}",
LabName = "{labName}",
Name = "{artifactSourceName}",
ResourceGroupName = "resourceGroupName",
SecurityToken = "{securityToken}",
SourceType = "{VsoGit|GitHub|StorageAccount}",
Status = "{Enabled|Disabled}",
Tags =
{
{ "tagName1", "tagValue1" },
},
Uri = "{artifactSourceUri}",
});
});
package main
import (
devtestlab "github.com/pulumi/pulumi-azure-native-sdk/devtestlab/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devtestlab.NewArtifactSource(ctx, "artifactSource", &devtestlab.ArtifactSourceArgs{
ArmTemplateFolderPath: pulumi.String("{armTemplateFolderPath}"),
BranchRef: pulumi.String("{branchRef}"),
DisplayName: pulumi.String("{displayName}"),
FolderPath: pulumi.String("{folderPath}"),
LabName: pulumi.String("{labName}"),
Name: pulumi.String("{artifactSourceName}"),
ResourceGroupName: pulumi.String("resourceGroupName"),
SecurityToken: pulumi.String("{securityToken}"),
SourceType: pulumi.String("{VsoGit|GitHub|StorageAccount}"),
Status: pulumi.String("{Enabled|Disabled}"),
Tags: pulumi.StringMap{
"tagName1": pulumi.String("tagValue1"),
},
Uri: pulumi.String("{artifactSourceUri}"),
})
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.devtestlab.ArtifactSource;
import com.pulumi.azurenative.devtestlab.ArtifactSourceArgs;
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 artifactSource = new ArtifactSource("artifactSource", ArtifactSourceArgs.builder()
.armTemplateFolderPath("{armTemplateFolderPath}")
.branchRef("{branchRef}")
.displayName("{displayName}")
.folderPath("{folderPath}")
.labName("{labName}")
.name("{artifactSourceName}")
.resourceGroupName("resourceGroupName")
.securityToken("{securityToken}")
.sourceType("{VsoGit|GitHub|StorageAccount}")
.status("{Enabled|Disabled}")
.tags(Map.of("tagName1", "tagValue1"))
.uri("{artifactSourceUri}")
.build());
}
}

Import

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

$ pulumi import azure-native:devtestlab:ArtifactSource {artifactSourceName} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{name}

Constructors

Link copied to clipboard
constructor(armTemplateFolderPath: Output<String>? = null, branchRef: Output<String>? = null, displayName: Output<String>? = null, folderPath: Output<String>? = null, labName: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, securityToken: Output<String>? = null, sourceType: Output<Either<String, SourceControlType>>? = null, status: Output<Either<String, EnableStatus>>? = null, tags: Output<Map<String, String>>? = null, uri: Output<String>? = null)

Properties

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

The folder containing Azure Resource Manager templates.

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

The artifact source's branch reference.

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

The artifact source's display name.

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

The folder containing artifacts.

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

The name of the lab.

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

The location of the resource.

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

The name of the artifact source.

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

The name of the resource group.

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

The security token to authenticate to the artifact source.

Link copied to clipboard
val sourceType: Output<Either<String, SourceControlType>>? = null

The artifact source's type.

Link copied to clipboard
val status: Output<Either<String, EnableStatus>>? = null

Indicates if the artifact source is enabled (values: Enabled, Disabled).

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

The tags of the resource.

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

The artifact source's URI.

Functions

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