All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.alicloud.mhub.MhubFunctions Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.alicloud.mhub;

import com.pulumi.alicloud.Utilities;
import com.pulumi.alicloud.mhub.inputs.GetAppsArgs;
import com.pulumi.alicloud.mhub.inputs.GetAppsPlainArgs;
import com.pulumi.alicloud.mhub.inputs.GetProductsArgs;
import com.pulumi.alicloud.mhub.inputs.GetProductsPlainArgs;
import com.pulumi.alicloud.mhub.outputs.GetAppsResult;
import com.pulumi.alicloud.mhub.outputs.GetProductsResult;
import com.pulumi.core.Output;
import com.pulumi.core.TypeShape;
import com.pulumi.deployment.Deployment;
import com.pulumi.deployment.InvokeOptions;
import java.util.concurrent.CompletableFuture;

public final class MhubFunctions {
    /**
     * This data source provides the Mhub Apps of the current Alibaba Cloud user.
     * 
     * > **NOTE:** Available in v1.138.0+.
     * 
     * ## Example Usage
     * 
     * Basic Usage
     * 
     * <!--Start PulumiCodeChooser -->
     * 
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.mhub.App;
     * import com.pulumi.alicloud.mhub.AppArgs;
     * import com.pulumi.alicloud.mhub.MhubFunctions;
     * import com.pulumi.alicloud.mhub.inputs.GetAppsArgs;
     * 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 default_ = new App("default", AppArgs.builder()
     *             .appName(name)
     *             .productId(defaultAlicloudMhubProduct.id())
     *             .packageName("com.test.android")
     *             .type("2")
     *             .build());
     * 
     *         final var ids = MhubFunctions.getApps();
     * 
     *         ctx.export("mhubAppId1", ids.applyValue(getAppsResult -> getAppsResult.apps()[0].id()));
     *         final var nameRegex = MhubFunctions.getApps(GetAppsArgs.builder()
     *             .nameRegex("^my-App")
     *             .build());
     * 
     *         ctx.export("mhubAppId2", nameRegex.applyValue(getAppsResult -> getAppsResult.apps()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getApps(GetAppsArgs args) { return getApps(args, InvokeOptions.Empty); } /** * This data source provides the Mhub Apps of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.138.0+. * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.mhub.App;
     * import com.pulumi.alicloud.mhub.AppArgs;
     * import com.pulumi.alicloud.mhub.MhubFunctions;
     * import com.pulumi.alicloud.mhub.inputs.GetAppsArgs;
     * 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 default_ = new App("default", AppArgs.builder()
     *             .appName(name)
     *             .productId(defaultAlicloudMhubProduct.id())
     *             .packageName("com.test.android")
     *             .type("2")
     *             .build());
     * 
     *         final var ids = MhubFunctions.getApps();
     * 
     *         ctx.export("mhubAppId1", ids.applyValue(getAppsResult -> getAppsResult.apps()[0].id()));
     *         final var nameRegex = MhubFunctions.getApps(GetAppsArgs.builder()
     *             .nameRegex("^my-App")
     *             .build());
     * 
     *         ctx.export("mhubAppId2", nameRegex.applyValue(getAppsResult -> getAppsResult.apps()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getAppsPlain(GetAppsPlainArgs args) { return getAppsPlain(args, InvokeOptions.Empty); } /** * This data source provides the Mhub Apps of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.138.0+. * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.mhub.App;
     * import com.pulumi.alicloud.mhub.AppArgs;
     * import com.pulumi.alicloud.mhub.MhubFunctions;
     * import com.pulumi.alicloud.mhub.inputs.GetAppsArgs;
     * 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 default_ = new App("default", AppArgs.builder()
     *             .appName(name)
     *             .productId(defaultAlicloudMhubProduct.id())
     *             .packageName("com.test.android")
     *             .type("2")
     *             .build());
     * 
     *         final var ids = MhubFunctions.getApps();
     * 
     *         ctx.export("mhubAppId1", ids.applyValue(getAppsResult -> getAppsResult.apps()[0].id()));
     *         final var nameRegex = MhubFunctions.getApps(GetAppsArgs.builder()
     *             .nameRegex("^my-App")
     *             .build());
     * 
     *         ctx.export("mhubAppId2", nameRegex.applyValue(getAppsResult -> getAppsResult.apps()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getApps(GetAppsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:mhub/getApps:getApps", TypeShape.of(GetAppsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Mhub Apps of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.138.0+. * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.mhub.App;
     * import com.pulumi.alicloud.mhub.AppArgs;
     * import com.pulumi.alicloud.mhub.MhubFunctions;
     * import com.pulumi.alicloud.mhub.inputs.GetAppsArgs;
     * 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 default_ = new App("default", AppArgs.builder()
     *             .appName(name)
     *             .productId(defaultAlicloudMhubProduct.id())
     *             .packageName("com.test.android")
     *             .type("2")
     *             .build());
     * 
     *         final var ids = MhubFunctions.getApps();
     * 
     *         ctx.export("mhubAppId1", ids.applyValue(getAppsResult -> getAppsResult.apps()[0].id()));
     *         final var nameRegex = MhubFunctions.getApps(GetAppsArgs.builder()
     *             .nameRegex("^my-App")
     *             .build());
     * 
     *         ctx.export("mhubAppId2", nameRegex.applyValue(getAppsResult -> getAppsResult.apps()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getAppsPlain(GetAppsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:mhub/getApps:getApps", TypeShape.of(GetAppsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Mhub Products of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.138.0+. * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * 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.MhubFunctions;
     * import com.pulumi.alicloud.mhub.inputs.GetProductsArgs;
     * 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 default_ = new Product("default", ProductArgs.builder()
     *             .productName(name)
     *             .build());
     * 
     *         final var ids = MhubFunctions.getProducts();
     * 
     *         ctx.export("mhubProductId1", ids.applyValue(getProductsResult -> getProductsResult.products()[0].id()));
     *         final var nameRegex = MhubFunctions.getProducts(GetProductsArgs.builder()
     *             .nameRegex("^my-Product")
     *             .build());
     * 
     *         ctx.export("mhubProductId2", nameRegex.applyValue(getProductsResult -> getProductsResult.products()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getProducts() { return getProducts(GetProductsArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Mhub Products of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.138.0+. * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * 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.MhubFunctions;
     * import com.pulumi.alicloud.mhub.inputs.GetProductsArgs;
     * 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 default_ = new Product("default", ProductArgs.builder()
     *             .productName(name)
     *             .build());
     * 
     *         final var ids = MhubFunctions.getProducts();
     * 
     *         ctx.export("mhubProductId1", ids.applyValue(getProductsResult -> getProductsResult.products()[0].id()));
     *         final var nameRegex = MhubFunctions.getProducts(GetProductsArgs.builder()
     *             .nameRegex("^my-Product")
     *             .build());
     * 
     *         ctx.export("mhubProductId2", nameRegex.applyValue(getProductsResult -> getProductsResult.products()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getProductsPlain() { return getProductsPlain(GetProductsPlainArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Mhub Products of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.138.0+. * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * 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.MhubFunctions;
     * import com.pulumi.alicloud.mhub.inputs.GetProductsArgs;
     * 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 default_ = new Product("default", ProductArgs.builder()
     *             .productName(name)
     *             .build());
     * 
     *         final var ids = MhubFunctions.getProducts();
     * 
     *         ctx.export("mhubProductId1", ids.applyValue(getProductsResult -> getProductsResult.products()[0].id()));
     *         final var nameRegex = MhubFunctions.getProducts(GetProductsArgs.builder()
     *             .nameRegex("^my-Product")
     *             .build());
     * 
     *         ctx.export("mhubProductId2", nameRegex.applyValue(getProductsResult -> getProductsResult.products()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getProducts(GetProductsArgs args) { return getProducts(args, InvokeOptions.Empty); } /** * This data source provides the Mhub Products of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.138.0+. * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * 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.MhubFunctions;
     * import com.pulumi.alicloud.mhub.inputs.GetProductsArgs;
     * 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 default_ = new Product("default", ProductArgs.builder()
     *             .productName(name)
     *             .build());
     * 
     *         final var ids = MhubFunctions.getProducts();
     * 
     *         ctx.export("mhubProductId1", ids.applyValue(getProductsResult -> getProductsResult.products()[0].id()));
     *         final var nameRegex = MhubFunctions.getProducts(GetProductsArgs.builder()
     *             .nameRegex("^my-Product")
     *             .build());
     * 
     *         ctx.export("mhubProductId2", nameRegex.applyValue(getProductsResult -> getProductsResult.products()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getProductsPlain(GetProductsPlainArgs args) { return getProductsPlain(args, InvokeOptions.Empty); } /** * This data source provides the Mhub Products of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.138.0+. * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * 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.MhubFunctions;
     * import com.pulumi.alicloud.mhub.inputs.GetProductsArgs;
     * 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 default_ = new Product("default", ProductArgs.builder()
     *             .productName(name)
     *             .build());
     * 
     *         final var ids = MhubFunctions.getProducts();
     * 
     *         ctx.export("mhubProductId1", ids.applyValue(getProductsResult -> getProductsResult.products()[0].id()));
     *         final var nameRegex = MhubFunctions.getProducts(GetProductsArgs.builder()
     *             .nameRegex("^my-Product")
     *             .build());
     * 
     *         ctx.export("mhubProductId2", nameRegex.applyValue(getProductsResult -> getProductsResult.products()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getProducts(GetProductsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:mhub/getProducts:getProducts", TypeShape.of(GetProductsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Mhub Products of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.138.0+. * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * 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.MhubFunctions;
     * import com.pulumi.alicloud.mhub.inputs.GetProductsArgs;
     * 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 default_ = new Product("default", ProductArgs.builder()
     *             .productName(name)
     *             .build());
     * 
     *         final var ids = MhubFunctions.getProducts();
     * 
     *         ctx.export("mhubProductId1", ids.applyValue(getProductsResult -> getProductsResult.products()[0].id()));
     *         final var nameRegex = MhubFunctions.getProducts(GetProductsArgs.builder()
     *             .nameRegex("^my-Product")
     *             .build());
     * 
     *         ctx.export("mhubProductId2", nameRegex.applyValue(getProductsResult -> getProductsResult.products()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getProductsPlain(GetProductsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:mhub/getProducts:getProducts", TypeShape.of(GetProductsResult.class), args, Utilities.withVersion(options)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy