Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.cloudresourcemanager/v3.Project
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
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
The Project resource accepts the following input properties:
- Display
Name 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
orfolders/876
. - Project
Id 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 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
orfolders/876
. - Project
Id 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 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
orfolders/876
. - project
Id 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 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
orfolders/876
. - project
Id 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
orfolders/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
- display
Name 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
orfolders/876
. - project
Id 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:
- Create
Time string - Creation time.
- Delete
Time 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.
- Update
Time string - The most recent time this resource was modified.
- Create
Time string - Creation time.
- Delete
Time 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.
- Update
Time string - The most recent time this resource was modified.
- create
Time String - Creation time.
- delete
Time 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.
- update
Time String - The most recent time this resource was modified.
- create
Time string - Creation time.
- delete
Time 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.
- update
Time 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.
- create
Time String - Creation time.
- delete
Time 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.
- update
Time String - The most recent time this resource was modified.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.