1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. firebase
  5. AndroidApp
Google Cloud v8.27.1 published on Friday, Apr 25, 2025 by Pulumi

gcp.firebase.AndroidApp

Explore with Pulumi AI

Example Usage

Firebase Android App Basic

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const basic = new gcp.firebase.AndroidApp("basic", {
    project: "my-project-name",
    displayName: "Display Name Basic",
    packageName: "android.package.app",
    sha1Hashes: ["2145bdf698b8715039bd0e83f2069bed435ac21c"],
    sha256Hashes: ["2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc"],
});
Copy
import pulumi
import pulumi_gcp as gcp

basic = gcp.firebase.AndroidApp("basic",
    project="my-project-name",
    display_name="Display Name Basic",
    package_name="android.package.app",
    sha1_hashes=["2145bdf698b8715039bd0e83f2069bed435ac21c"],
    sha256_hashes=["2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc"])
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/firebase"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := firebase.NewAndroidApp(ctx, "basic", &firebase.AndroidAppArgs{
			Project:     pulumi.String("my-project-name"),
			DisplayName: pulumi.String("Display Name Basic"),
			PackageName: pulumi.String("android.package.app"),
			Sha1Hashes: pulumi.StringArray{
				pulumi.String("2145bdf698b8715039bd0e83f2069bed435ac21c"),
			},
			Sha256Hashes: pulumi.StringArray{
				pulumi.String("2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var basic = new Gcp.Firebase.AndroidApp("basic", new()
    {
        Project = "my-project-name",
        DisplayName = "Display Name Basic",
        PackageName = "android.package.app",
        Sha1Hashes = new[]
        {
            "2145bdf698b8715039bd0e83f2069bed435ac21c",
        },
        Sha256Hashes = new[]
        {
            "2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.firebase.AndroidApp;
import com.pulumi.gcp.firebase.AndroidAppArgs;
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) {
        var basic = new AndroidApp("basic", AndroidAppArgs.builder()
            .project("my-project-name")
            .displayName("Display Name Basic")
            .packageName("android.package.app")
            .sha1Hashes("2145bdf698b8715039bd0e83f2069bed435ac21c")
            .sha256Hashes("2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc")
            .build());

    }
}
Copy
resources:
  basic:
    type: gcp:firebase:AndroidApp
    properties:
      project: my-project-name
      displayName: Display Name Basic
      packageName: android.package.app
      sha1Hashes:
        - 2145bdf698b8715039bd0e83f2069bed435ac21c
      sha256Hashes:
        - 2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc
Copy

Firebase Android App Custom Api Key

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const android = new gcp.projects.ApiKey("android", {
    name: "api-key",
    displayName: "Display Name",
    project: "my-project-name",
    restrictions: {
        androidKeyRestrictions: {
            allowedApplications: [{
                packageName: "android.package.app",
                sha1Fingerprint: "2145bdf698b8715039bd0e83f2069bed435ac21c",
            }],
        },
    },
});
const _default = new gcp.firebase.AndroidApp("default", {
    project: "my-project-name",
    displayName: "Display Name",
    packageName: "android.package.app",
    sha1Hashes: ["2145bdf698b8715039bd0e83f2069bed435ac21c"],
    sha256Hashes: ["2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc"],
    apiKeyId: android.uid,
});
Copy
import pulumi
import pulumi_gcp as gcp

android = gcp.projects.ApiKey("android",
    name="api-key",
    display_name="Display Name",
    project="my-project-name",
    restrictions={
        "android_key_restrictions": {
            "allowed_applications": [{
                "package_name": "android.package.app",
                "sha1_fingerprint": "2145bdf698b8715039bd0e83f2069bed435ac21c",
            }],
        },
    })
default = gcp.firebase.AndroidApp("default",
    project="my-project-name",
    display_name="Display Name",
    package_name="android.package.app",
    sha1_hashes=["2145bdf698b8715039bd0e83f2069bed435ac21c"],
    sha256_hashes=["2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc"],
    api_key_id=android.uid)
Copy
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 {
		android, err := projects.NewApiKey(ctx, "android", &projects.ApiKeyArgs{
			Name:        pulumi.String("api-key"),
			DisplayName: pulumi.String("Display Name"),
			Project:     pulumi.String("my-project-name"),
			Restrictions: &projects.ApiKeyRestrictionsArgs{
				AndroidKeyRestrictions: &projects.ApiKeyRestrictionsAndroidKeyRestrictionsArgs{
					AllowedApplications: projects.ApiKeyRestrictionsAndroidKeyRestrictionsAllowedApplicationArray{
						&projects.ApiKeyRestrictionsAndroidKeyRestrictionsAllowedApplicationArgs{
							PackageName:     pulumi.String("android.package.app"),
							Sha1Fingerprint: pulumi.String("2145bdf698b8715039bd0e83f2069bed435ac21c"),
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = firebase.NewAndroidApp(ctx, "default", &firebase.AndroidAppArgs{
			Project:     pulumi.String("my-project-name"),
			DisplayName: pulumi.String("Display Name"),
			PackageName: pulumi.String("android.package.app"),
			Sha1Hashes: pulumi.StringArray{
				pulumi.String("2145bdf698b8715039bd0e83f2069bed435ac21c"),
			},
			Sha256Hashes: pulumi.StringArray{
				pulumi.String("2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc"),
			},
			ApiKeyId: android.Uid,
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var android = new Gcp.Projects.ApiKey("android", new()
    {
        Name = "api-key",
        DisplayName = "Display Name",
        Project = "my-project-name",
        Restrictions = new Gcp.Projects.Inputs.ApiKeyRestrictionsArgs
        {
            AndroidKeyRestrictions = new Gcp.Projects.Inputs.ApiKeyRestrictionsAndroidKeyRestrictionsArgs
            {
                AllowedApplications = new[]
                {
                    new Gcp.Projects.Inputs.ApiKeyRestrictionsAndroidKeyRestrictionsAllowedApplicationArgs
                    {
                        PackageName = "android.package.app",
                        Sha1Fingerprint = "2145bdf698b8715039bd0e83f2069bed435ac21c",
                    },
                },
            },
        },
    });

    var @default = new Gcp.Firebase.AndroidApp("default", new()
    {
        Project = "my-project-name",
        DisplayName = "Display Name",
        PackageName = "android.package.app",
        Sha1Hashes = new[]
        {
            "2145bdf698b8715039bd0e83f2069bed435ac21c",
        },
        Sha256Hashes = new[]
        {
            "2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc",
        },
        ApiKeyId = android.Uid,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.projects.ApiKey;
import com.pulumi.gcp.projects.ApiKeyArgs;
import com.pulumi.gcp.projects.inputs.ApiKeyRestrictionsArgs;
import com.pulumi.gcp.projects.inputs.ApiKeyRestrictionsAndroidKeyRestrictionsArgs;
import com.pulumi.gcp.firebase.AndroidApp;
import com.pulumi.gcp.firebase.AndroidAppArgs;
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) {
        var android = new ApiKey("android", ApiKeyArgs.builder()
            .name("api-key")
            .displayName("Display Name")
            .project("my-project-name")
            .restrictions(ApiKeyRestrictionsArgs.builder()
                .androidKeyRestrictions(ApiKeyRestrictionsAndroidKeyRestrictionsArgs.builder()
                    .allowedApplications(ApiKeyRestrictionsAndroidKeyRestrictionsAllowedApplicationArgs.builder()
                        .packageName("android.package.app")
                        .sha1Fingerprint("2145bdf698b8715039bd0e83f2069bed435ac21c")
                        .build())
                    .build())
                .build())
            .build());

        var default_ = new AndroidApp("default", AndroidAppArgs.builder()
            .project("my-project-name")
            .displayName("Display Name")
            .packageName("android.package.app")
            .sha1Hashes("2145bdf698b8715039bd0e83f2069bed435ac21c")
            .sha256Hashes("2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc")
            .apiKeyId(android.uid())
            .build());

    }
}
Copy
resources:
  default:
    type: gcp:firebase:AndroidApp
    properties:
      project: my-project-name
      displayName: Display Name
      packageName: android.package.app
      sha1Hashes:
        - 2145bdf698b8715039bd0e83f2069bed435ac21c
      sha256Hashes:
        - 2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc
      apiKeyId: ${android.uid}
  android:
    type: gcp:projects:ApiKey
    properties:
      name: api-key
      displayName: Display Name
      project: my-project-name
      restrictions:
        androidKeyRestrictions:
          allowedApplications:
            - packageName: android.package.app
              sha1Fingerprint: 2145bdf698b8715039bd0e83f2069bed435ac21c
Copy

Create AndroidApp Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new AndroidApp(name: string, args: AndroidAppArgs, opts?: CustomResourceOptions);
@overload
def AndroidApp(resource_name: str,
               args: AndroidAppArgs,
               opts: Optional[ResourceOptions] = None)

@overload
def AndroidApp(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               display_name: Optional[str] = None,
               package_name: Optional[str] = None,
               api_key_id: Optional[str] = None,
               deletion_policy: Optional[str] = None,
               project: Optional[str] = None,
               sha1_hashes: Optional[Sequence[str]] = None,
               sha256_hashes: Optional[Sequence[str]] = None)
func NewAndroidApp(ctx *Context, name string, args AndroidAppArgs, opts ...ResourceOption) (*AndroidApp, error)
public AndroidApp(string name, AndroidAppArgs args, CustomResourceOptions? opts = null)
public AndroidApp(String name, AndroidAppArgs args)
public AndroidApp(String name, AndroidAppArgs args, CustomResourceOptions options)
type: gcp:firebase:AndroidApp
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AndroidAppArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AndroidAppArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AndroidAppArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AndroidAppArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AndroidAppArgs
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 androidAppResource = new Gcp.Firebase.AndroidApp("androidAppResource", new()
{
    DisplayName = "string",
    PackageName = "string",
    ApiKeyId = "string",
    DeletionPolicy = "string",
    Project = "string",
    Sha1Hashes = new[]
    {
        "string",
    },
    Sha256Hashes = new[]
    {
        "string",
    },
});
Copy
example, err := firebase.NewAndroidApp(ctx, "androidAppResource", &firebase.AndroidAppArgs{
	DisplayName:    pulumi.String("string"),
	PackageName:    pulumi.String("string"),
	ApiKeyId:       pulumi.String("string"),
	DeletionPolicy: pulumi.String("string"),
	Project:        pulumi.String("string"),
	Sha1Hashes: pulumi.StringArray{
		pulumi.String("string"),
	},
	Sha256Hashes: pulumi.StringArray{
		pulumi.String("string"),
	},
})
Copy
var androidAppResource = new AndroidApp("androidAppResource", AndroidAppArgs.builder()
    .displayName("string")
    .packageName("string")
    .apiKeyId("string")
    .deletionPolicy("string")
    .project("string")
    .sha1Hashes("string")
    .sha256Hashes("string")
    .build());
Copy
android_app_resource = gcp.firebase.AndroidApp("androidAppResource",
    display_name="string",
    package_name="string",
    api_key_id="string",
    deletion_policy="string",
    project="string",
    sha1_hashes=["string"],
    sha256_hashes=["string"])
Copy
const androidAppResource = new gcp.firebase.AndroidApp("androidAppResource", {
    displayName: "string",
    packageName: "string",
    apiKeyId: "string",
    deletionPolicy: "string",
    project: "string",
    sha1Hashes: ["string"],
    sha256Hashes: ["string"],
});
Copy
type: gcp:firebase:AndroidApp
properties:
    apiKeyId: string
    deletionPolicy: string
    displayName: string
    packageName: string
    project: string
    sha1Hashes:
        - string
    sha256Hashes:
        - string
Copy

AndroidApp 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 AndroidApp resource accepts the following input properties:

DisplayName This property is required. string
The user-assigned display name of the AndroidApp.
PackageName
This property is required.
Changes to this property will trigger replacement.
string
The canonical package name of the Android app as would appear in the Google Play Developer Console.


ApiKeyId string
The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the AndroidApp. If apiKeyId is not set during creation, then Firebase automatically associates an apiKeyId with the AndroidApp. This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned.
DeletionPolicy string
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Sha1Hashes List<string>
The SHA1 certificate hashes for the AndroidApp.
Sha256Hashes List<string>
The SHA256 certificate hashes for the AndroidApp.
DisplayName This property is required. string
The user-assigned display name of the AndroidApp.
PackageName
This property is required.
Changes to this property will trigger replacement.
string
The canonical package name of the Android app as would appear in the Google Play Developer Console.


ApiKeyId string
The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the AndroidApp. If apiKeyId is not set during creation, then Firebase automatically associates an apiKeyId with the AndroidApp. This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned.
DeletionPolicy string
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Sha1Hashes []string
The SHA1 certificate hashes for the AndroidApp.
Sha256Hashes []string
The SHA256 certificate hashes for the AndroidApp.
displayName This property is required. String
The user-assigned display name of the AndroidApp.
packageName
This property is required.
Changes to this property will trigger replacement.
String
The canonical package name of the Android app as would appear in the Google Play Developer Console.


apiKeyId String
The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the AndroidApp. If apiKeyId is not set during creation, then Firebase automatically associates an apiKeyId with the AndroidApp. This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned.
deletionPolicy String
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
sha1Hashes List<String>
The SHA1 certificate hashes for the AndroidApp.
sha256Hashes List<String>
The SHA256 certificate hashes for the AndroidApp.
displayName This property is required. string
The user-assigned display name of the AndroidApp.
packageName
This property is required.
Changes to this property will trigger replacement.
string
The canonical package name of the Android app as would appear in the Google Play Developer Console.


apiKeyId string
The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the AndroidApp. If apiKeyId is not set during creation, then Firebase automatically associates an apiKeyId with the AndroidApp. This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned.
deletionPolicy string
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
sha1Hashes string[]
The SHA1 certificate hashes for the AndroidApp.
sha256Hashes string[]
The SHA256 certificate hashes for the AndroidApp.
display_name This property is required. str
The user-assigned display name of the AndroidApp.
package_name
This property is required.
Changes to this property will trigger replacement.
str
The canonical package name of the Android app as would appear in the Google Play Developer Console.


api_key_id str
The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the AndroidApp. If apiKeyId is not set during creation, then Firebase automatically associates an apiKeyId with the AndroidApp. This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned.
deletion_policy str
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
sha1_hashes Sequence[str]
The SHA1 certificate hashes for the AndroidApp.
sha256_hashes Sequence[str]
The SHA256 certificate hashes for the AndroidApp.
displayName This property is required. String
The user-assigned display name of the AndroidApp.
packageName
This property is required.
Changes to this property will trigger replacement.
String
The canonical package name of the Android app as would appear in the Google Play Developer Console.


apiKeyId String
The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the AndroidApp. If apiKeyId is not set during creation, then Firebase automatically associates an apiKeyId with the AndroidApp. This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned.
deletionPolicy String
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
sha1Hashes List<String>
The SHA1 certificate hashes for the AndroidApp.
sha256Hashes List<String>
The SHA256 certificate hashes for the AndroidApp.

Outputs

All input properties are implicitly available as output properties. Additionally, the AndroidApp resource produces the following output properties:

AppId string
The globally unique, Firebase-assigned identifier of the AndroidApp. This identifier should be treated as an opaque token, as the data format is not specified.
Etag string
This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The fully qualified resource name of the AndroidApp, for example: projects/projectId/androidApps/appId
AppId string
The globally unique, Firebase-assigned identifier of the AndroidApp. This identifier should be treated as an opaque token, as the data format is not specified.
Etag string
This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The fully qualified resource name of the AndroidApp, for example: projects/projectId/androidApps/appId
appId String
The globally unique, Firebase-assigned identifier of the AndroidApp. This identifier should be treated as an opaque token, as the data format is not specified.
etag String
This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding.
id String
The provider-assigned unique ID for this managed resource.
name String
The fully qualified resource name of the AndroidApp, for example: projects/projectId/androidApps/appId
appId string
The globally unique, Firebase-assigned identifier of the AndroidApp. This identifier should be treated as an opaque token, as the data format is not specified.
etag string
This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding.
id string
The provider-assigned unique ID for this managed resource.
name string
The fully qualified resource name of the AndroidApp, for example: projects/projectId/androidApps/appId
app_id str
The globally unique, Firebase-assigned identifier of the AndroidApp. This identifier should be treated as an opaque token, as the data format is not specified.
etag str
This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding.
id str
The provider-assigned unique ID for this managed resource.
name str
The fully qualified resource name of the AndroidApp, for example: projects/projectId/androidApps/appId
appId String
The globally unique, Firebase-assigned identifier of the AndroidApp. This identifier should be treated as an opaque token, as the data format is not specified.
etag String
This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding.
id String
The provider-assigned unique ID for this managed resource.
name String
The fully qualified resource name of the AndroidApp, for example: projects/projectId/androidApps/appId

Look up Existing AndroidApp Resource

Get an existing AndroidApp 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>, state?: AndroidAppState, opts?: CustomResourceOptions): AndroidApp
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        api_key_id: Optional[str] = None,
        app_id: Optional[str] = None,
        deletion_policy: Optional[str] = None,
        display_name: Optional[str] = None,
        etag: Optional[str] = None,
        name: Optional[str] = None,
        package_name: Optional[str] = None,
        project: Optional[str] = None,
        sha1_hashes: Optional[Sequence[str]] = None,
        sha256_hashes: Optional[Sequence[str]] = None) -> AndroidApp
func GetAndroidApp(ctx *Context, name string, id IDInput, state *AndroidAppState, opts ...ResourceOption) (*AndroidApp, error)
public static AndroidApp Get(string name, Input<string> id, AndroidAppState? state, CustomResourceOptions? opts = null)
public static AndroidApp get(String name, Output<String> id, AndroidAppState state, CustomResourceOptions options)
resources:  _:    type: gcp:firebase:AndroidApp    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ApiKeyId string
The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the AndroidApp. If apiKeyId is not set during creation, then Firebase automatically associates an apiKeyId with the AndroidApp. This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned.
AppId string
The globally unique, Firebase-assigned identifier of the AndroidApp. This identifier should be treated as an opaque token, as the data format is not specified.
DeletionPolicy string
DisplayName string
The user-assigned display name of the AndroidApp.
Etag string
This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding.
Name string
The fully qualified resource name of the AndroidApp, for example: projects/projectId/androidApps/appId
PackageName Changes to this property will trigger replacement. string
The canonical package name of the Android app as would appear in the Google Play Developer Console.


Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Sha1Hashes List<string>
The SHA1 certificate hashes for the AndroidApp.
Sha256Hashes List<string>
The SHA256 certificate hashes for the AndroidApp.
ApiKeyId string
The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the AndroidApp. If apiKeyId is not set during creation, then Firebase automatically associates an apiKeyId with the AndroidApp. This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned.
AppId string
The globally unique, Firebase-assigned identifier of the AndroidApp. This identifier should be treated as an opaque token, as the data format is not specified.
DeletionPolicy string
DisplayName string
The user-assigned display name of the AndroidApp.
Etag string
This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding.
Name string
The fully qualified resource name of the AndroidApp, for example: projects/projectId/androidApps/appId
PackageName Changes to this property will trigger replacement. string
The canonical package name of the Android app as would appear in the Google Play Developer Console.


Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Sha1Hashes []string
The SHA1 certificate hashes for the AndroidApp.
Sha256Hashes []string
The SHA256 certificate hashes for the AndroidApp.
apiKeyId String
The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the AndroidApp. If apiKeyId is not set during creation, then Firebase automatically associates an apiKeyId with the AndroidApp. This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned.
appId String
The globally unique, Firebase-assigned identifier of the AndroidApp. This identifier should be treated as an opaque token, as the data format is not specified.
deletionPolicy String
displayName String
The user-assigned display name of the AndroidApp.
etag String
This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding.
name String
The fully qualified resource name of the AndroidApp, for example: projects/projectId/androidApps/appId
packageName Changes to this property will trigger replacement. String
The canonical package name of the Android app as would appear in the Google Play Developer Console.


project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
sha1Hashes List<String>
The SHA1 certificate hashes for the AndroidApp.
sha256Hashes List<String>
The SHA256 certificate hashes for the AndroidApp.
apiKeyId string
The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the AndroidApp. If apiKeyId is not set during creation, then Firebase automatically associates an apiKeyId with the AndroidApp. This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned.
appId string
The globally unique, Firebase-assigned identifier of the AndroidApp. This identifier should be treated as an opaque token, as the data format is not specified.
deletionPolicy string
displayName string
The user-assigned display name of the AndroidApp.
etag string
This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding.
name string
The fully qualified resource name of the AndroidApp, for example: projects/projectId/androidApps/appId
packageName Changes to this property will trigger replacement. string
The canonical package name of the Android app as would appear in the Google Play Developer Console.


project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
sha1Hashes string[]
The SHA1 certificate hashes for the AndroidApp.
sha256Hashes string[]
The SHA256 certificate hashes for the AndroidApp.
api_key_id str
The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the AndroidApp. If apiKeyId is not set during creation, then Firebase automatically associates an apiKeyId with the AndroidApp. This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned.
app_id str
The globally unique, Firebase-assigned identifier of the AndroidApp. This identifier should be treated as an opaque token, as the data format is not specified.
deletion_policy str
display_name str
The user-assigned display name of the AndroidApp.
etag str
This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding.
name str
The fully qualified resource name of the AndroidApp, for example: projects/projectId/androidApps/appId
package_name Changes to this property will trigger replacement. str
The canonical package name of the Android app as would appear in the Google Play Developer Console.


project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
sha1_hashes Sequence[str]
The SHA1 certificate hashes for the AndroidApp.
sha256_hashes Sequence[str]
The SHA256 certificate hashes for the AndroidApp.
apiKeyId String
The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the AndroidApp. If apiKeyId is not set during creation, then Firebase automatically associates an apiKeyId with the AndroidApp. This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned.
appId String
The globally unique, Firebase-assigned identifier of the AndroidApp. This identifier should be treated as an opaque token, as the data format is not specified.
deletionPolicy String
displayName String
The user-assigned display name of the AndroidApp.
etag String
This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding.
name String
The fully qualified resource name of the AndroidApp, for example: projects/projectId/androidApps/appId
packageName Changes to this property will trigger replacement. String
The canonical package name of the Android app as would appear in the Google Play Developer Console.


project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
sha1Hashes List<String>
The SHA1 certificate hashes for the AndroidApp.
sha256Hashes List<String>
The SHA256 certificate hashes for the AndroidApp.

Import

AndroidApp can be imported using any of these accepted formats:

  • {{project}} projects/{{project}}/androidApps/{{app_id}}

  • projects/{{project}}/androidApps/{{app_id}}

  • {{project}}/{{project}}/{{app_id}}

  • androidApps/{{app_id}}

  • {{app_id}}

When using the pulumi import command, AndroidApp can be imported using one of the formats above. For example:

$ pulumi import gcp:firebase/androidApp:AndroidApp default "{{project}} projects/{{project}}/androidApps/{{app_id}}"
Copy
$ pulumi import gcp:firebase/androidApp:AndroidApp default projects/{{project}}/androidApps/{{app_id}}
Copy
$ pulumi import gcp:firebase/androidApp:AndroidApp default {{project}}/{{project}}/{{app_id}}
Copy
$ pulumi import gcp:firebase/androidApp:AndroidApp default androidApps/{{app_id}}
Copy
$ pulumi import gcp:firebase/androidApp:AndroidApp default {{app_id}}
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.