All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.privatelink.PrivatelinkFunctions Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** 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.privatelink;

import com.pulumi.azure.Utilities;
import com.pulumi.azure.privatelink.inputs.GetEndpointConnectionArgs;
import com.pulumi.azure.privatelink.inputs.GetEndpointConnectionPlainArgs;
import com.pulumi.azure.privatelink.inputs.GetServiceArgs;
import com.pulumi.azure.privatelink.inputs.GetServiceEndpointConnectionsArgs;
import com.pulumi.azure.privatelink.inputs.GetServiceEndpointConnectionsPlainArgs;
import com.pulumi.azure.privatelink.inputs.GetServicePlainArgs;
import com.pulumi.azure.privatelink.outputs.GetEndpointConnectionResult;
import com.pulumi.azure.privatelink.outputs.GetServiceEndpointConnectionsResult;
import com.pulumi.azure.privatelink.outputs.GetServiceResult;
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 PrivatelinkFunctions {
    /**
     * Use this data source to access the connection status information about an existing Private Endpoint Connection.
     * 
     * ## 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.privatelink.PrivatelinkFunctions;
     * import com.pulumi.azure.privatelink.inputs.GetEndpointConnectionArgs;
     * 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 = PrivatelinkFunctions.getEndpointConnection(GetEndpointConnectionArgs.builder()
     *             .name("example-private-endpoint")
     *             .resourceGroupName("example-rg")
     *             .build());
     * 
     *         ctx.export("privateEndpointStatus", example.applyValue(getEndpointConnectionResult -> getEndpointConnectionResult.privateServiceConnections()[0].status()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getEndpointConnection(GetEndpointConnectionArgs args) { return getEndpointConnection(args, InvokeOptions.Empty); } /** * Use this data source to access the connection status information about an existing Private Endpoint Connection. * * ## 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.privatelink.PrivatelinkFunctions;
     * import com.pulumi.azure.privatelink.inputs.GetEndpointConnectionArgs;
     * 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 = PrivatelinkFunctions.getEndpointConnection(GetEndpointConnectionArgs.builder()
     *             .name("example-private-endpoint")
     *             .resourceGroupName("example-rg")
     *             .build());
     * 
     *         ctx.export("privateEndpointStatus", example.applyValue(getEndpointConnectionResult -> getEndpointConnectionResult.privateServiceConnections()[0].status()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getEndpointConnectionPlain(GetEndpointConnectionPlainArgs args) { return getEndpointConnectionPlain(args, InvokeOptions.Empty); } /** * Use this data source to access the connection status information about an existing Private Endpoint Connection. * * ## 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.privatelink.PrivatelinkFunctions;
     * import com.pulumi.azure.privatelink.inputs.GetEndpointConnectionArgs;
     * 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 = PrivatelinkFunctions.getEndpointConnection(GetEndpointConnectionArgs.builder()
     *             .name("example-private-endpoint")
     *             .resourceGroupName("example-rg")
     *             .build());
     * 
     *         ctx.export("privateEndpointStatus", example.applyValue(getEndpointConnectionResult -> getEndpointConnectionResult.privateServiceConnections()[0].status()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getEndpointConnection(GetEndpointConnectionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("azure:privatelink/getEndpointConnection:getEndpointConnection", TypeShape.of(GetEndpointConnectionResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to access the connection status information about an existing Private Endpoint Connection. * * ## 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.privatelink.PrivatelinkFunctions;
     * import com.pulumi.azure.privatelink.inputs.GetEndpointConnectionArgs;
     * 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 = PrivatelinkFunctions.getEndpointConnection(GetEndpointConnectionArgs.builder()
     *             .name("example-private-endpoint")
     *             .resourceGroupName("example-rg")
     *             .build());
     * 
     *         ctx.export("privateEndpointStatus", example.applyValue(getEndpointConnectionResult -> getEndpointConnectionResult.privateServiceConnections()[0].status()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getEndpointConnectionPlain(GetEndpointConnectionPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("azure:privatelink/getEndpointConnection:getEndpointConnection", TypeShape.of(GetEndpointConnectionResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to access information about an existing Private Link Service. * * ## 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.privatelink.PrivatelinkFunctions;
     * import com.pulumi.azure.privatelink.inputs.GetServiceArgs;
     * 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 = PrivatelinkFunctions.getService(GetServiceArgs.builder()
     *             .name("myPrivateLinkService")
     *             .resourceGroupName("PrivateLinkServiceRG")
     *             .build());
     * 
     *         ctx.export("privateLinkServiceId", example.applyValue(getServiceResult -> getServiceResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getService(GetServiceArgs args) { return getService(args, InvokeOptions.Empty); } /** * Use this data source to access information about an existing Private Link Service. * * ## 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.privatelink.PrivatelinkFunctions;
     * import com.pulumi.azure.privatelink.inputs.GetServiceArgs;
     * 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 = PrivatelinkFunctions.getService(GetServiceArgs.builder()
     *             .name("myPrivateLinkService")
     *             .resourceGroupName("PrivateLinkServiceRG")
     *             .build());
     * 
     *         ctx.export("privateLinkServiceId", example.applyValue(getServiceResult -> getServiceResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getServicePlain(GetServicePlainArgs args) { return getServicePlain(args, InvokeOptions.Empty); } /** * Use this data source to access information about an existing Private Link Service. * * ## 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.privatelink.PrivatelinkFunctions;
     * import com.pulumi.azure.privatelink.inputs.GetServiceArgs;
     * 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 = PrivatelinkFunctions.getService(GetServiceArgs.builder()
     *             .name("myPrivateLinkService")
     *             .resourceGroupName("PrivateLinkServiceRG")
     *             .build());
     * 
     *         ctx.export("privateLinkServiceId", example.applyValue(getServiceResult -> getServiceResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("azure:privatelink/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to access information about an existing Private Link Service. * * ## 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.privatelink.PrivatelinkFunctions;
     * import com.pulumi.azure.privatelink.inputs.GetServiceArgs;
     * 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 = PrivatelinkFunctions.getService(GetServiceArgs.builder()
     *             .name("myPrivateLinkService")
     *             .resourceGroupName("PrivateLinkServiceRG")
     *             .build());
     * 
     *         ctx.export("privateLinkServiceId", example.applyValue(getServiceResult -> getServiceResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getServicePlain(GetServicePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("azure:privatelink/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to access endpoint connection information about an existing Private Link Service. * * ## 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.privatelink.PrivatelinkFunctions;
     * import com.pulumi.azure.privatelink.inputs.GetServiceEndpointConnectionsArgs;
     * 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 = PrivatelinkFunctions.getServiceEndpointConnections(GetServiceEndpointConnectionsArgs.builder()
     *             .serviceId(exampleAzurermPrivateLinkService.id())
     *             .resourceGroupName(exampleAzurermResourceGroup.name())
     *             .build());
     * 
     *         ctx.export("privateEndpointStatus", example.applyValue(getServiceEndpointConnectionsResult -> getServiceEndpointConnectionsResult.privateEndpointConnections()[0].status()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getServiceEndpointConnections(GetServiceEndpointConnectionsArgs args) { return getServiceEndpointConnections(args, InvokeOptions.Empty); } /** * Use this data source to access endpoint connection information about an existing Private Link Service. * * ## 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.privatelink.PrivatelinkFunctions;
     * import com.pulumi.azure.privatelink.inputs.GetServiceEndpointConnectionsArgs;
     * 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 = PrivatelinkFunctions.getServiceEndpointConnections(GetServiceEndpointConnectionsArgs.builder()
     *             .serviceId(exampleAzurermPrivateLinkService.id())
     *             .resourceGroupName(exampleAzurermResourceGroup.name())
     *             .build());
     * 
     *         ctx.export("privateEndpointStatus", example.applyValue(getServiceEndpointConnectionsResult -> getServiceEndpointConnectionsResult.privateEndpointConnections()[0].status()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getServiceEndpointConnectionsPlain(GetServiceEndpointConnectionsPlainArgs args) { return getServiceEndpointConnectionsPlain(args, InvokeOptions.Empty); } /** * Use this data source to access endpoint connection information about an existing Private Link Service. * * ## 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.privatelink.PrivatelinkFunctions;
     * import com.pulumi.azure.privatelink.inputs.GetServiceEndpointConnectionsArgs;
     * 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 = PrivatelinkFunctions.getServiceEndpointConnections(GetServiceEndpointConnectionsArgs.builder()
     *             .serviceId(exampleAzurermPrivateLinkService.id())
     *             .resourceGroupName(exampleAzurermResourceGroup.name())
     *             .build());
     * 
     *         ctx.export("privateEndpointStatus", example.applyValue(getServiceEndpointConnectionsResult -> getServiceEndpointConnectionsResult.privateEndpointConnections()[0].status()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getServiceEndpointConnections(GetServiceEndpointConnectionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("azure:privatelink/getServiceEndpointConnections:getServiceEndpointConnections", TypeShape.of(GetServiceEndpointConnectionsResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to access endpoint connection information about an existing Private Link Service. * * ## 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.privatelink.PrivatelinkFunctions;
     * import com.pulumi.azure.privatelink.inputs.GetServiceEndpointConnectionsArgs;
     * 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 = PrivatelinkFunctions.getServiceEndpointConnections(GetServiceEndpointConnectionsArgs.builder()
     *             .serviceId(exampleAzurermPrivateLinkService.id())
     *             .resourceGroupName(exampleAzurermResourceGroup.name())
     *             .build());
     * 
     *         ctx.export("privateEndpointStatus", example.applyValue(getServiceEndpointConnectionsResult -> getServiceEndpointConnectionsResult.privateEndpointConnections()[0].status()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getServiceEndpointConnectionsPlain(GetServiceEndpointConnectionsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("azure:privatelink/getServiceEndpointConnections:getServiceEndpointConnections", TypeShape.of(GetServiceEndpointConnectionsResult.class), args, Utilities.withVersion(options)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy