DataConnectService

class DataConnectService : KotlinCustomResource

A Firebase Data Connect service. To get more information about Service, see:

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 the pulumi 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

Link copied to clipboard
val annotations: Output<Map<String, String>>?

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.

Link copied to clipboard
val createTime: Output<String>

Output only. Output only Create time stamp.

Link copied to clipboard
val deletionPolicy: Output<String>?

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

Link copied to clipboard
val displayName: Output<String>?

Optional. Mutable human-readable name. 63 character limit.

Link copied to clipboard
Link copied to clipboard

All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.

Link copied to clipboard
val etag: Output<String>

Output only. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. AIP-154

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val labels: Output<Map<String, String>>?

Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

Link copied to clipboard
val location: Output<String>

The region in which the service resides, e.g. "us-central1" or "asia-east1".

Link copied to clipboard
val name: Output<String>

Identifier. The relative resource name of the Firebase Data Connect service, in the format:

Link copied to clipboard
val project: Output<String>

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
val pulumiLabels: Output<Map<String, String>>

The combination of labels configured directly on the resource and default labels configured on the provider.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val reconciling: Output<Boolean>

Output only. A field that if true, indicates that the system is working update the service.

Link copied to clipboard
val serviceId: Output<String>

Required. The ID to use for the service, which will become the final component of the service's resource name.

Link copied to clipboard
val uid: Output<String>

Output only. System-assigned, unique identifier.

Link copied to clipboard
val updateTime: Output<String>

Output only. Output only Update time stamp.

Link copied to clipboard
val urn: Output<String>