1. Packages
  2. Google Cloud Native
  3. API Docs
  4. cloudresourcemanager
  5. cloudresourcemanager/v3
  6. Project

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.cloudresourcemanager/v3.Project

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Request that a new project be created. The result is an Operation which can be used to track the creation process. This process usually takes a few seconds, but can sometimes take much longer. The tracking Operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. Auto-naming is currently not supported for this resource.

    Create Project Resource

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

    Constructor syntax

    new Project(name: string, args?: ProjectArgs, opts?: CustomResourceOptions);
    @overload
    def Project(resource_name: str,
                args: Optional[ProjectArgs] = None,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Project(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                display_name: Optional[str] = None,
                labels: Optional[Mapping[str, str]] = None,
                parent: Optional[str] = None,
                project_id: Optional[str] = None)
    func NewProject(ctx *Context, name string, args *ProjectArgs, opts ...ResourceOption) (*Project, error)
    public Project(string name, ProjectArgs? args = null, CustomResourceOptions? opts = null)
    public Project(String name, ProjectArgs args)
    public Project(String name, ProjectArgs args, CustomResourceOptions options)
    
    type: google-native:cloudresourcemanager/v3:Project
    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 ProjectArgs
    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 ProjectArgs
    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 ProjectArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProjectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProjectArgs
    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 exampleprojectResourceResourceFromCloudresourcemanagerv3 = new GoogleNative.CloudResourceManager.V3.Project("exampleprojectResourceResourceFromCloudresourcemanagerv3", new()
    {
        DisplayName = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Parent = "string",
        ProjectId = "string",
    });
    
    example, err := cloudresourcemanagerv3.NewProject(ctx, "exampleprojectResourceResourceFromCloudresourcemanagerv3", &cloudresourcemanagerv3.ProjectArgs{
    	DisplayName: pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Parent:    pulumi.String("string"),
    	ProjectId: pulumi.String("string"),
    })
    
    var exampleprojectResourceResourceFromCloudresourcemanagerv3 = new Project("exampleprojectResourceResourceFromCloudresourcemanagerv3", ProjectArgs.builder()
        .displayName("string")
        .labels(Map.of("string", "string"))
        .parent("string")
        .projectId("string")
        .build());
    
    exampleproject_resource_resource_from_cloudresourcemanagerv3 = google_native.cloudresourcemanager.v3.Project("exampleprojectResourceResourceFromCloudresourcemanagerv3",
        display_name="string",
        labels={
            "string": "string",
        },
        parent="string",
        project_id="string")
    
    const exampleprojectResourceResourceFromCloudresourcemanagerv3 = new google_native.cloudresourcemanager.v3.Project("exampleprojectResourceResourceFromCloudresourcemanagerv3", {
        displayName: "string",
        labels: {
            string: "string",
        },
        parent: "string",
        projectId: "string",
    });
    
    type: google-native:cloudresourcemanager/v3:Project
    properties:
        displayName: string
        labels:
            string: string
        parent: string
        projectId: string
    

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

    DisplayName string
    Optional. A user-assigned display name of the project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: My Project
    Labels Dictionary<string, string>
    Optional. The labels associated with this project. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9][a-z0-9])?. Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9][a-z0-9])?)?. No more than 64 labels can be associated with a given resource. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example: "myBusinessDimension" : "businessValue"
    Parent string
    Optional. A reference to a parent Resource. eg., organizations/123 or folders/876.
    ProjectId string
    Immutable. The unique, user-assigned id of the project. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: tokyo-rain-123
    DisplayName string
    Optional. A user-assigned display name of the project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: My Project
    Labels map[string]string
    Optional. The labels associated with this project. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9][a-z0-9])?. Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9][a-z0-9])?)?. No more than 64 labels can be associated with a given resource. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example: "myBusinessDimension" : "businessValue"
    Parent string
    Optional. A reference to a parent Resource. eg., organizations/123 or folders/876.
    ProjectId string
    Immutable. The unique, user-assigned id of the project. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: tokyo-rain-123
    displayName String
    Optional. A user-assigned display name of the project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: My Project
    labels Map<String,String>
    Optional. The labels associated with this project. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9][a-z0-9])?. Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9][a-z0-9])?)?. No more than 64 labels can be associated with a given resource. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example: "myBusinessDimension" : "businessValue"
    parent String
    Optional. A reference to a parent Resource. eg., organizations/123 or folders/876.
    projectId String
    Immutable. The unique, user-assigned id of the project. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: tokyo-rain-123
    displayName string
    Optional. A user-assigned display name of the project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: My Project
    labels {[key: string]: string}
    Optional. The labels associated with this project. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9][a-z0-9])?. Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9][a-z0-9])?)?. No more than 64 labels can be associated with a given resource. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example: "myBusinessDimension" : "businessValue"
    parent string
    Optional. A reference to a parent Resource. eg., organizations/123 or folders/876.
    projectId string
    Immutable. The unique, user-assigned id of the project. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: tokyo-rain-123
    display_name str
    Optional. A user-assigned display name of the project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: My Project
    labels Mapping[str, str]
    Optional. The labels associated with this project. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9][a-z0-9])?. Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9][a-z0-9])?)?. No more than 64 labels can be associated with a given resource. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example: "myBusinessDimension" : "businessValue"
    parent str
    Optional. A reference to a parent Resource. eg., organizations/123 or folders/876.
    project_id str
    Immutable. The unique, user-assigned id of the project. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: tokyo-rain-123
    displayName String
    Optional. A user-assigned display name of the project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: My Project
    labels Map<String>
    Optional. The labels associated with this project. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9][a-z0-9])?. Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9][a-z0-9])?)?. No more than 64 labels can be associated with a given resource. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example: "myBusinessDimension" : "businessValue"
    parent String
    Optional. A reference to a parent Resource. eg., organizations/123 or folders/876.
    projectId String
    Immutable. The unique, user-assigned id of the project. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: tokyo-rain-123

    Outputs

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

    CreateTime string
    Creation time.
    DeleteTime string
    The time at which this resource was requested for deletion.
    Etag string
    A checksum computed by the server based on the current value of the Project resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example: projects/415104041262
    State string
    The project lifecycle state.
    UpdateTime string
    The most recent time this resource was modified.
    CreateTime string
    Creation time.
    DeleteTime string
    The time at which this resource was requested for deletion.
    Etag string
    A checksum computed by the server based on the current value of the Project resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example: projects/415104041262
    State string
    The project lifecycle state.
    UpdateTime string
    The most recent time this resource was modified.
    createTime String
    Creation time.
    deleteTime String
    The time at which this resource was requested for deletion.
    etag String
    A checksum computed by the server based on the current value of the Project resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example: projects/415104041262
    state String
    The project lifecycle state.
    updateTime String
    The most recent time this resource was modified.
    createTime string
    Creation time.
    deleteTime string
    The time at which this resource was requested for deletion.
    etag string
    A checksum computed by the server based on the current value of the Project resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example: projects/415104041262
    state string
    The project lifecycle state.
    updateTime string
    The most recent time this resource was modified.
    create_time str
    Creation time.
    delete_time str
    The time at which this resource was requested for deletion.
    etag str
    A checksum computed by the server based on the current value of the Project resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example: projects/415104041262
    state str
    The project lifecycle state.
    update_time str
    The most recent time this resource was modified.
    createTime String
    Creation time.
    deleteTime String
    The time at which this resource was requested for deletion.
    etag String
    A checksum computed by the server based on the current value of the Project resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example: projects/415104041262
    state String
    The project lifecycle state.
    updateTime String
    The most recent time this resource was modified.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi