1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. firebase
  5. AndroidApp
Google Cloud Classic v6.67.0 published on Wednesday, Sep 27, 2023 by Pulumi

gcp.firebase.AndroidApp

Explore with Pulumi AI

gcp logo
Google Cloud Classic v6.67.0 published on Wednesday, Sep 27, 2023 by Pulumi

    Import

    AndroidApp can be imported using any of these accepted formats

     $ 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}}
    

    Example Usage

    Firebase Android App Basic

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

    Firebase Android App Custom Api Key

    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()
        {
            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",
                        },
                    },
                },
            },
        }, new CustomResourceOptions
        {
            Provider = google_beta,
        });
    
        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,
        }, new CustomResourceOptions
        {
            Provider = google_beta,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/firebase"
    	"github.com/pulumi/pulumi-gcp/sdk/v6/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{
    			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"),
    						},
    					},
    				},
    			},
    		}, pulumi.Provider(google_beta))
    		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,
    		}, 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.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 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 android = new ApiKey("android", ApiKeyArgs.builder()        
                .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(), CustomResourceOptions.builder()
                    .provider(google_beta)
                    .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(), CustomResourceOptions.builder()
                    .provider(google_beta)
                    .build());
    
        }
    }
    
    import pulumi
    import pulumi_gcp as gcp
    
    android = gcp.projects.ApiKey("android",
        display_name="Display Name",
        project="my-project-name",
        restrictions=gcp.projects.ApiKeyRestrictionsArgs(
            android_key_restrictions=gcp.projects.ApiKeyRestrictionsAndroidKeyRestrictionsArgs(
                allowed_applications=[gcp.projects.ApiKeyRestrictionsAndroidKeyRestrictionsAllowedApplicationArgs(
                    package_name="android.package.app",
                    sha1_fingerprint="2145bdf698b8715039bd0e83f2069bed435ac21c",
                )],
            ),
        ),
        opts=pulumi.ResourceOptions(provider=google_beta))
    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,
        opts=pulumi.ResourceOptions(provider=google_beta))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const android = new gcp.projects.ApiKey("android", {
        displayName: "Display Name",
        project: "my-project-name",
        restrictions: {
            androidKeyRestrictions: {
                allowedApplications: [{
                    packageName: "android.package.app",
                    sha1Fingerprint: "2145bdf698b8715039bd0e83f2069bed435ac21c",
                }],
            },
        },
    }, {
        provider: google_beta,
    });
    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,
    }, {
        provider: google_beta,
    });
    
    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}
        options:
          provider: ${["google-beta"]}
      android:
        type: gcp:projects:ApiKey
        properties:
          displayName: Display Name
          project: my-project-name
          restrictions:
            androidKeyRestrictions:
              allowedApplications:
                - packageName: android.package.app
                  sha1Fingerprint: 2145bdf698b8715039bd0e83f2069bed435ac21c
        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,
                   api_key_id: Optional[str] = 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.


    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

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


    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

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


    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

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


    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

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


    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

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


    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

    (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,
            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

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

    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

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

    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

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

    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

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

    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

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

    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

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

    gcp logo
    Google Cloud Classic v6.67.0 published on Wednesday, Sep 27, 2023 by Pulumi