com.pulumi.azure.nginx.NginxFunctions 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.nginx;
import com.pulumi.azure.Utilities;
import com.pulumi.azure.nginx.inputs.GetCertificateArgs;
import com.pulumi.azure.nginx.inputs.GetCertificatePlainArgs;
import com.pulumi.azure.nginx.inputs.GetConfigurationArgs;
import com.pulumi.azure.nginx.inputs.GetConfigurationPlainArgs;
import com.pulumi.azure.nginx.inputs.GetDeploymentArgs;
import com.pulumi.azure.nginx.inputs.GetDeploymentPlainArgs;
import com.pulumi.azure.nginx.outputs.GetCertificateResult;
import com.pulumi.azure.nginx.outputs.GetConfigurationResult;
import com.pulumi.azure.nginx.outputs.GetDeploymentResult;
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 NginxFunctions {
/**
* Use this data source to access information about an existing NGINX Certificate.
*
* ## 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.nginx.NginxFunctions;
* import com.pulumi.azure.nginx.inputs.GetCertificateArgs;
* 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 = NginxFunctions.getCertificate(GetCertificateArgs.builder()
* .name("existing")
* .nginxDeploymentId(exampleAzurermNginxDeployment.id())
* .build());
*
* ctx.export("id", example.applyValue(getCertificateResult -> getCertificateResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getCertificate(GetCertificateArgs args) {
return getCertificate(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing NGINX Certificate.
*
* ## 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.nginx.NginxFunctions;
* import com.pulumi.azure.nginx.inputs.GetCertificateArgs;
* 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 = NginxFunctions.getCertificate(GetCertificateArgs.builder()
* .name("existing")
* .nginxDeploymentId(exampleAzurermNginxDeployment.id())
* .build());
*
* ctx.export("id", example.applyValue(getCertificateResult -> getCertificateResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getCertificatePlain(GetCertificatePlainArgs args) {
return getCertificatePlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing NGINX Certificate.
*
* ## 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.nginx.NginxFunctions;
* import com.pulumi.azure.nginx.inputs.GetCertificateArgs;
* 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 = NginxFunctions.getCertificate(GetCertificateArgs.builder()
* .name("existing")
* .nginxDeploymentId(exampleAzurermNginxDeployment.id())
* .build());
*
* ctx.export("id", example.applyValue(getCertificateResult -> getCertificateResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getCertificate(GetCertificateArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:nginx/getCertificate:getCertificate", TypeShape.of(GetCertificateResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing NGINX Certificate.
*
* ## 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.nginx.NginxFunctions;
* import com.pulumi.azure.nginx.inputs.GetCertificateArgs;
* 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 = NginxFunctions.getCertificate(GetCertificateArgs.builder()
* .name("existing")
* .nginxDeploymentId(exampleAzurermNginxDeployment.id())
* .build());
*
* ctx.export("id", example.applyValue(getCertificateResult -> getCertificateResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getCertificatePlain(GetCertificatePlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:nginx/getCertificate:getCertificate", TypeShape.of(GetCertificateResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Nginx Configuration.
*
* ## 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.nginx.NginxFunctions;
* import com.pulumi.azure.nginx.inputs.GetConfigurationArgs;
* 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 = NginxFunctions.getConfiguration(GetConfigurationArgs.builder()
* .nginxDeploymentId(exampleAzurermNginxDeployment.id())
* .build());
*
* ctx.export("id", example.applyValue(getConfigurationResult -> getConfigurationResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getConfiguration(GetConfigurationArgs args) {
return getConfiguration(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Nginx Configuration.
*
* ## 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.nginx.NginxFunctions;
* import com.pulumi.azure.nginx.inputs.GetConfigurationArgs;
* 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 = NginxFunctions.getConfiguration(GetConfigurationArgs.builder()
* .nginxDeploymentId(exampleAzurermNginxDeployment.id())
* .build());
*
* ctx.export("id", example.applyValue(getConfigurationResult -> getConfigurationResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getConfigurationPlain(GetConfigurationPlainArgs args) {
return getConfigurationPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing Nginx Configuration.
*
* ## 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.nginx.NginxFunctions;
* import com.pulumi.azure.nginx.inputs.GetConfigurationArgs;
* 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 = NginxFunctions.getConfiguration(GetConfigurationArgs.builder()
* .nginxDeploymentId(exampleAzurermNginxDeployment.id())
* .build());
*
* ctx.export("id", example.applyValue(getConfigurationResult -> getConfigurationResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getConfiguration(GetConfigurationArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:nginx/getConfiguration:getConfiguration", TypeShape.of(GetConfigurationResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing Nginx Configuration.
*
* ## 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.nginx.NginxFunctions;
* import com.pulumi.azure.nginx.inputs.GetConfigurationArgs;
* 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 = NginxFunctions.getConfiguration(GetConfigurationArgs.builder()
* .nginxDeploymentId(exampleAzurermNginxDeployment.id())
* .build());
*
* ctx.export("id", example.applyValue(getConfigurationResult -> getConfigurationResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getConfigurationPlain(GetConfigurationPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:nginx/getConfiguration:getConfiguration", TypeShape.of(GetConfigurationResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing NGINX Deployment.
*
* ## 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.nginx.NginxFunctions;
* import com.pulumi.azure.nginx.inputs.GetDeploymentArgs;
* 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 = NginxFunctions.getDeployment(GetDeploymentArgs.builder()
* .name("existing")
* .resourceGroupName("existing")
* .build());
*
* ctx.export("id", example.applyValue(getDeploymentResult -> getDeploymentResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getDeployment(GetDeploymentArgs args) {
return getDeployment(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing NGINX Deployment.
*
* ## 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.nginx.NginxFunctions;
* import com.pulumi.azure.nginx.inputs.GetDeploymentArgs;
* 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 = NginxFunctions.getDeployment(GetDeploymentArgs.builder()
* .name("existing")
* .resourceGroupName("existing")
* .build());
*
* ctx.export("id", example.applyValue(getDeploymentResult -> getDeploymentResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getDeploymentPlain(GetDeploymentPlainArgs args) {
return getDeploymentPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to access information about an existing NGINX Deployment.
*
* ## 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.nginx.NginxFunctions;
* import com.pulumi.azure.nginx.inputs.GetDeploymentArgs;
* 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 = NginxFunctions.getDeployment(GetDeploymentArgs.builder()
* .name("existing")
* .resourceGroupName("existing")
* .build());
*
* ctx.export("id", example.applyValue(getDeploymentResult -> getDeploymentResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getDeployment(GetDeploymentArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("azure:nginx/getDeployment:getDeployment", TypeShape.of(GetDeploymentResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to access information about an existing NGINX Deployment.
*
* ## 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.nginx.NginxFunctions;
* import com.pulumi.azure.nginx.inputs.GetDeploymentArgs;
* 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 = NginxFunctions.getDeployment(GetDeploymentArgs.builder()
* .name("existing")
* .resourceGroupName("existing")
* .build());
*
* ctx.export("id", example.applyValue(getDeploymentResult -> getDeploymentResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getDeploymentPlain(GetDeploymentPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("azure:nginx/getDeployment:getDeployment", TypeShape.of(GetDeploymentResult.class), args, Utilities.withVersion(options));
}
}