1. Packages
  2. Pulumi Cloud (Pulumi Service provider)
  3. API Docs
  4. TemplateSource

This provider is currently in preview.

Pulumi Cloud v0.29.1 published on Tuesday, Apr 1, 2025 by Pulumi

pulumiservice.TemplateSource

Explore with Pulumi AI

This provider is currently in preview.

Pulumi Cloud v0.29.1 published on Tuesday, Apr 1, 2025 by Pulumi

A source for Pulumi templates

Create TemplateSource Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new TemplateSource(name: string, args: TemplateSourceArgs, opts?: CustomResourceOptions);
@overload
def TemplateSource(resource_name: str,
                   args: TemplateSourceArgs,
                   opts: Optional[ResourceOptions] = None)

@overload
def TemplateSource(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   organization_name: Optional[str] = None,
                   source_name: Optional[str] = None,
                   source_url: Optional[str] = None,
                   destination: Optional[TemplateSourceDestinationArgs] = None)
func NewTemplateSource(ctx *Context, name string, args TemplateSourceArgs, opts ...ResourceOption) (*TemplateSource, error)
public TemplateSource(string name, TemplateSourceArgs args, CustomResourceOptions? opts = null)
public TemplateSource(String name, TemplateSourceArgs args)
public TemplateSource(String name, TemplateSourceArgs args, CustomResourceOptions options)
type: pulumiservice:TemplateSource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

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

Constructor example

The following reference example uses placeholder values for all input properties.

var templateSourceResource = new PulumiService.TemplateSource("templateSourceResource", new()
{
    OrganizationName = "string",
    SourceName = "string",
    SourceURL = "string",
    Destination = new PulumiService.Inputs.TemplateSourceDestinationArgs
    {
        Url = "string",
    },
});
Copy
example, err := pulumiservice.NewTemplateSource(ctx, "templateSourceResource", &pulumiservice.TemplateSourceArgs{
	OrganizationName: pulumi.String("string"),
	SourceName:       pulumi.String("string"),
	SourceURL:        pulumi.String("string"),
	Destination: &pulumiservice.TemplateSourceDestinationArgs{
		Url: pulumi.String("string"),
	},
})
Copy
var templateSourceResource = new TemplateSource("templateSourceResource", TemplateSourceArgs.builder()
    .organizationName("string")
    .sourceName("string")
    .sourceURL("string")
    .destination(TemplateSourceDestinationArgs.builder()
        .url("string")
        .build())
    .build());
Copy
template_source_resource = pulumiservice.TemplateSource("templateSourceResource",
    organization_name="string",
    source_name="string",
    source_url="string",
    destination={
        "url": "string",
    })
Copy
const templateSourceResource = new pulumiservice.TemplateSource("templateSourceResource", {
    organizationName: "string",
    sourceName: "string",
    sourceURL: "string",
    destination: {
        url: "string",
    },
});
Copy
type: pulumiservice:TemplateSource
properties:
    destination:
        url: string
    organizationName: string
    sourceName: string
    sourceURL: string
Copy

TemplateSource Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The TemplateSource resource accepts the following input properties:

OrganizationName This property is required. string
Organization name.
SourceName This property is required. string
Source name.
SourceURL This property is required. string
Github URL of the repository from which to grab templates.
Destination Pulumi.PulumiService.Inputs.TemplateSourceDestination
The default destination for projects using templates from this source.
OrganizationName This property is required. string
Organization name.
SourceName This property is required. string
Source name.
SourceURL This property is required. string
Github URL of the repository from which to grab templates.
Destination TemplateSourceDestinationArgs
The default destination for projects using templates from this source.
organizationName This property is required. String
Organization name.
sourceName This property is required. String
Source name.
sourceURL This property is required. String
Github URL of the repository from which to grab templates.
destination TemplateSourceDestination
The default destination for projects using templates from this source.
organizationName This property is required. string
Organization name.
sourceName This property is required. string
Source name.
sourceURL This property is required. string
Github URL of the repository from which to grab templates.
destination TemplateSourceDestination
The default destination for projects using templates from this source.
organization_name This property is required. str
Organization name.
source_name This property is required. str
Source name.
source_url This property is required. str
Github URL of the repository from which to grab templates.
destination TemplateSourceDestinationArgs
The default destination for projects using templates from this source.
organizationName This property is required. String
Organization name.
sourceName This property is required. String
Source name.
sourceURL This property is required. String
Github URL of the repository from which to grab templates.
destination Property Map
The default destination for projects using templates from this source.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Supporting Types

TemplateSourceDestination
, TemplateSourceDestinationArgs

Url string
Destination URL that gets filled in on new project creation.
Url string
Destination URL that gets filled in on new project creation.
url String
Destination URL that gets filled in on new project creation.
url string
Destination URL that gets filled in on new project creation.
url str
Destination URL that gets filled in on new project creation.
url String
Destination URL that gets filled in on new project creation.

Package Details

Repository
pulumiservice pulumi/pulumi-pulumiservice
License
Apache-2.0

This provider is currently in preview.

Pulumi Cloud v0.29.1 published on Tuesday, Apr 1, 2025 by Pulumi