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

com.pulumi.meraki.networks.ApplianceVpnSiteToSiteVpn Maven / Gradle / Ivy

There is a newer version: 0.4.0-alpha.1731736975
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.meraki.networks;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import com.pulumi.meraki.Utilities;
import com.pulumi.meraki.networks.ApplianceVpnSiteToSiteVpnArgs;
import com.pulumi.meraki.networks.inputs.ApplianceVpnSiteToSiteVpnState;
import com.pulumi.meraki.networks.outputs.ApplianceVpnSiteToSiteVpnHub;
import com.pulumi.meraki.networks.outputs.ApplianceVpnSiteToSiteVpnSubnet;
import java.lang.String;
import java.util.List;
import javax.annotation.Nullable;

/**
 * ## Example Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.meraki.networks.ApplianceVpnSiteToSiteVpn;
 * import com.pulumi.meraki.networks.ApplianceVpnSiteToSiteVpnArgs;
 * import com.pulumi.meraki.networks.inputs.ApplianceVpnSiteToSiteVpnHubArgs;
 * import com.pulumi.meraki.networks.inputs.ApplianceVpnSiteToSiteVpnSubnetArgs;
 * 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 example = new ApplianceVpnSiteToSiteVpn("example", ApplianceVpnSiteToSiteVpnArgs.builder()
 *             .hubs(ApplianceVpnSiteToSiteVpnHubArgs.builder()
 *                 .hub_id("N_4901849")
 *                 .use_default_route(true)
 *                 .build())
 *             .mode("spoke")
 *             .networkId("string")
 *             .subnets(ApplianceVpnSiteToSiteVpnSubnetArgs.builder()
 *                 .local_subnet("192.168.1.0/24")
 *                 .use_vpn(true)
 *                 .build())
 *             .build());
 * 
 *         ctx.export("merakiNetworksApplianceVpnSiteToSiteVpnExample", example);
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * ```sh * $ pulumi import meraki:networks/applianceVpnSiteToSiteVpn:ApplianceVpnSiteToSiteVpn example "network_id" * ``` * */ @ResourceType(type="meraki:networks/applianceVpnSiteToSiteVpn:ApplianceVpnSiteToSiteVpn") public class ApplianceVpnSiteToSiteVpn extends com.pulumi.resources.CustomResource { /** * The list of VPN hubs, in order of preference. * */ @Export(name="hubs", refs={List.class,ApplianceVpnSiteToSiteVpnHub.class}, tree="[0,1]") private Output> hubs; /** * @return The list of VPN hubs, in order of preference. * */ public Output> hubs() { return this.hubs; } /** * The site-to-site VPN mode. * */ @Export(name="mode", refs={String.class}, tree="[0]") private Output mode; /** * @return The site-to-site VPN mode. * */ public Output mode() { return this.mode; } /** * networkId path parameter. Network ID * */ @Export(name="networkId", refs={String.class}, tree="[0]") private Output networkId; /** * @return networkId path parameter. Network ID * */ public Output networkId() { return this.networkId; } /** * The list of subnets and their VPN presence. * */ @Export(name="subnets", refs={List.class,ApplianceVpnSiteToSiteVpnSubnet.class}, tree="[0,1]") private Output> subnets; /** * @return The list of subnets and their VPN presence. * */ public Output> subnets() { return this.subnets; } /** * * @param name The _unique_ name of the resulting resource. */ public ApplianceVpnSiteToSiteVpn(java.lang.String name) { this(name, ApplianceVpnSiteToSiteVpnArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public ApplianceVpnSiteToSiteVpn(java.lang.String name, ApplianceVpnSiteToSiteVpnArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public ApplianceVpnSiteToSiteVpn(java.lang.String name, ApplianceVpnSiteToSiteVpnArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceVpnSiteToSiteVpn:ApplianceVpnSiteToSiteVpn", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private ApplianceVpnSiteToSiteVpn(java.lang.String name, Output id, @Nullable ApplianceVpnSiteToSiteVpnState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceVpnSiteToSiteVpn:ApplianceVpnSiteToSiteVpn", name, state, makeResourceOptions(options, id), false); } private static ApplianceVpnSiteToSiteVpnArgs makeArgs(ApplianceVpnSiteToSiteVpnArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ApplianceVpnSiteToSiteVpnArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state * @param options Optional settings to control the behavior of the CustomResource. */ public static ApplianceVpnSiteToSiteVpn get(java.lang.String name, Output id, @Nullable ApplianceVpnSiteToSiteVpnState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ApplianceVpnSiteToSiteVpn(name, id, state, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy