gcp logo
Google Cloud Classic v6.52.0, Mar 22 23

gcp.firebase.AndroidApp

Import

AndroidApp can be imported using any of these accepted formats

 $ pulumi import gcp:firebase/androidApp:AndroidApp default projects/{{project}}/androidApps/{{appId}}
 $ pulumi import gcp:firebase/androidApp:AndroidApp default {{project}}/{{appId}}
 $ pulumi import gcp:firebase/androidApp:AndroidApp default androidApps/{{appId}}
 $ pulumi import gcp:firebase/androidApp:AndroidApp default {{appId}}

Example Usage

Firebase Android App Basic

using System.Collections.Generic;
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 = "",
        Sha1Hashes = new[]
        {
            "2145bdf698b8715039bd0e83f2069bed435ac21c",
        },
        Sha256Hashes = new[]
        {
            "2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc",
        },
    }, new CustomResourceOptions
    {
        Provider = google_beta,
    });

});
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v6/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(""),
			Sha1Hashes: pulumi.StringArray{
				pulumi.String("2145bdf698b8715039bd0e83f2069bed435ac21c"),
			},
			Sha256Hashes: pulumi.StringArray{
				pulumi.String("2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc"),
			},
		}, pulumi.Provider(google_beta))
		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.firebase.AndroidApp;
import com.pulumi.gcp.firebase.AndroidAppArgs;
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) {
        var basic = new AndroidApp("basic", AndroidAppArgs.builder()        
            .project("my-project-name")
            .displayName("Display Name Basic")
            .packageName("")
            .sha1Hashes("2145bdf698b8715039bd0e83f2069bed435ac21c")
            .sha256Hashes("2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc")
            .build(), CustomResourceOptions.builder()
                .provider(google_beta)
                .build());

    }
}
import pulumi
import pulumi_gcp as gcp

basic = gcp.firebase.AndroidApp("basic",
    project="my-project-name",
    display_name="Display Name Basic",
    package_name="",
    sha1_hashes=["2145bdf698b8715039bd0e83f2069bed435ac21c"],
    sha256_hashes=["2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc"],
    opts=pulumi.ResourceOptions(provider=google_beta))
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: "",
    sha1Hashes: ["2145bdf698b8715039bd0e83f2069bed435ac21c"],
    sha256Hashes: ["2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc"],
}, {
    provider: google_beta,
});
resources:
  basic:
    type: gcp:firebase:AndroidApp
    properties:
      project: my-project-name
      displayName: Display Name Basic
      packageName:
      sha1Hashes:
        - 2145bdf698b8715039bd0e83f2069bed435ac21c
      sha256Hashes:
        - 2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc
    options:
      provider: ${["google-beta"]}

Create AndroidApp Resource

new AndroidApp(name: string, args: AndroidAppArgs, opts?: CustomResourceOptions);
@overload
def AndroidApp(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               deletion_policy: Optional[str] = None,
               display_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)
@overload
def AndroidApp(resource_name: str,
               args: AndroidAppArgs,
               opts: Optional[ResourceOptions] = 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.

name string
The unique name of the resource.
args AndroidAppArgs
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 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 string
The unique name of the resource.
args AndroidAppArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AndroidAppArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AndroidAppArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

The AndroidApp resource accepts the following input properties:

DisplayName string

The user-assigned display name of the AndroidApp.

DeletionPolicy string

(Optional) Set to 'ABANDON' to allow the AndroidApp to be untracked from terraform state rather than deleted upon 'terraform destroy'. This is useful because the AndroidApp may be serving traffic. Set to 'DELETE' to delete the AndroidApp. Defaults to 'DELETE'.

PackageName string

Immutable. The canonical package name of the Android app as would appear in the Google Play Developer Console.

Project 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 string

The user-assigned display name of the AndroidApp.

DeletionPolicy string

(Optional) Set to 'ABANDON' to allow the AndroidApp to be untracked from terraform state rather than deleted upon 'terraform destroy'. This is useful because the AndroidApp may be serving traffic. Set to 'DELETE' to delete the AndroidApp. Defaults to 'DELETE'.

PackageName string

Immutable. The canonical package name of the Android app as would appear in the Google Play Developer Console.

Project 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 String

The user-assigned display name of the AndroidApp.

deletionPolicy String

(Optional) Set to 'ABANDON' to allow the AndroidApp to be untracked from terraform state rather than deleted upon 'terraform destroy'. This is useful because the AndroidApp may be serving traffic. Set to 'DELETE' to delete the AndroidApp. Defaults to 'DELETE'.

packageName String

Immutable. The canonical package name of the Android app as would appear in the Google Play Developer Console.

project 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 string

The user-assigned display name of the AndroidApp.

deletionPolicy string

(Optional) Set to 'ABANDON' to allow the AndroidApp to be untracked from terraform state rather than deleted upon 'terraform destroy'. This is useful because the AndroidApp may be serving traffic. Set to 'DELETE' to delete the AndroidApp. Defaults to 'DELETE'.

packageName string

Immutable. The canonical package name of the Android app as would appear in the Google Play Developer Console.

project 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 str

The user-assigned display name of the AndroidApp.

deletion_policy str

(Optional) Set to 'ABANDON' to allow the AndroidApp to be untracked from terraform state rather than deleted upon 'terraform destroy'. This is useful because the AndroidApp may be serving traffic. Set to 'DELETE' to delete the AndroidApp. Defaults to 'DELETE'.

package_name str

Immutable. The canonical package name of the Android app as would appear in the Google Play Developer Console.

project 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 String

The user-assigned display name of the AndroidApp.

deletionPolicy String

(Optional) Set to 'ABANDON' to allow the AndroidApp to be untracked from terraform state rather than deleted upon 'terraform destroy'. This is useful because the AndroidApp may be serving traffic. Set to 'DELETE' to delete the AndroidApp. Defaults to 'DELETE'.

packageName String

Immutable. The canonical package name of the Android app as would appear in the Google Play Developer Console.

project 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,
        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)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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:
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

(Optional) Set to 'ABANDON' to allow the AndroidApp to be untracked from terraform state rather than deleted upon 'terraform destroy'. This is useful because the AndroidApp may be serving traffic. Set to 'DELETE' to delete the AndroidApp. Defaults to 'DELETE'.

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 string

Immutable. The canonical package name of the Android app as would appear in the Google Play Developer Console.

Project 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.

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

(Optional) Set to 'ABANDON' to allow the AndroidApp to be untracked from terraform state rather than deleted upon 'terraform destroy'. This is useful because the AndroidApp may be serving traffic. Set to 'DELETE' to delete the AndroidApp. Defaults to 'DELETE'.

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 string

Immutable. The canonical package name of the Android app as would appear in the Google Play Developer Console.

Project 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.

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

(Optional) Set to 'ABANDON' to allow the AndroidApp to be untracked from terraform state rather than deleted upon 'terraform destroy'. This is useful because the AndroidApp may be serving traffic. Set to 'DELETE' to delete the AndroidApp. Defaults to 'DELETE'.

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 String

Immutable. The canonical package name of the Android app as would appear in the Google Play Developer Console.

project 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.

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

(Optional) Set to 'ABANDON' to allow the AndroidApp to be untracked from terraform state rather than deleted upon 'terraform destroy'. This is useful because the AndroidApp may be serving traffic. Set to 'DELETE' to delete the AndroidApp. Defaults to 'DELETE'.

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 string

Immutable. The canonical package name of the Android app as would appear in the Google Play Developer Console.

project 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.

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

(Optional) Set to 'ABANDON' to allow the AndroidApp to be untracked from terraform state rather than deleted upon 'terraform destroy'. This is useful because the AndroidApp may be serving traffic. Set to 'DELETE' to delete the AndroidApp. Defaults to 'DELETE'.

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 str

Immutable. The canonical package name of the Android app as would appear in the Google Play Developer Console.

project 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.

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

(Optional) Set to 'ABANDON' to allow the AndroidApp to be untracked from terraform state rather than deleted upon 'terraform destroy'. This is useful because the AndroidApp may be serving traffic. Set to 'DELETE' to delete the AndroidApp. Defaults to 'DELETE'.

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 String

Immutable. The canonical package name of the Android app as would appear in the Google Play Developer Console.

project 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.

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.