Google Cloud (GCP) Classic

v6.44.0 published on Tuesday, Nov 29, 2022 by Pulumi

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 = "",
    }, 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(""),
		}, 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("")
            .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="",
    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: "",
}, {
    provider: google_beta,
});
resources:
  basic:
    type: gcp:firebase:AndroidApp
    properties:
      project: my-project-name
      displayName: Display Name Basic
      packageName:
    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)
@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 App.

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

DisplayName string

The user-assigned display name of the App.

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

displayName String

The user-assigned display name of the App.

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

displayName string

The user-assigned display name of the App.

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

display_name str

The user-assigned display name of the App.

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

displayName String

The user-assigned display name of the App.

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

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 App. This identifier should be treated as an opaque token, as the data format is not specified.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The fully qualified resource name of the App, for example: projects/projectId/androidApps/appId

AppId string

The globally unique, Firebase-assigned identifier of the App. This identifier should be treated as an opaque token, as the data format is not specified.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The fully qualified resource name of the App, for example: projects/projectId/androidApps/appId

appId String

The globally unique, Firebase-assigned identifier of the App. This identifier should be treated as an opaque token, as the data format is not specified.

id String

The provider-assigned unique ID for this managed resource.

name String

The fully qualified resource name of the App, for example: projects/projectId/androidApps/appId

appId string

The globally unique, Firebase-assigned identifier of the App. This identifier should be treated as an opaque token, as the data format is not specified.

id string

The provider-assigned unique ID for this managed resource.

name string

The fully qualified resource name of the App, for example: projects/projectId/androidApps/appId

app_id str

The globally unique, Firebase-assigned identifier of the App. This identifier should be treated as an opaque token, as the data format is not specified.

id str

The provider-assigned unique ID for this managed resource.

name str

The fully qualified resource name of the App, for example: projects/projectId/androidApps/appId

appId String

The globally unique, Firebase-assigned identifier of the App. This identifier should be treated as an opaque token, as the data format is not specified.

id String

The provider-assigned unique ID for this managed resource.

name String

The fully qualified resource name of the App, 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,
        name: Optional[str] = None,
        package_name: Optional[str] = None,
        project: Optional[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 App. 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. Default to 'DELETE'.

DisplayName string

The user-assigned display name of the App.

Name string

The fully qualified resource name of the App, 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.

AppId string

The globally unique, Firebase-assigned identifier of the App. 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. Default to 'DELETE'.

DisplayName string

The user-assigned display name of the App.

Name string

The fully qualified resource name of the App, 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.

appId String

The globally unique, Firebase-assigned identifier of the App. 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. Default to 'DELETE'.

displayName String

The user-assigned display name of the App.

name String

The fully qualified resource name of the App, 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.

appId string

The globally unique, Firebase-assigned identifier of the App. 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. Default to 'DELETE'.

displayName string

The user-assigned display name of the App.

name string

The fully qualified resource name of the App, 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.

app_id str

The globally unique, Firebase-assigned identifier of the App. 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. Default to 'DELETE'.

display_name str

The user-assigned display name of the App.

name str

The fully qualified resource name of the App, 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.

appId String

The globally unique, Firebase-assigned identifier of the App. 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. Default to 'DELETE'.

displayName String

The user-assigned display name of the App.

name String

The fully qualified resource name of the App, 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.

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes

This Pulumi package is based on the google-beta Terraform Provider.