@pulumi/pulumiservice
Version:
68 lines (67 loc) • 2.46 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* A source for Pulumi templates
*/
export declare class TemplateSource extends pulumi.CustomResource {
/**
* Get an existing TemplateSource resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): TemplateSource;
/**
* Returns true if the given object is an instance of TemplateSource. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is TemplateSource;
/**
* The default destination for projects using templates from this source.
*/
readonly destination: pulumi.Output<outputs.TemplateSourceDestination | undefined>;
/**
* Organization name.
*/
readonly organizationName: pulumi.Output<string>;
/**
* Source name.
*/
readonly sourceName: pulumi.Output<string>;
/**
* Github URL of the repository from which to grab templates.
*/
readonly sourceURL: pulumi.Output<string>;
/**
* Create a TemplateSource resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: TemplateSourceArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* The set of arguments for constructing a TemplateSource resource.
*/
export interface TemplateSourceArgs {
/**
* The default destination for projects using templates from this source.
*/
destination?: pulumi.Input<inputs.TemplateSourceDestinationArgs>;
/**
* Organization name.
*/
organizationName: pulumi.Input<string>;
/**
* Source name.
*/
sourceName: pulumi.Input<string>;
/**
* Github URL of the repository from which to grab templates.
*/
sourceURL: pulumi.Input<string>;
}