AndroidApp

class AndroidApp : KotlinCustomResource

Example Usage

Firebase Android App Basic

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

Firebase Android App Custom Api Key

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

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

Properties

Link copied to clipboard
val apiKeyId: Output<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.

Link copied to clipboard
val appId: Output<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.

Link copied to clipboard
val deletionPolicy: Output<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'.

Link copied to clipboard
val displayName: Output<String>

The user-assigned display name of the AndroidApp.

Link copied to clipboard
val etag: Output<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.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

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

Link copied to clipboard
val packageName: Output<String>?

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

Link copied to clipboard
val project: Output<String>

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val sha1Hashes: Output<List<String>>?

The SHA1 certificate hashes for the AndroidApp.

Link copied to clipboard
val sha256Hashes: Output<List<String>>?

The SHA256 certificate hashes for the AndroidApp.

Link copied to clipboard
val urn: Output<String>