1. Packages
  2. GitHub
  3. API Docs
  4. OrganizationProject
GitHub v6.1.0 published on Monday, Mar 11, 2024 by Pulumi

github.OrganizationProject

Explore with Pulumi AI

github logo
GitHub v6.1.0 published on Monday, Mar 11, 2024 by Pulumi

    This resource allows you to create and manage projects for GitHub organization.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as github from "@pulumi/github";
    
    const project = new github.OrganizationProject("project", {body: "This is a organization project."});
    
    import pulumi
    import pulumi_github as github
    
    project = github.OrganizationProject("project", body="This is a organization project.")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-github/sdk/v6/go/github"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := github.NewOrganizationProject(ctx, "project", &github.OrganizationProjectArgs{
    			Body: pulumi.String("This is a organization project."),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Github = Pulumi.Github;
    
    return await Deployment.RunAsync(() => 
    {
        var project = new Github.OrganizationProject("project", new()
        {
            Body = "This is a organization project.",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.github.OrganizationProject;
    import com.pulumi.github.OrganizationProjectArgs;
    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 project = new OrganizationProject("project", OrganizationProjectArgs.builder()        
                .body("This is a organization project.")
                .build());
    
        }
    }
    
    resources:
      project:
        type: github:OrganizationProject
        properties:
          body: This is a organization project.
    

    Create OrganizationProject Resource

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

    Constructor syntax

    new OrganizationProject(name: string, args?: OrganizationProjectArgs, opts?: CustomResourceOptions);
    @overload
    def OrganizationProject(resource_name: str,
                            args: Optional[OrganizationProjectArgs] = None,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def OrganizationProject(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            body: Optional[str] = None,
                            name: Optional[str] = None)
    func NewOrganizationProject(ctx *Context, name string, args *OrganizationProjectArgs, opts ...ResourceOption) (*OrganizationProject, error)
    public OrganizationProject(string name, OrganizationProjectArgs? args = null, CustomResourceOptions? opts = null)
    public OrganizationProject(String name, OrganizationProjectArgs args)
    public OrganizationProject(String name, OrganizationProjectArgs args, CustomResourceOptions options)
    
    type: github:OrganizationProject
    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 OrganizationProjectArgs
    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 OrganizationProjectArgs
    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 OrganizationProjectArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OrganizationProjectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OrganizationProjectArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var organizationProjectResource = new Github.OrganizationProject("organizationProjectResource", new()
    {
        Body = "string",
        Name = "string",
    });
    
    example, err := github.NewOrganizationProject(ctx, "organizationProjectResource", &github.OrganizationProjectArgs{
    	Body: pulumi.String("string"),
    	Name: pulumi.String("string"),
    })
    
    var organizationProjectResource = new OrganizationProject("organizationProjectResource", OrganizationProjectArgs.builder()        
        .body("string")
        .name("string")
        .build());
    
    organization_project_resource = github.OrganizationProject("organizationProjectResource",
        body="string",
        name="string")
    
    const organizationProjectResource = new github.OrganizationProject("organizationProjectResource", {
        body: "string",
        name: "string",
    });
    
    type: github:OrganizationProject
    properties:
        body: string
        name: string
    

    OrganizationProject 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 OrganizationProject resource accepts the following input properties:

    Body string
    The body of the project.
    Name string
    The name of the project.
    Body string
    The body of the project.
    Name string
    The name of the project.
    body String
    The body of the project.
    name String
    The name of the project.
    body string
    The body of the project.
    name string
    The name of the project.
    body str
    The body of the project.
    name str
    The name of the project.
    body String
    The body of the project.
    name String
    The name of the project.

    Outputs

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

    Etag string
    Id string
    The provider-assigned unique ID for this managed resource.
    Url string
    URL of the project
    Etag string
    Id string
    The provider-assigned unique ID for this managed resource.
    Url string
    URL of the project
    etag String
    id String
    The provider-assigned unique ID for this managed resource.
    url String
    URL of the project
    etag string
    id string
    The provider-assigned unique ID for this managed resource.
    url string
    URL of the project
    etag str
    id str
    The provider-assigned unique ID for this managed resource.
    url str
    URL of the project
    etag String
    id String
    The provider-assigned unique ID for this managed resource.
    url String
    URL of the project

    Look up Existing OrganizationProject Resource

    Get an existing OrganizationProject resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: OrganizationProjectState, opts?: CustomResourceOptions): OrganizationProject
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            body: Optional[str] = None,
            etag: Optional[str] = None,
            name: Optional[str] = None,
            url: Optional[str] = None) -> OrganizationProject
    func GetOrganizationProject(ctx *Context, name string, id IDInput, state *OrganizationProjectState, opts ...ResourceOption) (*OrganizationProject, error)
    public static OrganizationProject Get(string name, Input<string> id, OrganizationProjectState? state, CustomResourceOptions? opts = null)
    public static OrganizationProject get(String name, Output<String> id, OrganizationProjectState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Body string
    The body of the project.
    Etag string
    Name string
    The name of the project.
    Url string
    URL of the project
    Body string
    The body of the project.
    Etag string
    Name string
    The name of the project.
    Url string
    URL of the project
    body String
    The body of the project.
    etag String
    name String
    The name of the project.
    url String
    URL of the project
    body string
    The body of the project.
    etag string
    name string
    The name of the project.
    url string
    URL of the project
    body str
    The body of the project.
    etag str
    name str
    The name of the project.
    url str
    URL of the project
    body String
    The body of the project.
    etag String
    name String
    The name of the project.
    url String
    URL of the project

    Package Details

    Repository
    GitHub pulumi/pulumi-github
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the github Terraform Provider.
    github logo
    GitHub v6.1.0 published on Monday, Mar 11, 2024 by Pulumi