@pulumi/github
Version:
A Pulumi package for creating and managing github cloud resources.
90 lines (89 loc) • 3.01 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* This resource allows you to create and manage columns for GitHub projects.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as github from "@pulumi/github";
*
* const project = new github.OrganizationProject("project", {
* name: "A Organization Project",
* body: "This is an organization project.",
* });
* const column = new github.ProjectColumn("column", {
* projectId: project.id,
* name: "a column",
* });
* ```
*/
export declare class ProjectColumn extends pulumi.CustomResource {
/**
* Get an existing ProjectColumn 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 state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProjectColumnState, opts?: pulumi.CustomResourceOptions): ProjectColumn;
/**
* Returns true if the given object is an instance of ProjectColumn. 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 ProjectColumn;
/**
* The ID of the column.
*/
readonly columnId: pulumi.Output<number>;
readonly etag: pulumi.Output<string>;
/**
* The name of the column.
*/
readonly name: pulumi.Output<string>;
/**
* The ID of an existing project that the column will be created in.
*/
readonly projectId: pulumi.Output<string>;
/**
* Create a ProjectColumn 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: ProjectColumnArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering ProjectColumn resources.
*/
export interface ProjectColumnState {
/**
* The ID of the column.
*/
columnId?: pulumi.Input<number>;
etag?: pulumi.Input<string>;
/**
* The name of the column.
*/
name?: pulumi.Input<string>;
/**
* The ID of an existing project that the column will be created in.
*/
projectId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a ProjectColumn resource.
*/
export interface ProjectColumnArgs {
/**
* The name of the column.
*/
name?: pulumi.Input<string>;
/**
* The ID of an existing project that the column will be created in.
*/
projectId: pulumi.Input<string>;
}