AppArgs

data class AppArgs(val appName: Output<String>? = null, val bundleId: Output<String>? = null, val encodedIcon: Output<String>? = null, val industryId: Output<String>? = null, val packageName: Output<String>? = null, val productId: Output<String>? = null, val type: Output<String>? = null) : ConvertibleToJava<AppArgs>

Provides a MHUB App resource. For information about MHUB App and how to use it, see What is App.

NOTE: Available in v1.138.0+. NOTE: At present, the resource only supports cn-shanghai region.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.mhub.Product;
import com.pulumi.alicloud.mhub.ProductArgs;
import com.pulumi.alicloud.mhub.App;
import com.pulumi.alicloud.mhub.AppArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("example_value");
var defaultProduct = new Product("defaultProduct", ProductArgs.builder()
.productName(name)
.build());
var defaultApp = new App("defaultApp", AppArgs.builder()
.appName(name)
.productId(defaultProduct.id())
.packageName("com.test.android")
.type("Android")
.build());
}
}

Import

MHUB App can be imported using the id, e.g.

$ pulumi import alicloud:mhub/app:App example <product_id>:<app_key>

Constructors

Link copied to clipboard
fun AppArgs(appName: Output<String>? = null, bundleId: Output<String>? = null, encodedIcon: Output<String>? = null, industryId: Output<String>? = null, packageName: Output<String>? = null, productId: Output<String>? = null, type: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): AppArgs

Properties

Link copied to clipboard
val appName: Output<String>? = null

AppName.

Link copied to clipboard
val bundleId: Output<String>? = null

The app id of iOS. NOTE: Either bundle_id or package_name must be set.

Link copied to clipboard
val encodedIcon: Output<String>? = null

Base64 string of picture.

Link copied to clipboard
val industryId: Output<String>? = null

The Industry ID of the app. For information about Industry and how to use it, MHUBIndustry.

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

Android App package name. NOTE: Either bundle_id or package_name must be set.

Link copied to clipboard
val productId: Output<String>? = null

The ID of the Product.

Link copied to clipboard
val type: Output<String>? = null

The type of the Product. Valid values: Android and iOS.