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

com.pulumi.azurenative.network.P2sVpnServerConfiguration Maven / Gradle / Ivy

There is a newer version: 2.78.0
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.azurenative.network;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.network.P2sVpnServerConfigurationArgs;
import com.pulumi.azurenative.network.outputs.IpsecPolicyResponse;
import com.pulumi.azurenative.network.outputs.P2SVpnServerConfigRadiusClientRootCertificateResponse;
import com.pulumi.azurenative.network.outputs.P2SVpnServerConfigRadiusServerRootCertificateResponse;
import com.pulumi.azurenative.network.outputs.P2SVpnServerConfigVpnClientRevokedCertificateResponse;
import com.pulumi.azurenative.network.outputs.P2SVpnServerConfigVpnClientRootCertificateResponse;
import com.pulumi.azurenative.network.outputs.SubResourceResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * P2SVpnServerConfiguration Resource.
 * Azure REST API version: 2019-07-01. Prior API version in Azure Native 1.x: 2019-07-01.
 * 
 * ## Example Usage
 * ### P2SVpnServerConfigurationPut
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.network.P2sVpnServerConfiguration;
 * import com.pulumi.azurenative.network.P2sVpnServerConfigurationArgs;
 * import com.pulumi.azurenative.network.inputs.P2SVpnServerConfigRadiusClientRootCertificateArgs;
 * import com.pulumi.azurenative.network.inputs.P2SVpnServerConfigRadiusServerRootCertificateArgs;
 * import com.pulumi.azurenative.network.inputs.P2SVpnServerConfigVpnClientRevokedCertificateArgs;
 * import com.pulumi.azurenative.network.inputs.P2SVpnServerConfigVpnClientRootCertificateArgs;
 * import com.pulumi.azurenative.network.inputs.IpsecPolicyArgs;
 * 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 p2sVpnServerConfiguration = new P2sVpnServerConfiguration("p2sVpnServerConfiguration", P2sVpnServerConfigurationArgs.builder()
 *             .p2SVpnServerConfigRadiusClientRootCertificates(P2SVpnServerConfigRadiusClientRootCertificateArgs.builder()
 *                 .name("p2sVpnServerConfigRadiusClientRootCert1")
 *                 .thumbprint("83FFBFC8848B5A5836C94D0112367E16148A286F")
 *                 .build())
 *             .p2SVpnServerConfigRadiusServerRootCertificates(P2SVpnServerConfigRadiusServerRootCertificateArgs.builder()
 *                 .name("p2sVpnServerConfigRadiusServerRootCert1")
 *                 .publicCertData("MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuM")
 *                 .build())
 *             .p2SVpnServerConfigVpnClientRevokedCertificates(P2SVpnServerConfigVpnClientRevokedCertificateArgs.builder()
 *                 .name("p2sVpnServerConfigVpnClientRevokedCert1")
 *                 .thumbprint("83FFBFC8848B5A5836C94D0112367E16148A286F")
 *                 .build())
 *             .p2SVpnServerConfigVpnClientRootCertificates(P2SVpnServerConfigVpnClientRootCertificateArgs.builder()
 *                 .name("p2sVpnServerConfigVpnClientRootCert1")
 *                 .publicCertData("MIIC5zCCAc+gAwIBAgIQErQ0Hk4aDJxIA+Q5RagB+jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtQMlNSb290Q2VydDAeFw0xNzEyMTQyMTA3MzhaFw0xODEyMTQyMTI3MzhaMBYxFDASBgNVBAMMC1AyU1Jvb3RDZXJ0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArP7/NQXmW7cQ/ZR1mv3Y3I29Lt7HTOqzo/1KUOoVH3NItbQIRAQbwKy3UWrOFz4eGNX2GWtNRMdCyWsKeqy9Ltsdfcm1IbKXkl84DFeU/ZacXu4Dl3xX3gV5du4TLZjEowJELyur11Ea2YcjPRQ/FzAF9/hGuboS1HZQEPLx4FdUs9OxCYOtc0MxBCwLfVTTRqarb0Ne+arNYd4kCzIhAke1nOyKAJBda5ZL+VHy3S5S8qGlD46jm8HXugmAkUygS4oIIXOmj/1O9sNAi3LN60zufSzCmP8Rm/iUGX+DHAGGiXxwZOKQLEDaZXKqoHjMPP0XudmSWwOIbyeQVrLhkwIDAQABozEwLzAOBgNVHQ8BAf8EBAMCAgQwHQYDVR0OBBYEFEfeNU2trYxNLF9ONmuJUsT13pKDMA0GCSqGSIb3DQEBCwUAA4IBAQBmM6RJzsGGipxyMhimHKN2xlkejhVsgBoTAhOU0llW9aUSwINJ9zFUGgI8IzUFy1VG776fchHp0LMRmPSIUYk5btEPxbsrPtumPuMH8EQGrS+Rt4pD+78c8H1fEPkq5CmDl/PKu4JoFGv+aFcE+Od0hlILstIF10Qysf++QXDolKfzJa/56bgMeYKFiju73loiRM57ns8ddXpfLl792UVpRkFU62LNns6Y1LKTwapmUF4IvIuAIzd6LZNOQng64LAKXtKnViJ1JQiXwf4CEzhgvAti3/ejpb3U90hsrUcyZi6wBv9bZLcAJRWpz61JNYliM1d1grSwQDKGXNQE4xuN")
 *                 .build())
 *             .p2SVpnServerConfigurationName("p2sVpnServerConfiguration1")
 *             .radiusServerAddress("8.9.9.9")
 *             .radiusServerSecret("")
 *             .resourceGroupName("rg1")
 *             .virtualWanName("virtualWan1")
 *             .vpnClientIpsecPolicies(IpsecPolicyArgs.builder()
 *                 .dhGroup("DHGroup14")
 *                 .ikeEncryption("AES256")
 *                 .ikeIntegrity("SHA384")
 *                 .ipsecEncryption("AES256")
 *                 .ipsecIntegrity("SHA256")
 *                 .pfsGroup("PFS14")
 *                 .saDataSizeKilobytes(429497)
 *                 .saLifeTimeSeconds(86472)
 *                 .build())
 *             .vpnProtocols("IkeV2")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:network:P2sVpnServerConfiguration p2sVpnServerConfiguration1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWanName}/p2sVpnServerConfigurations/{p2SVpnServerConfigurationName} * ``` * */ @ResourceType(type="azure-native:network:P2sVpnServerConfiguration") public class P2sVpnServerConfiguration extends com.pulumi.resources.CustomResource { /** * A unique read-only string that changes whenever the resource is updated. * */ @Export(name="etag", refs={String.class}, tree="[0]") private Output etag; /** * @return A unique read-only string that changes whenever the resource is updated. * */ public Output etag() { return this.etag; } /** * The name of the P2SVpnServerConfiguration that is unique within a VirtualWan in a resource group. This name can be used to access the resource along with Paren VirtualWan resource name. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the P2SVpnServerConfiguration that is unique within a VirtualWan in a resource group. This name can be used to access the resource along with Paren VirtualWan resource name. * */ public Output> name() { return Codegen.optional(this.name); } /** * List of references to P2SVpnGateways. * */ @Export(name="p2SVpnGateways", refs={List.class,SubResourceResponse.class}, tree="[0,1]") private Output> p2SVpnGateways; /** * @return List of references to P2SVpnGateways. * */ public Output> p2SVpnGateways() { return this.p2SVpnGateways; } /** * Radius client root certificate of P2SVpnServerConfiguration. * */ @Export(name="p2SVpnServerConfigRadiusClientRootCertificates", refs={List.class,P2SVpnServerConfigRadiusClientRootCertificateResponse.class}, tree="[0,1]") private Output> p2SVpnServerConfigRadiusClientRootCertificates; /** * @return Radius client root certificate of P2SVpnServerConfiguration. * */ public Output>> p2SVpnServerConfigRadiusClientRootCertificates() { return Codegen.optional(this.p2SVpnServerConfigRadiusClientRootCertificates); } /** * Radius Server root certificate of P2SVpnServerConfiguration. * */ @Export(name="p2SVpnServerConfigRadiusServerRootCertificates", refs={List.class,P2SVpnServerConfigRadiusServerRootCertificateResponse.class}, tree="[0,1]") private Output> p2SVpnServerConfigRadiusServerRootCertificates; /** * @return Radius Server root certificate of P2SVpnServerConfiguration. * */ public Output>> p2SVpnServerConfigRadiusServerRootCertificates() { return Codegen.optional(this.p2SVpnServerConfigRadiusServerRootCertificates); } /** * VPN client revoked certificate of P2SVpnServerConfiguration. * */ @Export(name="p2SVpnServerConfigVpnClientRevokedCertificates", refs={List.class,P2SVpnServerConfigVpnClientRevokedCertificateResponse.class}, tree="[0,1]") private Output> p2SVpnServerConfigVpnClientRevokedCertificates; /** * @return VPN client revoked certificate of P2SVpnServerConfiguration. * */ public Output>> p2SVpnServerConfigVpnClientRevokedCertificates() { return Codegen.optional(this.p2SVpnServerConfigVpnClientRevokedCertificates); } /** * VPN client root certificate of P2SVpnServerConfiguration. * */ @Export(name="p2SVpnServerConfigVpnClientRootCertificates", refs={List.class,P2SVpnServerConfigVpnClientRootCertificateResponse.class}, tree="[0,1]") private Output> p2SVpnServerConfigVpnClientRootCertificates; /** * @return VPN client root certificate of P2SVpnServerConfiguration. * */ public Output>> p2SVpnServerConfigVpnClientRootCertificates() { return Codegen.optional(this.p2SVpnServerConfigVpnClientRootCertificates); } /** * The provisioning state of the P2S VPN server configuration resource. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The provisioning state of the P2S VPN server configuration resource. * */ public Output provisioningState() { return this.provisioningState; } /** * The radius server address property of the P2SVpnServerConfiguration resource for point to site client connection. * */ @Export(name="radiusServerAddress", refs={String.class}, tree="[0]") private Output radiusServerAddress; /** * @return The radius server address property of the P2SVpnServerConfiguration resource for point to site client connection. * */ public Output> radiusServerAddress() { return Codegen.optional(this.radiusServerAddress); } /** * The radius secret property of the P2SVpnServerConfiguration resource for point to site client connection. * */ @Export(name="radiusServerSecret", refs={String.class}, tree="[0]") private Output radiusServerSecret; /** * @return The radius secret property of the P2SVpnServerConfiguration resource for point to site client connection. * */ public Output> radiusServerSecret() { return Codegen.optional(this.radiusServerSecret); } /** * VpnClientIpsecPolicies for P2SVpnServerConfiguration. * */ @Export(name="vpnClientIpsecPolicies", refs={List.class,IpsecPolicyResponse.class}, tree="[0,1]") private Output> vpnClientIpsecPolicies; /** * @return VpnClientIpsecPolicies for P2SVpnServerConfiguration. * */ public Output>> vpnClientIpsecPolicies() { return Codegen.optional(this.vpnClientIpsecPolicies); } /** * VPN protocols for the P2SVpnServerConfiguration. * */ @Export(name="vpnProtocols", refs={List.class,String.class}, tree="[0,1]") private Output> vpnProtocols; /** * @return VPN protocols for the P2SVpnServerConfiguration. * */ public Output>> vpnProtocols() { return Codegen.optional(this.vpnProtocols); } /** * * @param name The _unique_ name of the resulting resource. */ public P2sVpnServerConfiguration(java.lang.String name) { this(name, P2sVpnServerConfigurationArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public P2sVpnServerConfiguration(java.lang.String name, P2sVpnServerConfigurationArgs 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 P2sVpnServerConfiguration(java.lang.String name, P2sVpnServerConfigurationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:network:P2sVpnServerConfiguration", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private P2sVpnServerConfiguration(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:network:P2sVpnServerConfiguration", name, null, makeResourceOptions(options, id), false); } private static P2sVpnServerConfigurationArgs makeArgs(P2sVpnServerConfigurationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? P2sVpnServerConfigurationArgs.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()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:network/v20180801:P2sVpnServerConfiguration").build()), Output.of(Alias.builder().type("azure-native:network/v20181001:P2sVpnServerConfiguration").build()), Output.of(Alias.builder().type("azure-native:network/v20181101:P2sVpnServerConfiguration").build()), Output.of(Alias.builder().type("azure-native:network/v20181201:P2sVpnServerConfiguration").build()), Output.of(Alias.builder().type("azure-native:network/v20190201:P2sVpnServerConfiguration").build()), Output.of(Alias.builder().type("azure-native:network/v20190401:P2sVpnServerConfiguration").build()), Output.of(Alias.builder().type("azure-native:network/v20190601:P2sVpnServerConfiguration").build()), Output.of(Alias.builder().type("azure-native:network/v20190701:P2sVpnServerConfiguration").build()) )) .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 options Optional settings to control the behavior of the CustomResource. */ public static P2sVpnServerConfiguration get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new P2sVpnServerConfiguration(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy