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

com.pulumi.alicloud.vpn.VpnFunctions Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.vpn;

import com.pulumi.alicloud.Utilities;
import com.pulumi.alicloud.vpn.inputs.GetConnectionsArgs;
import com.pulumi.alicloud.vpn.inputs.GetConnectionsPlainArgs;
import com.pulumi.alicloud.vpn.inputs.GetCustomerGatewaysArgs;
import com.pulumi.alicloud.vpn.inputs.GetCustomerGatewaysPlainArgs;
import com.pulumi.alicloud.vpn.inputs.GetGatewayVcoRoutesArgs;
import com.pulumi.alicloud.vpn.inputs.GetGatewayVcoRoutesPlainArgs;
import com.pulumi.alicloud.vpn.inputs.GetGatewayVpnAttachmentsArgs;
import com.pulumi.alicloud.vpn.inputs.GetGatewayVpnAttachmentsPlainArgs;
import com.pulumi.alicloud.vpn.inputs.GetGatewayZonesArgs;
import com.pulumi.alicloud.vpn.inputs.GetGatewayZonesPlainArgs;
import com.pulumi.alicloud.vpn.inputs.GetGatewaysArgs;
import com.pulumi.alicloud.vpn.inputs.GetGatewaysPlainArgs;
import com.pulumi.alicloud.vpn.outputs.GetConnectionsResult;
import com.pulumi.alicloud.vpn.outputs.GetCustomerGatewaysResult;
import com.pulumi.alicloud.vpn.outputs.GetGatewayVcoRoutesResult;
import com.pulumi.alicloud.vpn.outputs.GetGatewayVpnAttachmentsResult;
import com.pulumi.alicloud.vpn.outputs.GetGatewayZonesResult;
import com.pulumi.alicloud.vpn.outputs.GetGatewaysResult;
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 VpnFunctions {
    /**
     * The VPN connections data source lists lots of VPN connections resource information owned by an Alicloud account.
     * 
     * > **NOTE:** Available since v1.18.0.
     * 
     * ## Example Usage
     * 
     * <!--Start PulumiCodeChooser -->
     * 
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetConnectionsArgs;
     * 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 foo = VpnFunctions.getConnections(GetConnectionsArgs.builder()
     *             .ids("fake-conn-id")
     *             .vpnGatewayId("fake-vpn-id")
     *             .customerGatewayId("fake-cgw-id")
     *             .outputFile("/tmp/vpnconn")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getConnections() { return getConnections(GetConnectionsArgs.Empty, InvokeOptions.Empty); } /** * The VPN connections data source lists lots of VPN connections resource information owned by an Alicloud account. * * > **NOTE:** Available since v1.18.0. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetConnectionsArgs;
     * 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 foo = VpnFunctions.getConnections(GetConnectionsArgs.builder()
     *             .ids("fake-conn-id")
     *             .vpnGatewayId("fake-vpn-id")
     *             .customerGatewayId("fake-cgw-id")
     *             .outputFile("/tmp/vpnconn")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getConnectionsPlain() { return getConnectionsPlain(GetConnectionsPlainArgs.Empty, InvokeOptions.Empty); } /** * The VPN connections data source lists lots of VPN connections resource information owned by an Alicloud account. * * > **NOTE:** Available since v1.18.0. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetConnectionsArgs;
     * 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 foo = VpnFunctions.getConnections(GetConnectionsArgs.builder()
     *             .ids("fake-conn-id")
     *             .vpnGatewayId("fake-vpn-id")
     *             .customerGatewayId("fake-cgw-id")
     *             .outputFile("/tmp/vpnconn")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getConnections(GetConnectionsArgs args) { return getConnections(args, InvokeOptions.Empty); } /** * The VPN connections data source lists lots of VPN connections resource information owned by an Alicloud account. * * > **NOTE:** Available since v1.18.0. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetConnectionsArgs;
     * 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 foo = VpnFunctions.getConnections(GetConnectionsArgs.builder()
     *             .ids("fake-conn-id")
     *             .vpnGatewayId("fake-vpn-id")
     *             .customerGatewayId("fake-cgw-id")
     *             .outputFile("/tmp/vpnconn")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getConnectionsPlain(GetConnectionsPlainArgs args) { return getConnectionsPlain(args, InvokeOptions.Empty); } /** * The VPN connections data source lists lots of VPN connections resource information owned by an Alicloud account. * * > **NOTE:** Available since v1.18.0. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetConnectionsArgs;
     * 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 foo = VpnFunctions.getConnections(GetConnectionsArgs.builder()
     *             .ids("fake-conn-id")
     *             .vpnGatewayId("fake-vpn-id")
     *             .customerGatewayId("fake-cgw-id")
     *             .outputFile("/tmp/vpnconn")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getConnections(GetConnectionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpn/getConnections:getConnections", TypeShape.of(GetConnectionsResult.class), args, Utilities.withVersion(options)); } /** * The VPN connections data source lists lots of VPN connections resource information owned by an Alicloud account. * * > **NOTE:** Available since v1.18.0. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetConnectionsArgs;
     * 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 foo = VpnFunctions.getConnections(GetConnectionsArgs.builder()
     *             .ids("fake-conn-id")
     *             .vpnGatewayId("fake-vpn-id")
     *             .customerGatewayId("fake-cgw-id")
     *             .outputFile("/tmp/vpnconn")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getConnectionsPlain(GetConnectionsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:vpn/getConnections:getConnections", TypeShape.of(GetConnectionsResult.class), args, Utilities.withVersion(options)); } /** * The VPN customers gateways data source lists a number of VPN customer gateways resource information owned by an Alicloud account. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetCustomerGatewaysArgs;
     * 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 foo = VpnFunctions.getCustomerGateways(GetCustomerGatewaysArgs.builder()
     *             .nameRegex("testAcc*")
     *             .ids(            
     *                 "fake-id1",
     *                 "fake-id2")
     *             .outputFile("/tmp/cgws")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getCustomerGateways() { return getCustomerGateways(GetCustomerGatewaysArgs.Empty, InvokeOptions.Empty); } /** * The VPN customers gateways data source lists a number of VPN customer gateways resource information owned by an Alicloud account. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetCustomerGatewaysArgs;
     * 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 foo = VpnFunctions.getCustomerGateways(GetCustomerGatewaysArgs.builder()
     *             .nameRegex("testAcc*")
     *             .ids(            
     *                 "fake-id1",
     *                 "fake-id2")
     *             .outputFile("/tmp/cgws")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getCustomerGatewaysPlain() { return getCustomerGatewaysPlain(GetCustomerGatewaysPlainArgs.Empty, InvokeOptions.Empty); } /** * The VPN customers gateways data source lists a number of VPN customer gateways resource information owned by an Alicloud account. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetCustomerGatewaysArgs;
     * 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 foo = VpnFunctions.getCustomerGateways(GetCustomerGatewaysArgs.builder()
     *             .nameRegex("testAcc*")
     *             .ids(            
     *                 "fake-id1",
     *                 "fake-id2")
     *             .outputFile("/tmp/cgws")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getCustomerGateways(GetCustomerGatewaysArgs args) { return getCustomerGateways(args, InvokeOptions.Empty); } /** * The VPN customers gateways data source lists a number of VPN customer gateways resource information owned by an Alicloud account. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetCustomerGatewaysArgs;
     * 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 foo = VpnFunctions.getCustomerGateways(GetCustomerGatewaysArgs.builder()
     *             .nameRegex("testAcc*")
     *             .ids(            
     *                 "fake-id1",
     *                 "fake-id2")
     *             .outputFile("/tmp/cgws")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getCustomerGatewaysPlain(GetCustomerGatewaysPlainArgs args) { return getCustomerGatewaysPlain(args, InvokeOptions.Empty); } /** * The VPN customers gateways data source lists a number of VPN customer gateways resource information owned by an Alicloud account. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetCustomerGatewaysArgs;
     * 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 foo = VpnFunctions.getCustomerGateways(GetCustomerGatewaysArgs.builder()
     *             .nameRegex("testAcc*")
     *             .ids(            
     *                 "fake-id1",
     *                 "fake-id2")
     *             .outputFile("/tmp/cgws")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getCustomerGateways(GetCustomerGatewaysArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpn/getCustomerGateways:getCustomerGateways", TypeShape.of(GetCustomerGatewaysResult.class), args, Utilities.withVersion(options)); } /** * The VPN customers gateways data source lists a number of VPN customer gateways resource information owned by an Alicloud account. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetCustomerGatewaysArgs;
     * 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 foo = VpnFunctions.getCustomerGateways(GetCustomerGatewaysArgs.builder()
     *             .nameRegex("testAcc*")
     *             .ids(            
     *                 "fake-id1",
     *                 "fake-id2")
     *             .outputFile("/tmp/cgws")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getCustomerGatewaysPlain(GetCustomerGatewaysPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:vpn/getCustomerGateways:getCustomerGateways", TypeShape.of(GetCustomerGatewaysResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Vpn Gateway Vco Routes of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.183.0+. * * ## 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.alicloud.cen.Instance;
     * import com.pulumi.alicloud.cen.InstanceArgs;
     * import com.pulumi.alicloud.cen.TransitRouter;
     * import com.pulumi.alicloud.cen.TransitRouterArgs;
     * import com.pulumi.alicloud.cen.CenFunctions;
     * import com.pulumi.alicloud.cen.inputs.GetTransitRouterAvailableResourcesArgs;
     * import com.pulumi.alicloud.vpn.CustomerGateway;
     * import com.pulumi.alicloud.vpn.CustomerGatewayArgs;
     * import com.pulumi.alicloud.vpn.GatewayVpnAttachment;
     * import com.pulumi.alicloud.vpn.GatewayVpnAttachmentArgs;
     * import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentIkeConfigArgs;
     * import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentIpsecConfigArgs;
     * import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentBgpConfigArgs;
     * import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentHealthCheckConfigArgs;
     * import com.pulumi.alicloud.cen.TransitRouterVpnAttachment;
     * import com.pulumi.alicloud.cen.TransitRouterVpnAttachmentArgs;
     * import com.pulumi.alicloud.cen.inputs.TransitRouterVpnAttachmentZoneArgs;
     * import com.pulumi.alicloud.vpn.GatewayVcoRoute;
     * import com.pulumi.alicloud.vpn.GatewayVcoRouteArgs;
     * import com.pulumi.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetGatewayVcoRoutesArgs;
     * 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) {
     *         var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
     *             .cenInstanceName(name)
     *             .build());
     * 
     *         var defaultTransitRouter = new TransitRouter("defaultTransitRouter", TransitRouterArgs.builder()
     *             .cenId(defaultInstance.id())
     *             .transitRouterDescription("desd")
     *             .transitRouterName(name)
     *             .build());
     * 
     *         final var default = CenFunctions.getTransitRouterAvailableResources();
     * 
     *         var defaultCustomerGateway = new CustomerGateway("defaultCustomerGateway", CustomerGatewayArgs.builder()
     *             .name(name)
     *             .ipAddress("42.104.22.210")
     *             .asn("45014")
     *             .description("testAccVpnConnectionDesc")
     *             .build());
     * 
     *         var defaultGatewayVpnAttachment = new GatewayVpnAttachment("defaultGatewayVpnAttachment", GatewayVpnAttachmentArgs.builder()
     *             .customerGatewayId(defaultCustomerGateway.id())
     *             .networkType("public")
     *             .localSubnet("0.0.0.0/0")
     *             .remoteSubnet("0.0.0.0/0")
     *             .effectImmediately(false)
     *             .ikeConfig(GatewayVpnAttachmentIkeConfigArgs.builder()
     *                 .ikeAuthAlg("md5")
     *                 .ikeEncAlg("des")
     *                 .ikeVersion("ikev2")
     *                 .ikeMode("main")
     *                 .ikeLifetime(86400)
     *                 .psk("tf-testvpn2")
     *                 .ikePfs("group1")
     *                 .remoteId("testbob2")
     *                 .localId("testalice2")
     *                 .build())
     *             .ipsecConfig(GatewayVpnAttachmentIpsecConfigArgs.builder()
     *                 .ipsecPfs("group5")
     *                 .ipsecEncAlg("des")
     *                 .ipsecAuthAlg("md5")
     *                 .ipsecLifetime(86400)
     *                 .build())
     *             .bgpConfig(GatewayVpnAttachmentBgpConfigArgs.builder()
     *                 .enable(true)
     *                 .localAsn(45014)
     *                 .tunnelCidr("169.254.11.0/30")
     *                 .localBgpIp("169.254.11.1")
     *                 .build())
     *             .healthCheckConfig(GatewayVpnAttachmentHealthCheckConfigArgs.builder()
     *                 .enable(true)
     *                 .sip("192.168.1.1")
     *                 .dip("10.0.0.1")
     *                 .interval(10)
     *                 .retry(10)
     *                 .policy("revoke_route")
     *                 .build())
     *             .enableDpd(true)
     *             .enableNatTraversal(true)
     *             .vpnAttachmentName(name)
     *             .build());
     * 
     *         var defaultTransitRouterVpnAttachment = new TransitRouterVpnAttachment("defaultTransitRouterVpnAttachment", TransitRouterVpnAttachmentArgs.builder()
     *             .autoPublishRouteEnabled(false)
     *             .transitRouterAttachmentDescription(name)
     *             .transitRouterAttachmentName(name)
     *             .cenId(defaultTransitRouter.cenId())
     *             .transitRouterId(defaultTransitRouter.transitRouterId())
     *             .vpnId(defaultGatewayVpnAttachment.id())
     *             .zones(TransitRouterVpnAttachmentZoneArgs.builder()
     *                 .zoneId(default_.resources()[0].masterZones()[0])
     *                 .build())
     *             .build());
     * 
     *         var defaultGatewayVcoRoute = new GatewayVcoRoute("defaultGatewayVcoRoute", GatewayVcoRouteArgs.builder()
     *             .routeDest("192.168.12.0/24")
     *             .nextHop(defaultTransitRouterVpnAttachment.vpnId())
     *             .vpnConnectionId(defaultTransitRouterVpnAttachment.vpnId())
     *             .weight(100)
     *             .build());
     * 
     *         final var defaultGetGatewayVcoRoutes = VpnFunctions.getGatewayVcoRoutes(GetGatewayVcoRoutesArgs.builder()
     *             .vpnConnectionId(defaultTransitRouterVpnAttachment.vpnId())
     *             .build());
     * 
     *         ctx.export("vpnGatewayVcoRouteId1", ids.routes()[0].id());
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getGatewayVcoRoutes(GetGatewayVcoRoutesArgs args) { return getGatewayVcoRoutes(args, InvokeOptions.Empty); } /** * This data source provides the Vpn Gateway Vco Routes of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.183.0+. * * ## 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.alicloud.cen.Instance;
     * import com.pulumi.alicloud.cen.InstanceArgs;
     * import com.pulumi.alicloud.cen.TransitRouter;
     * import com.pulumi.alicloud.cen.TransitRouterArgs;
     * import com.pulumi.alicloud.cen.CenFunctions;
     * import com.pulumi.alicloud.cen.inputs.GetTransitRouterAvailableResourcesArgs;
     * import com.pulumi.alicloud.vpn.CustomerGateway;
     * import com.pulumi.alicloud.vpn.CustomerGatewayArgs;
     * import com.pulumi.alicloud.vpn.GatewayVpnAttachment;
     * import com.pulumi.alicloud.vpn.GatewayVpnAttachmentArgs;
     * import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentIkeConfigArgs;
     * import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentIpsecConfigArgs;
     * import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentBgpConfigArgs;
     * import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentHealthCheckConfigArgs;
     * import com.pulumi.alicloud.cen.TransitRouterVpnAttachment;
     * import com.pulumi.alicloud.cen.TransitRouterVpnAttachmentArgs;
     * import com.pulumi.alicloud.cen.inputs.TransitRouterVpnAttachmentZoneArgs;
     * import com.pulumi.alicloud.vpn.GatewayVcoRoute;
     * import com.pulumi.alicloud.vpn.GatewayVcoRouteArgs;
     * import com.pulumi.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetGatewayVcoRoutesArgs;
     * 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) {
     *         var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
     *             .cenInstanceName(name)
     *             .build());
     * 
     *         var defaultTransitRouter = new TransitRouter("defaultTransitRouter", TransitRouterArgs.builder()
     *             .cenId(defaultInstance.id())
     *             .transitRouterDescription("desd")
     *             .transitRouterName(name)
     *             .build());
     * 
     *         final var default = CenFunctions.getTransitRouterAvailableResources();
     * 
     *         var defaultCustomerGateway = new CustomerGateway("defaultCustomerGateway", CustomerGatewayArgs.builder()
     *             .name(name)
     *             .ipAddress("42.104.22.210")
     *             .asn("45014")
     *             .description("testAccVpnConnectionDesc")
     *             .build());
     * 
     *         var defaultGatewayVpnAttachment = new GatewayVpnAttachment("defaultGatewayVpnAttachment", GatewayVpnAttachmentArgs.builder()
     *             .customerGatewayId(defaultCustomerGateway.id())
     *             .networkType("public")
     *             .localSubnet("0.0.0.0/0")
     *             .remoteSubnet("0.0.0.0/0")
     *             .effectImmediately(false)
     *             .ikeConfig(GatewayVpnAttachmentIkeConfigArgs.builder()
     *                 .ikeAuthAlg("md5")
     *                 .ikeEncAlg("des")
     *                 .ikeVersion("ikev2")
     *                 .ikeMode("main")
     *                 .ikeLifetime(86400)
     *                 .psk("tf-testvpn2")
     *                 .ikePfs("group1")
     *                 .remoteId("testbob2")
     *                 .localId("testalice2")
     *                 .build())
     *             .ipsecConfig(GatewayVpnAttachmentIpsecConfigArgs.builder()
     *                 .ipsecPfs("group5")
     *                 .ipsecEncAlg("des")
     *                 .ipsecAuthAlg("md5")
     *                 .ipsecLifetime(86400)
     *                 .build())
     *             .bgpConfig(GatewayVpnAttachmentBgpConfigArgs.builder()
     *                 .enable(true)
     *                 .localAsn(45014)
     *                 .tunnelCidr("169.254.11.0/30")
     *                 .localBgpIp("169.254.11.1")
     *                 .build())
     *             .healthCheckConfig(GatewayVpnAttachmentHealthCheckConfigArgs.builder()
     *                 .enable(true)
     *                 .sip("192.168.1.1")
     *                 .dip("10.0.0.1")
     *                 .interval(10)
     *                 .retry(10)
     *                 .policy("revoke_route")
     *                 .build())
     *             .enableDpd(true)
     *             .enableNatTraversal(true)
     *             .vpnAttachmentName(name)
     *             .build());
     * 
     *         var defaultTransitRouterVpnAttachment = new TransitRouterVpnAttachment("defaultTransitRouterVpnAttachment", TransitRouterVpnAttachmentArgs.builder()
     *             .autoPublishRouteEnabled(false)
     *             .transitRouterAttachmentDescription(name)
     *             .transitRouterAttachmentName(name)
     *             .cenId(defaultTransitRouter.cenId())
     *             .transitRouterId(defaultTransitRouter.transitRouterId())
     *             .vpnId(defaultGatewayVpnAttachment.id())
     *             .zones(TransitRouterVpnAttachmentZoneArgs.builder()
     *                 .zoneId(default_.resources()[0].masterZones()[0])
     *                 .build())
     *             .build());
     * 
     *         var defaultGatewayVcoRoute = new GatewayVcoRoute("defaultGatewayVcoRoute", GatewayVcoRouteArgs.builder()
     *             .routeDest("192.168.12.0/24")
     *             .nextHop(defaultTransitRouterVpnAttachment.vpnId())
     *             .vpnConnectionId(defaultTransitRouterVpnAttachment.vpnId())
     *             .weight(100)
     *             .build());
     * 
     *         final var defaultGetGatewayVcoRoutes = VpnFunctions.getGatewayVcoRoutes(GetGatewayVcoRoutesArgs.builder()
     *             .vpnConnectionId(defaultTransitRouterVpnAttachment.vpnId())
     *             .build());
     * 
     *         ctx.export("vpnGatewayVcoRouteId1", ids.routes()[0].id());
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getGatewayVcoRoutesPlain(GetGatewayVcoRoutesPlainArgs args) { return getGatewayVcoRoutesPlain(args, InvokeOptions.Empty); } /** * This data source provides the Vpn Gateway Vco Routes of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.183.0+. * * ## 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.alicloud.cen.Instance;
     * import com.pulumi.alicloud.cen.InstanceArgs;
     * import com.pulumi.alicloud.cen.TransitRouter;
     * import com.pulumi.alicloud.cen.TransitRouterArgs;
     * import com.pulumi.alicloud.cen.CenFunctions;
     * import com.pulumi.alicloud.cen.inputs.GetTransitRouterAvailableResourcesArgs;
     * import com.pulumi.alicloud.vpn.CustomerGateway;
     * import com.pulumi.alicloud.vpn.CustomerGatewayArgs;
     * import com.pulumi.alicloud.vpn.GatewayVpnAttachment;
     * import com.pulumi.alicloud.vpn.GatewayVpnAttachmentArgs;
     * import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentIkeConfigArgs;
     * import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentIpsecConfigArgs;
     * import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentBgpConfigArgs;
     * import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentHealthCheckConfigArgs;
     * import com.pulumi.alicloud.cen.TransitRouterVpnAttachment;
     * import com.pulumi.alicloud.cen.TransitRouterVpnAttachmentArgs;
     * import com.pulumi.alicloud.cen.inputs.TransitRouterVpnAttachmentZoneArgs;
     * import com.pulumi.alicloud.vpn.GatewayVcoRoute;
     * import com.pulumi.alicloud.vpn.GatewayVcoRouteArgs;
     * import com.pulumi.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetGatewayVcoRoutesArgs;
     * 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) {
     *         var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
     *             .cenInstanceName(name)
     *             .build());
     * 
     *         var defaultTransitRouter = new TransitRouter("defaultTransitRouter", TransitRouterArgs.builder()
     *             .cenId(defaultInstance.id())
     *             .transitRouterDescription("desd")
     *             .transitRouterName(name)
     *             .build());
     * 
     *         final var default = CenFunctions.getTransitRouterAvailableResources();
     * 
     *         var defaultCustomerGateway = new CustomerGateway("defaultCustomerGateway", CustomerGatewayArgs.builder()
     *             .name(name)
     *             .ipAddress("42.104.22.210")
     *             .asn("45014")
     *             .description("testAccVpnConnectionDesc")
     *             .build());
     * 
     *         var defaultGatewayVpnAttachment = new GatewayVpnAttachment("defaultGatewayVpnAttachment", GatewayVpnAttachmentArgs.builder()
     *             .customerGatewayId(defaultCustomerGateway.id())
     *             .networkType("public")
     *             .localSubnet("0.0.0.0/0")
     *             .remoteSubnet("0.0.0.0/0")
     *             .effectImmediately(false)
     *             .ikeConfig(GatewayVpnAttachmentIkeConfigArgs.builder()
     *                 .ikeAuthAlg("md5")
     *                 .ikeEncAlg("des")
     *                 .ikeVersion("ikev2")
     *                 .ikeMode("main")
     *                 .ikeLifetime(86400)
     *                 .psk("tf-testvpn2")
     *                 .ikePfs("group1")
     *                 .remoteId("testbob2")
     *                 .localId("testalice2")
     *                 .build())
     *             .ipsecConfig(GatewayVpnAttachmentIpsecConfigArgs.builder()
     *                 .ipsecPfs("group5")
     *                 .ipsecEncAlg("des")
     *                 .ipsecAuthAlg("md5")
     *                 .ipsecLifetime(86400)
     *                 .build())
     *             .bgpConfig(GatewayVpnAttachmentBgpConfigArgs.builder()
     *                 .enable(true)
     *                 .localAsn(45014)
     *                 .tunnelCidr("169.254.11.0/30")
     *                 .localBgpIp("169.254.11.1")
     *                 .build())
     *             .healthCheckConfig(GatewayVpnAttachmentHealthCheckConfigArgs.builder()
     *                 .enable(true)
     *                 .sip("192.168.1.1")
     *                 .dip("10.0.0.1")
     *                 .interval(10)
     *                 .retry(10)
     *                 .policy("revoke_route")
     *                 .build())
     *             .enableDpd(true)
     *             .enableNatTraversal(true)
     *             .vpnAttachmentName(name)
     *             .build());
     * 
     *         var defaultTransitRouterVpnAttachment = new TransitRouterVpnAttachment("defaultTransitRouterVpnAttachment", TransitRouterVpnAttachmentArgs.builder()
     *             .autoPublishRouteEnabled(false)
     *             .transitRouterAttachmentDescription(name)
     *             .transitRouterAttachmentName(name)
     *             .cenId(defaultTransitRouter.cenId())
     *             .transitRouterId(defaultTransitRouter.transitRouterId())
     *             .vpnId(defaultGatewayVpnAttachment.id())
     *             .zones(TransitRouterVpnAttachmentZoneArgs.builder()
     *                 .zoneId(default_.resources()[0].masterZones()[0])
     *                 .build())
     *             .build());
     * 
     *         var defaultGatewayVcoRoute = new GatewayVcoRoute("defaultGatewayVcoRoute", GatewayVcoRouteArgs.builder()
     *             .routeDest("192.168.12.0/24")
     *             .nextHop(defaultTransitRouterVpnAttachment.vpnId())
     *             .vpnConnectionId(defaultTransitRouterVpnAttachment.vpnId())
     *             .weight(100)
     *             .build());
     * 
     *         final var defaultGetGatewayVcoRoutes = VpnFunctions.getGatewayVcoRoutes(GetGatewayVcoRoutesArgs.builder()
     *             .vpnConnectionId(defaultTransitRouterVpnAttachment.vpnId())
     *             .build());
     * 
     *         ctx.export("vpnGatewayVcoRouteId1", ids.routes()[0].id());
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getGatewayVcoRoutes(GetGatewayVcoRoutesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpn/getGatewayVcoRoutes:getGatewayVcoRoutes", TypeShape.of(GetGatewayVcoRoutesResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Vpn Gateway Vco Routes of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.183.0+. * * ## 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.alicloud.cen.Instance;
     * import com.pulumi.alicloud.cen.InstanceArgs;
     * import com.pulumi.alicloud.cen.TransitRouter;
     * import com.pulumi.alicloud.cen.TransitRouterArgs;
     * import com.pulumi.alicloud.cen.CenFunctions;
     * import com.pulumi.alicloud.cen.inputs.GetTransitRouterAvailableResourcesArgs;
     * import com.pulumi.alicloud.vpn.CustomerGateway;
     * import com.pulumi.alicloud.vpn.CustomerGatewayArgs;
     * import com.pulumi.alicloud.vpn.GatewayVpnAttachment;
     * import com.pulumi.alicloud.vpn.GatewayVpnAttachmentArgs;
     * import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentIkeConfigArgs;
     * import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentIpsecConfigArgs;
     * import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentBgpConfigArgs;
     * import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentHealthCheckConfigArgs;
     * import com.pulumi.alicloud.cen.TransitRouterVpnAttachment;
     * import com.pulumi.alicloud.cen.TransitRouterVpnAttachmentArgs;
     * import com.pulumi.alicloud.cen.inputs.TransitRouterVpnAttachmentZoneArgs;
     * import com.pulumi.alicloud.vpn.GatewayVcoRoute;
     * import com.pulumi.alicloud.vpn.GatewayVcoRouteArgs;
     * import com.pulumi.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetGatewayVcoRoutesArgs;
     * 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) {
     *         var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
     *             .cenInstanceName(name)
     *             .build());
     * 
     *         var defaultTransitRouter = new TransitRouter("defaultTransitRouter", TransitRouterArgs.builder()
     *             .cenId(defaultInstance.id())
     *             .transitRouterDescription("desd")
     *             .transitRouterName(name)
     *             .build());
     * 
     *         final var default = CenFunctions.getTransitRouterAvailableResources();
     * 
     *         var defaultCustomerGateway = new CustomerGateway("defaultCustomerGateway", CustomerGatewayArgs.builder()
     *             .name(name)
     *             .ipAddress("42.104.22.210")
     *             .asn("45014")
     *             .description("testAccVpnConnectionDesc")
     *             .build());
     * 
     *         var defaultGatewayVpnAttachment = new GatewayVpnAttachment("defaultGatewayVpnAttachment", GatewayVpnAttachmentArgs.builder()
     *             .customerGatewayId(defaultCustomerGateway.id())
     *             .networkType("public")
     *             .localSubnet("0.0.0.0/0")
     *             .remoteSubnet("0.0.0.0/0")
     *             .effectImmediately(false)
     *             .ikeConfig(GatewayVpnAttachmentIkeConfigArgs.builder()
     *                 .ikeAuthAlg("md5")
     *                 .ikeEncAlg("des")
     *                 .ikeVersion("ikev2")
     *                 .ikeMode("main")
     *                 .ikeLifetime(86400)
     *                 .psk("tf-testvpn2")
     *                 .ikePfs("group1")
     *                 .remoteId("testbob2")
     *                 .localId("testalice2")
     *                 .build())
     *             .ipsecConfig(GatewayVpnAttachmentIpsecConfigArgs.builder()
     *                 .ipsecPfs("group5")
     *                 .ipsecEncAlg("des")
     *                 .ipsecAuthAlg("md5")
     *                 .ipsecLifetime(86400)
     *                 .build())
     *             .bgpConfig(GatewayVpnAttachmentBgpConfigArgs.builder()
     *                 .enable(true)
     *                 .localAsn(45014)
     *                 .tunnelCidr("169.254.11.0/30")
     *                 .localBgpIp("169.254.11.1")
     *                 .build())
     *             .healthCheckConfig(GatewayVpnAttachmentHealthCheckConfigArgs.builder()
     *                 .enable(true)
     *                 .sip("192.168.1.1")
     *                 .dip("10.0.0.1")
     *                 .interval(10)
     *                 .retry(10)
     *                 .policy("revoke_route")
     *                 .build())
     *             .enableDpd(true)
     *             .enableNatTraversal(true)
     *             .vpnAttachmentName(name)
     *             .build());
     * 
     *         var defaultTransitRouterVpnAttachment = new TransitRouterVpnAttachment("defaultTransitRouterVpnAttachment", TransitRouterVpnAttachmentArgs.builder()
     *             .autoPublishRouteEnabled(false)
     *             .transitRouterAttachmentDescription(name)
     *             .transitRouterAttachmentName(name)
     *             .cenId(defaultTransitRouter.cenId())
     *             .transitRouterId(defaultTransitRouter.transitRouterId())
     *             .vpnId(defaultGatewayVpnAttachment.id())
     *             .zones(TransitRouterVpnAttachmentZoneArgs.builder()
     *                 .zoneId(default_.resources()[0].masterZones()[0])
     *                 .build())
     *             .build());
     * 
     *         var defaultGatewayVcoRoute = new GatewayVcoRoute("defaultGatewayVcoRoute", GatewayVcoRouteArgs.builder()
     *             .routeDest("192.168.12.0/24")
     *             .nextHop(defaultTransitRouterVpnAttachment.vpnId())
     *             .vpnConnectionId(defaultTransitRouterVpnAttachment.vpnId())
     *             .weight(100)
     *             .build());
     * 
     *         final var defaultGetGatewayVcoRoutes = VpnFunctions.getGatewayVcoRoutes(GetGatewayVcoRoutesArgs.builder()
     *             .vpnConnectionId(defaultTransitRouterVpnAttachment.vpnId())
     *             .build());
     * 
     *         ctx.export("vpnGatewayVcoRouteId1", ids.routes()[0].id());
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getGatewayVcoRoutesPlain(GetGatewayVcoRoutesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:vpn/getGatewayVcoRoutes:getGatewayVcoRoutes", TypeShape.of(GetGatewayVcoRoutesResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Vpn Gateway Vpn Attachments of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.181.0+. * * ## 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.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetGatewayVpnAttachmentsArgs;
     * 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 ids = VpnFunctions.getGatewayVpnAttachments();
     * 
     *         ctx.export("vpnGatewayVpnAttachmentId1", ids.applyValue(getGatewayVpnAttachmentsResult -> getGatewayVpnAttachmentsResult.attachments()[0].id()));
     *         final var nameRegex = VpnFunctions.getGatewayVpnAttachments(GetGatewayVpnAttachmentsArgs.builder()
     *             .nameRegex("^my-VpnAttachment")
     *             .build());
     * 
     *         ctx.export("vpnGatewayVpnAttachmentId2", nameRegex.applyValue(getGatewayVpnAttachmentsResult -> getGatewayVpnAttachmentsResult.attachments()[0].id()));
     *         ctx.export("localId", vpnAttachments.attachments()[0].ikeConfig()[0].localId());
     *         ctx.export("internetIp", vpnAttachments.attachments()[0].internetIp());
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getGatewayVpnAttachments() { return getGatewayVpnAttachments(GetGatewayVpnAttachmentsArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Vpn Gateway Vpn Attachments of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.181.0+. * * ## 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.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetGatewayVpnAttachmentsArgs;
     * 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 ids = VpnFunctions.getGatewayVpnAttachments();
     * 
     *         ctx.export("vpnGatewayVpnAttachmentId1", ids.applyValue(getGatewayVpnAttachmentsResult -> getGatewayVpnAttachmentsResult.attachments()[0].id()));
     *         final var nameRegex = VpnFunctions.getGatewayVpnAttachments(GetGatewayVpnAttachmentsArgs.builder()
     *             .nameRegex("^my-VpnAttachment")
     *             .build());
     * 
     *         ctx.export("vpnGatewayVpnAttachmentId2", nameRegex.applyValue(getGatewayVpnAttachmentsResult -> getGatewayVpnAttachmentsResult.attachments()[0].id()));
     *         ctx.export("localId", vpnAttachments.attachments()[0].ikeConfig()[0].localId());
     *         ctx.export("internetIp", vpnAttachments.attachments()[0].internetIp());
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getGatewayVpnAttachmentsPlain() { return getGatewayVpnAttachmentsPlain(GetGatewayVpnAttachmentsPlainArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Vpn Gateway Vpn Attachments of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.181.0+. * * ## 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.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetGatewayVpnAttachmentsArgs;
     * 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 ids = VpnFunctions.getGatewayVpnAttachments();
     * 
     *         ctx.export("vpnGatewayVpnAttachmentId1", ids.applyValue(getGatewayVpnAttachmentsResult -> getGatewayVpnAttachmentsResult.attachments()[0].id()));
     *         final var nameRegex = VpnFunctions.getGatewayVpnAttachments(GetGatewayVpnAttachmentsArgs.builder()
     *             .nameRegex("^my-VpnAttachment")
     *             .build());
     * 
     *         ctx.export("vpnGatewayVpnAttachmentId2", nameRegex.applyValue(getGatewayVpnAttachmentsResult -> getGatewayVpnAttachmentsResult.attachments()[0].id()));
     *         ctx.export("localId", vpnAttachments.attachments()[0].ikeConfig()[0].localId());
     *         ctx.export("internetIp", vpnAttachments.attachments()[0].internetIp());
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getGatewayVpnAttachments(GetGatewayVpnAttachmentsArgs args) { return getGatewayVpnAttachments(args, InvokeOptions.Empty); } /** * This data source provides the Vpn Gateway Vpn Attachments of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.181.0+. * * ## 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.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetGatewayVpnAttachmentsArgs;
     * 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 ids = VpnFunctions.getGatewayVpnAttachments();
     * 
     *         ctx.export("vpnGatewayVpnAttachmentId1", ids.applyValue(getGatewayVpnAttachmentsResult -> getGatewayVpnAttachmentsResult.attachments()[0].id()));
     *         final var nameRegex = VpnFunctions.getGatewayVpnAttachments(GetGatewayVpnAttachmentsArgs.builder()
     *             .nameRegex("^my-VpnAttachment")
     *             .build());
     * 
     *         ctx.export("vpnGatewayVpnAttachmentId2", nameRegex.applyValue(getGatewayVpnAttachmentsResult -> getGatewayVpnAttachmentsResult.attachments()[0].id()));
     *         ctx.export("localId", vpnAttachments.attachments()[0].ikeConfig()[0].localId());
     *         ctx.export("internetIp", vpnAttachments.attachments()[0].internetIp());
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getGatewayVpnAttachmentsPlain(GetGatewayVpnAttachmentsPlainArgs args) { return getGatewayVpnAttachmentsPlain(args, InvokeOptions.Empty); } /** * This data source provides the Vpn Gateway Vpn Attachments of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.181.0+. * * ## 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.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetGatewayVpnAttachmentsArgs;
     * 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 ids = VpnFunctions.getGatewayVpnAttachments();
     * 
     *         ctx.export("vpnGatewayVpnAttachmentId1", ids.applyValue(getGatewayVpnAttachmentsResult -> getGatewayVpnAttachmentsResult.attachments()[0].id()));
     *         final var nameRegex = VpnFunctions.getGatewayVpnAttachments(GetGatewayVpnAttachmentsArgs.builder()
     *             .nameRegex("^my-VpnAttachment")
     *             .build());
     * 
     *         ctx.export("vpnGatewayVpnAttachmentId2", nameRegex.applyValue(getGatewayVpnAttachmentsResult -> getGatewayVpnAttachmentsResult.attachments()[0].id()));
     *         ctx.export("localId", vpnAttachments.attachments()[0].ikeConfig()[0].localId());
     *         ctx.export("internetIp", vpnAttachments.attachments()[0].internetIp());
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getGatewayVpnAttachments(GetGatewayVpnAttachmentsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpn/getGatewayVpnAttachments:getGatewayVpnAttachments", TypeShape.of(GetGatewayVpnAttachmentsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Vpn Gateway Vpn Attachments of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.181.0+. * * ## 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.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetGatewayVpnAttachmentsArgs;
     * 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 ids = VpnFunctions.getGatewayVpnAttachments();
     * 
     *         ctx.export("vpnGatewayVpnAttachmentId1", ids.applyValue(getGatewayVpnAttachmentsResult -> getGatewayVpnAttachmentsResult.attachments()[0].id()));
     *         final var nameRegex = VpnFunctions.getGatewayVpnAttachments(GetGatewayVpnAttachmentsArgs.builder()
     *             .nameRegex("^my-VpnAttachment")
     *             .build());
     * 
     *         ctx.export("vpnGatewayVpnAttachmentId2", nameRegex.applyValue(getGatewayVpnAttachmentsResult -> getGatewayVpnAttachmentsResult.attachments()[0].id()));
     *         ctx.export("localId", vpnAttachments.attachments()[0].ikeConfig()[0].localId());
     *         ctx.export("internetIp", vpnAttachments.attachments()[0].internetIp());
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getGatewayVpnAttachmentsPlain(GetGatewayVpnAttachmentsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:vpn/getGatewayVpnAttachments:getGatewayVpnAttachments", TypeShape.of(GetGatewayVpnAttachmentsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides VPN Gateway Zone available to the user.[What is Zone](https://next.api.alibabacloud.com/api/Vpc/2016-04-28/DescribeVpnGatewayAvailableZones?lang=JAVA) * * > **NOTE:** Available since v1.216.0. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetGatewayZonesArgs;
     * 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 default = VpnFunctions.getGatewayZones(GetGatewayZonesArgs.builder()
     *             .spec("5M")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getGatewayZones(GetGatewayZonesArgs args) { return getGatewayZones(args, InvokeOptions.Empty); } /** * This data source provides VPN Gateway Zone available to the user.[What is Zone](https://next.api.alibabacloud.com/api/Vpc/2016-04-28/DescribeVpnGatewayAvailableZones?lang=JAVA) * * > **NOTE:** Available since v1.216.0. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetGatewayZonesArgs;
     * 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 default = VpnFunctions.getGatewayZones(GetGatewayZonesArgs.builder()
     *             .spec("5M")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getGatewayZonesPlain(GetGatewayZonesPlainArgs args) { return getGatewayZonesPlain(args, InvokeOptions.Empty); } /** * This data source provides VPN Gateway Zone available to the user.[What is Zone](https://next.api.alibabacloud.com/api/Vpc/2016-04-28/DescribeVpnGatewayAvailableZones?lang=JAVA) * * > **NOTE:** Available since v1.216.0. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetGatewayZonesArgs;
     * 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 default = VpnFunctions.getGatewayZones(GetGatewayZonesArgs.builder()
     *             .spec("5M")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getGatewayZones(GetGatewayZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpn/getGatewayZones:getGatewayZones", TypeShape.of(GetGatewayZonesResult.class), args, Utilities.withVersion(options)); } /** * This data source provides VPN Gateway Zone available to the user.[What is Zone](https://next.api.alibabacloud.com/api/Vpc/2016-04-28/DescribeVpnGatewayAvailableZones?lang=JAVA) * * > **NOTE:** Available since v1.216.0. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.vpn.VpnFunctions;
     * import com.pulumi.alicloud.vpn.inputs.GetGatewayZonesArgs;
     * 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 default = VpnFunctions.getGatewayZones(GetGatewayZonesArgs.builder()
     *             .spec("5M")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getGatewayZonesPlain(GetGatewayZonesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:vpn/getGatewayZones:getGatewayZones", TypeShape.of(GetGatewayZonesResult.class), args, Utilities.withVersion(options)); } /** * The VPNs data source lists a number of VPNs resource information owned by an Alicloud account. * * > **NOTE:** Available since v1.18.0. * */ public static Output getGateways() { return getGateways(GetGatewaysArgs.Empty, InvokeOptions.Empty); } /** * The VPNs data source lists a number of VPNs resource information owned by an Alicloud account. * * > **NOTE:** Available since v1.18.0. * */ public static CompletableFuture getGatewaysPlain() { return getGatewaysPlain(GetGatewaysPlainArgs.Empty, InvokeOptions.Empty); } /** * The VPNs data source lists a number of VPNs resource information owned by an Alicloud account. * * > **NOTE:** Available since v1.18.0. * */ public static Output getGateways(GetGatewaysArgs args) { return getGateways(args, InvokeOptions.Empty); } /** * The VPNs data source lists a number of VPNs resource information owned by an Alicloud account. * * > **NOTE:** Available since v1.18.0. * */ public static CompletableFuture getGatewaysPlain(GetGatewaysPlainArgs args) { return getGatewaysPlain(args, InvokeOptions.Empty); } /** * The VPNs data source lists a number of VPNs resource information owned by an Alicloud account. * * > **NOTE:** Available since v1.18.0. * */ public static Output getGateways(GetGatewaysArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:vpn/getGateways:getGateways", TypeShape.of(GetGatewaysResult.class), args, Utilities.withVersion(options)); } /** * The VPNs data source lists a number of VPNs resource information owned by an Alicloud account. * * > **NOTE:** Available since v1.18.0. * */ public static CompletableFuture getGatewaysPlain(GetGatewaysPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:vpn/getGateways:getGateways", TypeShape.of(GetGatewaysResult.class), args, Utilities.withVersion(options)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy