com.pulumi.azurenative.network.VpnServerConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.VpnServerConfigurationArgs;
import com.pulumi.azurenative.network.outputs.AadAuthenticationParametersResponse;
import com.pulumi.azurenative.network.outputs.IpsecPolicyResponse;
import com.pulumi.azurenative.network.outputs.P2SVpnGatewayResponse;
import com.pulumi.azurenative.network.outputs.RadiusServerResponse;
import com.pulumi.azurenative.network.outputs.VpnServerConfigRadiusClientRootCertificateResponse;
import com.pulumi.azurenative.network.outputs.VpnServerConfigRadiusServerRootCertificateResponse;
import com.pulumi.azurenative.network.outputs.VpnServerConfigVpnClientRevokedCertificateResponse;
import com.pulumi.azurenative.network.outputs.VpnServerConfigVpnClientRootCertificateResponse;
import com.pulumi.azurenative.network.outputs.VpnServerConfigurationPolicyGroupResponse;
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.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* VpnServerConfiguration Resource.
* Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2020-11-01.
*
* Other available API versions: 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01.
*
* ## Example Usage
* ### VpnServerConfigurationCreate
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.network.VpnServerConfiguration;
* import com.pulumi.azurenative.network.VpnServerConfigurationArgs;
* import com.pulumi.azurenative.network.inputs.VpnServerConfigurationPolicyGroupArgs;
* import com.pulumi.azurenative.network.inputs.VpnServerConfigRadiusClientRootCertificateArgs;
* import com.pulumi.azurenative.network.inputs.VpnServerConfigRadiusServerRootCertificateArgs;
* import com.pulumi.azurenative.network.inputs.RadiusServerArgs;
* import com.pulumi.azurenative.network.inputs.IpsecPolicyArgs;
* import com.pulumi.azurenative.network.inputs.VpnServerConfigVpnClientRevokedCertificateArgs;
* import com.pulumi.azurenative.network.inputs.VpnServerConfigVpnClientRootCertificateArgs;
* 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 vpnServerConfiguration = new VpnServerConfiguration("vpnServerConfiguration", VpnServerConfigurationArgs.builder()
* .configurationPolicyGroups(
* VpnServerConfigurationPolicyGroupArgs.builder()
* .id("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnServerConfigurations/vpnServerConfiguration1/vpnServerConfigurationPolicyGroups/policyGroup1")
* .isDefault(true)
* .name("policyGroup1")
* .policyMembers(VpnServerConfigurationPolicyGroupMemberArgs.builder()
* .attributeType("RadiusAzureGroupId")
* .attributeValue("6ad1bd08")
* .name("policy1")
* .build())
* .priority(0)
* .build(),
* VpnServerConfigurationPolicyGroupArgs.builder()
* .id("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnServerConfigurations/vpnServerConfiguration1/vpnServerConfigurationPolicyGroups/policyGroup2")
* .isDefault(true)
* .name("policyGroup2")
* .policyMembers(VpnServerConfigurationPolicyGroupMemberArgs.builder()
* .attributeType("CertificateGroupId")
* .attributeValue("red.com")
* .name("policy2")
* .build())
* .priority(0)
* .build())
* .location("West US")
* .radiusClientRootCertificates(VpnServerConfigRadiusClientRootCertificateArgs.builder()
* .name("vpnServerConfigRadiusClientRootCert1")
* .thumbprint("83FFBFC8848B5A5836C94D0112367E16148A286F")
* .build())
* .radiusServerRootCertificates(VpnServerConfigRadiusServerRootCertificateArgs.builder()
* .name("vpnServerConfigRadiusServerRootCer1")
* .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())
* .radiusServers(RadiusServerArgs.builder()
* .radiusServerAddress("10.0.0.0")
* .radiusServerScore(25)
* .radiusServerSecret("radiusServerSecret")
* .build())
* .resourceGroupName("rg1")
* .tags(Map.of("key1", "value1"))
* .vpnClientIpsecPolicies(IpsecPolicyArgs.builder()
* .dhGroup("DHGroup14")
* .ikeEncryption("AES256")
* .ikeIntegrity("SHA384")
* .ipsecEncryption("AES256")
* .ipsecIntegrity("SHA256")
* .pfsGroup("PFS14")
* .saDataSizeKilobytes(429497)
* .saLifeTimeSeconds(86472)
* .build())
* .vpnClientRevokedCertificates(VpnServerConfigVpnClientRevokedCertificateArgs.builder()
* .name("vpnServerConfigVpnClientRevokedCert1")
* .thumbprint("83FFBFC8848B5A5836C94D0112367E16148A286F")
* .build())
* .vpnClientRootCertificates(VpnServerConfigVpnClientRootCertificateArgs.builder()
* .name("vpnServerConfigVpnClientRootCert1")
* .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())
* .vpnProtocols("IkeV2")
* .vpnServerConfigurationName("vpnServerConfiguration1")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:network:VpnServerConfiguration vpnServerConfiguration1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}
* ```
*
*/
@ResourceType(type="azure-native:network:VpnServerConfiguration")
public class VpnServerConfiguration extends com.pulumi.resources.CustomResource {
/**
* The set of aad vpn authentication parameters.
*
*/
@Export(name="aadAuthenticationParameters", refs={AadAuthenticationParametersResponse.class}, tree="[0]")
private Output* @Nullable */ AadAuthenticationParametersResponse> aadAuthenticationParameters;
/**
* @return The set of aad vpn authentication parameters.
*
*/
public Output> aadAuthenticationParameters() {
return Codegen.optional(this.aadAuthenticationParameters);
}
/**
* List of all VpnServerConfigurationPolicyGroups.
*
*/
@Export(name="configurationPolicyGroups", refs={List.class,VpnServerConfigurationPolicyGroupResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> configurationPolicyGroups;
/**
* @return List of all VpnServerConfigurationPolicyGroups.
*
*/
public Output>> configurationPolicyGroups() {
return Codegen.optional(this.configurationPolicyGroups);
}
/**
* 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;
}
/**
* Resource location.
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> location;
/**
* @return Resource location.
*
*/
public Output> location() {
return Codegen.optional(this.location);
}
/**
* Resource name.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Resource name.
*
*/
public Output name() {
return this.name;
}
/**
* List of references to P2SVpnGateways.
*
*/
@Export(name="p2SVpnGateways", refs={List.class,P2SVpnGatewayResponse.class}, tree="[0,1]")
private Output> p2SVpnGateways;
/**
* @return List of references to P2SVpnGateways.
*
*/
public Output> p2SVpnGateways() {
return this.p2SVpnGateways;
}
/**
* The provisioning state of the VpnServerConfiguration resource. Possible values are: 'Updating', 'Deleting', and 'Failed'.
*
*/
@Export(name="provisioningState", refs={String.class}, tree="[0]")
private Output provisioningState;
/**
* @return The provisioning state of the VpnServerConfiguration resource. Possible values are: 'Updating', 'Deleting', and 'Failed'.
*
*/
public Output provisioningState() {
return this.provisioningState;
}
/**
* Radius client root certificate of VpnServerConfiguration.
*
*/
@Export(name="radiusClientRootCertificates", refs={List.class,VpnServerConfigRadiusClientRootCertificateResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> radiusClientRootCertificates;
/**
* @return Radius client root certificate of VpnServerConfiguration.
*
*/
public Output>> radiusClientRootCertificates() {
return Codegen.optional(this.radiusClientRootCertificates);
}
/**
* The radius server address property of the VpnServerConfiguration resource for point to site client connection.
*
*/
@Export(name="radiusServerAddress", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> radiusServerAddress;
/**
* @return The radius server address property of the VpnServerConfiguration resource for point to site client connection.
*
*/
public Output> radiusServerAddress() {
return Codegen.optional(this.radiusServerAddress);
}
/**
* Radius Server root certificate of VpnServerConfiguration.
*
*/
@Export(name="radiusServerRootCertificates", refs={List.class,VpnServerConfigRadiusServerRootCertificateResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> radiusServerRootCertificates;
/**
* @return Radius Server root certificate of VpnServerConfiguration.
*
*/
public Output>> radiusServerRootCertificates() {
return Codegen.optional(this.radiusServerRootCertificates);
}
/**
* The radius secret property of the VpnServerConfiguration resource for point to site client connection.
*
*/
@Export(name="radiusServerSecret", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> radiusServerSecret;
/**
* @return The radius secret property of the VpnServerConfiguration resource for point to site client connection.
*
*/
public Output> radiusServerSecret() {
return Codegen.optional(this.radiusServerSecret);
}
/**
* Multiple Radius Server configuration for VpnServerConfiguration.
*
*/
@Export(name="radiusServers", refs={List.class,RadiusServerResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> radiusServers;
/**
* @return Multiple Radius Server configuration for VpnServerConfiguration.
*
*/
public Output>> radiusServers() {
return Codegen.optional(this.radiusServers);
}
/**
* Resource tags.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return Resource tags.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* Resource type.
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return Resource type.
*
*/
public Output type() {
return this.type;
}
/**
* VPN authentication types for the VpnServerConfiguration.
*
*/
@Export(name="vpnAuthenticationTypes", refs={List.class,String.class}, tree="[0,1]")
private Output* @Nullable */ List> vpnAuthenticationTypes;
/**
* @return VPN authentication types for the VpnServerConfiguration.
*
*/
public Output>> vpnAuthenticationTypes() {
return Codegen.optional(this.vpnAuthenticationTypes);
}
/**
* VpnClientIpsecPolicies for VpnServerConfiguration.
*
*/
@Export(name="vpnClientIpsecPolicies", refs={List.class,IpsecPolicyResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> vpnClientIpsecPolicies;
/**
* @return VpnClientIpsecPolicies for VpnServerConfiguration.
*
*/
public Output>> vpnClientIpsecPolicies() {
return Codegen.optional(this.vpnClientIpsecPolicies);
}
/**
* VPN client revoked certificate of VpnServerConfiguration.
*
*/
@Export(name="vpnClientRevokedCertificates", refs={List.class,VpnServerConfigVpnClientRevokedCertificateResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> vpnClientRevokedCertificates;
/**
* @return VPN client revoked certificate of VpnServerConfiguration.
*
*/
public Output>> vpnClientRevokedCertificates() {
return Codegen.optional(this.vpnClientRevokedCertificates);
}
/**
* VPN client root certificate of VpnServerConfiguration.
*
*/
@Export(name="vpnClientRootCertificates", refs={List.class,VpnServerConfigVpnClientRootCertificateResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> vpnClientRootCertificates;
/**
* @return VPN client root certificate of VpnServerConfiguration.
*
*/
public Output>> vpnClientRootCertificates() {
return Codegen.optional(this.vpnClientRootCertificates);
}
/**
* VPN protocols for the VpnServerConfiguration.
*
*/
@Export(name="vpnProtocols", refs={List.class,String.class}, tree="[0,1]")
private Output* @Nullable */ List> vpnProtocols;
/**
* @return VPN protocols for the VpnServerConfiguration.
*
*/
public Output>> vpnProtocols() {
return Codegen.optional(this.vpnProtocols);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public VpnServerConfiguration(java.lang.String name) {
this(name, VpnServerConfigurationArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public VpnServerConfiguration(java.lang.String name, VpnServerConfigurationArgs 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 VpnServerConfiguration(java.lang.String name, VpnServerConfigurationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:network:VpnServerConfiguration", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private VpnServerConfiguration(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:network:VpnServerConfiguration", name, null, makeResourceOptions(options, id), false);
}
private static VpnServerConfigurationArgs makeArgs(VpnServerConfigurationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? VpnServerConfigurationArgs.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/v20190801:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20190901:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20191101:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20191201:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20200301:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20200401:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20200501:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20200601:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20200701:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20200801:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20201101:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20210201:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20210301:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20210501:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20210801:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20220101:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20220501:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20220701:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20220901:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20221101:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20230201:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20230401:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20230501:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20230601:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20230901:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20231101:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20240101:VpnServerConfiguration").build()),
Output.of(Alias.builder().type("azure-native:network/v20240301:VpnServerConfiguration").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 VpnServerConfiguration get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new VpnServerConfiguration(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy