AppProfile class
App profile is a configuration object describing how Cloud Bigtable should treat traffic from a particular end user application.
To get more information about AppProfile, see:
Example Usage
Bigtable App Profile Anycluster
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const instance = new gcp.bigtable.Instance("instance", {
name: "bt-instance",
clusters: [
{
clusterId: "cluster-1",
zone: "us-central1-a",
numNodes: 3,
storageType: "HDD",
},
{
clusterId: "cluster-2",
zone: "us-central1-b",
numNodes: 3,
storageType: "HDD",
},
{
clusterId: "cluster-3",
zone: "us-central1-c",
numNodes: 3,
storageType: "HDD",
},
],
deletionProtection: true,
});
const ap = new gcp.bigtable.AppProfile("ap", {
instance: instance.name,
appProfileId: "bt-profile",
multiClusterRoutingUseAny: true,
ignoreWarnings: true,
});
import pulumi
import pulumi_gcp as gcp
instance = gcp.bigtable.Instance("instance",
name="bt-instance",
clusters=[
{
"cluster_id": "cluster-1",
"zone": "us-central1-a",
"num_nodes": 3,
"storage_type": "HDD",
},
{
"cluster_id": "cluster-2",
"zone": "us-central1-b",
"num_nodes": 3,
"storage_type": "HDD",
},
{
"cluster_id": "cluster-3",
"zone": "us-central1-c",
"num_nodes": 3,
"storage_type": "HDD",
},
],
deletion_protection=True)
ap = gcp.bigtable.AppProfile("ap",
instance=instance.name,
app_profile_id="bt-profile",
multi_cluster_routing_use_any=True,
ignore_warnings=True)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var instance = new Gcp.BigTable.Instance("instance", new()
{
Name = "bt-instance",
Clusters = new[]
{
new Gcp.BigTable.Inputs.InstanceClusterArgs
{
ClusterId = "cluster-1",
Zone = "us-central1-a",
NumNodes = 3,
StorageType = "HDD",
},
new Gcp.BigTable.Inputs.InstanceClusterArgs
{
ClusterId = "cluster-2",
Zone = "us-central1-b",
NumNodes = 3,
StorageType = "HDD",
},
new Gcp.BigTable.Inputs.InstanceClusterArgs
{
ClusterId = "cluster-3",
Zone = "us-central1-c",
NumNodes = 3,
StorageType = "HDD",
},
},
DeletionProtection = true,
});
var ap = new Gcp.BigTable.AppProfile("ap", new()
{
Instance = instance.Name,
AppProfileId = "bt-profile",
MultiClusterRoutingUseAny = true,
IgnoreWarnings = true,
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/bigtable"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
instance, err := bigtable.NewInstance(ctx, "instance", &bigtable.InstanceArgs{
Name: pulumi.String("bt-instance"),
Clusters: bigtable.InstanceClusterArray{
&bigtable.InstanceClusterArgs{
ClusterId: pulumi.String("cluster-1"),
Zone: pulumi.String("us-central1-a"),
NumNodes: pulumi.Int(3),
StorageType: pulumi.String("HDD"),
},
&bigtable.InstanceClusterArgs{
ClusterId: pulumi.String("cluster-2"),
Zone: pulumi.String("us-central1-b"),
NumNodes: pulumi.Int(3),
StorageType: pulumi.String("HDD"),
},
&bigtable.InstanceClusterArgs{
ClusterId: pulumi.String("cluster-3"),
Zone: pulumi.String("us-central1-c"),
NumNodes: pulumi.Int(3),
StorageType: pulumi.String("HDD"),
},
},
DeletionProtection: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = bigtable.NewAppProfile(ctx, "ap", &bigtable.AppProfileArgs{
Instance: instance.Name,
AppProfileId: pulumi.String("bt-profile"),
MultiClusterRoutingUseAny: pulumi.Bool(true),
IgnoreWarnings: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
resource "gcp_bigtable_instance" "instance" {
name = "bt-instance"
clusters {
cluster_id = "cluster-1"
zone = "us-central1-a"
num_nodes = 3
storage_type = "HDD"
}
clusters {
cluster_id = "cluster-2"
zone = "us-central1-b"
num_nodes = 3
storage_type = "HDD"
}
clusters {
cluster_id = "cluster-3"
zone = "us-central1-c"
num_nodes = 3
storage_type = "HDD"
}
deletion_protection = true
}
resource "gcp_bigtable_appprofile" "ap" {
instance = gcp_bigtable_instance.instance.name
app_profile_id = "bt-profile"
multi_cluster_routing_use_any = true
ignore_warnings = true
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.bigtable.Instance;
import com.pulumi.gcp.bigtable.InstanceArgs;
import com.pulumi.gcp.bigtable.inputs.InstanceClusterArgs;
import com.pulumi.gcp.bigtable.AppProfile;
import com.pulumi.gcp.bigtable.AppProfileArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 instance = new Instance("instance", InstanceArgs.builder()
.name("bt-instance")
.clusters(
InstanceClusterArgs.builder()
.clusterId("cluster-1")
.zone("us-central1-a")
.numNodes(3)
.storageType("HDD")
.build(),
InstanceClusterArgs.builder()
.clusterId("cluster-2")
.zone("us-central1-b")
.numNodes(3)
.storageType("HDD")
.build(),
InstanceClusterArgs.builder()
.clusterId("cluster-3")
.zone("us-central1-c")
.numNodes(3)
.storageType("HDD")
.build())
.deletionProtection(true)
.build());
var ap = new AppProfile("ap", AppProfileArgs.builder()
.instance(instance.name())
.appProfileId("bt-profile")
.multiClusterRoutingUseAny(true)
.ignoreWarnings(true)
.build());
}
}
resources:
instance:
type: gcp:bigtable:Instance
properties:
name: bt-instance
clusters:
- clusterId: cluster-1
zone: us-central1-a
numNodes: 3
storageType: HDD
- clusterId: cluster-2
zone: us-central1-b
numNodes: 3
storageType: HDD
- clusterId: cluster-3
zone: us-central1-c
numNodes: 3
storageType: HDD
deletionProtection: true
ap:
type: gcp:bigtable:AppProfile
properties:
instance: ${instance.name}
appProfileId: bt-profile
multiClusterRoutingUseAny: true
ignoreWarnings: true
Bigtable App Profile Singlecluster
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const instance = new gcp.bigtable.Instance("instance", {
name: "bt-instance",
clusters: [{
clusterId: "cluster-1",
zone: "us-central1-b",
numNodes: 3,
storageType: "HDD",
}],
deletionProtection: true,
});
const ap = new gcp.bigtable.AppProfile("ap", {
instance: instance.name,
appProfileId: "bt-profile",
singleClusterRouting: {
clusterId: "cluster-1",
allowTransactionalWrites: true,
},
ignoreWarnings: true,
});
import pulumi
import pulumi_gcp as gcp
instance = gcp.bigtable.Instance("instance",
name="bt-instance",
clusters=[{
"cluster_id": "cluster-1",
"zone": "us-central1-b",
"num_nodes": 3,
"storage_type": "HDD",
}],
deletion_protection=True)
ap = gcp.bigtable.AppProfile("ap",
instance=instance.name,
app_profile_id="bt-profile",
single_cluster_routing={
"cluster_id": "cluster-1",
"allow_transactional_writes": True,
},
ignore_warnings=True)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var instance = new Gcp.BigTable.Instance("instance", new()
{
Name = "bt-instance",
Clusters = new[]
{
new Gcp.BigTable.Inputs.InstanceClusterArgs
{
ClusterId = "cluster-1",
Zone = "us-central1-b",
NumNodes = 3,
StorageType = "HDD",
},
},
DeletionProtection = true,
});
var ap = new Gcp.BigTable.AppProfile("ap", new()
{
Instance = instance.Name,
AppProfileId = "bt-profile",
SingleClusterRouting = new Gcp.BigTable.Inputs.AppProfileSingleClusterRoutingArgs
{
ClusterId = "cluster-1",
AllowTransactionalWrites = true,
},
IgnoreWarnings = true,
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/bigtable"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
instance, err := bigtable.NewInstance(ctx, "instance", &bigtable.InstanceArgs{
Name: pulumi.String("bt-instance"),
Clusters: bigtable.InstanceClusterArray{
&bigtable.InstanceClusterArgs{
ClusterId: pulumi.String("cluster-1"),
Zone: pulumi.String("us-central1-b"),
NumNodes: pulumi.Int(3),
StorageType: pulumi.String("HDD"),
},
},
DeletionProtection: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = bigtable.NewAppProfile(ctx, "ap", &bigtable.AppProfileArgs{
Instance: instance.Name,
AppProfileId: pulumi.String("bt-profile"),
SingleClusterRouting: &bigtable.AppProfileSingleClusterRoutingArgs{
ClusterId: pulumi.String("cluster-1"),
AllowTransactionalWrites: pulumi.Bool(true),
},
IgnoreWarnings: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
resource "gcp_bigtable_instance" "instance" {
name = "bt-instance"
clusters {
cluster_id = "cluster-1"
zone = "us-central1-b"
num_nodes = 3
storage_type = "HDD"
}
deletion_protection = true
}
resource "gcp_bigtable_appprofile" "ap" {
instance = gcp_bigtable_instance.instance.name
app_profile_id = "bt-profile"
single_cluster_routing = {
cluster_id = "cluster-1"
allow_transactional_writes = true
}
ignore_warnings = true
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.bigtable.Instance;
import com.pulumi.gcp.bigtable.InstanceArgs;
import com.pulumi.gcp.bigtable.inputs.InstanceClusterArgs;
import com.pulumi.gcp.bigtable.AppProfile;
import com.pulumi.gcp.bigtable.AppProfileArgs;
import com.pulumi.gcp.bigtable.inputs.AppProfileSingleClusterRoutingArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 instance = new Instance("instance", InstanceArgs.builder()
.name("bt-instance")
.clusters(InstanceClusterArgs.builder()
.clusterId("cluster-1")
.zone("us-central1-b")
.numNodes(3)
.storageType("HDD")
.build())
.deletionProtection(true)
.build());
var ap = new AppProfile("ap", AppProfileArgs.builder()
.instance(instance.name())
.appProfileId("bt-profile")
.singleClusterRouting(AppProfileSingleClusterRoutingArgs.builder()
.clusterId("cluster-1")
.allowTransactionalWrites(true)
.build())
.ignoreWarnings(true)
.build());
}
}
resources:
instance:
type: gcp:bigtable:Instance
properties:
name: bt-instance
clusters:
- clusterId: cluster-1
zone: us-central1-b
numNodes: 3
storageType: HDD
deletionProtection: true
ap:
type: gcp:bigtable:AppProfile
properties:
instance: ${instance.name}
appProfileId: bt-profile
singleClusterRouting:
clusterId: cluster-1
allowTransactionalWrites: true
ignoreWarnings: true
Bigtable App Profile Multicluster
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const instance = new gcp.bigtable.Instance("instance", {
name: "bt-instance",
clusters: [
{
clusterId: "cluster-1",
zone: "us-central1-a",
numNodes: 3,
storageType: "HDD",
},
{
clusterId: "cluster-2",
zone: "us-central1-b",
numNodes: 3,
storageType: "HDD",
},
{
clusterId: "cluster-3",
zone: "us-central1-c",
numNodes: 3,
storageType: "HDD",
},
],
deletionProtection: true,
});
const ap = new gcp.bigtable.AppProfile("ap", {
instance: instance.name,
appProfileId: "bt-profile",
multiClusterRoutingUseAny: true,
multiClusterRoutingClusterIds: [
"cluster-1",
"cluster-2",
],
ignoreWarnings: true,
});
import pulumi
import pulumi_gcp as gcp
instance = gcp.bigtable.Instance("instance",
name="bt-instance",
clusters=[
{
"cluster_id": "cluster-1",
"zone": "us-central1-a",
"num_nodes": 3,
"storage_type": "HDD",
},
{
"cluster_id": "cluster-2",
"zone": "us-central1-b",
"num_nodes": 3,
"storage_type": "HDD",
},
{
"cluster_id": "cluster-3",
"zone": "us-central1-c",
"num_nodes": 3,
"storage_type": "HDD",
},
],
deletion_protection=True)
ap = gcp.bigtable.AppProfile("ap",
instance=instance.name,
app_profile_id="bt-profile",
multi_cluster_routing_use_any=True,
multi_cluster_routing_cluster_ids=[
"cluster-1",
"cluster-2",
],
ignore_warnings=True)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var instance = new Gcp.BigTable.Instance("instance", new()
{
Name = "bt-instance",
Clusters = new[]
{
new Gcp.BigTable.Inputs.InstanceClusterArgs
{
ClusterId = "cluster-1",
Zone = "us-central1-a",
NumNodes = 3,
StorageType = "HDD",
},
new Gcp.BigTable.Inputs.InstanceClusterArgs
{
ClusterId = "cluster-2",
Zone = "us-central1-b",
NumNodes = 3,
StorageType = "HDD",
},
new Gcp.BigTable.Inputs.InstanceClusterArgs
{
ClusterId = "cluster-3",
Zone = "us-central1-c",
NumNodes = 3,
StorageType = "HDD",
},
},
DeletionProtection = true,
});
var ap = new Gcp.BigTable.AppProfile("ap", new()
{
Instance = instance.Name,
AppProfileId = "bt-profile",
MultiClusterRoutingUseAny = true,
MultiClusterRoutingClusterIds = new[]
{
"cluster-1",
"cluster-2",
},
IgnoreWarnings = true,
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/bigtable"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
instance, err := bigtable.NewInstance(ctx, "instance", &bigtable.InstanceArgs{
Name: pulumi.String("bt-instance"),
Clusters: bigtable.InstanceClusterArray{
&bigtable.InstanceClusterArgs{
ClusterId: pulumi.String("cluster-1"),
Zone: pulumi.String("us-central1-a"),
NumNodes: pulumi.Int(3),
StorageType: pulumi.String("HDD"),
},
&bigtable.InstanceClusterArgs{
ClusterId: pulumi.String("cluster-2"),
Zone: pulumi.String("us-central1-b"),
NumNodes: pulumi.Int(3),
StorageType: pulumi.String("HDD"),
},
&bigtable.InstanceClusterArgs{
ClusterId: pulumi.String("cluster-3"),
Zone: pulumi.String("us-central1-c"),
NumNodes: pulumi.Int(3),
StorageType: pulumi.String("HDD"),
},
},
DeletionProtection: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = bigtable.NewAppProfile(ctx, "ap", &bigtable.AppProfileArgs{
Instance: instance.Name,
AppProfileId: pulumi.String("bt-profile"),
MultiClusterRoutingUseAny: pulumi.Bool(true),
MultiClusterRoutingClusterIds: pulumi.StringArray{
pulumi.String("cluster-1"),
pulumi.String("cluster-2"),
},
IgnoreWarnings: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
resource "gcp_bigtable_instance" "instance" {
name = "bt-instance"
clusters {
cluster_id = "cluster-1"
zone = "us-central1-a"
num_nodes = 3
storage_type = "HDD"
}
clusters {
cluster_id = "cluster-2"
zone = "us-central1-b"
num_nodes = 3
storage_type = "HDD"
}
clusters {
cluster_id = "cluster-3"
zone = "us-central1-c"
num_nodes = 3
storage_type = "HDD"
}
deletion_protection = true
}
resource "gcp_bigtable_appprofile" "ap" {
instance = gcp_bigtable_instance.instance.name
app_profile_id = "bt-profile"
multi_cluster_routing_use_any = true
multi_cluster_routing_cluster_ids = ["cluster-1", "cluster-2"]
ignore_warnings = true
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.bigtable.Instance;
import com.pulumi.gcp.bigtable.InstanceArgs;
import com.pulumi.gcp.bigtable.inputs.InstanceClusterArgs;
import com.pulumi.gcp.bigtable.AppProfile;
import com.pulumi.gcp.bigtable.AppProfileArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 instance = new Instance("instance", InstanceArgs.builder()
.name("bt-instance")
.clusters(
InstanceClusterArgs.builder()
.clusterId("cluster-1")
.zone("us-central1-a")
.numNodes(3)
.storageType("HDD")
.build(),
InstanceClusterArgs.builder()
.clusterId("cluster-2")
.zone("us-central1-b")
.numNodes(3)
.storageType("HDD")
.build(),
InstanceClusterArgs.builder()
.clusterId("cluster-3")
.zone("us-central1-c")
.numNodes(3)
.storageType("HDD")
.build())
.deletionProtection(true)
.build());
var ap = new AppProfile("ap", AppProfileArgs.builder()
.instance(instance.name())
.appProfileId("bt-profile")
.multiClusterRoutingUseAny(true)
.multiClusterRoutingClusterIds(
"cluster-1",
"cluster-2")
.ignoreWarnings(true)
.build());
}
}
resources:
instance:
type: gcp:bigtable:Instance
properties:
name: bt-instance
clusters:
- clusterId: cluster-1
zone: us-central1-a
numNodes: 3
storageType: HDD
- clusterId: cluster-2
zone: us-central1-b
numNodes: 3
storageType: HDD
- clusterId: cluster-3
zone: us-central1-c
numNodes: 3
storageType: HDD
deletionProtection: true
ap:
type: gcp:bigtable:AppProfile
properties:
instance: ${instance.name}
appProfileId: bt-profile
multiClusterRoutingUseAny: true
multiClusterRoutingClusterIds:
- cluster-1
- cluster-2
ignoreWarnings: true
Bigtable App Profile Priority
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const instance = new gcp.bigtable.Instance("instance", {
name: "bt-instance",
clusters: [{
clusterId: "cluster-1",
zone: "us-central1-b",
numNodes: 3,
storageType: "HDD",
}],
deletionProtection: true,
});
const ap = new gcp.bigtable.AppProfile("ap", {
instance: instance.name,
appProfileId: "bt-profile",
singleClusterRouting: {
clusterId: "cluster-1",
allowTransactionalWrites: true,
},
standardIsolation: {
priority: "PRIORITY_LOW",
},
ignoreWarnings: true,
});
import pulumi
import pulumi_gcp as gcp
instance = gcp.bigtable.Instance("instance",
name="bt-instance",
clusters=[{
"cluster_id": "cluster-1",
"zone": "us-central1-b",
"num_nodes": 3,
"storage_type": "HDD",
}],
deletion_protection=True)
ap = gcp.bigtable.AppProfile("ap",
instance=instance.name,
app_profile_id="bt-profile",
single_cluster_routing={
"cluster_id": "cluster-1",
"allow_transactional_writes": True,
},
standard_isolation={
"priority": "PRIORITY_LOW",
},
ignore_warnings=True)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var instance = new Gcp.BigTable.Instance("instance", new()
{
Name = "bt-instance",
Clusters = new[]
{
new Gcp.BigTable.Inputs.InstanceClusterArgs
{
ClusterId = "cluster-1",
Zone = "us-central1-b",
NumNodes = 3,
StorageType = "HDD",
},
},
DeletionProtection = true,
});
var ap = new Gcp.BigTable.AppProfile("ap", new()
{
Instance = instance.Name,
AppProfileId = "bt-profile",
SingleClusterRouting = new Gcp.BigTable.Inputs.AppProfileSingleClusterRoutingArgs
{
ClusterId = "cluster-1",
AllowTransactionalWrites = true,
},
StandardIsolation = new Gcp.BigTable.Inputs.AppProfileStandardIsolationArgs
{
Priority = "PRIORITY_LOW",
},
IgnoreWarnings = true,
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/bigtable"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
instance, err := bigtable.NewInstance(ctx, "instance", &bigtable.InstanceArgs{
Name: pulumi.String("bt-instance"),
Clusters: bigtable.InstanceClusterArray{
&bigtable.InstanceClusterArgs{
ClusterId: pulumi.String("cluster-1"),
Zone: pulumi.String("us-central1-b"),
NumNodes: pulumi.Int(3),
StorageType: pulumi.String("HDD"),
},
},
DeletionProtection: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = bigtable.NewAppProfile(ctx, "ap", &bigtable.AppProfileArgs{
Instance: instance.Name,
AppProfileId: pulumi.String("bt-profile"),
SingleClusterRouting: &bigtable.AppProfileSingleClusterRoutingArgs{
ClusterId: pulumi.String("cluster-1"),
AllowTransactionalWrites: pulumi.Bool(true),
},
StandardIsolation: &bigtable.AppProfileStandardIsolationArgs{
Priority: pulumi.String("PRIORITY_LOW"),
},
IgnoreWarnings: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
resource "gcp_bigtable_instance" "instance" {
name = "bt-instance"
clusters {
cluster_id = "cluster-1"
zone = "us-central1-b"
num_nodes = 3
storage_type = "HDD"
}
deletion_protection = true
}
resource "gcp_bigtable_appprofile" "ap" {
instance = gcp_bigtable_instance.instance.name
app_profile_id = "bt-profile"
single_cluster_routing = {
cluster_id = "cluster-1"
allow_transactional_writes = true
}
standard_isolation = {
priority = "PRIORITY_LOW"
}
ignore_warnings = true
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.bigtable.Instance;
import com.pulumi.gcp.bigtable.InstanceArgs;
import com.pulumi.gcp.bigtable.inputs.InstanceClusterArgs;
import com.pulumi.gcp.bigtable.AppProfile;
import com.pulumi.gcp.bigtable.AppProfileArgs;
import com.pulumi.gcp.bigtable.inputs.AppProfileSingleClusterRoutingArgs;
import com.pulumi.gcp.bigtable.inputs.AppProfileStandardIsolationArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 instance = new Instance("instance", InstanceArgs.builder()
.name("bt-instance")
.clusters(InstanceClusterArgs.builder()
.clusterId("cluster-1")
.zone("us-central1-b")
.numNodes(3)
.storageType("HDD")
.build())
.deletionProtection(true)
.build());
var ap = new AppProfile("ap", AppProfileArgs.builder()
.instance(instance.name())
.appProfileId("bt-profile")
.singleClusterRouting(AppProfileSingleClusterRoutingArgs.builder()
.clusterId("cluster-1")
.allowTransactionalWrites(true)
.build())
.standardIsolation(AppProfileStandardIsolationArgs.builder()
.priority("PRIORITY_LOW")
.build())
.ignoreWarnings(true)
.build());
}
}
resources:
instance:
type: gcp:bigtable:Instance
properties:
name: bt-instance
clusters:
- clusterId: cluster-1
zone: us-central1-b
numNodes: 3
storageType: HDD
deletionProtection: true
ap:
type: gcp:bigtable:AppProfile
properties:
instance: ${instance.name}
appProfileId: bt-profile
singleClusterRouting:
clusterId: cluster-1
allowTransactionalWrites: true
standardIsolation:
priority: PRIORITY_LOW
ignoreWarnings: true
Import
AppProfile can be imported using any of these accepted formats:
projects/{{project}}/instances/{{instance}}/appProfiles/{{app_profile_id}}{{project}}/{{instance}}/{{app_profile_id}}{{instance}}/{{app_profile_id}}
When using the pulumi import command, AppProfile can be imported using one of the formats above. For example:
$ pulumi import gcp:bigquery/appProfile:AppProfile default projects/{{project}}/instances/{{instance}}/appProfiles/{{app_profile_id}}
$ pulumi import gcp:bigquery/appProfile:AppProfile default {{project}}/{{instance}}/{{app_profile_id}}
$ pulumi import gcp:bigquery/appProfile:AppProfile default {{instance}}/{{app_profile_id}}
Constructors
- AppProfile(String name, {AppProfileArgs? args, CustomResourceOptions? options})
-
Creates a new AppProfile.
nameThe Pulumi resource name.argsArguments used to configure this AppProfile. The set of arguments for AppProfile.optionsResource options controlling this resource's behavior. - AppProfile.reference(String urn)
- Creates a typed reference to an existing AppProfile resource.
Properties
-
appProfileId
↔ Output<
String> -
The unique name of the app profile in the form
[_a-zA-Z0-9][-_.a-zA-Z0-9]*.latefinal -
childResources
→ Set<
Resource> -
finalinherited
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
-
dataBoostIsolationReadOnly
↔ Output<
AppProfileDataBoostIsolationReadOnly?> -
Specifies that this app profile is intended for read-only usage via the Data Boost feature.
Structure is documented below.
latefinal
-
deletionPolicy
↔ Output<
String> -
Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
When a 'terraform destroy' or 'pulumi up' would delete the resource,
the command will fail if this field is set to "PREVENT" in Terraform state.
When set to "ABANDON", the command will remove the resource from Terraform
management without updating or deleting the resource in the API.
When set to "DELETE", deleting the resource is allowed.
latefinal
-
description
↔ Output<
String?> -
Long form description of the use case for this app profile.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
-
id
↔ Output<
String> -
getter/setter pairinherited
-
ignoreWarnings
↔ Output<
bool?> -
If true, ignore safety checks when deleting/updating the app profile.
latefinal
-
instance
↔ Output<
String?> -
The name of the instance to create the app profile within.
latefinal
- isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
multiClusterRoutingClusterIds
↔ Output<
List< String> ?> -
The set of clusters to route to. The order is ignored; clusters will be tried in order of distance. If left empty, all clusters are eligible.
latefinal
-
multiClusterRoutingUseAny
↔ Output<
bool?> -
If true, read/write requests are routed to the nearest cluster in the instance, and will fail over to the nearest cluster that is available
in the event of transient errors or delays. Clusters in a region are considered equidistant. Choosing this option sacrifices read-your-writes
consistency to improve availability.
latefinal
-
name
↔ Output<
String> -
The unique name of the requested app profile. Values are of the form
projects/<project>/instances/<instance>/appProfiles/<appProfileId>.latefinal -
project
↔ Output<
String> -
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
latefinal
-
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
-
rowAffinity
↔ Output<
bool?> -
Must be used with multi-cluster routing. If true, then this app profile will use row affinity sticky routing. With row affinity, Bigtable will route single row key requests based on the row key, rather than randomly. Instead, each row key will be assigned to a cluster by Cloud Bigtable, and will stick to that cluster. Choosing this option improves read-your-writes consistency for most requests under most circumstances, without sacrificing availability. Consistency is not guaranteed, as requests may still fail over between clusters in the event of errors or latency.
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
singleClusterRouting
↔ Output<
AppProfileSingleClusterRouting?> -
Use a single-cluster routing policy.
Structure is documented below.
latefinal
-
standardIsolation
↔ Output<
AppProfileStandardIsolation> -
The standard options used for isolating this app profile's traffic from other use cases.
Structure is documented below.
latefinal
-
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
urn
↔ Output<
String> -
latefinalinherited
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
get(
String name, Input< String> id, {AppProfileState? state, CustomResourceOptions? options}) → AppProfile -
Gets an existing AppProfile resource's state with the given
nameandid.