Data Connect Service
A Firebase Data Connect service. To get more information about Service, see:
How-to Guides
Example Usage
Firebasedataconnect Service Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
// Enable Firebase Data Connect API
const fdc = new gcp.projects.Service("fdc", {
project: "my-project-name",
service: "firebasedataconnect.googleapis.com",
disableOnDestroy: false,
});
// Create a Firebase Data Connect service
const _default = new gcp.firebase.DataConnectService("default", {
project: "my-project-name",
location: "us-central1",
serviceId: "example-service",
deletionPolicy: "DEFAULT",
labels: {
label: "my-label",
},
annotations: {
key1: "value1",
key2: "value2",
},
}, {
dependsOn: [fdc],
});
import pulumi
import pulumi_gcp as gcp
# Enable Firebase Data Connect API
fdc = gcp.projects.Service("fdc",
project="my-project-name",
service="firebasedataconnect.googleapis.com",
disable_on_destroy=False)
# Create a Firebase Data Connect service
default = gcp.firebase.DataConnectService("default",
project="my-project-name",
location="us-central1",
service_id="example-service",
deletion_policy="DEFAULT",
labels={
"label": "my-label",
},
annotations={
"key1": "value1",
"key2": "value2",
},
opts = pulumi.ResourceOptions(depends_on=[fdc]))
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
// Enable Firebase Data Connect API
var fdc = new Gcp.Projects.Service("fdc", new()
{
Project = "my-project-name",
ServiceName = "firebasedataconnect.googleapis.com",
DisableOnDestroy = false,
});
// Create a Firebase Data Connect service
var @default = new Gcp.Firebase.DataConnectService("default", new()
{
Project = "my-project-name",
Location = "us-central1",
ServiceId = "example-service",
DeletionPolicy = "DEFAULT",
Labels =
{
{ "label", "my-label" },
},
Annotations =
{
{ "key1", "value1" },
{ "key2", "value2" },
},
}, new CustomResourceOptions
{
DependsOn =
{
fdc,
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/firebase"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/projects"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Enable Firebase Data Connect API
fdc, err := projects.NewService(ctx, "fdc", &projects.ServiceArgs{
Project: pulumi.String("my-project-name"),
Service: pulumi.String("firebasedataconnect.googleapis.com"),
DisableOnDestroy: pulumi.Bool(false),
})
if err != nil {
return err
}
// Create a Firebase Data Connect service
_, err = firebase.NewDataConnectService(ctx, "default", &firebase.DataConnectServiceArgs{
Project: pulumi.String("my-project-name"),
Location: pulumi.String("us-central1"),
ServiceId: pulumi.String("example-service"),
DeletionPolicy: pulumi.String("DEFAULT"),
Labels: pulumi.StringMap{
"label": pulumi.String("my-label"),
},
Annotations: pulumi.StringMap{
"key1": pulumi.String("value1"),
"key2": pulumi.String("value2"),
},
}, pulumi.DependsOn([]pulumi.Resource{
fdc,
}))
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.projects.Service;
import com.pulumi.gcp.projects.ServiceArgs;
import com.pulumi.gcp.firebase.DataConnectService;
import com.pulumi.gcp.firebase.DataConnectServiceArgs;
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) {
// Enable Firebase Data Connect API
var fdc = new Service("fdc", ServiceArgs.builder()
.project("my-project-name")
.service("firebasedataconnect.googleapis.com")
.disableOnDestroy(false)
.build());
// Create a Firebase Data Connect service
var default_ = new DataConnectService("default", DataConnectServiceArgs.builder()
.project("my-project-name")
.location("us-central1")
.serviceId("example-service")
.deletionPolicy("DEFAULT")
.labels(Map.of("label", "my-label"))
.annotations(Map.ofEntries(
Map.entry("key1", "value1"),
Map.entry("key2", "value2")
))
.build(), CustomResourceOptions.builder()
.dependsOn(fdc)
.build());
}
}
resources:
# Enable Firebase Data Connect API
fdc:
type: gcp:projects:Service
properties:
project: my-project-name
service: firebasedataconnect.googleapis.com
disableOnDestroy: false
# Create a Firebase Data Connect service
default:
type: gcp:firebase:DataConnectService
properties:
project: my-project-name
location: us-central1
serviceId: example-service
deletionPolicy: DEFAULT
labels:
label: my-label
annotations:
key1: value1
key2: value2
options:
dependsOn:
- ${fdc}
Firebasedataconnect Service With Force Deletion
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
// Enable Firebase Data Connect API
const fdc = new gcp.projects.Service("fdc", {
project: "my-project-name",
service: "firebasedataconnect.googleapis.com",
disableOnDestroy: false,
});
// Create a Firebase Data Connect service
const _default = new gcp.firebase.DataConnectService("default", {
project: "my-project-name",
location: "us-central1",
serviceId: "example-service",
deletionPolicy: "FORCE",
}, {
dependsOn: [fdc],
});
import pulumi
import pulumi_gcp as gcp
# Enable Firebase Data Connect API
fdc = gcp.projects.Service("fdc",
project="my-project-name",
service="firebasedataconnect.googleapis.com",
disable_on_destroy=False)
# Create a Firebase Data Connect service
default = gcp.firebase.DataConnectService("default",
project="my-project-name",
location="us-central1",
service_id="example-service",
deletion_policy="FORCE",
opts = pulumi.ResourceOptions(depends_on=[fdc]))
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
// Enable Firebase Data Connect API
var fdc = new Gcp.Projects.Service("fdc", new()
{
Project = "my-project-name",
ServiceName = "firebasedataconnect.googleapis.com",
DisableOnDestroy = false,
});
// Create a Firebase Data Connect service
var @default = new Gcp.Firebase.DataConnectService("default", new()
{
Project = "my-project-name",
Location = "us-central1",
ServiceId = "example-service",
DeletionPolicy = "FORCE",
}, new CustomResourceOptions
{
DependsOn =
{
fdc,
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/firebase"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/projects"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Enable Firebase Data Connect API
fdc, err := projects.NewService(ctx, "fdc", &projects.ServiceArgs{
Project: pulumi.String("my-project-name"),
Service: pulumi.String("firebasedataconnect.googleapis.com"),
DisableOnDestroy: pulumi.Bool(false),
})
if err != nil {
return err
}
// Create a Firebase Data Connect service
_, err = firebase.NewDataConnectService(ctx, "default", &firebase.DataConnectServiceArgs{
Project: pulumi.String("my-project-name"),
Location: pulumi.String("us-central1"),
ServiceId: pulumi.String("example-service"),
DeletionPolicy: pulumi.String("FORCE"),
}, pulumi.DependsOn([]pulumi.Resource{
fdc,
}))
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.projects.Service;
import com.pulumi.gcp.projects.ServiceArgs;
import com.pulumi.gcp.firebase.DataConnectService;
import com.pulumi.gcp.firebase.DataConnectServiceArgs;
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) {
// Enable Firebase Data Connect API
var fdc = new Service("fdc", ServiceArgs.builder()
.project("my-project-name")
.service("firebasedataconnect.googleapis.com")
.disableOnDestroy(false)
.build());
// Create a Firebase Data Connect service
var default_ = new DataConnectService("default", DataConnectServiceArgs.builder()
.project("my-project-name")
.location("us-central1")
.serviceId("example-service")
.deletionPolicy("FORCE")
.build(), CustomResourceOptions.builder()
.dependsOn(fdc)
.build());
}
}
resources:
# Enable Firebase Data Connect API
fdc:
type: gcp:projects:Service
properties:
project: my-project-name
service: firebasedataconnect.googleapis.com
disableOnDestroy: false
# Create a Firebase Data Connect service
default:
type: gcp:firebase:DataConnectService
properties:
project: my-project-name
location: us-central1
serviceId: example-service
deletionPolicy: FORCE
options:
dependsOn:
- ${fdc}
Import
Service can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/services/{{service_id}}
{{project}}/{{location}}/{{service_id}}
{{location}}/{{service_id}}
When using thepulumi import
command, Service can be imported using one of the formats above. For example:
$ pulumi import gcp:firebase/dataConnectService:DataConnectService default projects/{{project}}/locations/{{location}}/services/{{service_id}}
$ pulumi import gcp:firebase/dataConnectService:DataConnectService default {{project}}/{{location}}/{{service_id}}
$ pulumi import gcp:firebase/dataConnectService:DataConnectService default {{location}}/{{service_id}}
Properties
Optional. Stores small amounts of arbitrary data. Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations
for all of the annotations present on the resource.
Output only. Output only Create time stamp.
The deletion policy for the database. Setting the field to FORCE allows the Service to be deleted even if a Schema or Connector is present. By default, the Service deletion will only succeed when no Schema or Connectors are present. Possible values: DEFAULT, FORCE
Optional. Mutable human-readable name. 63 character limit.
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
The combination of labels configured directly on the resource and default labels configured on the provider.
Output only. A field that if true, indicates that the system is working update the service.
Output only. Output only Update time stamp.