Artifact Source Args
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}",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
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
The folder containing Azure Resource Manager templates.
Link copied to clipboard
The artifact source's display name.
Link copied to clipboard
The folder containing artifacts.
Link copied to clipboard
The name of the resource group.
Link copied to clipboard
The security token to authenticate to the artifact source.
Link copied to clipboard
The artifact source's type.
Link copied to clipboard
Indicates if the artifact source is enabled (values: Enabled, Disabled).