com.pulumi.aws.budgets.BudgetsFunctions 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.budgets;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.budgets.inputs.GetBudgetArgs;
import com.pulumi.aws.budgets.inputs.GetBudgetPlainArgs;
import com.pulumi.aws.budgets.outputs.GetBudgetResult;
import com.pulumi.core.Output;
import com.pulumi.core.TypeShape;
import com.pulumi.deployment.Deployment;
import com.pulumi.deployment.InvokeOptions;
import com.pulumi.deployment.InvokeOutputOptions;
import java.util.concurrent.CompletableFuture;
public final class BudgetsFunctions {
/**
* Data source for managing an AWS Web Services Budgets Budget.
*
* ## 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.budgets.BudgetsFunctions;
* import com.pulumi.aws.budgets.inputs.GetBudgetArgs;
* 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 = BudgetsFunctions.getBudget(GetBudgetArgs.builder()
* .name(testAwsBudgetsBudget.name())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getBudget(GetBudgetArgs args) {
return getBudget(args, InvokeOptions.Empty);
}
/**
* Data source for managing an AWS Web Services Budgets Budget.
*
* ## 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.budgets.BudgetsFunctions;
* import com.pulumi.aws.budgets.inputs.GetBudgetArgs;
* 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 = BudgetsFunctions.getBudget(GetBudgetArgs.builder()
* .name(testAwsBudgetsBudget.name())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getBudgetPlain(GetBudgetPlainArgs args) {
return getBudgetPlain(args, InvokeOptions.Empty);
}
/**
* Data source for managing an AWS Web Services Budgets Budget.
*
* ## 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.budgets.BudgetsFunctions;
* import com.pulumi.aws.budgets.inputs.GetBudgetArgs;
* 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 = BudgetsFunctions.getBudget(GetBudgetArgs.builder()
* .name(testAwsBudgetsBudget.name())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getBudget(GetBudgetArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:budgets/getBudget:getBudget", TypeShape.of(GetBudgetResult.class), args, Utilities.withVersion(options));
}
/**
* Data source for managing an AWS Web Services Budgets Budget.
*
* ## 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.budgets.BudgetsFunctions;
* import com.pulumi.aws.budgets.inputs.GetBudgetArgs;
* 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 = BudgetsFunctions.getBudget(GetBudgetArgs.builder()
* .name(testAwsBudgetsBudget.name())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getBudget(GetBudgetArgs args, InvokeOutputOptions options) {
return Deployment.getInstance().invoke("aws:budgets/getBudget:getBudget", TypeShape.of(GetBudgetResult.class), args, Utilities.withVersion(options));
}
/**
* Data source for managing an AWS Web Services Budgets Budget.
*
* ## 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.budgets.BudgetsFunctions;
* import com.pulumi.aws.budgets.inputs.GetBudgetArgs;
* 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 = BudgetsFunctions.getBudget(GetBudgetArgs.builder()
* .name(testAwsBudgetsBudget.name())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getBudgetPlain(GetBudgetPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:budgets/getBudget:getBudget", TypeShape.of(GetBudgetResult.class), args, Utilities.withVersion(options));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy