1. Registry
  2. Packages
  3. Google Cloud Native
  4. API Docs
  5. firebasedatabase
  6. firebasedatabase/v1beta
  7. Instance

This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

Viewing docs for Google Cloud Native v0.32.0
published on Wednesday, Nov 29, 2023 by Pulumi
google-native logo Google Cloud Native

This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

Viewing docs for Google Cloud Native v0.32.0
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:

    DatabaseId 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.GoogleNative.Firebasedatabase.V1Beta.InstanceType
    Immutable. The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted.
    DatabaseId 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 InstanceType
    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.
    databaseId 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 InstanceType
    Immutable. The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted.
    databaseId 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 InstanceType
    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 InstanceType
    Immutable. The database instance type. On creation only USER_DATABASE is allowed, which is also the default when omitted.
    databaseId 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:

    DatabaseUrl 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.
    DatabaseUrl 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.
    databaseUrl 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.
    databaseUrl 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.
    databaseUrl 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) -> Instance
    func 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.

    NameValueDescription
    DatabaseInstanceTypeUnspecifiedDATABASE_INSTANCE_TYPE_UNSPECIFIEDUnknown state, likely the result of an error on the backend. This is only used for distinguishing unset values.
    DefaultDatabaseDEFAULT_DATABASEThe default database that is provisioned when a project is created.
    UserDatabaseUSER_DATABASEA database that the user created.
    NameValueDescription
    InstanceTypeDatabaseInstanceTypeUnspecifiedDATABASE_INSTANCE_TYPE_UNSPECIFIEDUnknown state, likely the result of an error on the backend. This is only used for distinguishing unset values.
    InstanceTypeDefaultDatabaseDEFAULT_DATABASEThe default database that is provisioned when a project is created.
    InstanceTypeUserDatabaseUSER_DATABASEA database that the user created.
    ValueDescription
    DATABASE_INSTANCE_TYPE_UNSPECIFIEDUnknown state, likely the result of an error on the backend. This is only used for distinguishing unset values.
    DEFAULT_DATABASEThe default database that is provisioned when a project is created.
    USER_DATABASEA database that the user created.
    NameValueDescription
    DatabaseInstanceTypeUnspecifiedDATABASE_INSTANCE_TYPE_UNSPECIFIEDUnknown state, likely the result of an error on the backend. This is only used for distinguishing unset values.
    DefaultDatabaseDEFAULT_DATABASEThe default database that is provisioned when a project is created.
    UserDatabaseUSER_DATABASEA database that the user created.
    NameValueDescription
    DatabaseInstanceTypeUnspecifiedDATABASE_INSTANCE_TYPE_UNSPECIFIEDUnknown state, likely the result of an error on the backend. This is only used for distinguishing unset values.
    DefaultDatabaseDEFAULT_DATABASEThe default database that is provisioned when a project is created.
    UserDatabaseUSER_DATABASEA database that the user created.
    NameValueDescription
    DATABASE_INSTANCE_TYPE_UNSPECIFIEDDATABASE_INSTANCE_TYPE_UNSPECIFIEDUnknown state, likely the result of an error on the backend. This is only used for distinguishing unset values.
    DEFAULT_DATABASEDEFAULT_DATABASEThe default database that is provisioned when a project is created.
    USER_DATABASEUSER_DATABASEA database that the user created.
    ValueDescription
    DATABASE_INSTANCE_TYPE_UNSPECIFIEDUnknown state, likely the result of an error on the backend. This is only used for distinguishing unset values.
    DEFAULT_DATABASEThe default database that is provisioned when a project is created.
    USER_DATABASEA database that the user created.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo Google Cloud Native

    This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

    Viewing docs for Google Cloud Native v0.32.0
    published on Wednesday, Nov 29, 2023 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial