Document Ai Warehouse Location Args
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:
How-to Guides
Example Usage
Document Ai Warehouse Location
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const project = gcp.organizations.getProject({});
const example = new gcp.essentialcontacts.DocumentAiWarehouseLocation("example", {
location: "us",
projectNumber: project.then(project => project.number),
accessControlMode: "ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI",
databaseType: "DB_INFRA_SPANNER",
kmsKey: "dummy_key",
documentCreatorDefaultRole: "DOCUMENT_ADMIN",
});
Content copied to clipboard
import pulumi
import pulumi_gcp as gcp
project = gcp.organizations.get_project()
example = gcp.essentialcontacts.DocumentAiWarehouseLocation("example",
location="us",
project_number=project.number,
access_control_mode="ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI",
database_type="DB_INFRA_SPANNER",
kms_key="dummy_key",
document_creator_default_role="DOCUMENT_ADMIN")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var project = Gcp.Organizations.GetProject.Invoke();
var example = new Gcp.EssentialContacts.DocumentAiWarehouseLocation("example", new()
{
Location = "us",
ProjectNumber = project.Apply(getProjectResult => getProjectResult.Number),
AccessControlMode = "ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI",
DatabaseType = "DB_INFRA_SPANNER",
KmsKey = "dummy_key",
DocumentCreatorDefaultRole = "DOCUMENT_ADMIN",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/essentialcontacts"
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
project, err := organizations.LookupProject(ctx, nil, nil)
if err != nil {
return err
}
_, err = essentialcontacts.NewDocumentAiWarehouseLocation(ctx, "example", &essentialcontacts.DocumentAiWarehouseLocationArgs{
Location: pulumi.String("us"),
ProjectNumber: pulumi.String(project.Number),
AccessControlMode: pulumi.String("ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI"),
DatabaseType: pulumi.String("DB_INFRA_SPANNER"),
KmsKey: pulumi.String("dummy_key"),
DocumentCreatorDefaultRole: pulumi.String("DOCUMENT_ADMIN"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
resources:
example:
type: gcp:essentialcontacts:DocumentAiWarehouseLocation
properties:
location: us
projectNumber: ${project.number}
accessControlMode: ACL_MODE_DOCUMENT_LEVEL_ACCESS_CONTROL_GCI
databaseType: DB_INFRA_SPANNER
kmsKey: dummy_key
documentCreatorDefaultRole: DOCUMENT_ADMIN
variables:
project:
fn::invoke:
Function: gcp:organizations:getProject
Arguments: {}
Content copied to clipboard
Import
This resource does not support import.
Properties
Link copied to clipboard
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
The type of database used to store customer data. Possible values are: DB_INFRA_SPANNER
, DB_CLOUD_SQL_POSTGRES
.
Link copied to clipboard
The default role for the person who create a document. Possible values are: DOCUMENT_ADMIN
, DOCUMENT_EDITOR
, DOCUMENT_VIEWER
.
Link copied to clipboard
Link copied to clipboard
The unique identifier of the project.