This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
Requests that a new DatabaseInstance be created. The state of a successfully created DatabaseInstance is ACTIVE. Only available for projects on the Blaze plan. Projects can be upgraded using the Cloud Billing API https://cloud.google.com/billing/reference/rest/v1/projects/updateBillingInfo. Note that it might take a few minutes for billing enablement state to propagate to Firebase systems.
Create Instance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Instance(name: string, args?: InstanceArgs, opts?: CustomResourceOptions);@overload
def Instance(resource_name: str,
args: Optional[InstanceArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Instance(resource_name: str,
opts: Optional[ResourceOptions] = None,
database_id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
type: Optional[InstanceType] = None)func NewInstance(ctx *Context, name string, args *InstanceArgs, opts ...ResourceOption) (*Instance, error)public Instance(string name, InstanceArgs? args = null, CustomResourceOptions? opts = null)
public Instance(String name, InstanceArgs args)
public Instance(String name, InstanceArgs args, CustomResourceOptions options)
type: google-native:firebasedatabase/v1beta:Instance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "google-native_firebasedatabase_v1beta_instance" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleinstanceResourceResourceFromFirebasedatabasev1beta = new GoogleNative.Firebasedatabase.V1Beta.Instance("exampleinstanceResourceResourceFromFirebasedatabasev1beta", new()
{
DatabaseId = "string",
Location = "string",
Name = "string",
Project = "string",
Type = GoogleNative.Firebasedatabase.V1Beta.InstanceType.DatabaseInstanceTypeUnspecified,
});
example, err := firebasedatabase.NewInstance(ctx, "exampleinstanceResourceResourceFromFirebasedatabasev1beta", &firebasedatabase.InstanceArgs{
DatabaseId: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
Type: firebasedatabase.InstanceTypeDatabaseInstanceTypeUnspecified,
})
resource "google-native_firebasedatabase_v1beta_instance" "exampleinstanceResourceResourceFromFirebasedatabasev1beta" {
lifecycle {
create_before_destroy = true
}
database_id = "string"
location = "string"
name = "string"
project = "string"
type = "DATABASE_INSTANCE_TYPE_UNSPECIFIED"
}
var exampleinstanceResourceResourceFromFirebasedatabasev1beta = new com.pulumi.googlenative.firebasedatabase_v1beta.Instance("exampleinstanceResourceResourceFromFirebasedatabasev1beta", com.pulumi.googlenative.firebasedatabase_v1beta.InstanceArgs.builder()
.databaseId("string")
.location("string")
.name("string")
.project("string")
.type(com.pulumi.googlenative.firebasedatabase_v1beta.enums.InstanceType.DatabaseInstanceTypeUnspecified)
.build());
exampleinstance_resource_resource_from_firebasedatabasev1beta = google_native.firebasedatabase.v1beta.Instance("exampleinstanceResourceResourceFromFirebasedatabasev1beta",
database_id="string",
location="string",
name="string",
project="string",
type=google_native.firebasedatabase.v1beta.InstanceType.DATABASE_INSTANCE_TYPE_UNSPECIFIED)
const exampleinstanceResourceResourceFromFirebasedatabasev1beta = new google_native.firebasedatabase.v1beta.Instance("exampleinstanceResourceResourceFromFirebasedatabasev1beta", {
databaseId: "string",
location: "string",
name: "string",
project: "string",
type: google_native.firebasedatabase.v1beta.InstanceType.DatabaseInstanceTypeUnspecified,
});
type: google-native:firebasedatabase/v1beta:Instance
properties:
databaseId: string
location: string
name: string
project: string
type: DATABASE_INSTANCE_TYPE_UNSPECIFIED
Instance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Instance resource accepts the following input properties:
- Database
Id string - The globally unique identifier of the database instance.
- Location string
- Name string
- The fully qualified resource name of the database instance, in the form:
projects/{project-number}/locations/{location-id}/instances/{database-id}. - Project string
- Type
Pulumi.
Google Native. Firebasedatabase. V1Beta. Instance Type - Immutable. The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted.
- Database
Id string - The globally unique identifier of the database instance.
- Location string
- Name string
- The fully qualified resource name of the database instance, in the form:
projects/{project-number}/locations/{location-id}/instances/{database-id}. - Project string
- Type
Instance
Type - Immutable. The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted.
- database_
id string - The globally unique identifier of the database instance.
- location string
- name string
- The fully qualified resource name of the database instance, in the form:
projects/{project-number}/locations/{location-id}/instances/{database-id}. - project string
- type "DATABASE_INSTANCE_TYPE_UNSPECIFIED" | "DEFAULT_DATABASE" | "USER_DATABASE"
- Immutable. The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted.
- database
Id String - The globally unique identifier of the database instance.
- location String
- name String
- The fully qualified resource name of the database instance, in the form:
projects/{project-number}/locations/{location-id}/instances/{database-id}. - project String
- type
Instance
Type - Immutable. The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted.
- database
Id string - The globally unique identifier of the database instance.
- location string
- name string
- The fully qualified resource name of the database instance, in the form:
projects/{project-number}/locations/{location-id}/instances/{database-id}. - project string
- type
Instance
Type - Immutable. The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted.
- database_
id str - The globally unique identifier of the database instance.
- location str
- name str
- The fully qualified resource name of the database instance, in the form:
projects/{project-number}/locations/{location-id}/instances/{database-id}. - project str
- type
Instance
Type - Immutable. The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted.
- database
Id String - The globally unique identifier of the database instance.
- location String
- name String
- The fully qualified resource name of the database instance, in the form:
projects/{project-number}/locations/{location-id}/instances/{database-id}. - project String
- type "DATABASE_INSTANCE_TYPE_UNSPECIFIED" | "DEFAULT_DATABASE" | "USER_DATABASE"
- Immutable. The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Database
Url string - Output Only. The globally unique hostname of the database.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The database's lifecycle state. Read-only.
- Database
Url string - Output Only. The globally unique hostname of the database.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The database's lifecycle state. Read-only.
- database_
url string - Output Only. The globally unique hostname of the database.
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- The database's lifecycle state. Read-only.
- database
Url String - Output Only. The globally unique hostname of the database.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The database's lifecycle state. Read-only.
- database
Url string - Output Only. The globally unique hostname of the database.
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- The database's lifecycle state. Read-only.
- database_
url str - Output Only. The globally unique hostname of the database.
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- The database's lifecycle state. Read-only.
- database
Url String - Output Only. The globally unique hostname of the database.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The database's lifecycle state. Read-only.
Look up Existing Instance Resource
Get an existing Instance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): Instance@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> Instancefunc GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)public static Instance Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static Instance get(String name, Output<String> id, CustomResourceOptions options)resources: existingInstance: type: google-native:firebasedatabase/v1beta:Instance get: id: ${id}import {
to = google-native_firebasedatabase_v1beta_instance.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state InstanceState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
InstanceType
Immutable. The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted.
| Name | Value | Description |
|---|---|---|
| Database | DATABASE_INSTANCE_TYPE_UNSPECIFIED | Unknown state, likely the result of an error on the backend. This is only used for distinguishing unset values. |
| Default | DEFAULT_DATABASE | The default database that is provisioned when a project is created. |
| User | USER_DATABASE | A database that the user created. |
| Name | Value | Description |
|---|---|---|
| Instance | DATABASE_INSTANCE_TYPE_UNSPECIFIED | Unknown state, likely the result of an error on the backend. This is only used for distinguishing unset values. |
| Instance | DEFAULT_DATABASE | The default database that is provisioned when a project is created. |
| Instance | USER_DATABASE | A database that the user created. |
| Value | Description |
|---|---|
DATABASE_INSTANCE_TYPE_UNSPECIFIED | Unknown state, likely the result of an error on the backend. This is only used for distinguishing unset values. |
DEFAULT_DATABASE | The default database that is provisioned when a project is created. |
USER_DATABASE | A database that the user created. |
| Name | Value | Description |
|---|---|---|
| Database | DATABASE_INSTANCE_TYPE_UNSPECIFIED | Unknown state, likely the result of an error on the backend. This is only used for distinguishing unset values. |
| Default | DEFAULT_DATABASE | The default database that is provisioned when a project is created. |
| User | USER_DATABASE | A database that the user created. |
| Name | Value | Description |
|---|---|---|
| Database | DATABASE_INSTANCE_TYPE_UNSPECIFIED | Unknown state, likely the result of an error on the backend. This is only used for distinguishing unset values. |
| Default | DEFAULT_DATABASE | The default database that is provisioned when a project is created. |
| User | USER_DATABASE | A database that the user created. |
| Name | Value | Description |
|---|---|---|
| DATABASE_INSTANCE_TYPE_UNSPECIFIED | DATABASE_INSTANCE_TYPE_UNSPECIFIED | Unknown state, likely the result of an error on the backend. This is only used for distinguishing unset values. |
| DEFAULT_DATABASE | DEFAULT_DATABASE | The default database that is provisioned when a project is created. |
| USER_DATABASE | USER_DATABASE | A database that the user created. |
| Value | Description |
|---|---|
DATABASE_INSTANCE_TYPE_UNSPECIFIED | Unknown state, likely the result of an error on the backend. This is only used for distinguishing unset values. |
DEFAULT_DATABASE | The default database that is provisioned when a project is created. |
USER_DATABASE | A database that the user created. |
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi