com.pulumi.azure.marketplace.MarketplaceFunctions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.marketplace;
import com.pulumi.azure.Utilities;
import com.pulumi.azure.marketplace.inputs.GetAgreementArgs;
import com.pulumi.azure.marketplace.inputs.GetAgreementPlainArgs;
import com.pulumi.azure.marketplace.outputs.GetAgreementResult;
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 MarketplaceFunctions {
/**
* Uses this data source to access information about an existing Marketplace Agreement.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.marketplace.MarketplaceFunctions;
* import com.pulumi.azure.marketplace.inputs.GetAgreementArgs;
* 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 barracuda = MarketplaceFunctions.getAgreement(GetAgreementArgs.builder()
* .publisher("barracudanetworks")
* .offer("waf")
* .plan("hourly")
* .build());
*
* ctx.export("azurermMarketplaceAgreementId", id);
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getAgreement(GetAgreementArgs args) {
return getAgreement(args, InvokeOptions.Empty);
}
/**
* Uses this data source to access information about an existing Marketplace Agreement.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.marketplace.MarketplaceFunctions;
* import com.pulumi.azure.marketplace.inputs.GetAgreementArgs;
* 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 barracuda = MarketplaceFunctions.getAgreement(GetAgreementArgs.builder()
* .publisher("barracudanetworks")
* .offer("waf")
* .plan("hourly")
* .build());
*
* ctx.export("azurermMarketplaceAgreementId", id);
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getAgreementPlain(GetAgreementPlainArgs args) {
return getAgreementPlain(args, InvokeOptions.Empty);
}
/**
* Uses this data source to access information about an existing Marketplace Agreement.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.marketplace.MarketplaceFunctions;
* import com.pulumi.azure.marketplace.inputs.GetAgreementArgs;
* 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 barracuda = MarketplaceFunctions.getAgreement(GetAgreementArgs.builder()
* .publisher("barracudanetworks")
* .offer("waf")
* .plan("hourly")
* .build());
*
* ctx.export("azurermMarketplaceAgreementId", id);
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getAgreement(GetAgreementArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:marketplace/getAgreement:getAgreement", TypeShape.of(GetAgreementResult.class), args, Utilities.withVersion(options));
}
/**
* Uses this data source to access information about an existing Marketplace Agreement.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.marketplace.MarketplaceFunctions;
* import com.pulumi.azure.marketplace.inputs.GetAgreementArgs;
* 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 barracuda = MarketplaceFunctions.getAgreement(GetAgreementArgs.builder()
* .publisher("barracudanetworks")
* .offer("waf")
* .plan("hourly")
* .build());
*
* ctx.export("azurermMarketplaceAgreementId", id);
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getAgreementPlain(GetAgreementPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:marketplace/getAgreement:getAgreement", TypeShape.of(GetAgreementResult.class), args, Utilities.withVersion(options));
}
}