1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. firebase
  5. AndroidApp
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

gcp.firebase.AndroidApp

Explore with Pulumi AI

gcp logo
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

    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"],
    });
    
    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"])
    
    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
    	})
    }
    
    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",
            },
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      basic:
        type: gcp:firebase:AndroidApp
        properties:
          project: my-project-name
          displayName: Display Name Basic
          packageName: android.package.app
          sha1Hashes:
            - 2145bdf698b8715039bd0e83f2069bed435ac21c
          sha256Hashes:
            - 2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc
    

    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,
    });
    
    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)
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    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
    

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

    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",
        },
    });
    
    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"),
    	},
    })
    
    var androidAppResource = new AndroidApp("androidAppResource", AndroidAppArgs.builder()
        .displayName("string")
        .packageName("string")
        .apiKeyId("string")
        .deletionPolicy("string")
        .project("string")
        .sha1Hashes("string")
        .sha256Hashes("string")
        .build());
    
    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"])
    
    const androidAppResource = new gcp.firebase.AndroidApp("androidAppResource", {
        displayName: "string",
        packageName: "string",
        apiKeyId: "string",
        deletionPolicy: "string",
        project: "string",
        sha1Hashes: ["string"],
        sha256Hashes: ["string"],
    });
    
    type: gcp:firebase:AndroidApp
    properties:
        apiKeyId: string
        deletionPolicy: string
        displayName: string
        packageName: string
        project: string
        sha1Hashes:
            - string
        sha256Hashes:
            - string
    

    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 string
    The user-assigned display name of the AndroidApp.
    PackageName 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 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.
    PackageName 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 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.
    packageName 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 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.
    packageName 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 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.
    package_name 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 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.
    packageName 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 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)
    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:
    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 string
    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.
    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 string
    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.
    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 String
    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.
    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 string
    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.
    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 str
    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.
    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 String
    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.

    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}}"
    
    $ pulumi import gcp:firebase/androidApp:AndroidApp default projects/{{project}}/androidApps/{{app_id}}
    
    $ pulumi import gcp:firebase/androidApp:AndroidApp default {{project}}/{{project}}/{{app_id}}
    
    $ pulumi import gcp:firebase/androidApp:AndroidApp default androidApps/{{app_id}}
    
    $ pulumi import gcp:firebase/androidApp:AndroidApp default {{app_id}}
    

    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.
    gcp logo
    Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi