DocumentAiWarehouseLocationArgs

data class DocumentAiWarehouseLocationArgs(val accessControlMode: Output<String>? = null, val databaseType: Output<String>? = null, val documentCreatorDefaultRole: Output<String>? = null, val kmsKey: Output<String>? = null, val location: Output<String>? = null, val projectNumber: Output<String>? = null) : ConvertibleToJava<DocumentAiWarehouseLocationArgs>

A location is used to initialize a project. To get more information about Location, see:

Example Usage

Document Ai Warehouse Location

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.OrganizationsFunctions;
import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
import com.pulumi.gcp.essentialcontacts.DocumentAiWarehouseLocation;
import com.pulumi.gcp.essentialcontacts.DocumentAiWarehouseLocationArgs;
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) {
final var project = OrganizationsFunctions.getProject();
var example = new DocumentAiWarehouseLocation("example", DocumentAiWarehouseLocationArgs.builder()
.location("us")
.projectNumber(project.applyValue(getProjectResult -> getProjectResult.number()))
.accessControlMode("ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI")
.databaseType("DB_INFRA_SPANNER")
.kmsKey("dummy_key")
.documentCreatorDefaultRole("DOCUMENT_ADMIN")
.build());
}
}

Import

This resource does not support import.

Constructors

Link copied to clipboard
constructor(accessControlMode: Output<String>? = null, databaseType: Output<String>? = null, documentCreatorDefaultRole: Output<String>? = null, kmsKey: Output<String>? = null, location: Output<String>? = null, projectNumber: Output<String>? = null)

Properties

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

The access control mode for accessing the customer data. Possible values are: ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI, ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_BYOID, ACL_MODE_UNIVERSAL_ACCESS.

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

The type of database used to store customer data. Possible values are: DB_INFRA_SPANNER, DB_CLOUD_SQL_POSTGRES.

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

The default role for the person who create a document. Possible values are: DOCUMENT_ADMIN, DOCUMENT_EDITOR, DOCUMENT_VIEWER.

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

The KMS key used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the kmsKey is left empty, no encryption will be enforced.

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

The location in which the instance is to be provisioned. It takes the form projects/{projectNumber}/locations/{location}.

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

The unique identifier of the project.

Functions

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