UsageExportBucketArgs

data class UsageExportBucketArgs(val bucketName: Output<String>? = null, val prefix: Output<String>? = null, val project: Output<String>? = null) : ConvertibleToJava<UsageExportBucketArgs>

Allows creation and management of a Google Cloud Platform project. Projects created with this resource must be associated with an Organization. See the Organization documentation for more details. The user or service account that is running this provider when creating a gcp.organizations.Project resource must have roles/resourcemanager.projectCreator on the specified organization. See the Access Control for Organizations Using IAM doc for more information.

This resource reads the specified billing account on every pulumi up and plan operation so you must have permissions on the specified billing account. To get more information about projects, see:

Example Usage

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 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 myProject = new Project("myProject", ProjectArgs.builder()
.orgId("1234567")
.projectId("your-project-id")
.build());
}
}

Import

Projects can be imported using the project_id, e.g.

$ pulumi import gcp:projects/usageExportBucket:UsageExportBucket my_project your-project-id

Constructors

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

Properties

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

The bucket to store reports in.

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

A prefix for the reports, for instance, the project name.

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

The project to set the export bucket on. If it is not provided, the provider project is used.

Functions

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