com.pulumi.aws.amp.AmpFunctions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.amp;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.amp.inputs.GetWorkspaceArgs;
import com.pulumi.aws.amp.inputs.GetWorkspacePlainArgs;
import com.pulumi.aws.amp.inputs.GetWorkspacesArgs;
import com.pulumi.aws.amp.inputs.GetWorkspacesPlainArgs;
import com.pulumi.aws.amp.outputs.GetWorkspaceResult;
import com.pulumi.aws.amp.outputs.GetWorkspacesResult;
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 AmpFunctions {
/**
* Provides an Amazon Managed Prometheus workspace data source.
*
* ## Example Usage
*
* ### Basic configuration
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.amp.AmpFunctions;
* import com.pulumi.aws.amp.inputs.GetWorkspaceArgs;
* 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 = AmpFunctions.getWorkspace(GetWorkspaceArgs.builder()
* .workspaceId("ws-41det8a1-2c67-6a1a-9381-9b83d3d78ef7")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getWorkspace(GetWorkspaceArgs args) {
return getWorkspace(args, InvokeOptions.Empty);
}
/**
* Provides an Amazon Managed Prometheus workspace data source.
*
* ## Example Usage
*
* ### Basic configuration
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.amp.AmpFunctions;
* import com.pulumi.aws.amp.inputs.GetWorkspaceArgs;
* 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 = AmpFunctions.getWorkspace(GetWorkspaceArgs.builder()
* .workspaceId("ws-41det8a1-2c67-6a1a-9381-9b83d3d78ef7")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getWorkspacePlain(GetWorkspacePlainArgs args) {
return getWorkspacePlain(args, InvokeOptions.Empty);
}
/**
* Provides an Amazon Managed Prometheus workspace data source.
*
* ## Example Usage
*
* ### Basic configuration
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.amp.AmpFunctions;
* import com.pulumi.aws.amp.inputs.GetWorkspaceArgs;
* 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 = AmpFunctions.getWorkspace(GetWorkspaceArgs.builder()
* .workspaceId("ws-41det8a1-2c67-6a1a-9381-9b83d3d78ef7")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getWorkspace(GetWorkspaceArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:amp/getWorkspace:getWorkspace", TypeShape.of(GetWorkspaceResult.class), args, Utilities.withVersion(options));
}
/**
* Provides an Amazon Managed Prometheus workspace data source.
*
* ## Example Usage
*
* ### Basic configuration
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.amp.AmpFunctions;
* import com.pulumi.aws.amp.inputs.GetWorkspaceArgs;
* 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 = AmpFunctions.getWorkspace(GetWorkspaceArgs.builder()
* .workspaceId("ws-41det8a1-2c67-6a1a-9381-9b83d3d78ef7")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getWorkspacePlain(GetWorkspacePlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:amp/getWorkspace:getWorkspace", TypeShape.of(GetWorkspaceResult.class), args, Utilities.withVersion(options));
}
/**
* Provides the aliases, ARNs, and workspace IDs of Amazon Prometheus workspaces.
*
* ## Example Usage
*
* The following example returns all of the workspaces in a region:
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.amp.AmpFunctions;
* import com.pulumi.aws.amp.inputs.GetWorkspacesArgs;
* 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 = AmpFunctions.getWorkspaces();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* The following example filters the workspaces by alias. Only the workspaces with
* aliases that begin with the value of `alias_prefix` will be returned:
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.amp.AmpFunctions;
* import com.pulumi.aws.amp.inputs.GetWorkspacesArgs;
* 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 = AmpFunctions.getWorkspaces(GetWorkspacesArgs.builder()
* .aliasPrefix("example")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getWorkspaces() {
return getWorkspaces(GetWorkspacesArgs.Empty, InvokeOptions.Empty);
}
/**
* Provides the aliases, ARNs, and workspace IDs of Amazon Prometheus workspaces.
*
* ## Example Usage
*
* The following example returns all of the workspaces in a region:
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.amp.AmpFunctions;
* import com.pulumi.aws.amp.inputs.GetWorkspacesArgs;
* 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 = AmpFunctions.getWorkspaces();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* The following example filters the workspaces by alias. Only the workspaces with
* aliases that begin with the value of `alias_prefix` will be returned:
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.amp.AmpFunctions;
* import com.pulumi.aws.amp.inputs.GetWorkspacesArgs;
* 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 = AmpFunctions.getWorkspaces(GetWorkspacesArgs.builder()
* .aliasPrefix("example")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getWorkspacesPlain() {
return getWorkspacesPlain(GetWorkspacesPlainArgs.Empty, InvokeOptions.Empty);
}
/**
* Provides the aliases, ARNs, and workspace IDs of Amazon Prometheus workspaces.
*
* ## Example Usage
*
* The following example returns all of the workspaces in a region:
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.amp.AmpFunctions;
* import com.pulumi.aws.amp.inputs.GetWorkspacesArgs;
* 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 = AmpFunctions.getWorkspaces();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* The following example filters the workspaces by alias. Only the workspaces with
* aliases that begin with the value of `alias_prefix` will be returned:
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.amp.AmpFunctions;
* import com.pulumi.aws.amp.inputs.GetWorkspacesArgs;
* 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 = AmpFunctions.getWorkspaces(GetWorkspacesArgs.builder()
* .aliasPrefix("example")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getWorkspaces(GetWorkspacesArgs args) {
return getWorkspaces(args, InvokeOptions.Empty);
}
/**
* Provides the aliases, ARNs, and workspace IDs of Amazon Prometheus workspaces.
*
* ## Example Usage
*
* The following example returns all of the workspaces in a region:
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.amp.AmpFunctions;
* import com.pulumi.aws.amp.inputs.GetWorkspacesArgs;
* 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 = AmpFunctions.getWorkspaces();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* The following example filters the workspaces by alias. Only the workspaces with
* aliases that begin with the value of `alias_prefix` will be returned:
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.amp.AmpFunctions;
* import com.pulumi.aws.amp.inputs.GetWorkspacesArgs;
* 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 = AmpFunctions.getWorkspaces(GetWorkspacesArgs.builder()
* .aliasPrefix("example")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getWorkspacesPlain(GetWorkspacesPlainArgs args) {
return getWorkspacesPlain(args, InvokeOptions.Empty);
}
/**
* Provides the aliases, ARNs, and workspace IDs of Amazon Prometheus workspaces.
*
* ## Example Usage
*
* The following example returns all of the workspaces in a region:
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.amp.AmpFunctions;
* import com.pulumi.aws.amp.inputs.GetWorkspacesArgs;
* 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 = AmpFunctions.getWorkspaces();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* The following example filters the workspaces by alias. Only the workspaces with
* aliases that begin with the value of `alias_prefix` will be returned:
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.amp.AmpFunctions;
* import com.pulumi.aws.amp.inputs.GetWorkspacesArgs;
* 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 = AmpFunctions.getWorkspaces(GetWorkspacesArgs.builder()
* .aliasPrefix("example")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getWorkspaces(GetWorkspacesArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:amp/getWorkspaces:getWorkspaces", TypeShape.of(GetWorkspacesResult.class), args, Utilities.withVersion(options));
}
/**
* Provides the aliases, ARNs, and workspace IDs of Amazon Prometheus workspaces.
*
* ## Example Usage
*
* The following example returns all of the workspaces in a region:
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.amp.AmpFunctions;
* import com.pulumi.aws.amp.inputs.GetWorkspacesArgs;
* 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 = AmpFunctions.getWorkspaces();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* The following example filters the workspaces by alias. Only the workspaces with
* aliases that begin with the value of `alias_prefix` will be returned:
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.amp.AmpFunctions;
* import com.pulumi.aws.amp.inputs.GetWorkspacesArgs;
* 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 = AmpFunctions.getWorkspaces(GetWorkspacesArgs.builder()
* .aliasPrefix("example")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getWorkspacesPlain(GetWorkspacesPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:amp/getWorkspaces:getWorkspaces", TypeShape.of(GetWorkspacesResult.class), args, Utilities.withVersion(options));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy