Class ComputeFunctions


  • public final class ComputeFunctions
    extends java.lang.Object
    • Constructor Detail

      • ComputeFunctions

        public ComputeFunctions()
    • Method Detail

      • getNestServiceInstances

        public static com.pulumi.core.Output<GetNestServiceInstancesResult> getNestServiceInstances()
        This data source provides the Compute Nest Service Instances of the current Alibaba Cloud user. > **NOTE:** Available in v1.205.0+. ## Example Usage Basic Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.compute.ComputeFunctions; import com.pulumi.alicloud.compute.inputs.GetNestServiceInstancesArgs; 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 = ComputeFunctions.getNestServiceInstances(GetNestServiceInstancesArgs.builder() .ids("example_id") .build()); ctx.export("armsPrometheisId1", ids.applyValue(getNestServiceInstancesResult -> getNestServiceInstancesResult.serviceInstances()[0].id())); final var nameRegex = ComputeFunctions.getNestServiceInstances(GetNestServiceInstancesArgs.builder() .nameRegex("tf-example") .build()); ctx.export("armsPrometheisId2", nameRegex.applyValue(getNestServiceInstancesResult -> getNestServiceInstancesResult.serviceInstances()[0].id())); } } ```
      • getNestServiceInstancesPlain

        public static java.util.concurrent.CompletableFuture<GetNestServiceInstancesResult> getNestServiceInstancesPlain()
        This data source provides the Compute Nest Service Instances of the current Alibaba Cloud user. > **NOTE:** Available in v1.205.0+. ## Example Usage Basic Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.compute.ComputeFunctions; import com.pulumi.alicloud.compute.inputs.GetNestServiceInstancesArgs; 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 = ComputeFunctions.getNestServiceInstances(GetNestServiceInstancesArgs.builder() .ids("example_id") .build()); ctx.export("armsPrometheisId1", ids.applyValue(getNestServiceInstancesResult -> getNestServiceInstancesResult.serviceInstances()[0].id())); final var nameRegex = ComputeFunctions.getNestServiceInstances(GetNestServiceInstancesArgs.builder() .nameRegex("tf-example") .build()); ctx.export("armsPrometheisId2", nameRegex.applyValue(getNestServiceInstancesResult -> getNestServiceInstancesResult.serviceInstances()[0].id())); } } ```
      • getNestServiceInstances

        public static com.pulumi.core.Output<GetNestServiceInstancesResult> getNestServiceInstances​(GetNestServiceInstancesArgs args)
        This data source provides the Compute Nest Service Instances of the current Alibaba Cloud user. > **NOTE:** Available in v1.205.0+. ## Example Usage Basic Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.compute.ComputeFunctions; import com.pulumi.alicloud.compute.inputs.GetNestServiceInstancesArgs; 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 = ComputeFunctions.getNestServiceInstances(GetNestServiceInstancesArgs.builder() .ids("example_id") .build()); ctx.export("armsPrometheisId1", ids.applyValue(getNestServiceInstancesResult -> getNestServiceInstancesResult.serviceInstances()[0].id())); final var nameRegex = ComputeFunctions.getNestServiceInstances(GetNestServiceInstancesArgs.builder() .nameRegex("tf-example") .build()); ctx.export("armsPrometheisId2", nameRegex.applyValue(getNestServiceInstancesResult -> getNestServiceInstancesResult.serviceInstances()[0].id())); } } ```
      • getNestServiceInstancesPlain

        public static java.util.concurrent.CompletableFuture<GetNestServiceInstancesResult> getNestServiceInstancesPlain​(GetNestServiceInstancesPlainArgs args)
        This data source provides the Compute Nest Service Instances of the current Alibaba Cloud user. > **NOTE:** Available in v1.205.0+. ## Example Usage Basic Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.compute.ComputeFunctions; import com.pulumi.alicloud.compute.inputs.GetNestServiceInstancesArgs; 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 = ComputeFunctions.getNestServiceInstances(GetNestServiceInstancesArgs.builder() .ids("example_id") .build()); ctx.export("armsPrometheisId1", ids.applyValue(getNestServiceInstancesResult -> getNestServiceInstancesResult.serviceInstances()[0].id())); final var nameRegex = ComputeFunctions.getNestServiceInstances(GetNestServiceInstancesArgs.builder() .nameRegex("tf-example") .build()); ctx.export("armsPrometheisId2", nameRegex.applyValue(getNestServiceInstancesResult -> getNestServiceInstancesResult.serviceInstances()[0].id())); } } ```
      • getNestServiceInstances

        public static com.pulumi.core.Output<GetNestServiceInstancesResult> getNestServiceInstances​(GetNestServiceInstancesArgs args,
                                                                                                    com.pulumi.deployment.InvokeOptions options)
        This data source provides the Compute Nest Service Instances of the current Alibaba Cloud user. > **NOTE:** Available in v1.205.0+. ## Example Usage Basic Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.compute.ComputeFunctions; import com.pulumi.alicloud.compute.inputs.GetNestServiceInstancesArgs; 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 = ComputeFunctions.getNestServiceInstances(GetNestServiceInstancesArgs.builder() .ids("example_id") .build()); ctx.export("armsPrometheisId1", ids.applyValue(getNestServiceInstancesResult -> getNestServiceInstancesResult.serviceInstances()[0].id())); final var nameRegex = ComputeFunctions.getNestServiceInstances(GetNestServiceInstancesArgs.builder() .nameRegex("tf-example") .build()); ctx.export("armsPrometheisId2", nameRegex.applyValue(getNestServiceInstancesResult -> getNestServiceInstancesResult.serviceInstances()[0].id())); } } ```
      • getNestServiceInstancesPlain

        public static java.util.concurrent.CompletableFuture<GetNestServiceInstancesResult> getNestServiceInstancesPlain​(GetNestServiceInstancesPlainArgs args,
                                                                                                                         com.pulumi.deployment.InvokeOptions options)
        This data source provides the Compute Nest Service Instances of the current Alibaba Cloud user. > **NOTE:** Available in v1.205.0+. ## Example Usage Basic Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.compute.ComputeFunctions; import com.pulumi.alicloud.compute.inputs.GetNestServiceInstancesArgs; 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 = ComputeFunctions.getNestServiceInstances(GetNestServiceInstancesArgs.builder() .ids("example_id") .build()); ctx.export("armsPrometheisId1", ids.applyValue(getNestServiceInstancesResult -> getNestServiceInstancesResult.serviceInstances()[0].id())); final var nameRegex = ComputeFunctions.getNestServiceInstances(GetNestServiceInstancesArgs.builder() .nameRegex("tf-example") .build()); ctx.export("armsPrometheisId2", nameRegex.applyValue(getNestServiceInstancesResult -> getNestServiceInstancesResult.serviceInstances()[0].id())); } } ```