ProjectLocationArgs

data class ProjectLocationArgs(val locationId: Output<String>? = null, val project: Output<String>? = null) : ConvertibleToJava<ProjectLocationArgs>

Warning: gcp.firebase.ProjectLocation is deprecated in favor of explicitly configuring gcp.appengine.Application and gcp.firestore.Database. This resource will be removed in the next major release of the provider. Sets the default Google Cloud Platform (GCP) resource location for the specified FirebaseProject. This method creates an App Engine application with a default Cloud Storage bucket, located in the specified locationId. This location must be one of the available GCP resource locations. After the default GCP resource location is finalized, or if it was already set, it cannot be changed. The default GCP resource location for the specified FirebaseProject might already be set because either the GCP Project already has an App Engine application or defaultLocation.finalize was previously called with a specified locationId. Any new calls to defaultLocation.finalize with a different specified locationId will return a 409 error. To get more information about ProjectLocation, see:

Example Usage

Firebase Project Location Basic

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.Project;
import com.pulumi.gcp.organizations.ProjectArgs;
import com.pulumi.gcp.firebase.Project;
import com.pulumi.gcp.firebase.ProjectArgs;
import com.pulumi.gcp.firebase.ProjectLocation;
import com.pulumi.gcp.firebase.ProjectLocationArgs;
import com.pulumi.resources.CustomResourceOptions;
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 defaultProject = new Project("defaultProject", ProjectArgs.builder()
.projectId("my-project")
.orgId("123456789")
.labels(Map.of("firebase", "enabled"))
.build(), CustomResourceOptions.builder()
.provider(google_beta)
.build());
var defaultFirebase_projectProject = new Project("defaultFirebase/projectProject", ProjectArgs.builder()
.project(defaultProject.projectId())
.build(), CustomResourceOptions.builder()
.provider(google_beta)
.build());
var basic = new ProjectLocation("basic", ProjectLocationArgs.builder()
.project(defaultFirebase / projectProject.project())
.locationId("us-central")
.build(), CustomResourceOptions.builder()
.provider(google_beta)
.build());
}
}

Import

ProjectLocation can be imported using any of these accepted formats

$ pulumi import gcp:firebase/projectLocation:ProjectLocation default projects/{{project}}
$ pulumi import gcp:firebase/projectLocation:ProjectLocation default {{project}}

Constructors

Link copied to clipboard
constructor(locationId: Output<String>? = null, project: Output<String>? = null)

Properties

Link copied to clipboard
val locationId: Output<String>? = null

The ID of the default GCP resource location for the Project. The location must be one of the available GCP resource locations.

Link copied to clipboard
val project: Output<String>? = null

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Functions

Link copied to clipboard
open override fun toJava(): ProjectLocationArgs