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

com.pulumi.alicloud.arms.ArmsFunctions 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.arms;

import com.pulumi.alicloud.Utilities;
import com.pulumi.alicloud.arms.inputs.GetAlertContactGroupsArgs;
import com.pulumi.alicloud.arms.inputs.GetAlertContactGroupsPlainArgs;
import com.pulumi.alicloud.arms.inputs.GetAlertContactsArgs;
import com.pulumi.alicloud.arms.inputs.GetAlertContactsPlainArgs;
import com.pulumi.alicloud.arms.inputs.GetDispatchRulesArgs;
import com.pulumi.alicloud.arms.inputs.GetDispatchRulesPlainArgs;
import com.pulumi.alicloud.arms.inputs.GetIntegrationExportersArgs;
import com.pulumi.alicloud.arms.inputs.GetIntegrationExportersPlainArgs;
import com.pulumi.alicloud.arms.inputs.GetPrometheisArgs;
import com.pulumi.alicloud.arms.inputs.GetPrometheisPlainArgs;
import com.pulumi.alicloud.arms.inputs.GetPrometheusAlertRulesArgs;
import com.pulumi.alicloud.arms.inputs.GetPrometheusAlertRulesPlainArgs;
import com.pulumi.alicloud.arms.inputs.GetPrometheusArgs;
import com.pulumi.alicloud.arms.inputs.GetPrometheusMonitoringsArgs;
import com.pulumi.alicloud.arms.inputs.GetPrometheusMonitoringsPlainArgs;
import com.pulumi.alicloud.arms.inputs.GetPrometheusPlainArgs;
import com.pulumi.alicloud.arms.inputs.GetRemoteWritesArgs;
import com.pulumi.alicloud.arms.inputs.GetRemoteWritesPlainArgs;
import com.pulumi.alicloud.arms.outputs.GetAlertContactGroupsResult;
import com.pulumi.alicloud.arms.outputs.GetAlertContactsResult;
import com.pulumi.alicloud.arms.outputs.GetDispatchRulesResult;
import com.pulumi.alicloud.arms.outputs.GetIntegrationExportersResult;
import com.pulumi.alicloud.arms.outputs.GetPrometheisResult;
import com.pulumi.alicloud.arms.outputs.GetPrometheusAlertRulesResult;
import com.pulumi.alicloud.arms.outputs.GetPrometheusMonitoringsResult;
import com.pulumi.alicloud.arms.outputs.GetPrometheusResult;
import com.pulumi.alicloud.arms.outputs.GetRemoteWritesResult;
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 ArmsFunctions {
    /**
     * This data source provides the Arms Alert Contact Groups of the current Alibaba Cloud user.
     * 
     * > **NOTE:** Available in v1.131.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetAlertContactGroupsArgs;
     * 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 nameRegex = ArmsFunctions.getAlertContactGroups(GetAlertContactGroupsArgs.builder()
     *             .nameRegex("^my-AlertContactGroup")
     *             .build());
     * 
     *         ctx.export("armsAlertContactGroupId", nameRegex.applyValue(getAlertContactGroupsResult -> getAlertContactGroupsResult.groups()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getAlertContactGroups() { return getAlertContactGroups(GetAlertContactGroupsArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Arms Alert Contact Groups of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.131.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetAlertContactGroupsArgs;
     * 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 nameRegex = ArmsFunctions.getAlertContactGroups(GetAlertContactGroupsArgs.builder()
     *             .nameRegex("^my-AlertContactGroup")
     *             .build());
     * 
     *         ctx.export("armsAlertContactGroupId", nameRegex.applyValue(getAlertContactGroupsResult -> getAlertContactGroupsResult.groups()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getAlertContactGroupsPlain() { return getAlertContactGroupsPlain(GetAlertContactGroupsPlainArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Arms Alert Contact Groups of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.131.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetAlertContactGroupsArgs;
     * 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 nameRegex = ArmsFunctions.getAlertContactGroups(GetAlertContactGroupsArgs.builder()
     *             .nameRegex("^my-AlertContactGroup")
     *             .build());
     * 
     *         ctx.export("armsAlertContactGroupId", nameRegex.applyValue(getAlertContactGroupsResult -> getAlertContactGroupsResult.groups()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getAlertContactGroups(GetAlertContactGroupsArgs args) { return getAlertContactGroups(args, InvokeOptions.Empty); } /** * This data source provides the Arms Alert Contact Groups of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.131.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetAlertContactGroupsArgs;
     * 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 nameRegex = ArmsFunctions.getAlertContactGroups(GetAlertContactGroupsArgs.builder()
     *             .nameRegex("^my-AlertContactGroup")
     *             .build());
     * 
     *         ctx.export("armsAlertContactGroupId", nameRegex.applyValue(getAlertContactGroupsResult -> getAlertContactGroupsResult.groups()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getAlertContactGroupsPlain(GetAlertContactGroupsPlainArgs args) { return getAlertContactGroupsPlain(args, InvokeOptions.Empty); } /** * This data source provides the Arms Alert Contact Groups of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.131.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetAlertContactGroupsArgs;
     * 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 nameRegex = ArmsFunctions.getAlertContactGroups(GetAlertContactGroupsArgs.builder()
     *             .nameRegex("^my-AlertContactGroup")
     *             .build());
     * 
     *         ctx.export("armsAlertContactGroupId", nameRegex.applyValue(getAlertContactGroupsResult -> getAlertContactGroupsResult.groups()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getAlertContactGroups(GetAlertContactGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:arms/getAlertContactGroups:getAlertContactGroups", TypeShape.of(GetAlertContactGroupsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Arms Alert Contact Groups of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.131.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetAlertContactGroupsArgs;
     * 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 nameRegex = ArmsFunctions.getAlertContactGroups(GetAlertContactGroupsArgs.builder()
     *             .nameRegex("^my-AlertContactGroup")
     *             .build());
     * 
     *         ctx.export("armsAlertContactGroupId", nameRegex.applyValue(getAlertContactGroupsResult -> getAlertContactGroupsResult.groups()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getAlertContactGroupsPlain(GetAlertContactGroupsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:arms/getAlertContactGroups:getAlertContactGroups", TypeShape.of(GetAlertContactGroupsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Arms Alert Contacts of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.129.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetAlertContactsArgs;
     * 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 ids = ArmsFunctions.getAlertContacts();
     * 
     *         ctx.export("armsAlertContactId1", ids.applyValue(getAlertContactsResult -> getAlertContactsResult.contacts()[0].id()));
     *         final var nameRegex = ArmsFunctions.getAlertContacts(GetAlertContactsArgs.builder()
     *             .nameRegex("^my-AlertContact")
     *             .build());
     * 
     *         ctx.export("armsAlertContactId2", nameRegex.applyValue(getAlertContactsResult -> getAlertContactsResult.contacts()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getAlertContacts() { return getAlertContacts(GetAlertContactsArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Arms Alert Contacts of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.129.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetAlertContactsArgs;
     * 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 ids = ArmsFunctions.getAlertContacts();
     * 
     *         ctx.export("armsAlertContactId1", ids.applyValue(getAlertContactsResult -> getAlertContactsResult.contacts()[0].id()));
     *         final var nameRegex = ArmsFunctions.getAlertContacts(GetAlertContactsArgs.builder()
     *             .nameRegex("^my-AlertContact")
     *             .build());
     * 
     *         ctx.export("armsAlertContactId2", nameRegex.applyValue(getAlertContactsResult -> getAlertContactsResult.contacts()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getAlertContactsPlain() { return getAlertContactsPlain(GetAlertContactsPlainArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Arms Alert Contacts of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.129.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetAlertContactsArgs;
     * 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 ids = ArmsFunctions.getAlertContacts();
     * 
     *         ctx.export("armsAlertContactId1", ids.applyValue(getAlertContactsResult -> getAlertContactsResult.contacts()[0].id()));
     *         final var nameRegex = ArmsFunctions.getAlertContacts(GetAlertContactsArgs.builder()
     *             .nameRegex("^my-AlertContact")
     *             .build());
     * 
     *         ctx.export("armsAlertContactId2", nameRegex.applyValue(getAlertContactsResult -> getAlertContactsResult.contacts()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getAlertContacts(GetAlertContactsArgs args) { return getAlertContacts(args, InvokeOptions.Empty); } /** * This data source provides the Arms Alert Contacts of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.129.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetAlertContactsArgs;
     * 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 ids = ArmsFunctions.getAlertContacts();
     * 
     *         ctx.export("armsAlertContactId1", ids.applyValue(getAlertContactsResult -> getAlertContactsResult.contacts()[0].id()));
     *         final var nameRegex = ArmsFunctions.getAlertContacts(GetAlertContactsArgs.builder()
     *             .nameRegex("^my-AlertContact")
     *             .build());
     * 
     *         ctx.export("armsAlertContactId2", nameRegex.applyValue(getAlertContactsResult -> getAlertContactsResult.contacts()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getAlertContactsPlain(GetAlertContactsPlainArgs args) { return getAlertContactsPlain(args, InvokeOptions.Empty); } /** * This data source provides the Arms Alert Contacts of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.129.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetAlertContactsArgs;
     * 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 ids = ArmsFunctions.getAlertContacts();
     * 
     *         ctx.export("armsAlertContactId1", ids.applyValue(getAlertContactsResult -> getAlertContactsResult.contacts()[0].id()));
     *         final var nameRegex = ArmsFunctions.getAlertContacts(GetAlertContactsArgs.builder()
     *             .nameRegex("^my-AlertContact")
     *             .build());
     * 
     *         ctx.export("armsAlertContactId2", nameRegex.applyValue(getAlertContactsResult -> getAlertContactsResult.contacts()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getAlertContacts(GetAlertContactsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:arms/getAlertContacts:getAlertContacts", TypeShape.of(GetAlertContactsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Arms Alert Contacts of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.129.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetAlertContactsArgs;
     * 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 ids = ArmsFunctions.getAlertContacts();
     * 
     *         ctx.export("armsAlertContactId1", ids.applyValue(getAlertContactsResult -> getAlertContactsResult.contacts()[0].id()));
     *         final var nameRegex = ArmsFunctions.getAlertContacts(GetAlertContactsArgs.builder()
     *             .nameRegex("^my-AlertContact")
     *             .build());
     * 
     *         ctx.export("armsAlertContactId2", nameRegex.applyValue(getAlertContactsResult -> getAlertContactsResult.contacts()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getAlertContactsPlain(GetAlertContactsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:arms/getAlertContacts:getAlertContacts", TypeShape.of(GetAlertContactsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Arms Dispatch Rules of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.136.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetDispatchRulesArgs;
     * 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 ids = ArmsFunctions.getDispatchRules();
     * 
     *         ctx.export("armsDispatchRuleId1", ids.applyValue(getDispatchRulesResult -> getDispatchRulesResult.rules()[0].id()));
     *         final var nameRegex = ArmsFunctions.getDispatchRules(GetDispatchRulesArgs.builder()
     *             .nameRegex("^my-DispatchRule")
     *             .build());
     * 
     *         ctx.export("armsDispatchRuleId2", nameRegex.applyValue(getDispatchRulesResult -> getDispatchRulesResult.rules()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getDispatchRules() { return getDispatchRules(GetDispatchRulesArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Arms Dispatch Rules of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.136.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetDispatchRulesArgs;
     * 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 ids = ArmsFunctions.getDispatchRules();
     * 
     *         ctx.export("armsDispatchRuleId1", ids.applyValue(getDispatchRulesResult -> getDispatchRulesResult.rules()[0].id()));
     *         final var nameRegex = ArmsFunctions.getDispatchRules(GetDispatchRulesArgs.builder()
     *             .nameRegex("^my-DispatchRule")
     *             .build());
     * 
     *         ctx.export("armsDispatchRuleId2", nameRegex.applyValue(getDispatchRulesResult -> getDispatchRulesResult.rules()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getDispatchRulesPlain() { return getDispatchRulesPlain(GetDispatchRulesPlainArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Arms Dispatch Rules of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.136.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetDispatchRulesArgs;
     * 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 ids = ArmsFunctions.getDispatchRules();
     * 
     *         ctx.export("armsDispatchRuleId1", ids.applyValue(getDispatchRulesResult -> getDispatchRulesResult.rules()[0].id()));
     *         final var nameRegex = ArmsFunctions.getDispatchRules(GetDispatchRulesArgs.builder()
     *             .nameRegex("^my-DispatchRule")
     *             .build());
     * 
     *         ctx.export("armsDispatchRuleId2", nameRegex.applyValue(getDispatchRulesResult -> getDispatchRulesResult.rules()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getDispatchRules(GetDispatchRulesArgs args) { return getDispatchRules(args, InvokeOptions.Empty); } /** * This data source provides the Arms Dispatch Rules of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.136.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetDispatchRulesArgs;
     * 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 ids = ArmsFunctions.getDispatchRules();
     * 
     *         ctx.export("armsDispatchRuleId1", ids.applyValue(getDispatchRulesResult -> getDispatchRulesResult.rules()[0].id()));
     *         final var nameRegex = ArmsFunctions.getDispatchRules(GetDispatchRulesArgs.builder()
     *             .nameRegex("^my-DispatchRule")
     *             .build());
     * 
     *         ctx.export("armsDispatchRuleId2", nameRegex.applyValue(getDispatchRulesResult -> getDispatchRulesResult.rules()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getDispatchRulesPlain(GetDispatchRulesPlainArgs args) { return getDispatchRulesPlain(args, InvokeOptions.Empty); } /** * This data source provides the Arms Dispatch Rules of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.136.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetDispatchRulesArgs;
     * 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 ids = ArmsFunctions.getDispatchRules();
     * 
     *         ctx.export("armsDispatchRuleId1", ids.applyValue(getDispatchRulesResult -> getDispatchRulesResult.rules()[0].id()));
     *         final var nameRegex = ArmsFunctions.getDispatchRules(GetDispatchRulesArgs.builder()
     *             .nameRegex("^my-DispatchRule")
     *             .build());
     * 
     *         ctx.export("armsDispatchRuleId2", nameRegex.applyValue(getDispatchRulesResult -> getDispatchRulesResult.rules()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getDispatchRules(GetDispatchRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:arms/getDispatchRules:getDispatchRules", TypeShape.of(GetDispatchRulesResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Arms Dispatch Rules of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.136.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetDispatchRulesArgs;
     * 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 ids = ArmsFunctions.getDispatchRules();
     * 
     *         ctx.export("armsDispatchRuleId1", ids.applyValue(getDispatchRulesResult -> getDispatchRulesResult.rules()[0].id()));
     *         final var nameRegex = ArmsFunctions.getDispatchRules(GetDispatchRulesArgs.builder()
     *             .nameRegex("^my-DispatchRule")
     *             .build());
     * 
     *         ctx.export("armsDispatchRuleId2", nameRegex.applyValue(getDispatchRulesResult -> getDispatchRulesResult.rules()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getDispatchRulesPlain(GetDispatchRulesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:arms/getDispatchRules:getDispatchRules", TypeShape.of(GetDispatchRulesResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Arms Integration Exporters of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.203.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetIntegrationExportersArgs;
     * 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 ids = ArmsFunctions.getIntegrationExporters(GetIntegrationExportersArgs.builder()
     *             .ids("example_id")
     *             .clusterId("your_cluster_id")
     *             .integrationType("kafka")
     *             .build());
     * 
     *         ctx.export("armsIntegrationExportersId1", ids.applyValue(getIntegrationExportersResult -> getIntegrationExportersResult.integrationExporters()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getIntegrationExporters(GetIntegrationExportersArgs args) { return getIntegrationExporters(args, InvokeOptions.Empty); } /** * This data source provides the Arms Integration Exporters of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.203.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetIntegrationExportersArgs;
     * 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 ids = ArmsFunctions.getIntegrationExporters(GetIntegrationExportersArgs.builder()
     *             .ids("example_id")
     *             .clusterId("your_cluster_id")
     *             .integrationType("kafka")
     *             .build());
     * 
     *         ctx.export("armsIntegrationExportersId1", ids.applyValue(getIntegrationExportersResult -> getIntegrationExportersResult.integrationExporters()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getIntegrationExportersPlain(GetIntegrationExportersPlainArgs args) { return getIntegrationExportersPlain(args, InvokeOptions.Empty); } /** * This data source provides the Arms Integration Exporters of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.203.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetIntegrationExportersArgs;
     * 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 ids = ArmsFunctions.getIntegrationExporters(GetIntegrationExportersArgs.builder()
     *             .ids("example_id")
     *             .clusterId("your_cluster_id")
     *             .integrationType("kafka")
     *             .build());
     * 
     *         ctx.export("armsIntegrationExportersId1", ids.applyValue(getIntegrationExportersResult -> getIntegrationExportersResult.integrationExporters()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getIntegrationExporters(GetIntegrationExportersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:arms/getIntegrationExporters:getIntegrationExporters", TypeShape.of(GetIntegrationExportersResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Arms Integration Exporters of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.203.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetIntegrationExportersArgs;
     * 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 ids = ArmsFunctions.getIntegrationExporters(GetIntegrationExportersArgs.builder()
     *             .ids("example_id")
     *             .clusterId("your_cluster_id")
     *             .integrationType("kafka")
     *             .build());
     * 
     *         ctx.export("armsIntegrationExportersId1", ids.applyValue(getIntegrationExportersResult -> getIntegrationExportersResult.integrationExporters()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getIntegrationExportersPlain(GetIntegrationExportersPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:arms/getIntegrationExporters:getIntegrationExporters", TypeShape.of(GetIntegrationExportersResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Arms Prometheis of the current Alibaba Cloud user. * * > **NOTE:** Available since v1.203.0. * * > **DEPRECATED:** This resource has been renamed to alicloud.ecs.EcsDisk from version 1.214.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.vpc.VpcFunctions;
     * import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
     * import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
     * import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
     * import com.pulumi.alicloud.ecs.SecurityGroup;
     * import com.pulumi.alicloud.ecs.SecurityGroupArgs;
     * import com.pulumi.alicloud.arms.Prometheus;
     * import com.pulumi.alicloud.arms.PrometheusArgs;
     * import com.pulumi.alicloud.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetPrometheisArgs;
     * 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("tf-example");
     *         final var default = VpcFunctions.getNetworks(GetNetworksArgs.builder()
     *             .nameRegex("default-NODELETING")
     *             .build());
     * 
     *         final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         final var defaultGetResourceGroups = ResourcemanagerFunctions.getResourceGroups();
     * 
     *         var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         var defaultPrometheus = new Prometheus("defaultPrometheus", PrometheusArgs.builder()
     *             .clusterType("ecs")
     *             .grafanaInstanceId("free")
     *             .vpcId(default_.ids()[0])
     *             .vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
     *             .securityGroupId(defaultSecurityGroup.id())
     *             .clusterName(String.format("%s-%s", name,default_.ids()[0]))
     *             .resourceGroupId(defaultGetResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[1].id()))
     *             .tags(Map.ofEntries(
     *                 Map.entry("Created", "TF"),
     *                 Map.entry("For", "Prometheus")
     *             ))
     *             .build());
     * 
     *         final var nameRegex = ArmsFunctions.getPrometheis(GetPrometheisArgs.builder()
     *             .nameRegex(defaultPrometheus.clusterName())
     *             .build());
     * 
     *         ctx.export("armsPrometheisId", nameRegex.applyValue(getPrometheisResult -> getPrometheisResult).applyValue(nameRegex -> nameRegex.applyValue(getPrometheisResult -> getPrometheisResult.prometheis()[0].id())));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getPrometheis() { return getPrometheis(GetPrometheisArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Arms Prometheis of the current Alibaba Cloud user. * * > **NOTE:** Available since v1.203.0. * * > **DEPRECATED:** This resource has been renamed to alicloud.ecs.EcsDisk from version 1.214.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.vpc.VpcFunctions;
     * import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
     * import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
     * import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
     * import com.pulumi.alicloud.ecs.SecurityGroup;
     * import com.pulumi.alicloud.ecs.SecurityGroupArgs;
     * import com.pulumi.alicloud.arms.Prometheus;
     * import com.pulumi.alicloud.arms.PrometheusArgs;
     * import com.pulumi.alicloud.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetPrometheisArgs;
     * 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("tf-example");
     *         final var default = VpcFunctions.getNetworks(GetNetworksArgs.builder()
     *             .nameRegex("default-NODELETING")
     *             .build());
     * 
     *         final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         final var defaultGetResourceGroups = ResourcemanagerFunctions.getResourceGroups();
     * 
     *         var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         var defaultPrometheus = new Prometheus("defaultPrometheus", PrometheusArgs.builder()
     *             .clusterType("ecs")
     *             .grafanaInstanceId("free")
     *             .vpcId(default_.ids()[0])
     *             .vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
     *             .securityGroupId(defaultSecurityGroup.id())
     *             .clusterName(String.format("%s-%s", name,default_.ids()[0]))
     *             .resourceGroupId(defaultGetResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[1].id()))
     *             .tags(Map.ofEntries(
     *                 Map.entry("Created", "TF"),
     *                 Map.entry("For", "Prometheus")
     *             ))
     *             .build());
     * 
     *         final var nameRegex = ArmsFunctions.getPrometheis(GetPrometheisArgs.builder()
     *             .nameRegex(defaultPrometheus.clusterName())
     *             .build());
     * 
     *         ctx.export("armsPrometheisId", nameRegex.applyValue(getPrometheisResult -> getPrometheisResult).applyValue(nameRegex -> nameRegex.applyValue(getPrometheisResult -> getPrometheisResult.prometheis()[0].id())));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getPrometheisPlain() { return getPrometheisPlain(GetPrometheisPlainArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Arms Prometheis of the current Alibaba Cloud user. * * > **NOTE:** Available since v1.203.0. * * > **DEPRECATED:** This resource has been renamed to alicloud.ecs.EcsDisk from version 1.214.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.vpc.VpcFunctions;
     * import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
     * import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
     * import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
     * import com.pulumi.alicloud.ecs.SecurityGroup;
     * import com.pulumi.alicloud.ecs.SecurityGroupArgs;
     * import com.pulumi.alicloud.arms.Prometheus;
     * import com.pulumi.alicloud.arms.PrometheusArgs;
     * import com.pulumi.alicloud.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetPrometheisArgs;
     * 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("tf-example");
     *         final var default = VpcFunctions.getNetworks(GetNetworksArgs.builder()
     *             .nameRegex("default-NODELETING")
     *             .build());
     * 
     *         final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         final var defaultGetResourceGroups = ResourcemanagerFunctions.getResourceGroups();
     * 
     *         var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         var defaultPrometheus = new Prometheus("defaultPrometheus", PrometheusArgs.builder()
     *             .clusterType("ecs")
     *             .grafanaInstanceId("free")
     *             .vpcId(default_.ids()[0])
     *             .vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
     *             .securityGroupId(defaultSecurityGroup.id())
     *             .clusterName(String.format("%s-%s", name,default_.ids()[0]))
     *             .resourceGroupId(defaultGetResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[1].id()))
     *             .tags(Map.ofEntries(
     *                 Map.entry("Created", "TF"),
     *                 Map.entry("For", "Prometheus")
     *             ))
     *             .build());
     * 
     *         final var nameRegex = ArmsFunctions.getPrometheis(GetPrometheisArgs.builder()
     *             .nameRegex(defaultPrometheus.clusterName())
     *             .build());
     * 
     *         ctx.export("armsPrometheisId", nameRegex.applyValue(getPrometheisResult -> getPrometheisResult).applyValue(nameRegex -> nameRegex.applyValue(getPrometheisResult -> getPrometheisResult.prometheis()[0].id())));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getPrometheis(GetPrometheisArgs args) { return getPrometheis(args, InvokeOptions.Empty); } /** * This data source provides the Arms Prometheis of the current Alibaba Cloud user. * * > **NOTE:** Available since v1.203.0. * * > **DEPRECATED:** This resource has been renamed to alicloud.ecs.EcsDisk from version 1.214.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.vpc.VpcFunctions;
     * import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
     * import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
     * import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
     * import com.pulumi.alicloud.ecs.SecurityGroup;
     * import com.pulumi.alicloud.ecs.SecurityGroupArgs;
     * import com.pulumi.alicloud.arms.Prometheus;
     * import com.pulumi.alicloud.arms.PrometheusArgs;
     * import com.pulumi.alicloud.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetPrometheisArgs;
     * 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("tf-example");
     *         final var default = VpcFunctions.getNetworks(GetNetworksArgs.builder()
     *             .nameRegex("default-NODELETING")
     *             .build());
     * 
     *         final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         final var defaultGetResourceGroups = ResourcemanagerFunctions.getResourceGroups();
     * 
     *         var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         var defaultPrometheus = new Prometheus("defaultPrometheus", PrometheusArgs.builder()
     *             .clusterType("ecs")
     *             .grafanaInstanceId("free")
     *             .vpcId(default_.ids()[0])
     *             .vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
     *             .securityGroupId(defaultSecurityGroup.id())
     *             .clusterName(String.format("%s-%s", name,default_.ids()[0]))
     *             .resourceGroupId(defaultGetResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[1].id()))
     *             .tags(Map.ofEntries(
     *                 Map.entry("Created", "TF"),
     *                 Map.entry("For", "Prometheus")
     *             ))
     *             .build());
     * 
     *         final var nameRegex = ArmsFunctions.getPrometheis(GetPrometheisArgs.builder()
     *             .nameRegex(defaultPrometheus.clusterName())
     *             .build());
     * 
     *         ctx.export("armsPrometheisId", nameRegex.applyValue(getPrometheisResult -> getPrometheisResult).applyValue(nameRegex -> nameRegex.applyValue(getPrometheisResult -> getPrometheisResult.prometheis()[0].id())));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getPrometheisPlain(GetPrometheisPlainArgs args) { return getPrometheisPlain(args, InvokeOptions.Empty); } /** * This data source provides the Arms Prometheis of the current Alibaba Cloud user. * * > **NOTE:** Available since v1.203.0. * * > **DEPRECATED:** This resource has been renamed to alicloud.ecs.EcsDisk from version 1.214.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.vpc.VpcFunctions;
     * import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
     * import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
     * import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
     * import com.pulumi.alicloud.ecs.SecurityGroup;
     * import com.pulumi.alicloud.ecs.SecurityGroupArgs;
     * import com.pulumi.alicloud.arms.Prometheus;
     * import com.pulumi.alicloud.arms.PrometheusArgs;
     * import com.pulumi.alicloud.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetPrometheisArgs;
     * 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("tf-example");
     *         final var default = VpcFunctions.getNetworks(GetNetworksArgs.builder()
     *             .nameRegex("default-NODELETING")
     *             .build());
     * 
     *         final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         final var defaultGetResourceGroups = ResourcemanagerFunctions.getResourceGroups();
     * 
     *         var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         var defaultPrometheus = new Prometheus("defaultPrometheus", PrometheusArgs.builder()
     *             .clusterType("ecs")
     *             .grafanaInstanceId("free")
     *             .vpcId(default_.ids()[0])
     *             .vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
     *             .securityGroupId(defaultSecurityGroup.id())
     *             .clusterName(String.format("%s-%s", name,default_.ids()[0]))
     *             .resourceGroupId(defaultGetResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[1].id()))
     *             .tags(Map.ofEntries(
     *                 Map.entry("Created", "TF"),
     *                 Map.entry("For", "Prometheus")
     *             ))
     *             .build());
     * 
     *         final var nameRegex = ArmsFunctions.getPrometheis(GetPrometheisArgs.builder()
     *             .nameRegex(defaultPrometheus.clusterName())
     *             .build());
     * 
     *         ctx.export("armsPrometheisId", nameRegex.applyValue(getPrometheisResult -> getPrometheisResult).applyValue(nameRegex -> nameRegex.applyValue(getPrometheisResult -> getPrometheisResult.prometheis()[0].id())));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getPrometheis(GetPrometheisArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:arms/getPrometheis:getPrometheis", TypeShape.of(GetPrometheisResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Arms Prometheis of the current Alibaba Cloud user. * * > **NOTE:** Available since v1.203.0. * * > **DEPRECATED:** This resource has been renamed to alicloud.ecs.EcsDisk from version 1.214.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.vpc.VpcFunctions;
     * import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
     * import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
     * import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
     * import com.pulumi.alicloud.ecs.SecurityGroup;
     * import com.pulumi.alicloud.ecs.SecurityGroupArgs;
     * import com.pulumi.alicloud.arms.Prometheus;
     * import com.pulumi.alicloud.arms.PrometheusArgs;
     * import com.pulumi.alicloud.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetPrometheisArgs;
     * 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("tf-example");
     *         final var default = VpcFunctions.getNetworks(GetNetworksArgs.builder()
     *             .nameRegex("default-NODELETING")
     *             .build());
     * 
     *         final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         final var defaultGetResourceGroups = ResourcemanagerFunctions.getResourceGroups();
     * 
     *         var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         var defaultPrometheus = new Prometheus("defaultPrometheus", PrometheusArgs.builder()
     *             .clusterType("ecs")
     *             .grafanaInstanceId("free")
     *             .vpcId(default_.ids()[0])
     *             .vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
     *             .securityGroupId(defaultSecurityGroup.id())
     *             .clusterName(String.format("%s-%s", name,default_.ids()[0]))
     *             .resourceGroupId(defaultGetResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[1].id()))
     *             .tags(Map.ofEntries(
     *                 Map.entry("Created", "TF"),
     *                 Map.entry("For", "Prometheus")
     *             ))
     *             .build());
     * 
     *         final var nameRegex = ArmsFunctions.getPrometheis(GetPrometheisArgs.builder()
     *             .nameRegex(defaultPrometheus.clusterName())
     *             .build());
     * 
     *         ctx.export("armsPrometheisId", nameRegex.applyValue(getPrometheisResult -> getPrometheisResult).applyValue(nameRegex -> nameRegex.applyValue(getPrometheisResult -> getPrometheisResult.prometheis()[0].id())));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getPrometheisPlain(GetPrometheisPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:arms/getPrometheis:getPrometheis", TypeShape.of(GetPrometheisResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Arms Prometheus of the current Alibaba Cloud user. * * > **NOTE:** Available since v1.214.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.vpc.VpcFunctions;
     * import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
     * import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
     * import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
     * import com.pulumi.alicloud.ecs.SecurityGroup;
     * import com.pulumi.alicloud.ecs.SecurityGroupArgs;
     * import com.pulumi.alicloud.arms.Prometheus;
     * import com.pulumi.alicloud.arms.PrometheusArgs;
     * import com.pulumi.alicloud.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetPrometheusArgs;
     * 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("tf-example");
     *         final var default = VpcFunctions.getNetworks(GetNetworksArgs.builder()
     *             .nameRegex("default-NODELETING")
     *             .build());
     * 
     *         final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         final var defaultGetResourceGroups = ResourcemanagerFunctions.getResourceGroups();
     * 
     *         var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         var defaultPrometheus = new Prometheus("defaultPrometheus", PrometheusArgs.builder()
     *             .clusterType("ecs")
     *             .grafanaInstanceId("free")
     *             .vpcId(default_.ids()[0])
     *             .vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
     *             .securityGroupId(defaultSecurityGroup.id())
     *             .clusterName(String.format("%s-%s", name,default_.ids()[0]))
     *             .resourceGroupId(defaultGetResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[1].id()))
     *             .tags(Map.ofEntries(
     *                 Map.entry("Created", "TF"),
     *                 Map.entry("For", "Prometheus")
     *             ))
     *             .build());
     * 
     *         final var nameRegex = ArmsFunctions.getPrometheus(GetPrometheusArgs.builder()
     *             .nameRegex(defaultPrometheus.clusterName())
     *             .build());
     * 
     *         ctx.export("armsPrometheusId", nameRegex.applyValue(getPrometheusResult -> getPrometheusResult).applyValue(nameRegex -> nameRegex.applyValue(getPrometheusResult -> getPrometheusResult.prometheis()[0].id())));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getPrometheus() { return getPrometheus(GetPrometheusArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Arms Prometheus of the current Alibaba Cloud user. * * > **NOTE:** Available since v1.214.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.vpc.VpcFunctions;
     * import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
     * import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
     * import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
     * import com.pulumi.alicloud.ecs.SecurityGroup;
     * import com.pulumi.alicloud.ecs.SecurityGroupArgs;
     * import com.pulumi.alicloud.arms.Prometheus;
     * import com.pulumi.alicloud.arms.PrometheusArgs;
     * import com.pulumi.alicloud.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetPrometheusArgs;
     * 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("tf-example");
     *         final var default = VpcFunctions.getNetworks(GetNetworksArgs.builder()
     *             .nameRegex("default-NODELETING")
     *             .build());
     * 
     *         final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         final var defaultGetResourceGroups = ResourcemanagerFunctions.getResourceGroups();
     * 
     *         var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         var defaultPrometheus = new Prometheus("defaultPrometheus", PrometheusArgs.builder()
     *             .clusterType("ecs")
     *             .grafanaInstanceId("free")
     *             .vpcId(default_.ids()[0])
     *             .vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
     *             .securityGroupId(defaultSecurityGroup.id())
     *             .clusterName(String.format("%s-%s", name,default_.ids()[0]))
     *             .resourceGroupId(defaultGetResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[1].id()))
     *             .tags(Map.ofEntries(
     *                 Map.entry("Created", "TF"),
     *                 Map.entry("For", "Prometheus")
     *             ))
     *             .build());
     * 
     *         final var nameRegex = ArmsFunctions.getPrometheus(GetPrometheusArgs.builder()
     *             .nameRegex(defaultPrometheus.clusterName())
     *             .build());
     * 
     *         ctx.export("armsPrometheusId", nameRegex.applyValue(getPrometheusResult -> getPrometheusResult).applyValue(nameRegex -> nameRegex.applyValue(getPrometheusResult -> getPrometheusResult.prometheis()[0].id())));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getPrometheusPlain() { return getPrometheusPlain(GetPrometheusPlainArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Arms Prometheus of the current Alibaba Cloud user. * * > **NOTE:** Available since v1.214.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.vpc.VpcFunctions;
     * import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
     * import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
     * import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
     * import com.pulumi.alicloud.ecs.SecurityGroup;
     * import com.pulumi.alicloud.ecs.SecurityGroupArgs;
     * import com.pulumi.alicloud.arms.Prometheus;
     * import com.pulumi.alicloud.arms.PrometheusArgs;
     * import com.pulumi.alicloud.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetPrometheusArgs;
     * 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("tf-example");
     *         final var default = VpcFunctions.getNetworks(GetNetworksArgs.builder()
     *             .nameRegex("default-NODELETING")
     *             .build());
     * 
     *         final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         final var defaultGetResourceGroups = ResourcemanagerFunctions.getResourceGroups();
     * 
     *         var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         var defaultPrometheus = new Prometheus("defaultPrometheus", PrometheusArgs.builder()
     *             .clusterType("ecs")
     *             .grafanaInstanceId("free")
     *             .vpcId(default_.ids()[0])
     *             .vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
     *             .securityGroupId(defaultSecurityGroup.id())
     *             .clusterName(String.format("%s-%s", name,default_.ids()[0]))
     *             .resourceGroupId(defaultGetResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[1].id()))
     *             .tags(Map.ofEntries(
     *                 Map.entry("Created", "TF"),
     *                 Map.entry("For", "Prometheus")
     *             ))
     *             .build());
     * 
     *         final var nameRegex = ArmsFunctions.getPrometheus(GetPrometheusArgs.builder()
     *             .nameRegex(defaultPrometheus.clusterName())
     *             .build());
     * 
     *         ctx.export("armsPrometheusId", nameRegex.applyValue(getPrometheusResult -> getPrometheusResult).applyValue(nameRegex -> nameRegex.applyValue(getPrometheusResult -> getPrometheusResult.prometheis()[0].id())));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getPrometheus(GetPrometheusArgs args) { return getPrometheus(args, InvokeOptions.Empty); } /** * This data source provides the Arms Prometheus of the current Alibaba Cloud user. * * > **NOTE:** Available since v1.214.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.vpc.VpcFunctions;
     * import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
     * import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
     * import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
     * import com.pulumi.alicloud.ecs.SecurityGroup;
     * import com.pulumi.alicloud.ecs.SecurityGroupArgs;
     * import com.pulumi.alicloud.arms.Prometheus;
     * import com.pulumi.alicloud.arms.PrometheusArgs;
     * import com.pulumi.alicloud.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetPrometheusArgs;
     * 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("tf-example");
     *         final var default = VpcFunctions.getNetworks(GetNetworksArgs.builder()
     *             .nameRegex("default-NODELETING")
     *             .build());
     * 
     *         final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         final var defaultGetResourceGroups = ResourcemanagerFunctions.getResourceGroups();
     * 
     *         var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         var defaultPrometheus = new Prometheus("defaultPrometheus", PrometheusArgs.builder()
     *             .clusterType("ecs")
     *             .grafanaInstanceId("free")
     *             .vpcId(default_.ids()[0])
     *             .vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
     *             .securityGroupId(defaultSecurityGroup.id())
     *             .clusterName(String.format("%s-%s", name,default_.ids()[0]))
     *             .resourceGroupId(defaultGetResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[1].id()))
     *             .tags(Map.ofEntries(
     *                 Map.entry("Created", "TF"),
     *                 Map.entry("For", "Prometheus")
     *             ))
     *             .build());
     * 
     *         final var nameRegex = ArmsFunctions.getPrometheus(GetPrometheusArgs.builder()
     *             .nameRegex(defaultPrometheus.clusterName())
     *             .build());
     * 
     *         ctx.export("armsPrometheusId", nameRegex.applyValue(getPrometheusResult -> getPrometheusResult).applyValue(nameRegex -> nameRegex.applyValue(getPrometheusResult -> getPrometheusResult.prometheis()[0].id())));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getPrometheusPlain(GetPrometheusPlainArgs args) { return getPrometheusPlain(args, InvokeOptions.Empty); } /** * This data source provides the Arms Prometheus of the current Alibaba Cloud user. * * > **NOTE:** Available since v1.214.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.vpc.VpcFunctions;
     * import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
     * import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
     * import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
     * import com.pulumi.alicloud.ecs.SecurityGroup;
     * import com.pulumi.alicloud.ecs.SecurityGroupArgs;
     * import com.pulumi.alicloud.arms.Prometheus;
     * import com.pulumi.alicloud.arms.PrometheusArgs;
     * import com.pulumi.alicloud.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetPrometheusArgs;
     * 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("tf-example");
     *         final var default = VpcFunctions.getNetworks(GetNetworksArgs.builder()
     *             .nameRegex("default-NODELETING")
     *             .build());
     * 
     *         final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         final var defaultGetResourceGroups = ResourcemanagerFunctions.getResourceGroups();
     * 
     *         var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         var defaultPrometheus = new Prometheus("defaultPrometheus", PrometheusArgs.builder()
     *             .clusterType("ecs")
     *             .grafanaInstanceId("free")
     *             .vpcId(default_.ids()[0])
     *             .vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
     *             .securityGroupId(defaultSecurityGroup.id())
     *             .clusterName(String.format("%s-%s", name,default_.ids()[0]))
     *             .resourceGroupId(defaultGetResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[1].id()))
     *             .tags(Map.ofEntries(
     *                 Map.entry("Created", "TF"),
     *                 Map.entry("For", "Prometheus")
     *             ))
     *             .build());
     * 
     *         final var nameRegex = ArmsFunctions.getPrometheus(GetPrometheusArgs.builder()
     *             .nameRegex(defaultPrometheus.clusterName())
     *             .build());
     * 
     *         ctx.export("armsPrometheusId", nameRegex.applyValue(getPrometheusResult -> getPrometheusResult).applyValue(nameRegex -> nameRegex.applyValue(getPrometheusResult -> getPrometheusResult.prometheis()[0].id())));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getPrometheus(GetPrometheusArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:arms/getPrometheus:getPrometheus", TypeShape.of(GetPrometheusResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Arms Prometheus of the current Alibaba Cloud user. * * > **NOTE:** Available since v1.214.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.vpc.VpcFunctions;
     * import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
     * import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
     * import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
     * import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
     * import com.pulumi.alicloud.ecs.SecurityGroup;
     * import com.pulumi.alicloud.ecs.SecurityGroupArgs;
     * import com.pulumi.alicloud.arms.Prometheus;
     * import com.pulumi.alicloud.arms.PrometheusArgs;
     * import com.pulumi.alicloud.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetPrometheusArgs;
     * 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("tf-example");
     *         final var default = VpcFunctions.getNetworks(GetNetworksArgs.builder()
     *             .nameRegex("default-NODELETING")
     *             .build());
     * 
     *         final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         final var defaultGetResourceGroups = ResourcemanagerFunctions.getResourceGroups();
     * 
     *         var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
     *             .vpcId(default_.ids()[0])
     *             .build());
     * 
     *         var defaultPrometheus = new Prometheus("defaultPrometheus", PrometheusArgs.builder()
     *             .clusterType("ecs")
     *             .grafanaInstanceId("free")
     *             .vpcId(default_.ids()[0])
     *             .vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
     *             .securityGroupId(defaultSecurityGroup.id())
     *             .clusterName(String.format("%s-%s", name,default_.ids()[0]))
     *             .resourceGroupId(defaultGetResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[1].id()))
     *             .tags(Map.ofEntries(
     *                 Map.entry("Created", "TF"),
     *                 Map.entry("For", "Prometheus")
     *             ))
     *             .build());
     * 
     *         final var nameRegex = ArmsFunctions.getPrometheus(GetPrometheusArgs.builder()
     *             .nameRegex(defaultPrometheus.clusterName())
     *             .build());
     * 
     *         ctx.export("armsPrometheusId", nameRegex.applyValue(getPrometheusResult -> getPrometheusResult).applyValue(nameRegex -> nameRegex.applyValue(getPrometheusResult -> getPrometheusResult.prometheis()[0].id())));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getPrometheusPlain(GetPrometheusPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:arms/getPrometheus:getPrometheus", TypeShape.of(GetPrometheusResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Arms Prometheus Alert Rules of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.136.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetPrometheusAlertRulesArgs;
     * 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 ids = ArmsFunctions.getPrometheusAlertRules(GetPrometheusAlertRulesArgs.builder()
     *             .clusterId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("armsPrometheusAlertRuleId1", ids.applyValue(getPrometheusAlertRulesResult -> getPrometheusAlertRulesResult.rules()[0].id()));
     *         final var nameRegex = ArmsFunctions.getPrometheusAlertRules(GetPrometheusAlertRulesArgs.builder()
     *             .clusterId("example_value")
     *             .nameRegex("^my-PrometheusAlertRule")
     *             .build());
     * 
     *         ctx.export("armsPrometheusAlertRuleId2", nameRegex.applyValue(getPrometheusAlertRulesResult -> getPrometheusAlertRulesResult.rules()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getPrometheusAlertRules(GetPrometheusAlertRulesArgs args) { return getPrometheusAlertRules(args, InvokeOptions.Empty); } /** * This data source provides the Arms Prometheus Alert Rules of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.136.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetPrometheusAlertRulesArgs;
     * 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 ids = ArmsFunctions.getPrometheusAlertRules(GetPrometheusAlertRulesArgs.builder()
     *             .clusterId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("armsPrometheusAlertRuleId1", ids.applyValue(getPrometheusAlertRulesResult -> getPrometheusAlertRulesResult.rules()[0].id()));
     *         final var nameRegex = ArmsFunctions.getPrometheusAlertRules(GetPrometheusAlertRulesArgs.builder()
     *             .clusterId("example_value")
     *             .nameRegex("^my-PrometheusAlertRule")
     *             .build());
     * 
     *         ctx.export("armsPrometheusAlertRuleId2", nameRegex.applyValue(getPrometheusAlertRulesResult -> getPrometheusAlertRulesResult.rules()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getPrometheusAlertRulesPlain(GetPrometheusAlertRulesPlainArgs args) { return getPrometheusAlertRulesPlain(args, InvokeOptions.Empty); } /** * This data source provides the Arms Prometheus Alert Rules of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.136.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetPrometheusAlertRulesArgs;
     * 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 ids = ArmsFunctions.getPrometheusAlertRules(GetPrometheusAlertRulesArgs.builder()
     *             .clusterId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("armsPrometheusAlertRuleId1", ids.applyValue(getPrometheusAlertRulesResult -> getPrometheusAlertRulesResult.rules()[0].id()));
     *         final var nameRegex = ArmsFunctions.getPrometheusAlertRules(GetPrometheusAlertRulesArgs.builder()
     *             .clusterId("example_value")
     *             .nameRegex("^my-PrometheusAlertRule")
     *             .build());
     * 
     *         ctx.export("armsPrometheusAlertRuleId2", nameRegex.applyValue(getPrometheusAlertRulesResult -> getPrometheusAlertRulesResult.rules()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getPrometheusAlertRules(GetPrometheusAlertRulesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:arms/getPrometheusAlertRules:getPrometheusAlertRules", TypeShape.of(GetPrometheusAlertRulesResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Arms Prometheus Alert Rules of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.136.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetPrometheusAlertRulesArgs;
     * 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 ids = ArmsFunctions.getPrometheusAlertRules(GetPrometheusAlertRulesArgs.builder()
     *             .clusterId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("armsPrometheusAlertRuleId1", ids.applyValue(getPrometheusAlertRulesResult -> getPrometheusAlertRulesResult.rules()[0].id()));
     *         final var nameRegex = ArmsFunctions.getPrometheusAlertRules(GetPrometheusAlertRulesArgs.builder()
     *             .clusterId("example_value")
     *             .nameRegex("^my-PrometheusAlertRule")
     *             .build());
     * 
     *         ctx.export("armsPrometheusAlertRuleId2", nameRegex.applyValue(getPrometheusAlertRulesResult -> getPrometheusAlertRulesResult.rules()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getPrometheusAlertRulesPlain(GetPrometheusAlertRulesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:arms/getPrometheusAlertRules:getPrometheusAlertRules", TypeShape.of(GetPrometheusAlertRulesResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Arms Prometheus Monitorings of the current Alibaba Cloud user. * * > **NOTE:** Available since v1.210.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetPrometheusMonitoringsArgs;
     * 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 ids = ArmsFunctions.getPrometheusMonitorings(GetPrometheusMonitoringsArgs.builder()
     *             .clusterId("your_cluster_id")
     *             .ids("example_id")
     *             .build());
     * 
     *         ctx.export("armsPrometheusMonitoringsId1", ids.applyValue(getPrometheusMonitoringsResult -> getPrometheusMonitoringsResult.prometheusMonitorings()[0].id()));
     *         final var nameRegex = ArmsFunctions.getPrometheusMonitorings(GetPrometheusMonitoringsArgs.builder()
     *             .clusterId("your_cluster_id")
     *             .nameRegex("tf-example")
     *             .build());
     * 
     *         ctx.export("armsPrometheusMonitoringsId2", nameRegex.applyValue(getPrometheusMonitoringsResult -> getPrometheusMonitoringsResult.prometheusMonitorings()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getPrometheusMonitorings(GetPrometheusMonitoringsArgs args) { return getPrometheusMonitorings(args, InvokeOptions.Empty); } /** * This data source provides the Arms Prometheus Monitorings of the current Alibaba Cloud user. * * > **NOTE:** Available since v1.210.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetPrometheusMonitoringsArgs;
     * 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 ids = ArmsFunctions.getPrometheusMonitorings(GetPrometheusMonitoringsArgs.builder()
     *             .clusterId("your_cluster_id")
     *             .ids("example_id")
     *             .build());
     * 
     *         ctx.export("armsPrometheusMonitoringsId1", ids.applyValue(getPrometheusMonitoringsResult -> getPrometheusMonitoringsResult.prometheusMonitorings()[0].id()));
     *         final var nameRegex = ArmsFunctions.getPrometheusMonitorings(GetPrometheusMonitoringsArgs.builder()
     *             .clusterId("your_cluster_id")
     *             .nameRegex("tf-example")
     *             .build());
     * 
     *         ctx.export("armsPrometheusMonitoringsId2", nameRegex.applyValue(getPrometheusMonitoringsResult -> getPrometheusMonitoringsResult.prometheusMonitorings()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getPrometheusMonitoringsPlain(GetPrometheusMonitoringsPlainArgs args) { return getPrometheusMonitoringsPlain(args, InvokeOptions.Empty); } /** * This data source provides the Arms Prometheus Monitorings of the current Alibaba Cloud user. * * > **NOTE:** Available since v1.210.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetPrometheusMonitoringsArgs;
     * 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 ids = ArmsFunctions.getPrometheusMonitorings(GetPrometheusMonitoringsArgs.builder()
     *             .clusterId("your_cluster_id")
     *             .ids("example_id")
     *             .build());
     * 
     *         ctx.export("armsPrometheusMonitoringsId1", ids.applyValue(getPrometheusMonitoringsResult -> getPrometheusMonitoringsResult.prometheusMonitorings()[0].id()));
     *         final var nameRegex = ArmsFunctions.getPrometheusMonitorings(GetPrometheusMonitoringsArgs.builder()
     *             .clusterId("your_cluster_id")
     *             .nameRegex("tf-example")
     *             .build());
     * 
     *         ctx.export("armsPrometheusMonitoringsId2", nameRegex.applyValue(getPrometheusMonitoringsResult -> getPrometheusMonitoringsResult.prometheusMonitorings()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getPrometheusMonitorings(GetPrometheusMonitoringsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:arms/getPrometheusMonitorings:getPrometheusMonitorings", TypeShape.of(GetPrometheusMonitoringsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Arms Prometheus Monitorings of the current Alibaba Cloud user. * * > **NOTE:** Available since v1.210.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetPrometheusMonitoringsArgs;
     * 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 ids = ArmsFunctions.getPrometheusMonitorings(GetPrometheusMonitoringsArgs.builder()
     *             .clusterId("your_cluster_id")
     *             .ids("example_id")
     *             .build());
     * 
     *         ctx.export("armsPrometheusMonitoringsId1", ids.applyValue(getPrometheusMonitoringsResult -> getPrometheusMonitoringsResult.prometheusMonitorings()[0].id()));
     *         final var nameRegex = ArmsFunctions.getPrometheusMonitorings(GetPrometheusMonitoringsArgs.builder()
     *             .clusterId("your_cluster_id")
     *             .nameRegex("tf-example")
     *             .build());
     * 
     *         ctx.export("armsPrometheusMonitoringsId2", nameRegex.applyValue(getPrometheusMonitoringsResult -> getPrometheusMonitoringsResult.prometheusMonitorings()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getPrometheusMonitoringsPlain(GetPrometheusMonitoringsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:arms/getPrometheusMonitorings:getPrometheusMonitorings", TypeShape.of(GetPrometheusMonitoringsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Arms Remote Writes of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.204.0+. * * > **NOTE:** deprecated since v1.228.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetRemoteWritesArgs;
     * 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 ids = ArmsFunctions.getRemoteWrites(GetRemoteWritesArgs.builder()
     *             .ids("example_id")
     *             .clusterId("your_cluster_id")
     *             .build());
     * 
     *         ctx.export("armsRemoteWritesId1", ids.applyValue(getRemoteWritesResult -> getRemoteWritesResult.remoteWrites()[0].id()));
     *         final var nameRegex = ArmsFunctions.getRemoteWrites(GetRemoteWritesArgs.builder()
     *             .nameRegex("tf-example")
     *             .clusterId("your_cluster_id")
     *             .build());
     * 
     *         ctx.export("armsRemoteWritesId2", nameRegex.applyValue(getRemoteWritesResult -> getRemoteWritesResult.remoteWrites()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getRemoteWrites(GetRemoteWritesArgs args) { return getRemoteWrites(args, InvokeOptions.Empty); } /** * This data source provides the Arms Remote Writes of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.204.0+. * * > **NOTE:** deprecated since v1.228.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetRemoteWritesArgs;
     * 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 ids = ArmsFunctions.getRemoteWrites(GetRemoteWritesArgs.builder()
     *             .ids("example_id")
     *             .clusterId("your_cluster_id")
     *             .build());
     * 
     *         ctx.export("armsRemoteWritesId1", ids.applyValue(getRemoteWritesResult -> getRemoteWritesResult.remoteWrites()[0].id()));
     *         final var nameRegex = ArmsFunctions.getRemoteWrites(GetRemoteWritesArgs.builder()
     *             .nameRegex("tf-example")
     *             .clusterId("your_cluster_id")
     *             .build());
     * 
     *         ctx.export("armsRemoteWritesId2", nameRegex.applyValue(getRemoteWritesResult -> getRemoteWritesResult.remoteWrites()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getRemoteWritesPlain(GetRemoteWritesPlainArgs args) { return getRemoteWritesPlain(args, InvokeOptions.Empty); } /** * This data source provides the Arms Remote Writes of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.204.0+. * * > **NOTE:** deprecated since v1.228.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetRemoteWritesArgs;
     * 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 ids = ArmsFunctions.getRemoteWrites(GetRemoteWritesArgs.builder()
     *             .ids("example_id")
     *             .clusterId("your_cluster_id")
     *             .build());
     * 
     *         ctx.export("armsRemoteWritesId1", ids.applyValue(getRemoteWritesResult -> getRemoteWritesResult.remoteWrites()[0].id()));
     *         final var nameRegex = ArmsFunctions.getRemoteWrites(GetRemoteWritesArgs.builder()
     *             .nameRegex("tf-example")
     *             .clusterId("your_cluster_id")
     *             .build());
     * 
     *         ctx.export("armsRemoteWritesId2", nameRegex.applyValue(getRemoteWritesResult -> getRemoteWritesResult.remoteWrites()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getRemoteWrites(GetRemoteWritesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:arms/getRemoteWrites:getRemoteWrites", TypeShape.of(GetRemoteWritesResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Arms Remote Writes of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.204.0+. * * > **NOTE:** deprecated since v1.228.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.arms.ArmsFunctions;
     * import com.pulumi.alicloud.arms.inputs.GetRemoteWritesArgs;
     * 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 ids = ArmsFunctions.getRemoteWrites(GetRemoteWritesArgs.builder()
     *             .ids("example_id")
     *             .clusterId("your_cluster_id")
     *             .build());
     * 
     *         ctx.export("armsRemoteWritesId1", ids.applyValue(getRemoteWritesResult -> getRemoteWritesResult.remoteWrites()[0].id()));
     *         final var nameRegex = ArmsFunctions.getRemoteWrites(GetRemoteWritesArgs.builder()
     *             .nameRegex("tf-example")
     *             .clusterId("your_cluster_id")
     *             .build());
     * 
     *         ctx.export("armsRemoteWritesId2", nameRegex.applyValue(getRemoteWritesResult -> getRemoteWritesResult.remoteWrites()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getRemoteWritesPlain(GetRemoteWritesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:arms/getRemoteWrites:getRemoteWrites", TypeShape.of(GetRemoteWritesResult.class), args, Utilities.withVersion(options)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy