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

com.pulumi.alicloud.tsdb.TsdbFunctions 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.tsdb;

import com.pulumi.alicloud.Utilities;
import com.pulumi.alicloud.tsdb.inputs.GetInstancesArgs;
import com.pulumi.alicloud.tsdb.inputs.GetInstancesPlainArgs;
import com.pulumi.alicloud.tsdb.inputs.GetZonesArgs;
import com.pulumi.alicloud.tsdb.inputs.GetZonesPlainArgs;
import com.pulumi.alicloud.tsdb.outputs.GetInstancesResult;
import com.pulumi.alicloud.tsdb.outputs.GetZonesResult;
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 TsdbFunctions {
    /**
     * This data source provides the Time Series Database (TSDB) Instances of the current Alibaba Cloud user.
     * 
     * > **NOTE:** Available in v1.112.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.tsdb.TsdbFunctions;
     * import com.pulumi.alicloud.tsdb.inputs.GetInstancesArgs;
     * 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 example = TsdbFunctions.getInstances(GetInstancesArgs.builder()
     *             .ids("example_value")
     *             .build());
     * 
     *         ctx.export("firstTsdbInstanceId", example.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getInstances() { return getInstances(GetInstancesArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Time Series Database (TSDB) Instances of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.112.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.tsdb.TsdbFunctions;
     * import com.pulumi.alicloud.tsdb.inputs.GetInstancesArgs;
     * 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 example = TsdbFunctions.getInstances(GetInstancesArgs.builder()
     *             .ids("example_value")
     *             .build());
     * 
     *         ctx.export("firstTsdbInstanceId", example.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getInstancesPlain() { return getInstancesPlain(GetInstancesPlainArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Time Series Database (TSDB) Instances of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.112.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.tsdb.TsdbFunctions;
     * import com.pulumi.alicloud.tsdb.inputs.GetInstancesArgs;
     * 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 example = TsdbFunctions.getInstances(GetInstancesArgs.builder()
     *             .ids("example_value")
     *             .build());
     * 
     *         ctx.export("firstTsdbInstanceId", example.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getInstances(GetInstancesArgs args) { return getInstances(args, InvokeOptions.Empty); } /** * This data source provides the Time Series Database (TSDB) Instances of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.112.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.tsdb.TsdbFunctions;
     * import com.pulumi.alicloud.tsdb.inputs.GetInstancesArgs;
     * 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 example = TsdbFunctions.getInstances(GetInstancesArgs.builder()
     *             .ids("example_value")
     *             .build());
     * 
     *         ctx.export("firstTsdbInstanceId", example.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getInstancesPlain(GetInstancesPlainArgs args) { return getInstancesPlain(args, InvokeOptions.Empty); } /** * This data source provides the Time Series Database (TSDB) Instances of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.112.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.tsdb.TsdbFunctions;
     * import com.pulumi.alicloud.tsdb.inputs.GetInstancesArgs;
     * 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 example = TsdbFunctions.getInstances(GetInstancesArgs.builder()
     *             .ids("example_value")
     *             .build());
     * 
     *         ctx.export("firstTsdbInstanceId", example.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getInstances(GetInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:tsdb/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Time Series Database (TSDB) Instances of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.112.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.tsdb.TsdbFunctions;
     * import com.pulumi.alicloud.tsdb.inputs.GetInstancesArgs;
     * 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 example = TsdbFunctions.getInstances(GetInstancesArgs.builder()
     *             .ids("example_value")
     *             .build());
     * 
     *         ctx.export("firstTsdbInstanceId", example.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getInstancesPlain(GetInstancesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:tsdb/getInstances:getInstances", TypeShape.of(GetInstancesResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the available zones with the Time Series Database (TSDB) Instance of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.112.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.tsdb.TsdbFunctions;
     * import com.pulumi.alicloud.tsdb.inputs.GetZonesArgs;
     * 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 example = TsdbFunctions.getZones();
     * 
     *         ctx.export("firstTsdbZonesId", example.applyValue(getZonesResult -> getZonesResult.zones()[0].zoneId()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getZones() { return getZones(GetZonesArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the available zones with the Time Series Database (TSDB) Instance of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.112.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.tsdb.TsdbFunctions;
     * import com.pulumi.alicloud.tsdb.inputs.GetZonesArgs;
     * 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 example = TsdbFunctions.getZones();
     * 
     *         ctx.export("firstTsdbZonesId", example.applyValue(getZonesResult -> getZonesResult.zones()[0].zoneId()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getZonesPlain() { return getZonesPlain(GetZonesPlainArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the available zones with the Time Series Database (TSDB) Instance of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.112.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.tsdb.TsdbFunctions;
     * import com.pulumi.alicloud.tsdb.inputs.GetZonesArgs;
     * 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 example = TsdbFunctions.getZones();
     * 
     *         ctx.export("firstTsdbZonesId", example.applyValue(getZonesResult -> getZonesResult.zones()[0].zoneId()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getZones(GetZonesArgs args) { return getZones(args, InvokeOptions.Empty); } /** * This data source provides the available zones with the Time Series Database (TSDB) Instance of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.112.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.tsdb.TsdbFunctions;
     * import com.pulumi.alicloud.tsdb.inputs.GetZonesArgs;
     * 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 example = TsdbFunctions.getZones();
     * 
     *         ctx.export("firstTsdbZonesId", example.applyValue(getZonesResult -> getZonesResult.zones()[0].zoneId()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getZonesPlain(GetZonesPlainArgs args) { return getZonesPlain(args, InvokeOptions.Empty); } /** * This data source provides the available zones with the Time Series Database (TSDB) Instance of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.112.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.tsdb.TsdbFunctions;
     * import com.pulumi.alicloud.tsdb.inputs.GetZonesArgs;
     * 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 example = TsdbFunctions.getZones();
     * 
     *         ctx.export("firstTsdbZonesId", example.applyValue(getZonesResult -> getZonesResult.zones()[0].zoneId()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:tsdb/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the available zones with the Time Series Database (TSDB) Instance of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.112.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.tsdb.TsdbFunctions;
     * import com.pulumi.alicloud.tsdb.inputs.GetZonesArgs;
     * 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 example = TsdbFunctions.getZones();
     * 
     *         ctx.export("firstTsdbZonesId", example.applyValue(getZonesResult -> getZonesResult.zones()[0].zoneId()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getZonesPlain(GetZonesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:tsdb/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy