Azure Native

v1.88.1 published on Thursday, Dec 1, 2022 by Pulumi

ArtifactSource

Properties of an artifact source. API Version: 2018-09-15.

Example Usage

ArtifactSources_CreateOrUpdate

using System.Collections.Generic;
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/go/azure/devtestlab"
	"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 pulumi
import pulumi_azure_native as azure_native

artifact_source = azure_native.devtestlab.ArtifactSource("artifactSource",
    arm_template_folder_path="{armTemplateFolderPath}",
    branch_ref="{branchRef}",
    display_name="{displayName}",
    folder_path="{folderPath}",
    lab_name="{labName}",
    name="{artifactSourceName}",
    resource_group_name="resourceGroupName",
    security_token="{securityToken}",
    source_type="{VsoGit|GitHub|StorageAccount}",
    status="{Enabled|Disabled}",
    tags={
        "tagName1": "tagValue1",
    },
    uri="{artifactSourceUri}")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const artifactSource = new azure_native.devtestlab.ArtifactSource("artifactSource", {
    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}",
});
resources:
  artifactSource:
    type: azure-native:devtestlab:ArtifactSource
    properties:
      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}'

Create ArtifactSource Resource

new ArtifactSource(name: string, args: ArtifactSourceArgs, opts?: CustomResourceOptions);
@overload
def ArtifactSource(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   arm_template_folder_path: Optional[str] = None,
                   branch_ref: Optional[str] = None,
                   display_name: Optional[str] = None,
                   folder_path: Optional[str] = None,
                   lab_name: Optional[str] = None,
                   location: Optional[str] = None,
                   name: Optional[str] = None,
                   resource_group_name: Optional[str] = None,
                   security_token: Optional[str] = None,
                   source_type: Optional[Union[str, SourceControlType]] = None,
                   status: Optional[Union[str, EnableStatus]] = None,
                   tags: Optional[Mapping[str, str]] = None,
                   uri: Optional[str] = None)
@overload
def ArtifactSource(resource_name: str,
                   args: ArtifactSourceArgs,
                   opts: Optional[ResourceOptions] = None)
func NewArtifactSource(ctx *Context, name string, args ArtifactSourceArgs, opts ...ResourceOption) (*ArtifactSource, error)
public ArtifactSource(string name, ArtifactSourceArgs args, CustomResourceOptions? opts = null)
public ArtifactSource(String name, ArtifactSourceArgs args)
public ArtifactSource(String name, ArtifactSourceArgs args, CustomResourceOptions options)
type: azure-native:devtestlab:ArtifactSource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ArtifactSourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ArtifactSourceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ArtifactSourceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ArtifactSourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ArtifactSourceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ArtifactSource Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The ArtifactSource resource accepts the following input properties:

LabName string

The name of the lab.

ResourceGroupName string

The name of the resource group.

ArmTemplateFolderPath string

The folder containing Azure Resource Manager templates.

BranchRef string

The artifact source's branch reference.

DisplayName string

The artifact source's display name.

FolderPath string

The folder containing artifacts.

Location string

The location of the resource.

Name string

The name of the artifact source.

SecurityToken string

The security token to authenticate to the artifact source.

SourceType string | Pulumi.AzureNative.DevTestLab.SourceControlType

The artifact source's type.

Status string | Pulumi.AzureNative.DevTestLab.EnableStatus

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

Tags Dictionary<string, string>

The tags of the resource.

Uri string

The artifact source's URI.

LabName string

The name of the lab.

ResourceGroupName string

The name of the resource group.

ArmTemplateFolderPath string

The folder containing Azure Resource Manager templates.

BranchRef string

The artifact source's branch reference.

DisplayName string

The artifact source's display name.

FolderPath string

The folder containing artifacts.

Location string

The location of the resource.

Name string

The name of the artifact source.

SecurityToken string

The security token to authenticate to the artifact source.

SourceType string | SourceControlType

The artifact source's type.

Status string | EnableStatus

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

Tags map[string]string

The tags of the resource.

Uri string

The artifact source's URI.

labName String

The name of the lab.

resourceGroupName String

The name of the resource group.

armTemplateFolderPath String

The folder containing Azure Resource Manager templates.

branchRef String

The artifact source's branch reference.

displayName String

The artifact source's display name.

folderPath String

The folder containing artifacts.

location String

The location of the resource.

name String

The name of the artifact source.

securityToken String

The security token to authenticate to the artifact source.

sourceType String | SourceControlType

The artifact source's type.

status String | EnableStatus

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

tags Map<String,String>

The tags of the resource.

uri String

The artifact source's URI.

labName string

The name of the lab.

resourceGroupName string

The name of the resource group.

armTemplateFolderPath string

The folder containing Azure Resource Manager templates.

branchRef string

The artifact source's branch reference.

displayName string

The artifact source's display name.

folderPath string

The folder containing artifacts.

location string

The location of the resource.

name string

The name of the artifact source.

securityToken string

The security token to authenticate to the artifact source.

sourceType string | SourceControlType

The artifact source's type.

status string | EnableStatus

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

tags {[key: string]: string}

The tags of the resource.

uri string

The artifact source's URI.

lab_name str

The name of the lab.

resource_group_name str

The name of the resource group.

arm_template_folder_path str

The folder containing Azure Resource Manager templates.

branch_ref str

The artifact source's branch reference.

display_name str

The artifact source's display name.

folder_path str

The folder containing artifacts.

location str

The location of the resource.

name str

The name of the artifact source.

security_token str

The security token to authenticate to the artifact source.

source_type str | SourceControlType

The artifact source's type.

status str | EnableStatus

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

tags Mapping[str, str]

The tags of the resource.

uri str

The artifact source's URI.

labName String

The name of the lab.

resourceGroupName String

The name of the resource group.

armTemplateFolderPath String

The folder containing Azure Resource Manager templates.

branchRef String

The artifact source's branch reference.

displayName String

The artifact source's display name.

folderPath String

The folder containing artifacts.

location String

The location of the resource.

name String

The name of the artifact source.

securityToken String

The security token to authenticate to the artifact source.

sourceType String | "VsoGit" | "GitHub" | "StorageAccount"

The artifact source's type.

status String | "Enabled" | "Disabled"

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

tags Map<String>

The tags of the resource.

uri String

The artifact source's URI.

Outputs

All input properties are implicitly available as output properties. Additionally, the ArtifactSource resource produces the following output properties:

CreatedDate string

The artifact source's creation date.

Id string

The provider-assigned unique ID for this managed resource.

ProvisioningState string

The provisioning status of the resource.

Type string

The type of the resource.

UniqueIdentifier string

The unique immutable identifier of a resource (Guid).

CreatedDate string

The artifact source's creation date.

Id string

The provider-assigned unique ID for this managed resource.

ProvisioningState string

The provisioning status of the resource.

Type string

The type of the resource.

UniqueIdentifier string

The unique immutable identifier of a resource (Guid).

createdDate String

The artifact source's creation date.

id String

The provider-assigned unique ID for this managed resource.

provisioningState String

The provisioning status of the resource.

type String

The type of the resource.

uniqueIdentifier String

The unique immutable identifier of a resource (Guid).

createdDate string

The artifact source's creation date.

id string

The provider-assigned unique ID for this managed resource.

provisioningState string

The provisioning status of the resource.

type string

The type of the resource.

uniqueIdentifier string

The unique immutable identifier of a resource (Guid).

created_date str

The artifact source's creation date.

id str

The provider-assigned unique ID for this managed resource.

provisioning_state str

The provisioning status of the resource.

type str

The type of the resource.

unique_identifier str

The unique immutable identifier of a resource (Guid).

createdDate String

The artifact source's creation date.

id String

The provider-assigned unique ID for this managed resource.

provisioningState String

The provisioning status of the resource.

type String

The type of the resource.

uniqueIdentifier String

The unique immutable identifier of a resource (Guid).

Supporting Types

EnableStatus

Enabled
Enabled
Disabled
Disabled
EnableStatusEnabled
Enabled
EnableStatusDisabled
Disabled
Enabled
Enabled
Disabled
Disabled
Enabled
Enabled
Disabled
Disabled
ENABLED
Enabled
DISABLED
Disabled
"Enabled"
Enabled
"Disabled"
Disabled

SourceControlType

VsoGit
VsoGit
GitHub
GitHub
StorageAccount
StorageAccount
SourceControlTypeVsoGit
VsoGit
SourceControlTypeGitHub
GitHub
SourceControlTypeStorageAccount
StorageAccount
VsoGit
VsoGit
GitHub
GitHub
StorageAccount
StorageAccount
VsoGit
VsoGit
GitHub
GitHub
StorageAccount
StorageAccount
VSO_GIT
VsoGit
GIT_HUB
GitHub
STORAGE_ACCOUNT
StorageAccount
"VsoGit"
VsoGit
"GitHub"
GitHub
"StorageAccount"
StorageAccount

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/{artifactSourceName} 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0