Package com.pulumi.alicloud.imp
Class ImpFunctions
- java.lang.Object
-
- com.pulumi.alicloud.imp.ImpFunctions
-
public final class ImpFunctions extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ImpFunctions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.pulumi.core.Output<GetAppTemplatesResult>
getAppTemplates()
This data source provides the Imp App Templates of the current Alibaba Cloud user.static com.pulumi.core.Output<GetAppTemplatesResult>
getAppTemplates(GetAppTemplatesArgs args)
This data source provides the Imp App Templates of the current Alibaba Cloud user.static com.pulumi.core.Output<GetAppTemplatesResult>
getAppTemplates(GetAppTemplatesArgs args, com.pulumi.deployment.InvokeOptions options)
This data source provides the Imp App Templates of the current Alibaba Cloud user.static java.util.concurrent.CompletableFuture<GetAppTemplatesResult>
getAppTemplatesPlain()
This data source provides the Imp App Templates of the current Alibaba Cloud user.static java.util.concurrent.CompletableFuture<GetAppTemplatesResult>
getAppTemplatesPlain(GetAppTemplatesPlainArgs args)
This data source provides the Imp App Templates of the current Alibaba Cloud user.static java.util.concurrent.CompletableFuture<GetAppTemplatesResult>
getAppTemplatesPlain(GetAppTemplatesPlainArgs args, com.pulumi.deployment.InvokeOptions options)
This data source provides the Imp App Templates of the current Alibaba Cloud user.
-
-
-
Method Detail
-
getAppTemplates
public static com.pulumi.core.Output<GetAppTemplatesResult> getAppTemplates()
This data source provides the Imp App Templates of the current Alibaba Cloud user. > **NOTE:** Available in v1.137.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.imp.ImpFunctions; import com.pulumi.alicloud.imp.inputs.GetAppTemplatesArgs; 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 = ImpFunctions.getAppTemplates(); ctx.export("impAppTemplateId1", ids.applyValue(getAppTemplatesResult -> getAppTemplatesResult.templates()[0].id())); final var nameRegex = ImpFunctions.getAppTemplates(GetAppTemplatesArgs.builder() .nameRegex("^my_AppTemplate") .build()); ctx.export("impAppTemplateId2", nameRegex.applyValue(getAppTemplatesResult -> getAppTemplatesResult.templates()[0].id())); } } ```
-
getAppTemplatesPlain
public static java.util.concurrent.CompletableFuture<GetAppTemplatesResult> getAppTemplatesPlain()
This data source provides the Imp App Templates of the current Alibaba Cloud user. > **NOTE:** Available in v1.137.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.imp.ImpFunctions; import com.pulumi.alicloud.imp.inputs.GetAppTemplatesArgs; 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 = ImpFunctions.getAppTemplates(); ctx.export("impAppTemplateId1", ids.applyValue(getAppTemplatesResult -> getAppTemplatesResult.templates()[0].id())); final var nameRegex = ImpFunctions.getAppTemplates(GetAppTemplatesArgs.builder() .nameRegex("^my_AppTemplate") .build()); ctx.export("impAppTemplateId2", nameRegex.applyValue(getAppTemplatesResult -> getAppTemplatesResult.templates()[0].id())); } } ```
-
getAppTemplates
public static com.pulumi.core.Output<GetAppTemplatesResult> getAppTemplates(GetAppTemplatesArgs args)
This data source provides the Imp App Templates of the current Alibaba Cloud user. > **NOTE:** Available in v1.137.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.imp.ImpFunctions; import com.pulumi.alicloud.imp.inputs.GetAppTemplatesArgs; 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 = ImpFunctions.getAppTemplates(); ctx.export("impAppTemplateId1", ids.applyValue(getAppTemplatesResult -> getAppTemplatesResult.templates()[0].id())); final var nameRegex = ImpFunctions.getAppTemplates(GetAppTemplatesArgs.builder() .nameRegex("^my_AppTemplate") .build()); ctx.export("impAppTemplateId2", nameRegex.applyValue(getAppTemplatesResult -> getAppTemplatesResult.templates()[0].id())); } } ```
-
getAppTemplatesPlain
public static java.util.concurrent.CompletableFuture<GetAppTemplatesResult> getAppTemplatesPlain(GetAppTemplatesPlainArgs args)
This data source provides the Imp App Templates of the current Alibaba Cloud user. > **NOTE:** Available in v1.137.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.imp.ImpFunctions; import com.pulumi.alicloud.imp.inputs.GetAppTemplatesArgs; 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 = ImpFunctions.getAppTemplates(); ctx.export("impAppTemplateId1", ids.applyValue(getAppTemplatesResult -> getAppTemplatesResult.templates()[0].id())); final var nameRegex = ImpFunctions.getAppTemplates(GetAppTemplatesArgs.builder() .nameRegex("^my_AppTemplate") .build()); ctx.export("impAppTemplateId2", nameRegex.applyValue(getAppTemplatesResult -> getAppTemplatesResult.templates()[0].id())); } } ```
-
getAppTemplates
public static com.pulumi.core.Output<GetAppTemplatesResult> getAppTemplates(GetAppTemplatesArgs args, com.pulumi.deployment.InvokeOptions options)
This data source provides the Imp App Templates of the current Alibaba Cloud user. > **NOTE:** Available in v1.137.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.imp.ImpFunctions; import com.pulumi.alicloud.imp.inputs.GetAppTemplatesArgs; 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 = ImpFunctions.getAppTemplates(); ctx.export("impAppTemplateId1", ids.applyValue(getAppTemplatesResult -> getAppTemplatesResult.templates()[0].id())); final var nameRegex = ImpFunctions.getAppTemplates(GetAppTemplatesArgs.builder() .nameRegex("^my_AppTemplate") .build()); ctx.export("impAppTemplateId2", nameRegex.applyValue(getAppTemplatesResult -> getAppTemplatesResult.templates()[0].id())); } } ```
-
getAppTemplatesPlain
public static java.util.concurrent.CompletableFuture<GetAppTemplatesResult> getAppTemplatesPlain(GetAppTemplatesPlainArgs args, com.pulumi.deployment.InvokeOptions options)
This data source provides the Imp App Templates of the current Alibaba Cloud user. > **NOTE:** Available in v1.137.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.imp.ImpFunctions; import com.pulumi.alicloud.imp.inputs.GetAppTemplatesArgs; 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 = ImpFunctions.getAppTemplates(); ctx.export("impAppTemplateId1", ids.applyValue(getAppTemplatesResult -> getAppTemplatesResult.templates()[0].id())); final var nameRegex = ImpFunctions.getAppTemplates(GetAppTemplatesArgs.builder() .nameRegex("^my_AppTemplate") .build()); ctx.export("impAppTemplateId2", nameRegex.applyValue(getAppTemplatesResult -> getAppTemplatesResult.templates()[0].id())); } } ```
-
-