com.pulumi.aws.appmesh.AppmeshFunctions Maven / Gradle / Ivy
// *** 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.aws.appmesh;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.appmesh.inputs.GetGatewayRouteArgs;
import com.pulumi.aws.appmesh.inputs.GetGatewayRoutePlainArgs;
import com.pulumi.aws.appmesh.inputs.GetMeshArgs;
import com.pulumi.aws.appmesh.inputs.GetMeshPlainArgs;
import com.pulumi.aws.appmesh.inputs.GetRouteArgs;
import com.pulumi.aws.appmesh.inputs.GetRoutePlainArgs;
import com.pulumi.aws.appmesh.inputs.GetVirtualGatewayArgs;
import com.pulumi.aws.appmesh.inputs.GetVirtualGatewayPlainArgs;
import com.pulumi.aws.appmesh.inputs.GetVirtualNodeArgs;
import com.pulumi.aws.appmesh.inputs.GetVirtualNodePlainArgs;
import com.pulumi.aws.appmesh.inputs.GetVirtualRouterArgs;
import com.pulumi.aws.appmesh.inputs.GetVirtualRouterPlainArgs;
import com.pulumi.aws.appmesh.inputs.GetVirtualServiceArgs;
import com.pulumi.aws.appmesh.inputs.GetVirtualServicePlainArgs;
import com.pulumi.aws.appmesh.outputs.GetGatewayRouteResult;
import com.pulumi.aws.appmesh.outputs.GetMeshResult;
import com.pulumi.aws.appmesh.outputs.GetRouteResult;
import com.pulumi.aws.appmesh.outputs.GetVirtualGatewayResult;
import com.pulumi.aws.appmesh.outputs.GetVirtualNodeResult;
import com.pulumi.aws.appmesh.outputs.GetVirtualRouterResult;
import com.pulumi.aws.appmesh.outputs.GetVirtualServiceResult;
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 AppmeshFunctions {
/**
* The App Mesh Gateway Route data source allows details of an App Mesh Gateway Route to be retrieved by its name, mesh_name, virtual_gateway_name, and optionally the mesh_owner.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetGatewayRouteArgs;
* 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 test = AppmeshFunctions.getGatewayRoute(GetGatewayRouteArgs.builder()
* .name("test-route")
* .meshName("test-mesh")
* .virtualGatewayName("test-gateway")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getGatewayRoute(GetGatewayRouteArgs args) {
return getGatewayRoute(args, InvokeOptions.Empty);
}
/**
* The App Mesh Gateway Route data source allows details of an App Mesh Gateway Route to be retrieved by its name, mesh_name, virtual_gateway_name, and optionally the mesh_owner.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetGatewayRouteArgs;
* 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 test = AppmeshFunctions.getGatewayRoute(GetGatewayRouteArgs.builder()
* .name("test-route")
* .meshName("test-mesh")
* .virtualGatewayName("test-gateway")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getGatewayRoutePlain(GetGatewayRoutePlainArgs args) {
return getGatewayRoutePlain(args, InvokeOptions.Empty);
}
/**
* The App Mesh Gateway Route data source allows details of an App Mesh Gateway Route to be retrieved by its name, mesh_name, virtual_gateway_name, and optionally the mesh_owner.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetGatewayRouteArgs;
* 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 test = AppmeshFunctions.getGatewayRoute(GetGatewayRouteArgs.builder()
* .name("test-route")
* .meshName("test-mesh")
* .virtualGatewayName("test-gateway")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getGatewayRoute(GetGatewayRouteArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:appmesh/getGatewayRoute:getGatewayRoute", TypeShape.of(GetGatewayRouteResult.class), args, Utilities.withVersion(options));
}
/**
* The App Mesh Gateway Route data source allows details of an App Mesh Gateway Route to be retrieved by its name, mesh_name, virtual_gateway_name, and optionally the mesh_owner.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetGatewayRouteArgs;
* 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 test = AppmeshFunctions.getGatewayRoute(GetGatewayRouteArgs.builder()
* .name("test-route")
* .meshName("test-mesh")
* .virtualGatewayName("test-gateway")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getGatewayRoutePlain(GetGatewayRoutePlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:appmesh/getGatewayRoute:getGatewayRoute", TypeShape.of(GetGatewayRouteResult.class), args, Utilities.withVersion(options));
}
/**
* The App Mesh Mesh data source allows details of an App Mesh Mesh to be retrieved by its name and optionally the mesh_owner.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetMeshArgs;
* 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 simple = AppmeshFunctions.getMesh(GetMeshArgs.builder()
* .name("simpleapp")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.AwsFunctions;
* import com.pulumi.aws.inputs.GetCallerIdentityArgs;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetMeshArgs;
* 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 current = AwsFunctions.getCallerIdentity();
*
* final var simple = AppmeshFunctions.getMesh(GetMeshArgs.builder()
* .name("simpleapp")
* .meshOwner(current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getMesh(GetMeshArgs args) {
return getMesh(args, InvokeOptions.Empty);
}
/**
* The App Mesh Mesh data source allows details of an App Mesh Mesh to be retrieved by its name and optionally the mesh_owner.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetMeshArgs;
* 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 simple = AppmeshFunctions.getMesh(GetMeshArgs.builder()
* .name("simpleapp")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.AwsFunctions;
* import com.pulumi.aws.inputs.GetCallerIdentityArgs;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetMeshArgs;
* 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 current = AwsFunctions.getCallerIdentity();
*
* final var simple = AppmeshFunctions.getMesh(GetMeshArgs.builder()
* .name("simpleapp")
* .meshOwner(current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getMeshPlain(GetMeshPlainArgs args) {
return getMeshPlain(args, InvokeOptions.Empty);
}
/**
* The App Mesh Mesh data source allows details of an App Mesh Mesh to be retrieved by its name and optionally the mesh_owner.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetMeshArgs;
* 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 simple = AppmeshFunctions.getMesh(GetMeshArgs.builder()
* .name("simpleapp")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.AwsFunctions;
* import com.pulumi.aws.inputs.GetCallerIdentityArgs;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetMeshArgs;
* 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 current = AwsFunctions.getCallerIdentity();
*
* final var simple = AppmeshFunctions.getMesh(GetMeshArgs.builder()
* .name("simpleapp")
* .meshOwner(current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getMesh(GetMeshArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:appmesh/getMesh:getMesh", TypeShape.of(GetMeshResult.class), args, Utilities.withVersion(options));
}
/**
* The App Mesh Mesh data source allows details of an App Mesh Mesh to be retrieved by its name and optionally the mesh_owner.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetMeshArgs;
* 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 simple = AppmeshFunctions.getMesh(GetMeshArgs.builder()
* .name("simpleapp")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.AwsFunctions;
* import com.pulumi.aws.inputs.GetCallerIdentityArgs;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetMeshArgs;
* 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 current = AwsFunctions.getCallerIdentity();
*
* final var simple = AppmeshFunctions.getMesh(GetMeshArgs.builder()
* .name("simpleapp")
* .meshOwner(current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getMeshPlain(GetMeshPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:appmesh/getMesh:getMesh", TypeShape.of(GetMeshResult.class), args, Utilities.withVersion(options));
}
/**
* The App Mesh Route data source allows details of an App Mesh Route to be retrieved by its name, mesh_name, virtual_router_name, and optionally the mesh_owner.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualServiceArgs;
* 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 test = AppmeshFunctions.getVirtualService(GetVirtualServiceArgs.builder()
* .name("test-route")
* .meshName("test-mesh")
* .virtualRouterName("test-router")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getRoute(GetRouteArgs args) {
return getRoute(args, InvokeOptions.Empty);
}
/**
* The App Mesh Route data source allows details of an App Mesh Route to be retrieved by its name, mesh_name, virtual_router_name, and optionally the mesh_owner.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualServiceArgs;
* 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 test = AppmeshFunctions.getVirtualService(GetVirtualServiceArgs.builder()
* .name("test-route")
* .meshName("test-mesh")
* .virtualRouterName("test-router")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getRoutePlain(GetRoutePlainArgs args) {
return getRoutePlain(args, InvokeOptions.Empty);
}
/**
* The App Mesh Route data source allows details of an App Mesh Route to be retrieved by its name, mesh_name, virtual_router_name, and optionally the mesh_owner.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualServiceArgs;
* 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 test = AppmeshFunctions.getVirtualService(GetVirtualServiceArgs.builder()
* .name("test-route")
* .meshName("test-mesh")
* .virtualRouterName("test-router")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getRoute(GetRouteArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:appmesh/getRoute:getRoute", TypeShape.of(GetRouteResult.class), args, Utilities.withVersion(options));
}
/**
* The App Mesh Route data source allows details of an App Mesh Route to be retrieved by its name, mesh_name, virtual_router_name, and optionally the mesh_owner.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualServiceArgs;
* 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 test = AppmeshFunctions.getVirtualService(GetVirtualServiceArgs.builder()
* .name("test-route")
* .meshName("test-mesh")
* .virtualRouterName("test-router")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getRoutePlain(GetRoutePlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:appmesh/getRoute:getRoute", TypeShape.of(GetRouteResult.class), args, Utilities.withVersion(options));
}
/**
* Data source for managing an AWS App Mesh Virtual Gateway.
*
* ## 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.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualGatewayArgs;
* 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 = AppmeshFunctions.getVirtualGateway(GetVirtualGatewayArgs.builder()
* .meshName("mesh-gateway")
* .name("example-mesh")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.AwsFunctions;
* import com.pulumi.aws.inputs.GetCallerIdentityArgs;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualGatewayArgs;
* 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 current = AwsFunctions.getCallerIdentity();
*
* final var test = AppmeshFunctions.getVirtualGateway(GetVirtualGatewayArgs.builder()
* .name("example.mesh.local")
* .meshName("example-mesh")
* .meshOwner(current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getVirtualGateway(GetVirtualGatewayArgs args) {
return getVirtualGateway(args, InvokeOptions.Empty);
}
/**
* Data source for managing an AWS App Mesh Virtual Gateway.
*
* ## 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.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualGatewayArgs;
* 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 = AppmeshFunctions.getVirtualGateway(GetVirtualGatewayArgs.builder()
* .meshName("mesh-gateway")
* .name("example-mesh")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.AwsFunctions;
* import com.pulumi.aws.inputs.GetCallerIdentityArgs;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualGatewayArgs;
* 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 current = AwsFunctions.getCallerIdentity();
*
* final var test = AppmeshFunctions.getVirtualGateway(GetVirtualGatewayArgs.builder()
* .name("example.mesh.local")
* .meshName("example-mesh")
* .meshOwner(current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getVirtualGatewayPlain(GetVirtualGatewayPlainArgs args) {
return getVirtualGatewayPlain(args, InvokeOptions.Empty);
}
/**
* Data source for managing an AWS App Mesh Virtual Gateway.
*
* ## 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.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualGatewayArgs;
* 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 = AppmeshFunctions.getVirtualGateway(GetVirtualGatewayArgs.builder()
* .meshName("mesh-gateway")
* .name("example-mesh")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.AwsFunctions;
* import com.pulumi.aws.inputs.GetCallerIdentityArgs;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualGatewayArgs;
* 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 current = AwsFunctions.getCallerIdentity();
*
* final var test = AppmeshFunctions.getVirtualGateway(GetVirtualGatewayArgs.builder()
* .name("example.mesh.local")
* .meshName("example-mesh")
* .meshOwner(current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getVirtualGateway(GetVirtualGatewayArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:appmesh/getVirtualGateway:getVirtualGateway", TypeShape.of(GetVirtualGatewayResult.class), args, Utilities.withVersion(options));
}
/**
* Data source for managing an AWS App Mesh Virtual Gateway.
*
* ## 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.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualGatewayArgs;
* 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 = AppmeshFunctions.getVirtualGateway(GetVirtualGatewayArgs.builder()
* .meshName("mesh-gateway")
* .name("example-mesh")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.AwsFunctions;
* import com.pulumi.aws.inputs.GetCallerIdentityArgs;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualGatewayArgs;
* 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 current = AwsFunctions.getCallerIdentity();
*
* final var test = AppmeshFunctions.getVirtualGateway(GetVirtualGatewayArgs.builder()
* .name("example.mesh.local")
* .meshName("example-mesh")
* .meshOwner(current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getVirtualGatewayPlain(GetVirtualGatewayPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:appmesh/getVirtualGateway:getVirtualGateway", TypeShape.of(GetVirtualGatewayResult.class), args, Utilities.withVersion(options));
}
/**
* Data source for managing an AWS App Mesh Virtual Node.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualNodeArgs;
* 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 test = AppmeshFunctions.getVirtualNode(GetVirtualNodeArgs.builder()
* .name("serviceBv1")
* .meshName("example-mesh")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getVirtualNode(GetVirtualNodeArgs args) {
return getVirtualNode(args, InvokeOptions.Empty);
}
/**
* Data source for managing an AWS App Mesh Virtual Node.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualNodeArgs;
* 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 test = AppmeshFunctions.getVirtualNode(GetVirtualNodeArgs.builder()
* .name("serviceBv1")
* .meshName("example-mesh")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getVirtualNodePlain(GetVirtualNodePlainArgs args) {
return getVirtualNodePlain(args, InvokeOptions.Empty);
}
/**
* Data source for managing an AWS App Mesh Virtual Node.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualNodeArgs;
* 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 test = AppmeshFunctions.getVirtualNode(GetVirtualNodeArgs.builder()
* .name("serviceBv1")
* .meshName("example-mesh")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getVirtualNode(GetVirtualNodeArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:appmesh/getVirtualNode:getVirtualNode", TypeShape.of(GetVirtualNodeResult.class), args, Utilities.withVersion(options));
}
/**
* Data source for managing an AWS App Mesh Virtual Node.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualNodeArgs;
* 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 test = AppmeshFunctions.getVirtualNode(GetVirtualNodeArgs.builder()
* .name("serviceBv1")
* .meshName("example-mesh")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getVirtualNodePlain(GetVirtualNodePlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:appmesh/getVirtualNode:getVirtualNode", TypeShape.of(GetVirtualNodeResult.class), args, Utilities.withVersion(options));
}
/**
* The App Mesh Virtual Router data source allows details of an App Mesh Virtual Service to be retrieved by its name and mesh_name.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualRouterArgs;
* 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 test = AppmeshFunctions.getVirtualRouter(GetVirtualRouterArgs.builder()
* .name("example-router-name")
* .meshName("example-mesh-name")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getVirtualRouter(GetVirtualRouterArgs args) {
return getVirtualRouter(args, InvokeOptions.Empty);
}
/**
* The App Mesh Virtual Router data source allows details of an App Mesh Virtual Service to be retrieved by its name and mesh_name.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualRouterArgs;
* 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 test = AppmeshFunctions.getVirtualRouter(GetVirtualRouterArgs.builder()
* .name("example-router-name")
* .meshName("example-mesh-name")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getVirtualRouterPlain(GetVirtualRouterPlainArgs args) {
return getVirtualRouterPlain(args, InvokeOptions.Empty);
}
/**
* The App Mesh Virtual Router data source allows details of an App Mesh Virtual Service to be retrieved by its name and mesh_name.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualRouterArgs;
* 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 test = AppmeshFunctions.getVirtualRouter(GetVirtualRouterArgs.builder()
* .name("example-router-name")
* .meshName("example-mesh-name")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getVirtualRouter(GetVirtualRouterArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:appmesh/getVirtualRouter:getVirtualRouter", TypeShape.of(GetVirtualRouterResult.class), args, Utilities.withVersion(options));
}
/**
* The App Mesh Virtual Router data source allows details of an App Mesh Virtual Service to be retrieved by its name and mesh_name.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualRouterArgs;
* 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 test = AppmeshFunctions.getVirtualRouter(GetVirtualRouterArgs.builder()
* .name("example-router-name")
* .meshName("example-mesh-name")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getVirtualRouterPlain(GetVirtualRouterPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:appmesh/getVirtualRouter:getVirtualRouter", TypeShape.of(GetVirtualRouterResult.class), args, Utilities.withVersion(options));
}
/**
* The App Mesh Virtual Service data source allows details of an App Mesh Virtual Service to be retrieved by its name, mesh_name, and optionally the mesh_owner.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualServiceArgs;
* 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 test = AppmeshFunctions.getVirtualService(GetVirtualServiceArgs.builder()
* .name("example.mesh.local")
* .meshName("example-mesh")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.AwsFunctions;
* import com.pulumi.aws.inputs.GetCallerIdentityArgs;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualServiceArgs;
* 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 current = AwsFunctions.getCallerIdentity();
*
* final var test = AppmeshFunctions.getVirtualService(GetVirtualServiceArgs.builder()
* .name("example.mesh.local")
* .meshName("example-mesh")
* .meshOwner(current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getVirtualService(GetVirtualServiceArgs args) {
return getVirtualService(args, InvokeOptions.Empty);
}
/**
* The App Mesh Virtual Service data source allows details of an App Mesh Virtual Service to be retrieved by its name, mesh_name, and optionally the mesh_owner.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualServiceArgs;
* 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 test = AppmeshFunctions.getVirtualService(GetVirtualServiceArgs.builder()
* .name("example.mesh.local")
* .meshName("example-mesh")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.AwsFunctions;
* import com.pulumi.aws.inputs.GetCallerIdentityArgs;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualServiceArgs;
* 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 current = AwsFunctions.getCallerIdentity();
*
* final var test = AppmeshFunctions.getVirtualService(GetVirtualServiceArgs.builder()
* .name("example.mesh.local")
* .meshName("example-mesh")
* .meshOwner(current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getVirtualServicePlain(GetVirtualServicePlainArgs args) {
return getVirtualServicePlain(args, InvokeOptions.Empty);
}
/**
* The App Mesh Virtual Service data source allows details of an App Mesh Virtual Service to be retrieved by its name, mesh_name, and optionally the mesh_owner.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualServiceArgs;
* 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 test = AppmeshFunctions.getVirtualService(GetVirtualServiceArgs.builder()
* .name("example.mesh.local")
* .meshName("example-mesh")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.AwsFunctions;
* import com.pulumi.aws.inputs.GetCallerIdentityArgs;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualServiceArgs;
* 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 current = AwsFunctions.getCallerIdentity();
*
* final var test = AppmeshFunctions.getVirtualService(GetVirtualServiceArgs.builder()
* .name("example.mesh.local")
* .meshName("example-mesh")
* .meshOwner(current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getVirtualService(GetVirtualServiceArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:appmesh/getVirtualService:getVirtualService", TypeShape.of(GetVirtualServiceResult.class), args, Utilities.withVersion(options));
}
/**
* The App Mesh Virtual Service data source allows details of an App Mesh Virtual Service to be retrieved by its name, mesh_name, and optionally the mesh_owner.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualServiceArgs;
* 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 test = AppmeshFunctions.getVirtualService(GetVirtualServiceArgs.builder()
* .name("example.mesh.local")
* .meshName("example-mesh")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.AwsFunctions;
* import com.pulumi.aws.inputs.GetCallerIdentityArgs;
* import com.pulumi.aws.appmesh.AppmeshFunctions;
* import com.pulumi.aws.appmesh.inputs.GetVirtualServiceArgs;
* 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 current = AwsFunctions.getCallerIdentity();
*
* final var test = AppmeshFunctions.getVirtualService(GetVirtualServiceArgs.builder()
* .name("example.mesh.local")
* .meshName("example-mesh")
* .meshOwner(current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getVirtualServicePlain(GetVirtualServicePlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:appmesh/getVirtualService:getVirtualService", TypeShape.of(GetVirtualServiceResult.class), args, Utilities.withVersion(options));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy