ArtifactSource

class ArtifactSource : KotlinCustomResource

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/v2"
"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}

Properties

Link copied to clipboard

The folder containing Azure Resource Manager templates.

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

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

The artifact source's branch reference.

Link copied to clipboard
val createdDate: Output<String>

The artifact source's creation date.

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

The artifact source's display name.

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

The folder containing artifacts.

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

The location of the resource.

Link copied to clipboard
val name: Output<String>

The name of the resource.

Link copied to clipboard

The provisioning status of the resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val securityToken: Output<String>?

The security token to authenticate to the artifact source.

Link copied to clipboard
val sourceType: Output<String>?

The artifact source's type.

Link copied to clipboard
val status: Output<String>?

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

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

The tags of the resource.

Link copied to clipboard
val type: Output<String>

The type of the resource.

Link copied to clipboard

The unique immutable identifier of a resource (Guid).

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

The artifact source's URI.

Link copied to clipboard
val urn: Output<String>