Pulumi Cloud v0.27.1 published on Thursday, Nov 14, 2024 by Pulumi
pulumiservice.TemplateSource
Explore with Pulumi AI
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 string
- The unique name of the resource.
- args TemplateSourceArgs
- 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 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 string
- The unique name of the resource.
- args TemplateSourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TemplateSourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
},
});
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"),
},
})
var templateSourceResource = new TemplateSource("templateSourceResource", TemplateSourceArgs.builder()
.organizationName("string")
.sourceName("string")
.sourceURL("string")
.destination(TemplateSourceDestinationArgs.builder()
.url("string")
.build())
.build());
template_source_resource = pulumiservice.TemplateSource("templateSourceResource",
organization_name="string",
source_name="string",
source_url="string",
destination={
"url": "string",
})
const templateSourceResource = new pulumiservice.TemplateSource("templateSourceResource", {
organizationName: "string",
sourceName: "string",
sourceURL: "string",
destination: {
url: "string",
},
});
type: pulumiservice:TemplateSource
properties:
destination:
url: string
organizationName: string
sourceName: string
sourceURL: string
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:
- Organization
Name string - Organization name.
- Source
Name string - Source name.
- Source
URL string - Github URL of the repository from which to grab templates.
- Destination
Pulumi.
Pulumi Service. Inputs. Template Source Destination - The default destination for projects using templates from this source.
- Organization
Name string - Organization name.
- Source
Name string - Source name.
- Source
URL string - Github URL of the repository from which to grab templates.
- Destination
Template
Source Destination Args - The default destination for projects using templates from this source.
- organization
Name String - Organization name.
- source
Name String - Source name.
- source
URL String - Github URL of the repository from which to grab templates.
- destination
Template
Source Destination - The default destination for projects using templates from this source.
- organization
Name string - Organization name.
- source
Name string - Source name.
- source
URL string - Github URL of the repository from which to grab templates.
- destination
Template
Source Destination - The default destination for projects using templates from this source.
- organization_
name str - Organization name.
- source_
name str - Source name.
- source_
url str - Github URL of the repository from which to grab templates.
- destination
Template
Source Destination Args - The default destination for projects using templates from this source.
- organization
Name String - Organization name.
- source
Name String - Source name.
- source
URL 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